ubuntu基础配置脚本

qhdx:https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
sudo apt-get update
sudo apt-get upgrade

放到底部(终端输入以下):
gsettings set com.canonical.Unity.Launcher launcher-position Bottom

google:
https://www.google.cn/intl/zh-CN/chrome/
#!/bin/bash
echo "===========move amazon==========="
sudo apt-get remove unity-webapps-common

echo "===========move firefox==========="
sudo apt-get remove firefox

echo "===========inttall google==========="
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo cat>/etc/apt/sources.list<<EOF
deb http://cz.archive.ubuntu.com/ubuntu kinetic main
EOF

sudo apt-get update
sudo apt install libu2f-udev
sudo dpkg -i google-chrome*; sudo apt-get -f install

echo "===========inttall sogou==========="
sudo apt-get remove fcitx-ui-qimpanel


echo "===========reboot==========="
reboot

#!/bin/bash
echo "===========samba==========="
sudo apt-get install openssh-server
sudo apt-get install samba

sudo ufw disable
sudo chmod 777 /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
EOF

sudo /etc/init.d/smbd restart
sudo smbpasswd -a maosql

echo "===========vim==========="
sudo apt-get install vim

sudo 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 
EOF

echo "===========git==========="
sudo apt-get install git

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"

sudo apt-get install --reinstall ca-certificates
sudo apt-get update

cat ~/.ssh/id_rsa.pub

echo "===========vim==========="
sudo apt install git curl
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
echo "===========zsh==========="
sudo apt-get install zsh
chsh -s /bin/zsh
zsh --version

echo "===========oh_my_zsh==========="
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh  | sh

echo "===========plugins==========="
# 最好用ubuntu直接clone下来,如果win下载再传到ubuntu会有文件格式照成一些麻烦
git clone https://github.com/joelthelion/autojump.git ~/.oh-my-zsh/custom/plugins/autojump
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

echo "===========themes==========="
#ZSH_THEME="robbyrussell"  &&  ZSH_THEME="powerlevel9k/powerlevel9k"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

echo "===========fonts==========="
git clone https://github.com/powerline/fonts.git

# sudo cat>~/.zshrc<<EOF
# plugins=(
# 	git
# 	autojump
# 	zsh-autosuggestions
# 	zsh-syntax-highlighting
# )
# EOF

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

maosql

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值