#!/bin/bashecho"===========samba==========="sudoapt-getinstall openssh-server
sudoapt-getinstall samba
sudo ufw disable
sudochmod777 /home/maosql
sudo cat>/etc/samba/smb.conf<<EOF
[maosql]
comment = share folder
path = /home/maosql
valid users = maosql
available = yes
browsealbe = yes
public = yes
writeable = yes
EOFsudo /etc/init.d/smbd restart
sudo smbpasswd -a maosql
echo"===========vim==========="sudoapt-getinstallvimsudo cat>/etc/vim/vimrc<<EOF
set nocompatible
set nu
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set mouse=a
set smartindent
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has("vms")
set nobackup
else
set backup
set shiftwidth=4
set tabstop=4
set sts=4
set nowrap
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,GB18030,cp936,big5,euc-jp,euc-kr,latin1
endif
EOFecho"===========git==========="sudoapt-getinstallgit
ssh-keygen -t rsa -C"maosql@vip.com"git config --global user.name "maosql"git config --global user.email "mao.zihuai@wuqi-tech.com"git config --global core.editor "vim"sudoapt-getinstall--reinstall ca-certificates
sudoapt-get update
cat ~/.ssh/id_rsa.pub
echo"===========vim==========="sudoaptinstallgitcurlcurl https://j.mp/spf13-vim3 -L> spf13-vim.sh &&sh spf13-vim.sh