樹莓派開箱設置

 

 

若是顯示不正常: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

相關文章
相關標籤/搜索