树莓派开箱设置

 

 

若是显示不正常:linux

1. ide

disable_overscan=1  字体

hdmi_drive=2ui

 

更新源:this

#aliyun
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

 

安装中文字体google

apt-get install ttf-wqy-zenhei
dpkg-reconfigure locales

 选择命令行

[*] en_US.UTF-8 UTF-8 
[*] zh_CN.GBK GBK                                                                  
[*] zh_CN.UTF-8 UTF-8

安装中文输入法 code

apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin

安装VNCserver

apt-get install tightvncserver

 运行ip

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='root'
### 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

 设置开机自启

systemctl enable tightvncserver

相关文章
相关标签/搜索