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
喜欢就支持一下吧
点赞8 分享
评论 共31条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片
    • 头像hindi movie0
    • 头像diziler0
    • 头像mp30
    • 头像dizi0
    • 头像torrent0
    • 头像bedava0
    • 头像online0
    • 头像hindi movie0
    • 头像movie download0
    • 头像movie download0
    • 头像tek part0
    • 头像tek part0
    • 头像tek part0
    • 头像filmkovasi0
    • 头像movies0
    • 头像yabanci0
    • 头像haber0
    • 头像filmkovasi0
    • 头像movies0
    • 头像indir0
    • 头像movies0
    • 头像watch0
    • 头像movies0
    • 头像filmkovasi0
    • 头像online0
    • 头像yabanci dizi0
    • 头像sex porn0
    • 头像hd film izle0
    • 头像filmi izle0
    • 头像hd film izle0
    • 头像download0