manjaro

作者: geek_team | 来源:发表于2018-11-22 11:08 被阅读0次

sudo pacman-mirrors -c China

sudo sed -i '$a [archlinuxcn]' /etc/pacman.conf

sudo sed -i '$a SigLevel = Optional TrustedOnly' /etc/pacman.conf

sudo sed -i '$a Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch' /etc/pacman.conf

#更新系统

sudo pacman -Syyu --noconfirm

#添加密钥

sudo pacman -S --noconfirm archlinuxcn-keyring

#安装yaourt

sudo pacman -Sy --noconfirm  yaourt axel

#安装常用软件

yaourt

-Sy --noconfirm  git zsh guake vim docker  uget aria2 smplayer

foxitreader  shadowsocks-qt5  google-chrome  wps-office  mysql-workbench

redis-desktop-manager  postman-bin gitkraken phpstorm php make gcc autoconf composer

# sougou

sudo pacman -S --noconfirm fcitx-sogoupinyin

sudo pacman -S --noconfirm fcitx-im

sudo pacman -S --noconfirm fcitx-configtool

cat>>~/.xprofile<<EOF

export GTK_IM_MODULE=fcitx

export QT_IM_MODULE=fcitx

export XMODIFIERS="@im=fcitx"

EOF

#composer国内源

composer config -g repo.packagist composer https://packagist.laravel-china.org

#ide

sudo  cat>>/etc/hosts<<EOF

0.0.0.0 account.jetbrains.com

EOF

#docker加速器

sudo mkdir -p /etc/docker

sudo cat>>/etc/docker/daemon.json<<EOF

{

"registry-mirrors": ["https://whutv5en.mirror.aliyuncs.com"]

}

EOF

sudo systemctl daemon-reload

sudo systemctl restart docker

#将当前用户加入docker组

sudo gpasswd -a ${USER} docker

sudo systemctl restart docker

# docker启动mysql

docker

run --name=mysql -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql  -e

MYSQL_ROOT_PASSWORD=root -d mysql:latest --character-set-server=utf8mb4

--collation-server=utf8mb4_unicode_ci

# docker启动redis

docker run --name=redis -p 6379:6379 -d redis:latest

# docker启动mongo

docker run --name mongo -p 27017:27017 -d mongo:latest

相关文章

网友评论

      本文标题:manjaro

      本文链接:https://www.haomeiwen.com/subject/zvakqqtx.html