opensuse个人初始化
Auth: jin
Date: 20140414
sourcedir=/mnt/
shelldir=/home/shell/
userdir= /home/jin
#mount /dev/sdb1 /mnt/
cp -R /mnt/Documents /home/jin/ && chown -R jin.users /home/jin/Documents
cp -R /mnt/code /home/jin/ && chown -R jin.users /home/jin/code
cp -R /mnt/gbsvn /home/jin/ && chown -R jin.users /home/jin/gbsvn
cp -R /mnt/key /home/jin/ && chown -R jin.users /home/jin/key
cp -R /mnt/openvpn /etc/
mkdir /home/shell && cp /home/jin/code/shell/gbvpn.sh /home/shell/ && cp /home/jin/code/shell/gbssh.sh /home/shell/
cat > /etc/profile.d/jin.sh <<EOF
alias jump='/home/shell/gbssh.sh'
alias gbvpn='home/shell/gbvpn.sh'
EOF
zypper install geany
zypper install subversion
zypper install rzsz
zypper install FileZilla
zypper install rzsz
zypper install python-pip
zypper install python-paramiko
###ftp
#groupadd -g 10001 vftp
#useradd vftp -u 10001 -g 10001 -s /sbin/nologin
mkdir -d /data/ftproot/logs && chown vftp.vftp /data/ftproot/logs
mkdir -p /data/ftproot/jin && chown jin.users /data/ftproot/jin
pure-pw useradd jin -u 10000 -g 100 -d /data/ftproot/jin
pure-pw mkdb
systemctl restart pure-ftpd.service
/usr/sbin/pure-ftpd -A -b -B -C20 -d -E -fnone -H -I15 -L1000:8 -m4 -p45000:50000 -s -T5120 -U133:02 -u100 -r -i -Oclf:/var/log/pureftpd.log -lpuredb:/etc/pure-ftpd/pureftpd.pdb -k99 -Z