PocketChip安装ssh设置自启动
1、改中科大源和能用的PocketChip源
sudo nano /etc/apt/sources.list
deb http://chip.jfpossibilities.com/chip/debian/repo jessie main
deb http://chip.jfpossibilities.com/chip/debian/pocketchip jessie main
deb http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
#deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
#下面四行用于media相关的,比如kodi,但是2021.5.2发现已经不能用了
#deb http://mirrors.ustc.edu.cn/debian-multimedia/ jessie main non-free
#deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ jessie main non-free
#deb http://mirrors.ustc.edu.cn/debian-multimedia/ jessie-backports main
#deb-src http://mirrors.ustc.edu.cn/debian-multimedia/ jessie-backports main
#所以换成官方的
deb https://archive.deb-multimedia.org/ jessie main non-free
deb https://archive.deb-multimedia.org/ jessie-backports main
Ctrl+x
y
保存
sudo nano /etc/apt/preferences
旧
Package: *
Pin: origin opensource.nextthing.co
Pin-Priority: 1050
新
Package: *
Pin: origin chip.jfpossibilities.com
Pin-Priority: 1050
2、安装apt-transport-https
sudo apt install apt-transport-https
3、安装openssh-server并启动
sudo apt install openssh-server
sudo systemctl start ssh.service
4、修改配置
nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
5、设置自启动
sudo systemctl enable ssh
执行sudo apt-get update 时会有如下错误
W: GPG 错误:http://mirrors.ustc.edu.cn jessie InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 5C 808C2B65558117
安装 deb-multimedia-keyring 解决
sudo apt-get install deb-multimedia-keyring
或者
wget https://archive.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb
或者点击下载
用FileZilla sftp上传到chip下
sudo dpkg -i deb-multimedia-keyring_2016.8.1_all.deb