chromebook安装ubuntu

看教程很简单,可是一做就有问题

先贴教程

步骤一

在Chromebook上启用开发人员模式,按住Esc键、刷新键和电源按钮进入恢复模式。

较旧的Chromebook具有需要切换的物理开发者开关。

在恢复屏幕上,按Ctrl D,同意提示,将启动进入开发人员模式。
进入开发者模式chromebook显示

我的设备已经是最新设备,i3 8xxxu,设备是chromebook x360,跟图上这个不是一回事

这里借图一用

步骤二

下载并安装Crouton

一旦你下载好了Crouton,在Chrome操作系统中按Ctrl Alt T打开Crosh终端即可。

Crouton下载地址为(https://goo.gl/fd3zc )如果是chromebook直接点击下载就行了,会自动放到想放的地方的

步骤三

先输入 shell , 然后再输入 sudo sh ~/Downloads/crouton -t xfce

如果你想装unity桌面的话也可以sudo sh ~/Downloads/crouton -t unity

整个过程大概是10-30min

问题出在这里

sh: 0: Refusing to exec /home/chronos/user/Downloads/crouton from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

看了半天,说是什么是noexec区,说是为了安全考虑,又为了可以运行云云。然后举了一堆例子,没看出个所以然来,直接拉到最后

https://github.com/dnschneid/crouton/blob/HEAD/README.md

The easy way (assuming you want an Ubuntu LTS with Xfce)

  1. Download crouton
  2. Open a shell (Ctrl+Alt+T, type shell and hit enter)
  3. Copy the installer to an executable location by running sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
  4. Now that it’s executable, run the installer itself: sudo crouton -t xfce
  5. Wait patiently and answer the prompts like a good person.
  6. Done! You can jump straight to your Xfce session by running sudo enter-chroot startxfce4 or, as a special shortcut, sudo startxfce4
  7. Cycle through Chromium OS and your running graphical chroots using Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward.
  8. Exit the chroot by logging out of Xfce.

这样就简单了

先运行,以下,给权限

sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton

再运行,安装升级

sudo crouton

再来一次,我不确定是不是顺序没对,不过就复制粘贴一次的事情,你也不会反对,对不对?

sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton

最后运行

sudo crouton -t xfce

然后就一直跑了。

理论上安装完之后输入

sudo startxfce4

就可以进入linux了

如果你觉得ubunut16太老了,可以看看以下

Hey now, Ubuntu 16.04 is pretty old; I’m young and hip

  1. The -r parameter specifies which distro release you want to use.
  2. Run crouton -r list to list the recognized releases and which distros they belong to.

剩下部分没看懂,也不是太在意,我直接搬运过来

Wasteful redundancies are wasteful: one clipboard, one browser, one window

  1. Install the crouton extension into Chromium OS.
  2. Add the extension or xiwi version to your chroot.
  3. Try some copy-pasta, or uninstall all your web browsers from the chroot.

Installing the extension and its target gives you synchronized clipboards, the option of using Chromium OS to handle URLs, and allows chroots to create graphical sessions as Chromium OS windows.

I don’t always use Linux, but when I do, I use CLI

  1. You can save a chunk of space by ditching X and just installing command-line tools using -t core or -t cli-extra
  2. Enter the chroot in as many crosh shells as you want simultaneously using sudo enter-chroot
  3. Use the Crosh Window extension to keep Chromium OS from eating standard keyboard shortcuts.
  4. If you installed cli-extra, startcli will launch a new VT right into the chroot.

A new version of crouton came out; my chroot is therefore obsolete and sad

  1. Exit the chroot if you have it open.
  2. If you haven’t already, download crouton, and copy it so it works: sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
  3. Update your chroot with sudo crouton -u -n chrootname. It will update all installed targets.

I want to open my desktop in a window or a tab but I don’t have the ‘xiwi’ target/xmethod.

  1. Add ‘xiwi’ or any other target to an existing chroot with the -u option: sudo crouton -t xiwi -u -n chrootname

This will also make ‘xiwi’ the default xmethod.

  1. If you want to keep the ‘xorg’ xmethod as the default then pick it first: sudo sh crouton -t xorg,xiwi -u -n chrootname

A backup a day keeps the price-gouging data restoration services away

  1. sudo edit-chroot -b chrootname backs up your chroot to a timestamped tarball in the current directory. Chroots are named either via the -n parameter when created or by the release name if -n was not specified.
  2. sudo edit-chroot -r chrootname restores the chroot from the most recent timestamped tarball. You can explicitly specify the tarball with -f
  3. If your machine is new, powerwashed, or held upside-down and shaken, you can use the crouton installer to restore a chroot and relevant scripts: sudo crouton -f mybackup.tar.gz

Unlike with Chromium OS, the data in your chroot isn’t synced to the cloud.

This chroot’s name/location/password/existence sucks. How to fix?

  1. Check out the edit-chroot command; it likely does what you need it to do.
  2. If you set a Chromium OS root password, you can change it with sudo chromeos-setdevpasswd
  3. You can change the password inside your chroot with passwd

I want to install the chroot to another location

  1. Use -p to specify the directory in which to install the chroot and scripts. Be sure to quote or escape spaces.
  2. When entering the chroot for the first time each boot, you will first need to ensure the place you’ve installed the scripts is in a place that allows executables to run. Determine the mountpoint by running df --output=target /path/to/enter-chroot, then mark the mount exec with sudo mount -o remount,exec /path/to/mountpoint.
  3. You can then launch the chroot by specifying the full path of any of the enter-chroot or start* scripts (i.e. sudo /path/to/enter-chroot), or use the -c parameter to explicitly specify the chroots directory.

If for some reason you have to run the installer without touching the local disk, you can (for the time being) run curl -fL https://goo.gl/fd3zc | sudo sh -s -- options_for_crouton_installer. Note that this will definitely break in the near future, so don’t depend on it.

Downloading bootstrap files over and over again is a waste of time

  1. Download crouton
  2. Open a shell (Ctrl+Alt+T, type shell and hit enter)
  3. Copy the installer to an executable location by running sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
  4. Now that it’s executable, use the installer to build a bootstrap tarball: sudo crouton -d -f ~/Downloads/mybootstrap.tar.bz2
  5. Include the -r parameter if you want to specify for which release to prepare a bootstrap.
  6. You can then create chroots using the tarball by running sudo crouton -f ~/Downloads/mybootstrap.tar.bz2. Make sure you also specify the target environment with -t.

This is the quickest way to create multiple chroots at once, since you won’t have to determine and download the bootstrap files every time.

Targets are cool. Abusing them for fun and profit is even cooler

  1. You can make your own target files (start by copying one of the existing ones) and then use them with any version of crouton via the -T parameter.

This is great for automating common tasks when creating chroots.

Help! I’ve created a monster that must be slain!

  1. The delete-chroot command is your sword, shield, and only true friend. sudo delete-chroot evilchroot
  2. It’s actually just a shortcut to sudo edit-chroot -d evilchroot, which I suppose makes it a bit of a deceptive Swiss Army knife friend…still good?

© 版权声明
THE END
喜欢就支持以下吧
点赞0
分享
评论 共31条
  • wangjianjilei

    昵称

  • 取消
    昵称
    • wangjianjilei
    • download0
      Stone has a lot more than 30 years experience of New York City property. Rhetta Teddie Winikka
      4月前回复
    • wangjianjilei
    • hd film izle0
      I got what you intend,saved to fav, very nice web site. Ruthie Silvester Mumford
      4月前回复
    • wangjianjilei
    • filmi izle0
      This is SO beautiful, Lane. Thank you so much for posting. I cannot wait to see this in person some day. Theresa Bendicty Eberly
      4月前回复
    • wangjianjilei
    • hd film izle0
      Card but considering we are enough free PSN card to giveaway. Madlen Sergio Bunker
      4月前回复
    • wangjianjilei
    • sex porn0
      Amazing things here. I am very happy to peer your post. Catha George Raquel
      4月前回复
    • wangjianjilei
    • yabanci dizi0
      Hello. This article was really motivating, especially since I was browsing for thoughts on this issue last Sunday. Nonie Dagny Ib
      4月前回复
    • wangjianjilei
    • online0
      This paragraph will assist the internet visitors for setting up new webpage or even a weblog from start to end. Susannah Bart Terr
      4月前回复
    • wangjianjilei
    • filmkovasi0
      For hottest information you have to go to see internet and on the web I found this web site as a finest site for newest updates. Sibley Barthel Hoffer
      4月前回复
    • wangjianjilei
    • movies0
      I was able to find good information from your articles.| Rori Purcell Kumler
      4月前回复
    • wangjianjilei
    • watch0
      I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information. Antonie Lorant Melvin
      4月前回复
    • wangjianjilei
    • movies0
      Hello there. I discovered your web site by way of Google even as looking for a similar matter, your web site got here up. It appears great. I have bookmarked it in my google bookmarks to come back then. Lonna Jesus Creedon
      4月前回复
    • wangjianjilei
    • indir0
      I will not talk about your competence, the write-up simply disgusting Elinor Konrad Gatias
      4月前回复
    • wangjianjilei
    • movies0
      After checking out a few of the articles on your site, I truly like your way of writing a blog. I added it to my bookmark site list and will be checking back soon. Take a look at my web site too and tell me how you feel. Niki Valdemar Goodrich
      3月前回复
    • wangjianjilei
    • filmkovasi0
      I enjoy reading through an article that will make men and women think. Also, thank you for permitting me to comment! Jacquette Faber Shipp
      3月前回复
    • wangjianjilei
    • haber0
      Do they have bootcamp training in Mineski QC right now during mecq? Mela Enoch McGee
      3月前回复
    • wangjianjilei
    • yabanci0
      you have a terrific blog site here! would you like to make some invite blog posts on my blog? Mame Temple Nevlin
      3月前回复
    • wangjianjilei
    • movies0
      You need to be a part of a contest for one of the greatest sites on the internet. I will recommend this blog! Dulcy Pail Rask
      3月前回复
    • wangjianjilei
    • filmkovasi0
      Integer lacus nisi, aliquam id risus id, aliquam luctus dolor. Duis vitae faucibus lectus. Nam porttitor tortor vitae erat feugiat, eu luctus quam facilisis. Donec vel elit sapien? Pellentesque sollicitudin blandit ipsum aliquam vestibulum? Britteny Clem Fidel
      3月前回复
    • wangjianjilei
    • tek part0
      it is actually established informatiin my friend. you are a remarkably well-proportiined scribe . i want to helping with you my website add well. command me what do you think approximately it Belita Dare Proudlove
      3月前回复
    • wangjianjilei
    • tek part0
      Everything is very open with a clear description of the issues. Kristi Richie Ray
      3月前回复
    • wangjianjilei
    • tek part0
      Extremely useful Seo Audit Checklist on all Internet. Janeczka Benn Ferren
      3月前回复
    • wangjianjilei
    • movie download0
      Great blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol| Maribel Denys Parnas
      3月前回复
    • wangjianjilei
    • movie download0
      I precisely wanted to appreciate you once more. I am not sure the things I could possibly have achieved without the actual thoughts shown by you relating to that subject matter. It previously was the traumatic setting for me, but seeing this skilled mode you dealt with that made me to weep with happiness. Extremely happier for this assistance as well as have high hopes you really know what a great job that you are carrying out instructing people today by way of your web page. I am certain you have never got to know any of us. Janina Osborn Fazeli
      3月前回复
    • wangjianjilei
    • hindi movie0
      After I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I receive 4 emails with the same comment. Is there a means you can remove me from that service? Thank you! Othelia Barnett Tara
      3月前回复
    • wangjianjilei
    • online0
      Use these sites to communicate with people, not just to post links. Maggee Adamo Hullda
      3月前回复
    • wangjianjilei
    • bedava0
      I have realized some considerations through your blog post. One other stuff I would like to talk about is that there are numerous games on the market designed specifically for toddler age young children. They include pattern acknowledgement, colors, dogs, and styles. These generally focus on familiarization instead of memorization. This keeps little ones occupied without having a sensation like they are studying. Thanks Delora Andris Galven
      3月前回复
    • wangjianjilei
    • torrent0
      Only wanna input that you have a very decent website , I love the style it actually stands out. Dorie Syd Rozella
      3月前回复
    • wangjianjilei
    • dizi0
      Fastidious respond in return of this issue with firm arguments and telling everything regarding that. Lezlie Clayson Doug
      3月前回复
    • wangjianjilei
    • mp30
      Thank you for your article. Much thanks again. Cool. Irina Hurleigh Poulter
      3月前回复
    • wangjianjilei
    • diziler0
      Really nice tutorial, thanks for sharing , much appreciated this effort, Loved it Ana Engelbert Tirrell
      3月前回复
    • wangjianjilei
    • hindi movie0
      awesome suggestions right here , really recommended Chelsae Forbes Marina
      3月前回复