#! /bin/bash

#

echo "测试写文件"
cat>/etc/apt/sources.list<<EOF
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
EOF
apt-get update

apt-get install tofrodos -y
apt-get install dos2unix -y
apt-get install unix2dos -y

rm -f /usr/bin/python
ln -s /usr/bin/python3 /usr/bin/python
ln -s /usr/bin/python /usr/bin/py

apt-get install python3-pip -y
ln -s /usr/bin/pip3 /usr/bin/pip
pip install bashlex

sudo apt-get install cifs-utils -y
mkdir /share
mount.cifs //192.168.1.23/sh /share

cd /share
cp /share/zip/run.sh ~/run.sh
cd ~

11-30 01:51