Ubuntu1604环境搭建
程序员文章站
2024-03-09 17:52:53
...
目录
系统 User Albert Hyper Oh-My-ZSH
工具 Chrome Wine-QQ 搜狗输入法 WPS
环境 JDK PHP Node.js Python Docker
编辑器 vim Sublime-Text-3 Visual-Studio-Code PhpStorm
数据库 MySQL Mongo Redis
主题 Flatabulous
* *
系统
User
adduser yl33643
usermod -aG sudo yl33643
su - yl33643
Albert
wget -nv -O Release.key \
https://build.opensuse.org/projects/home:manuelschneid3r/public_key
apt-key add - < Release.key
sudo apt update
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/home:manuelschneid3r.list"
sudo apt update
sudo apt install -y albert
Hyper
wget -O hyper.deb https://github-production-release-asset-2e65be.s3.amazonaws.com/62367558/95bc50ee-a2b0-11e7-9c41-1cc54750a207?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180324T033210Z&X-Amz-Expires=300&X-Amz-Signature=69db801e08a078386daf7057741f686c87b8024f704e7c2e674d579b5b688db2&X-Amz-SignedHeaders=host&actor_id=639329&response-content-disposition=attachment%3B%20filename%3Dhyper_1.4.8_amd64.deb&response-content-type=application%2Foctet-stream
sudo dpkg -i hyper.deb
hyper配置参考hyper.js
Oh-My-ZSH
sudo apt install -y zsh git
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo chsh -s $(which zsh)
注销账户重新登录
工具
Chrome
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt install -y google-chrome-stable
插件Vimium
Wine QQ
sudo add-apt-repository ppa:wine/wine-builds
sudo apt update
sudo apt install -y winehq-devel
tar xvf wineQQ8.9_19990.tar.xz -C ~/
搜狗输入法
WPS
环境
JDK
# install SDKMAN
sudo apt install -y zip unzip
curl -s "https://get.sdkman.io" | bash
source "/home/yl33643/.sdkman/bin/sdkman-init.sh"
sdk list java
sdk install java 8u161-oracle
关于SDKMAN更多参考SDKMAN
PHP
sudo apt install -y \
php7.0 \
php7.0-curl \
php7.0-json \
php7.0-cgi \
php7.0-fpm \
autoconf \
automake \
libxml2-dev \
libcurl4-openssl-dev \
libssl-dev \
openssl \
gettext \
libicu-dev \
libmcrypt-dev \
libmcrypt4 \
libbz2-dev \
libreadline-dev \
build-essential \
libmhash-dev \
libmhash2 \
libxslt1-dev
# install phpbrew
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/local/bin/phpbrew
phpbrew init
echo "[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc" >> ~/.zshrc
phpbrew known
phpbrew install 7.1 +default
关于phpbrew更多参考phpbrew
Node.js
# install nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
nvm install 6.11
npm install -g cnpm --registry=https://registry.npm.taobao.org
关于nvm更多参考nvm
Python
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
# install pyenv
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
pyenv install 3.5.0
pyenv global 3.5.0
pyenv versions
关于pyenv更多参考pyenv
Docker
sudo apt install -y docker.io
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://utwec57b.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
编辑器
vim
sudo apt install -y vim
Sublime Text 3
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt update
sudo apt install -y sublime-text-installer
Visual Studio Code
wget -O code.deb https://vscode.cdn.azure.cn/stable/79b44aa704ce542d8ca4a3cc44cfca566e7720f1/code_1.21.1-1521038896_amd64.deb
sudo dpkg -i code.deb
PhpStorm
方法1: 安装包
方法2: snap
sudo snap install phpstorm --classic
数据库
推荐数据库的安装和使用基于Docker
MySQL
Mongo
Redis
主题
Flatabulous
sudo apt install -y unity-tweak-tool
sudo add-apt-repository ppa:noobslab/themes
sudo apt update && sudo apt install -y flatabulous-theme
sudo add-apt-repository ppa:noobslab/icons
sudo apt update && sudo apt install -y ultra-flat-icons
*
*
sudo apt update
sudo apt install -y python-pip python-setuptools m2crypto
sudo -H pip install * --upgrade
vim ~/.*.conf
{
"server":"jp001.v2ss.pw",
"server_port":12313,
"local_address":"127.0.0.1",
"local_port":1086,
"password":"***",
"timeout":300,
"method":"rc4-md5"
}
sudo sslocal -c ~/.*.conf -d start
export HTTP_PROXY=socks5://127.0.0.1:1086;export HTTPS_PROXY=socks5://127.0.0.1:1086
- Chrome浏览器设置代理需要安装插件SwitchyOmega
更多参考 * | Ubuntu使用**
上一篇: 2019最新k8s集群搭建教程 (centos k8s 搭建)
下一篇: Struts2环境搭建