「Manjaro边用边学,持续跟新…」换源与必备软件

1. 修改源

# 安装vim
sudo pacman -S vim
# 镜像排序,弹出窗口选择最快节点
sudo pacman-mirrors -i -c China -m rank
# 同步更新系统
sudo pacman -Syyu

修改pacman.conf配置文件

sudo vim /etc/pacman.conf

在文件中添加如下内容:

[archlinuxcn] 
SigLevel = Optional TrustedOnly 
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
# 更新系统
sudo pacman -Syyu
# 安装archlinuxcn的安装密钥
sudo pacman -S archlinuxcn-keyring
# 再次更新系统
sudo pacman -Syyu
# 安装一下包管理器yay
sudo pacman -S yay

2. 安装谷歌拼音

  • 安装fcitx,fcitx-im,fcitx-configtool包
pacman -S fcitx fcitx-im fcitx-configtool

fcitx:小企鹅输入法,搜狗输入法的依赖

fcitx-configtool:小企鹅输入法设置的界面

fcitx-im:这个软件包组包含:fcitx-gtk2,fcitx-gtk3,fcitx-qt4,fcitx-qt5(解决搜狗输入法不能在终端等软件输入的问题,现不包括qt4)

打开/etc/environment

sudo vim /etc/environment

/etc/environment文件中加入以下内容

GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx

安装谷歌拼音

sudo pacman -S fcitx-googlepinyin

3. 常用软件

1. typora

sudo pacman -S typora

2. proxychains & 配置

yay proxychains
# 选择
# 1 community/proxychains-ng 4.14-1 (20.7 KiB 60.0 KiB) 
#    A hook preloader that allows to redirect TCP traffic of existing 
# dynamically linked programs through one or more SOCKS or HTTP proxies

# 配置
# proxychains会按如下顺序查找配置文件:
# 1) ./proxychains.conf    2) $(HOME)/.proxychains/proxychains.conf   
# 3) /etc/proxychains.conf

# sudo vim /etc/proxychains.conf
# 在最后一行添加
# socks5 127.0.0.1 1080

3. google-chrome & ‘ crx header invalid ’ 解决办法

sudo pacman -S google-chrome

# switch omega
https://github.com/FelisCatus/SwitchyOmega/releases

# 'crx header invalid'
# 打开chrome://extensions/
# 在右上角勾选开发者模式
# 将switchomega.crx更改后缀名为switchomega.zip
# 将文件托入chrome://extensions/

4. vscode

yay vscode
# select No.2
# 2 archlinuxcn/code-transparent 1.44.1-1 (8.7 MiB 68.7 MiB) 
#    The Open Source build of Visual Studio Code (vscode) editor - with transparency enabled.

vscode在linux下的配置

5. pip的配置

# mkdir ~/.pip
# vim ~/.pip/pip.conf

# 清华源
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

# 阿里源
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com

# 豆瓣源
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com

猜你喜欢

转载自blog.csdn.net/qq_32963855/article/details/106188931