新系统写入TF卡后基本操作

FsTy 提交于 周一, 08/29/2016 - 21:29

#默认用户pi 密码为raspberry

#改密码 改时区 改国家 改UTF8

sudo raspi-config

 

#ssh 关DNS 登陆会快些

sudo sed -i '$a\TCPKeepAlive yes' /etc/ssh/sshd_config

sudo sed -i '$a\ClientAliveCountMax 360' /etc/ssh/sshd_config

sudo sed -i '$a\UseDNS no' /etc/ssh/sshd_config

sudo service sshd restart

 

#改国内镜像 安装软件会快些

sudo sed -i 's/^/#/g' /etc/apt/sources.list

sudo sed -i '$a\deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi' /etc/apt/sources.list

sudo sed -i '$a\deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi' /etc/apt/sources.list 

 

sudo sed -i 's/^/#/g' /etc/apt/sources.list.d/raspi.list

sudo sed -i '$a\deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui' /etc/apt/sources.list.d/raspi.list

 

#内核更新
sudo apt-get install rpi-update
sudo rpi-update

#程序更新
sudo apt-get update 

sudo apt-get upgrade 

sudo apt-get autoremove

#中文字库
sudo apt-get -y install ttf-wqy-zenhei  ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy

#xrdp服务 windows远程桌面登陆

sudo apt-get -y install xrdp