更改SD卡配置
sudo raspi-config
带3.5LCD 更新
sudo apt-mark hold raspberrypi-bootloader
sudo apt-get update
sudo apt-get upgrade
源
sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak
sudo nano /etc/apt/sources.list
sudo apt-get update
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib
屏幕校准
su pi
DISPLAY=:0.0 xinput_calibrator
//修改参数
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
//文件内容
Option “Calibration” "3968 89 193 3928"
smb
//安装smb
sudo apt-get install samba samba-common-bin
//备份
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_bak
//修改文件
sudo nano /etc/samba/smb.conf
//版本1
[global]
log file = /var/log/samba/log.%m
[topest_dic]
path = /
read only = no
create mask = 0755
directory mask = 0755
//重启smb服务目录
sudo /etc/init.d/samba restart
//增加系统用户名
sudo useradd aaa
sudo touch /etc/samba/smbpasswd
//增加smb用户
sudo smbpasswd -a aaa
//开机随机启动
sudo chmod 755 /etc/init.d/samba
sudo update-rc.d samba defaults
//取消随机启动
sudo update-rc.d -f samba remove
node.js
https://cnodejs.org/topic/54032efa9769c2e93797cd06
wget http://nodejs.org/dist/v0.11.12/node-v0.11.12-linux-arm-pi.tar.gz
tar -xvzf node-v0.11.12-linux-arm-pi.tar.gz
node-v0.11.12-linux-arm-pi/bin/node --version
ln -s /home/pi/soft_bin/node-v0.11.12-linux-arm-pi/bin/node /usr/bin/node
ln -s /home/pi/soft_bin/node-v0.11.12-linux-arm-pi/bin/npm /usr/bin/npm
vnc
http://shumeipai.nxez.com/2013/09/04/login-rpi-with-vnc.html?variant=zh-cn
//安装
sudo apt-get install tightvncserver
//设密码
vncpasswd
//改配置文件
sudo nano /etc/init.d/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='pi'
### End customization required
eval cd ~$USER
case "$1" in
start)
# 启动命令行。此处自定义分辨率、控制台号码或其它参数。
su $USER -c '/usr/bin/tightvncserver -depth 16 -geometry 1280x720 :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
//改权限
sudo chmod 755 /etc/init.d/tightvncserver
//改随机启动
sudo update-rc.d tightvncserver defaults
//取消随机启动
sudo update-rc.d -f tightvncserver remove
VIM
sudo apt-get install vim && sudo update-alternatives --set editor /usr/bin/vim.basic
mono
apt-cache depends mono-complete
sudo apt-get install mono-complete
wget http://download.mono-project.com/sources/mono/mono-4.0.1.44.tar.bz2
tar -xvf mono-4.0.1.44.tar.bz2
解压
cd mono-4.0.1
缺依赖
sudo apt-get install gettext
切换路径
./configure --prefix=/usr/local
配置编译安装路径
make
编译
checkinstall
nat123
1.
cd /mnt ——将mnt换成是自己本地实际目标安装目录
wget http://www.nat123.com/down/nat123linux.tar.gz ——下载安装包。过程中可能会有转跳提
tar -zxvf nat123linux.tar.gz -解压本地目录
2.
sudo apt-get install screen
3.
cd /mnt ——将mnt换成是自己本地实际安装目录
screen -S nat123 ——创建一个客户端运行进程。注意是大写的S字母。如提示没有screen,则安装screen后再执行。
mono nat123linux.sh ——运行客户端,并按提示依次输入自己的帐号和密码
4.
运行成功正常后,按住Ctrl键,并依次先按A,再按D,退出当前窗口,提示显示为detached分开任务,不会关闭当前进程
supervisor后台守护
apt-get install supervisor
supervisor配置文件内容
supervisor配置文件
nat123配置文件