3.1 KiB
3.1 KiB
Manjaro config
Basic dev tools
sudo pacman -S go neovim fcitx fcitx-configtool cmake the_silver_searcher octave python-requests python-neovim terminus-font tmux tig
source
sudo pacman-mirrors -i -c China -m rank
勾选 http://mirrors.ustc.edu.cn/manjaro/
, 然后按 OK
键两次。
刷新缓存
sudo pacman -Syy
Install vscode
git clone https://AUR.archlinux.org/visual-studio-code-bin.git
cd visual-studio-code-bin/
makepkg -s
sudo pacman -U visual-studio-code-bin-*.pkg.tar.xz
Install google-chrome
git clone https://aur.archlinux.org/google-chrome.git
cd google-chrome
yay -U google-chrome-67.0.3396.99-1-x86_64.pkg.tar.xz
Install yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -s
If error occurs:
yay_sources git repo ... 失败 (未知的公共密匙 XXXXXXXXXXXXXXX)
==> 错误: 一个或多个 PGP 签名无法校验!
Fix:
gpg --recv-keys XXXXXXXXXXXXXXX
Install fonts and symbola
sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji wqy-microhei
yay -S ttf-symbola
PyCharm
yay -S pycharm
sudo chown -R user:group /usr/share/pycharm
Intellij-Idea
yay -S intellij-idea-community-edition
sudo chown -R user:group /usr/share/intellijidea-ce
Others
yay -S boxes fcitx-googlepinyin graphviz neofetch tree tcl tk
Fix a stop job is running for session c2 of user xxx (xs / 1min 30s)
yay -S watchdog
systemctl enable watchdog.service
systemctl start watchdog.service
Mysql Installation
yay -S mysql
Choose mariadb, and then initialize the MariaDB data directory prior to starting the service.
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
start service
systemctl start mariadb
stop service
systemctl stop mariadb
restart service
systemctl restart mariadb
Timezone Config
timedatectl status
timedatectl set-local-rtc 0
timedatectl set-timezone Asia/Shanghai
Change folder names to English
edit ~/.config/user-dirs.dirs
vi ~/.config/user-dirs.dirs
then change dir name as you wish
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Shorten A stop job is running
vi /etc/systemd/system.conf
Then change
DefaultTimeoutStartSec=9s
DefaultTimeoutStopSec=9s
Change hostname
sudo hostnamectl set-hostname $new_name
Cuda config
Nvidia Driver Installation
Open settings and install selected nvidia driver, then install essential packages required by cuda.
PS: Here I'm using linux54 with nvidia driver version 450xx
yay -S linux54-nvidia-450xx nvidia-450xx-utils opencl-nvidia-450xx lib32-nvidia-450xx-utils
Cuda Installation
yay -S cuda
Run nvidia-smi
to check nvidia driver.