u
This commit is contained in:
parent
eea6e4afdd
commit
232f5faa1b
@ -11,8 +11,25 @@ fi
|
|||||||
apt update
|
apt update
|
||||||
apt install -y emacs git curl screen sudo automake
|
apt install -y emacs git curl screen sudo automake
|
||||||
|
|
||||||
|
if [ ! -d "/faronear" ]
|
||||||
|
then
|
||||||
mkdir /faronear
|
mkdir /faronear
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "/faronear/lib" ]
|
||||||
|
then
|
||||||
mkdir /faronear/lib
|
mkdir /faronear/lib
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "/faronear/lib/sysconfig" ]
|
||||||
|
then
|
||||||
|
git clone https://git.faronear.org/lib/sysconfig /faronear/lib/sysconfig
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "~/.bashrc" ]
|
||||||
|
then
|
||||||
|
. /faronear/lib/sysconfig/setup-home.sh
|
||||||
|
fi
|
||||||
|
|
||||||
echo ">>> Change root password"
|
echo ">>> Change root password"
|
||||||
passwd
|
passwd
|
||||||
|
@ -5,10 +5,10 @@ echo "Example: setup.sh"
|
|||||||
|
|
||||||
echo "######## 安装 ##################"
|
echo "######## 安装 ##################"
|
||||||
mv ~/.bashrc ~/.bashrc.backup
|
mv ~/.bashrc ~/.bashrc.backup
|
||||||
ln -s ~/linux.config/.emacs ~/
|
ln -s /faronear/lib/sysconfig/.emacs ~/
|
||||||
ln -s ~/linux.config/.emacs.lisp ~/
|
ln -s /faronear/lib/sysconfig/.emacs.lisp ~/
|
||||||
ln -s ~/linux.config/.bashrc ~/
|
ln -s /faronear/lib/sysconfig/.bashrc ~/
|
||||||
ln -s ~/linux.config/.bash_profile ~/
|
ln -s /faronear/lib/sysconfig/.bash_profile ~/
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
git config --global credential.helper cache
|
git config --global credential.helper cache
|
||||||
echo "######## 完毕 ##################"
|
echo "######## 完毕 ##################"
|
||||||
|
Loading…
Reference in New Issue
Block a user