标签:文档 地址 his customize 远程 vnc pre oca http
首先下载ubuntu,
地址:https://wiki.ubuntu.com/ARM/RaspberryPi 版本:Raspberry Pi 3: ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz (4G image, 216M compressed)
解压文件,得到近4G镜像文件
添加ssh文本文档。登录账号及密码均为:ubuntu
修改密码
添加vnc界面远程控制:首先更新软件库并下载vnc
sudo apt-get update
sudo apt-get install tightvncserve
启动vnc
tightvncserver
设置vnc开机启动,用nano文本编辑器编辑:
sudo nano /etc/init.d/tightvncserver
输入以下命令:
#!/bin/sh ### BEGIN INIT INFO # Provides: tightvncserver # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/stop tightvncserver ### END INIT INFO # More details see: # http://www.penguintutor.com/linux/tightvnc ### Customize this entry # Set the USER variable to the name of the user to start tightvncserver under export USER=‘pi‘ ### End customization required eval cd ~$USER case "$1" in start) # 启动命令行。此处自定义分辨率、控制台号码或其它参数。 su $USER -c ‘/usr/bin/tightvncserver -depth 16 -geometry 800x600 :1‘ echo "Starting TightVNC server for $USER " ;; stop) # 终止命令行。此处控制台号码与启动一致。 su $USER -c ‘/usr/bin/tightvncserver -kill :1‘ echo "Tightvncserver stopped" ;; *) echo "Usage: /etc/init.d/tightvncserver {start|stop}" exit 1 ;; esac exit 0
修改vncq权限并更新开机启动列表
sudo chmod 755 /etc/init.d/tightvncserver sudo update-rc.d tightvncserver defaults
标签:文档 地址 his customize 远程 vnc pre oca http
原文地址:http://www.cnblogs.com/2Bthebest1/p/7365471.html