# Ubuntu MATE Raspberry Pi ssh开机自动启动 URL: https://chengjinfang.com/posts/2017/linux-raspberrypi3ssh/ Author: 程锦方 Date: 2017-11-01 Tags: #linux #note Summary: 今天把Raspberry Pi 3和kindle paperwhite3放咸鱼上卖掉了,然后给raspberry pi3的买家装ubuntu系统遇到了一些问题. 下载系统 Ubuntu MATE 16.04.2(Xenial)下载地址: https://ubuntu-mate.org/raspberry-pi/ Ubu ------------------------------------------------------------------------ 今天把Raspberry Pi 3和kindle paperwhite3放咸鱼上卖掉了,然后给raspberry pi3的买家装ubuntu系统遇到了一些问题. ## 下载系统 Ubuntu MATE 16.04.2(Xenial)下载地址: https://ubuntu-mate.org/raspberry-pi/ Ubuntu MATE 16.04.2默认情况下禁用OpenSSH所以我连到了电视上设置. ## 安装 SSH和设置为开机启动 安装: ``` sudo apt-get install openssh-server ``` 查看是否启动: ``` ps -e |grep ssh ``` 看到sshd说明ssh server已经启动,我是没有启动的,所以手动启动 ``` sudo /etc/init.d/ssh start ``` ### 设置开机启动 我安装了vim ``` sudo vi/etc/rc.local ``` 然后在exit 0之前添加了 ``` /etc/init.d/ssh start ``` #### 这里start可能不需要但是我添加了,,, 添加脚本到初始化执行队列 ``` update-rc.d ssh defaults NN ``` ## 关机 ``` sudo shutdown -h now 或 sudo halt ``` ## 参考: https://www.bennythink.com/ubuntumate-raspberry2.html https://yian.me/blog/cs/install-ssh-server-on-raspberry-pi-2-and-boot-without-monitor.html https://www.oschina.net/question/54100_10344 ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml