看教程很简单,可是一做就有问题
先贴教程
步骤一
在Chromebook上启用开发人员模式,按住Esc键、刷新键和电源按钮进入恢复模式。
较旧的Chromebook具有需要切换的物理开发者开关。
在恢复屏幕上,按Ctrl D,同意提示,将启动进入开发人员模式。
我的设备已经是最新设备,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)
- Download
crouton
- Open a shell (Ctrl+Alt+T, type
shell
and hit enter) - Copy the installer to an executable location by running
sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
- Now that it’s executable, run the installer itself:
sudo crouton -t xfce
- Wait patiently and answer the prompts like a good person.
- Done! You can jump straight to your Xfce session by running
sudo enter-chroot startxfce4
or, as a special shortcut,sudo startxfce4
- Cycle through Chromium OS and your running graphical chroots using Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward.
- 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
- The
-r
parameter specifies which distro release you want to use. - 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
- Install the crouton extension into Chromium OS.
- Add the
extension
orxiwi
version to your chroot. - 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
- You can save a chunk of space by ditching X and just installing command-line tools using
-t core
or-t cli-extra
- Enter the chroot in as many crosh shells as you want simultaneously using
sudo enter-chroot
- Use the Crosh Window extension to keep Chromium OS from eating standard keyboard shortcuts.
- 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
- Exit the chroot if you have it open.
- If you haven’t already, download
crouton
, and copy it so it works:sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
- 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.
- 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.
- 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
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.sudo edit-chroot -r chrootname
restores the chroot from the most recent timestamped tarball. You can explicitly specify the tarball with-f
- 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?
- Check out the
edit-chroot
command; it likely does what you need it to do. - If you set a Chromium OS root password, you can change it with
sudo chromeos-setdevpasswd
- You can change the password inside your chroot with
passwd
I want to install the chroot to another location
- Use
-p
to specify the directory in which to install the chroot and scripts. Be sure to quote or escape spaces. - 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 withsudo mount -o remount,exec /path/to/mountpoint
. - 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
- Download
crouton
- Open a shell (Ctrl+Alt+T, type
shell
and hit enter) - Copy the installer to an executable location by running
sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
- Now that it’s executable, use the installer to build a bootstrap tarball:
sudo crouton -d -f ~/Downloads/mybootstrap.tar.bz2
- Include the
-r
parameter if you want to specify for which release to prepare a bootstrap. - 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
- 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!
- The delete-chroot command is your sword, shield, and only true friend.
sudo delete-chroot evilchroot
- 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?
- 最新
- 最热
只看作者