我的Ubuntu一键安装

#!/bin/bash
# Info: install after ubuntu
# Author: GH1995
sudo apt update
sudo apt upgrade

sudo apt install vim ctags -y
sudo apt install vim-gnome -y
sudo apt install emacs -y
sudo apt install g++ -y
sudo apt install clang -y
sudo apt install openjdk-8-jdk -y
sudo apt install aria2 -y
sudo apt install axel -y
sudo apt install curl -y
sudo apt install zsh -y
sudo apt install git -y 
sudo apt install tree -y
sudo apt install lynx -y
sudo apt install htop -y
sudo apt install iptraf -y
sudo apt install chmsee -y
sudo apt install shutter -y
# sudo apt install terminator -y
#alt加方向键在相邻终端格之间转移
sudo apt install screen      -y
# -dmS创建会话 C+A+D离开 -r 恢复 -l 列表
sudo apt install manpages-zh -y

#安装ubuntu-tweak
# sudo add-apt-repository ppa:tualatrix/ppa
# sudo apt update
# sudo apt install ubuntu-tweak -y

# 安装openssh-server
sudo apt install openssh-server -y
# 停止服务:sudo /etc/init.d/ssh stop
# 启动服务:sudo /etc/init.d/ssh start
# 重启服务:sudo /etc/init.d/sshresart
# 断开连接:exit
# 登录:ssh [-l login_name] [-p port] [user@]hostname

cd
mkdir github
cd github

# zsh的配置
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

# vim的配置
sh <(curl https://j.mp/spf13-vim3 -L)

# spacemacs的配置
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

# 安装MySQL
sudo apt install mysql-server mysql-client
# mysql -uroot -p 登录
# sudo start mysql 启动MySQL服务
# sudo stop mysql 停止MySQL服务
# sudo mysqladmin -u root password newpassword 修改 MySQL 的管理员密码
# 数据库存放目录: /var/lib/mysql/
# 相关配置文件存放目录:/usr/share/mysql
# 相关命令存放目录: /usr/bin(mysqladmin mysqldump等命令)
# 启动脚步存放目录: /etc/rc.d/init.d/



source ~/.bashrc

exit

有一些需要修改的地方,请自便。

你可能感兴趣的:(ubuntu,apt)