Manjaro美化配置教程Manjaro Linux的美化
切换源
sudo vi /f
加⼊arch源
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = mirrors.ustc.edu/archlinuxcn/$arch
blackarch源(可以选择加⼊)
[blackarch]
SigLevel = Optional TrustAll
Server = mirrors.ustc.edu/blackarch/$repo/os/$arch
⾯对⾼校的源
[arch4edu]
SigLevel = Never
Server = mirrors.tuna.tsinghua.edu/arch4edu/$arch
ck源
[repo-ck]
Server = repo-ck/$arch
设置国内源选择前三个快的
sudo pacman-mirrors -i -c China -m rank
全局更新
sudo pacman -Syyu
搭建ssr服务器教程
数据库被锁,删除/var/lib/pacman/db.lck
rm /var/lib/pacman/db.lck
导⼊key
sudo pacman -Sy archlinuxcn-keyring
导⼊失败
sudo pacman -Syu haveged
sudo systemctl start haveged
sudo systemctl enable haveged
sudo rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
pacman-key --populate archlinuxcn
挂载硬盘
sudo mount -t ntfs-3g /dev/sda1 /mnt
sudo fdisk -l
#查看UUID
sudo blkid
sudo vim /etc/fstab
UUID=DA18EBFA09C1B27D /mnt/Windows ntfs-3g rw,umask=0000,defaults 0 0
常⽤命令
安装 pacman -S package_name  |yay -S  package_name
删除 pacman -R package_name
查询net  pacman -Q |grep net
解决Windows和Linux双系统时间不⼀致问题
sudo timedatectl set-local-rtc 1
搜狗拼⾳
sudo pacman -S fcitx-im
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-sogoupinyin
添加配置⽂件
sudo vi ~/.xprofile
内容
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
fcitx-configtool
#对于jetbrians系列fcitx⽆法跟随的情况 fcitx输⼊法配置>附加组件>勾选⾼级>xim前端>勾选on the spot
安装⼯具
sudo pacman -S yaourt yay
SSR
yay -S electron-ssr
127.0.0.1:12333
socks5://127.0.0.1:1080
⾕歌代理
google-chrome-stable --proxy-server=socks5://127.0.0.1:1080
终端代理
yay -S proxychains-ng
vim /f
//最后加⼊
socket5 127.0.0.1 1080
alias gfw='proxychains4'
gfw curl ip.gs
ZSH
sudo pacman -S zsh
sh -c "$(curl -fsSL raw.github/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
可选插件安装
⾼亮插件
⾼亮zsh-syntax-highlighting ⾼亮你的zsh可⽤命令插件
git clone github/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
激活插件
sudo vi ~/.zshrc
加⼊插件
plugins=(git zsh-syntax-highlighting)
让他⽣效
source ~/.zshrc
zsh-autosuggestions
git clone github/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
加⼊插件
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
⽣效source ~/.zshrc
zsh补全插件
创建⽬录
mkdir ~/.oh-my-zsh/custom/plugins/incr
把下载的⽂件移动进去
sudo vi ~/.zshrc
添加
plugins=(git zsh-syntax-highlighting incr)
在~/.zshrc⽂件末尾加上
source ~/.oh-my-zsh/plugins/incr/incr*.zsh
更新.zshrc⽂件:
source ~/.zshrc
spaceship主题
git clone github/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
打开 ~/.zshrc设置主题
ZSH_THEME="spaceship"
中⽂字体
⽂泉驿家族:
sudo pacman -S --noconfirm wqy-microhei &&fc-cache -fv
sudo pacman -S wqy-microhei-lite
sudo pacman -S wqy-bitmapfont
sudo pacman -S wqy-zenhei
YaHei-Consolas字体
cd /tmp&&git clone github/GitHubNull/YaHei-Consolas-Hybrid-1.12.git --depth 1&&sudo sh YaHei-Consolas-Hybrid-1.12/setup.sh
选⽤:
yaourt -S ttf-meslo
sudo pacman -S adobe-source-han-sans-cn-fonts
sudo pacman -S adobe-source-han-serif-cn-fonts
sudo pacman -S noto-fonts-cjk
软件安装
⾕歌 vim git vs vlc neofetch ⽹易云 foxitreader ⽕狐 uget
yay -S google-chrome vim  git visual-studio-code-bin  vlc  neofetch netease-cloud-music foxitreader  firefox-i18n-zh-cn  uget
bat cat的克隆
xmind zen
pdf-footer-zh-CN.svg
png-watermark-zh-CN.svg
print-watermark-zh-CN.svg
ncdu 可视化分析⽬录占⽤
redshift⾊温调节
virtualbox虚拟机安装对应内核
qalculate计算器
wiznote为知笔记
Albert 软件启动器
wps wps字体 wps-office ttf-wps-fonts
file-roller unrar unzip p7zip压缩解压缩
motrix
aria2
需要安装以下⼯具即可正常使⽤ifconfig
sudo pacman -S net-tools dnsutils inetutils iproute2
spacevim
curl -sLf /cn/install.sh | bash
cool-retro-term⼀个怀旧的终端
开发软件
java: as idea tomcat maven gradle
nodejs
flutter
git clone -b stable github/flutter/flutter.git
vim ~/.zsh
加上
export PATH=~/Downloads/flutter/bin:$PATH
/
/path为你安装flutter的⽬录
source ~/.zshrc
切换分⽀
查看分⽀
flutter channel
切换master
flutter channel master
anaconda
sudo vim ~/.zshrc
export PATH=/opt/anaconda/bin:$PATH
git 设置
git config --global user.name "your_name"
git config --ail "your_email"
git config --global http.proxy 'socks5://127.0.0.1:1080'
~/.gitconfig
[http]
proxy = socks5://127.0.0.1:1080
vscode调试html
{
"version": "0.2.0",
"configurations": [{
"type": "chrome",
"request": "launch",
"name": "chrome linux",
"webRoot": "${workspaceFolder}",
"runtimeExecutable": "/usr/bin/google-chrome-stable",
"runtimeArgs": [
"--remote-debugging-port=9222",
"--no-first-run",
"--no-default-browser-check",
"--user-data-dir=/tmp/vscode-chrome-debug-rix",
"${file}"
]
}]
}
lnmp
nginx
sudo pacman -S nginx
systemctl来查看其状态
systemctl status nginx
sudo systemctl start nginx
设置Nginx开机⾃启动。
sudo systemctl enable nginx
版本
nginx -v
在浏览器地址栏输⼊127.0.0.1
mariaDB
sudo pacman -S mariadb
在启动MariaDB服务之前,需要⽤下⾯的mysql_install_db命令初始化MariaDB的数据⽬录,sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
启⽤
sudo systemctl start mysqld
systemctl status mysqld
运⾏安全脚本
sudo mysql_secure_installation
版本
mysql --version
PHP7
sudo pacman -S php-fpm
安装后,我们要让Nginx使⽤php-fpm来运⾏php。编辑/etc/f⽂件。
sudo nano /etc/f
到location ~ \.php$这部分的配置,将这部分配置修改成如下。
location ~ \.php$ {
root          /usr/share/nginx/html;
fastcgi_pass  unix:/run/php-fpm/php-fpm.sock;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。