晨旭的博客
你想干什么!
晨旭的博客~
利用VNC远程控制树莓派

0x00、添加国内软件源

Raspberry Pi(树莓派)国内软件源:

输入"sudo nano /etc/apt/sources.list"修改配置文件

改为:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi 
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/58891443268651.jpg?imageView2/2/w/681/h/174|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

修改文件后,在终端中运行"sudo apt-get update"

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/85461443268652.jpg?imageView2/2/w/1124/h/848|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

漫长的等待过后。。。好了。。。

上面那个ssh软件是Xshell,传文件比较方便,功能比较强大,所以我就换了→_→ 下载地址:http://www.netsarang.com/products/xsh_overview.html

0x01、添加输入法

这里安装fcitx输入法:

sudo apt-get install fcitx

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/1541443268654.jpg?imageView2/2/w/1091/h/421|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

又经历了漫长的等待过后。。。好了。。。

0x02、添加vnc server

输入命令:

sudo apt-get update
sudo apt-get install tightvncserver

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/83131443268654.jpg?imageView2/2/w/806/h/342|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

安装完成后,运行"tightvncserver",输入控制密码,选择性输入查看密码,查看密码只能用来查看桌面,而控制密码才能对桌面进行操作。

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/53081443268656.jpg?imageView2/2/w/494/h/298|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

0x30、用VNC连接树莓派

先输入命令"vncserver :1"打开服务

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/42731443268656.jpg?imageView2/2/w/284/h/35|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

下载vnc-4_1_2-x86_win32_viewer:链接:http://pan.baidu.com/s/1i3gx9Lr 密码:0q5w

打开:

https://source.papapoi.com/wp-content/plugins/new-ueditor/ueditor/php/upload/84961443268657.jpg?imageView2/2/w/386/h/171|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

连接成功!

https://source.papapoi.com/wp-content/uploads/2015/09/QQ截图20150926195758.jpg?imageView2/2/w/1097/h/893|watermark/1/image/aHR0cDovL3NvdXJjZS5wYXBhcG9pLmNvbS93cC1jb250ZW50L3VwbG9hZHMvMjAxNi8wOC9sb2dvcGljLnBuZw==/dissolve/100/gravity/SouthEast/dx/10/dy/10

赞赏
如非特殊说明,本站所有文章均采用知识共享 署名-非商业性使用-相同方式共享4.0国际许可协议(CC BY-NC-SA 4.0)进行许可。

发表评论

textsms
account_circle
email

晨旭的博客~

利用VNC远程控制树莓派
0x00、添加国内软件源 0x01、添加输入法 0x02、添加vnc server 0x30、用VNC连接树莓派
扫描二维码继续阅读
2015-09-26