markdown Chrome OS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Chrome OS相关的知识,希望对你有一定的参考价值。

### Crouton Installation Guides
- http://www.voltron00x.com/?p=1091
- http://jeanlouisnguyen.blogspot.jp/2014/01/guide-how-to-install-elementary-os-on.html
- https://tomwwolf.com/chromebook-14-compedium/chromebook-crouton-cookbook/

### Crouton Issues
- https://github.com/dnschneid/crouton/issues/1519  #Graphic Driver
- https://github.com/dnschneid/crouton/issues/1433  #OpenGL
- https://www.reddit.com/r/Crouton/comments/3uju9j/change_keyboard_shortcut_for_switching_between/  #Keyboard

### Crostini
- https://www.reddit.com/r/Crostini/comments/8jf6w8/how_do_i_create_a_script_runner_in_the_launcher/

### Misc
- https://github.com/jeremy-breidenbach/MyDearFreya/blob/master/freya.sh
- https://www.reddit.com/r/Crouton/comments/32akho/any_guides_to_getting_the_new_elementary_freya/
- https://www.reddit.com/r/Crostini/comments/94wenl/how_to_get_other_chromeos_keyboard_shortcuts/
## ChromeOS > Crouton Switching
#### chroot > ChromeOS
Command: `/usr/local/bin/croutoncycle cros`
File: `/etc/crouton/xbindkeysrc.scm`

#### ChromeOS > chroot
```
/usr/local/bin/croutontriggerd
https://github.com/dnschneid/crouton/commit/c9c91b74fb4364f8894cfbb89f77da2761b76805
```

## Symlinking to SD
```
sudo ln -s /media/removable/<DEVICE>/chroots /usr/local/chroots
```

## Black screen issue
**Black Screen Issue** [#2926](https://github.com/dnschneid/crouton/issues/2926)

copy `/etc/crouton/xorg-intel-sna.conf` to `/usr/share/X11/xorg.conf.d`

> xorg-intel-sna.conf
```
Section "Device"                                                          
   Identifier "Modesetting" 
   Driver     "modesetting"
   Option "AccelMethod" "sna"
   Option "TearFree" "true"
EndSection    
```
[Source](https://www.reddit.com/r/Crostini/wiki/howto/run-arch-linux)

- Start vm: `vmc start termina`
- Open vm: `vsh terminal`
- `lxc launch images:archlinux <NAME>`
- `lxc profile set default security.syscalls.blacklist "keyctl errno 38"`
- `lxc exec <NAME> -- bash`
 
- list images: `lxc image list images:`

## Configure arch
```sh
useradd -m -G wheel <USERNAME>
passwd
New password: 
Retype new password: 
passwd: password updated successfully
```
```sh
vi /etc/locale.gen
locale-gen
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.

echo "LANG=en_US.UTF-8" > /etc/locale.conf
```
```sh
pacman -Syu
pacman -S git base-devel python reflector
reflector -c Japan -f 4 --save /etc/pacman.d/mirrorlist
```
- `lxc console arch`
```sh
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
```
```sh
systemctl --user enable sommelier@0      # For Wayland GUI apps
systemctl --user enable sommelier-x@0    # For X11 GUI apps
systemctl --user start sommelier@0      # For Wayland GUI apps
systemctl --user start sommelier-x@0    # For X11 GUI apps
```

```sh
As of Sept 17, 2018, xkeyboard-config breaks sommelier, consequently preventing applications with a GUI from displaying. To fix this, comment out the lines starting with <I372> and <I374> in /usr/share/X11/xkb/keycodes/evdev (using vi, vim, or another terminal text editor), then restart your container.
```

### Packages

```sh
sudo git base-devel
wayland xorg-server-xwayland 
```

### Chrome keyboard shortcuts

[Source](https://old.reddit.com/r/Crostini/wiki/enable-chrome-shortcuts-in-linux-apps)
`~/.config/systemd/user/`
- Dirs: `sommelier-x@.service.d` `sommelier@.service.d}`
- Files: `cros-sommelier-override.conf` `cros-sommelier-x-override.conf`
```sh
[Service]
Environment="SOMMELIER_ACCELERATORS=Super_L,<Control>space"
```


## Custom font
https://cdn.rawgit.com/wernight/powerline-web-fonts/e4d967ca4f95d9fa0cf1d51afed2e5a5927d759e/PowerlineFonts.css

## Remove ssh keys

Ctrl+Shift+J

```js
term_.command.removeDirectory('/.ssh/')
```

## Key bindings

https://chromium.googlesource.com/apps/libapps/+/master/hterm/doc/KeyboardBindings.md

以上是关于markdown Chrome OS的主要内容,如果未能解决你的问题,请参考以下文章

Chrome MarkDown Preview Plus

markdown os库python

markdown OS X热键 - 快捷方式

markdown 键盘仅OS X.

markdown OS发布

markdown CriandoosServiços