树莓派学习笔记2


问题:

1、树莓派使用vnc(自带realvnc)可以,使用tightvncserver不可以。(tihgtvncserver :  commond not found)  ???

win10PC使用realvnc客户端可以登陆树莓派图形界面,使用tightvnc客户端登陆错误(远程计算机拒绝登陆,或者  no security。。。)




指令学习

1、进入root用户——   su

2、

#启动vnc
tightvncserver -geometry 800x600 :1

#停止vnc
tightvncserver -kill :1

#查看vnc进程
ps ax | grep Xtightvnc | grep -v grep


3、设置镜像源文件

pi@raspberrypi ~ $ sudo nano /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
nano里面 使用 Ctrl+O 回车后保存文件,Ctrl+X 退出编辑器。




中文字体设置

1、apt-get -y install ttf-wqy-zenhei 
中文字库安装完成之后,还需要安装一个中文输入法。输入如下命令 
2、apt-get -y install scim-pinyin 
3、安装完毕后输入 
raspi-config 
然后选择Internationalisation options,然后选择change_locale,在Default locale for the system environment:中选择zh_CN.UTF-8,配置完成之后,输入命令 
reboot

(可在vnc界面登陆之后,使用界面的raspberry pi configuration 更改locale,之后reboot)



4、安装samba

https://www.howtoforge.com/tutorial/debian-samba-server/

安装samba,创建用户。

windows里面的cmd中 net config station 找WORKGROUP 

http://windowsitpro.com/windows/jsi-tip-2999-how-do-i-determine-workgroup-name-peer-peer-network



samba详细介绍

http://atong.blog.51cto.com/2393905/1353549








猜你喜欢

转载自blog.csdn.net/qq_20029539/article/details/73382594