树莓派使用相关记录

配置源

编辑/etc/apt/sources.list

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://raspbian.cnssuestc.org/raspbian/ wheezy main contrib non-free rpi 
deb-src http://raspbian.cnssuestc.org/raspbian/ wheezy main contrib non-free rpi 

开启IPV6

配置/etc/modprobe.d/ipv6.conf,将alias net-pf-10 off注释掉即可。或者运行sudo modprobe ipv6

增加FTP账户

执行下列命令:sudo useradd -s /sbin/nologin -N -m username
echo "/sbin/nologin" >> /etc/shells

挂载硬盘

sudo mount -o uid=root,gid=root -t ntfs /dev/sda1 /home/pi/www/usb -o nls=utf8,umask=0

目录绑定

mount --bind "/path/to/share/dir" "/path/of/ftp/subdir"

标签: none

添加新评论