详细记录从购买树莓派开始瞎搞命令等情景,完整的写在其他文章内,有一出没一出的记录在这里

系统:ubuntu-core, snap

  1. 我想使用apt-get咋办,使用如下命令:
    sudo snap install classic --devmode --edge
    then
    sudo classic
    then apt-get is available
  2. 这个系统要啥没啥,很多需要自己搞
    分区:略
    修改源:
    修改/etc/apt/sources.list文件,替换为以下内容。这里是14.04的阿里云源。

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  3. 安装内核

    1
    2
    3
    sudo chroot /mnt/root
    apt-get update
    apt-get install linux-generic
  4. 安装SSH(可选)
    apt-get install openssh-server

默认情况下SSH Server不允许使用root登录,需要进行修改。
修改/ect/ssh/ssd_config,大概在28行左右有PermitRootLogin without-password改成PermitRootLogin yes