在 Chromebook Linux 中安装必备的软件

ChromeOS 内置 Debian buster 的 Linux 系统

  1. 修改国内源, /etc/apt/sources.list

    1
    2
    3
    4
    5
    6
    7
    8
    9
    deb http://mirrors.163.com/debian/ buster main non-free contrib
    deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
    deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
    deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

    deb-src http://mirrors.163.com/debian/ buster main non-free contrib
    deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
    deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
    deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
  2. 安装 Docker

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    sudo apt-get update -y
    sudo apt-get install -y\
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    echo \
    "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt-get update -y
    sudo apt-get install docker-ce docker-ce-cli containerd.io -y
    sudo gpasswd -a ety001 docker
  3. 修改 Docker 日志量

1
2
3
4
5
# /etc/docker/daemon.json
{
"log-driver":"json-file",
"log-opts": {"max-size":"5m", "max-file":"3"}
}
1
2
sudo systemctl restart docker
sudo systemctl enable docker
  1. 修改 Linux 容器为固定IP

/etc/network/interfaces 文件

1
2
3
4
5
6
7
8
9
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 100.115.92.202/28
gateway 100.115.92.193

dns-nameservers 8.8.8.8 114.114.114.114

重启网络 sudo systemctl restart networking

  1. 修改 sudo 不需要密码
1
%sudo ALL=(ALL) NOPASSWD: ALL
  1. 设置当前用户密码
1
sudo passwd ety001
  1. 配置 Chrome 各个插件

  2. 配置 ssh

  3. 从 github 下载私有配置,进行自定义设置

  4. 安装 nvm

1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  1. 下载 vscode

https://code.visualstudio.com

  1. 下载 vnc viewer

https://www.realvnc.com/en/connect/download/viewer

  1. 安装 Linux 搜狗拼音

https://pinyin.sogou.com/linux/?r=pinyin

安装完,在 /etc/systemd/user/cros-garcon.service.d/cros-garcon-override.conf 中增加下面的配置

1
2
3
Environment="GTK_IM_MODULE=fcitx"
Environment="QT_IM_MODULE=fcitx"
Environment="[email protected]=fcitx"

~/.sommelierrc 中增加

1
/usr/bin/fcitx-autostart

参考: https://faq.fydeos.com/en/recipes/chinese-ime-in-linux-beta/

  1. 安装 LinuxQQ

https://im.qq.com/linuxqq/download.html

  1. 安装 Linux QQ音乐

https://y.qq.com/download/download.html

  1. 安装 Linux 网易云音乐

https://music.163.com/#/download

  1. 安装 Slack

https://slack.com/intl/zh-cn/downloads/linux

  1. 安装 hack 字体
1
sudo apt-get install -y fonts-hack
ET碎碎念,每周一,晚六点一刻更新,欢迎订阅