买了个树莓派3B,下载了最新的“2017-01-11-raspbian-jessie.img”镜像,启动后试图安装VNC服务,按照网上的教程输入:
sudo apt-get install tightvncserver
提示会安装“tightvncserver xfonts-base”, 同时会删除"realvnc-vnc-server":
pi@raspberrypi:~ $ sudo apt-get install tightvncserver Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: xfonts-base Suggested packages: tightvnc-java The following packages will be REMOVED: realvnc-vnc-server The following NEW packages will be installed: tightvncserver xfonts-base 0 upgraded, 2 newly installed, 1 to remove and 148 not upgraded. Need to get 6,736 kB of archives. After this operation, 18.4 MB disk space will be freed. Do you want to continue? [Y/n]
看来树莓派已经内置VNC服务了,就不再需要安装tightvncserver了。
在树莓派的网站搜索“vnc",找到这个链接:
https://www.realvnc.com/docs/raspberry-pi.html#raspberry-pi-setup
select Menu > Preferences > Raspberry Pi Configuration > Interfaces and make sure VNC is set to Enabled.
Alternatively, run the command
sudo raspi-config
, navigate to Advanced Options > VNC and select Yes.From now on, VNC Server will start automatically every time you boot your Raspberry Pi. See how to stop VNC Server.
它说这样就可以开机自动启动VNC服务了,不过我没有成功,还是先手动开启吧:
vncserver :1
然后就可以通过vnc view 登录了。
用户名:pi
密码:raspberry
关于手机登录,vnc view 的安卓APP在国内好多应用市场里都没有,google play里也下载不下来,总是闪退,后来在百度应用里找到一个,将就用吧。
如果不好找,我在这里放一个下载
链接:http://pan.baidu.com/s/1eRNQuKa 密码:rxbo