1, 源
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
deb http://mirror.nus.edu.sg/raspbian/raspbian wheezy main contrib non-free rpi
deb http://www.raspbian.org/RaspbianMirrors wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ wheezy main contrib non-free rpi
备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list_bk
更新源
sudo vi /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade
2, vnc
sudo apt-get install tightvncserver
tightvncserver -geometry 800x600 :1
5900+base
3,transmission
http://bbs.xiaomi.cn/thread/index/tid/10934457
sudo apt-get install transmission-daemon
sudo service transmission-daemon (start|stop|reload|restart)
transmission的配置文件路径:/etc/transmission-daemon/settings.json,可以用编辑器打开修改,切记,如果修改配置的话,先把transmission服务停止掉,不然修改无效。
debian下的transmission我安装的是web版,通过http://ip:9091来管理
- 修改以下:
- "download-dir": "/extdisks/sda1/Downloads",
- "rpc-port": 9876,
- "rpc-whitelist-enabled": false,
- 如果要设置用户名和密码登陆(注意保留引号,感谢segafans分享方法):
- "rpc-authentication-required": true,
- "rpc-password": "密码",
- "rpc-username": "用户名",
4,挂载u盘
u盘格式化为fat格式
sudo
mkdir
/mnt/usb
sudo
mount
-o uid=pi,gid=pi
/dev/sda1
/mnt/usb
//
用完之后卸载
sudo
umount
/mnt/usb