ArcoLinux安裝完成后的的配置


ArcoLinux安裝完成后的的配置

這可能是全網第一篇Arcolinux的教程

1. 更改源

修改/etc/pacman.d/mirrorlist

在最頭上增加清華源

Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch

修改后的/etc/pacman.d/mirrorlist

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector -f 30 -l 30 --number 10 --save /etc/pacman.d/mirrorlist
# When:       2019-11-28 07:17:25 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2019-11-28 07:17:18 UTC
# Last Check: 2019-11-28 06:44:04 UTC

Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = https://ger.mirror.pkgbuild.com/$repo/os/$arch
Server = https://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = https://ftp.sh.cvut.cz/arch/$repo/os/$arch
Server = http://mirror.pseudoform.org/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://mirrors.uni-plovdiv.net/archlinux/$repo/os/$arch
Server = http://mirrors.atviras.lt/archlinux/$repo/os/$arch
Server = https://mirrors.atviras.lt/archlinux/$repo/os/$arch
Server = http://ftp.sh.cvut.cz/arch/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch

修改/etc/pacman.conf

我選擇注釋掉最后面以arcolinux開頭的四個倉庫,並增加中科大的archlinuxcn倉庫

這是我修改后的/etc/pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
TotalDownload
#CheckSpace
VerbosePkgLists
ILoveCandy

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

#[arcolinux_repo_testing]
#SigLevel = Required DatabaseOptional
#Include = /etc/pacman.d/arcolinux-mirrorlist

#[arcolinux_repo]
#SigLevel = Required DatabaseOptional
#Include = /etc/pacman.d/arcolinux-mirrorlist

#[arcolinux_repo_3party]
#SigLevel = Required DatabaseOptional
#Include = /etc/pacman.d/arcolinux-mirrorlist

#[arcolinux_repo_xlarge]
#SigLevel = Required DatabaseOptional
#Include = /etc/pacman.d/arcolinux-mirrorlist

[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

然后安裝archlinuxcn-keyring

這一步非常非常非常重要,必須在安裝后續軟件之前執行

執行以下命令

$ sudo pacman -Syu
$ sudo pacman -S archlinuxcn-keyring

2. 安裝中文輸入法

推薦使用谷歌拼音,不推薦使用搜狗(會出現莫名其妙的問題)

$ sudo pacman -S fcitx-im
$ sudo pacman -S fcitx-cofigtool
$ sudo pacman -S googlepinyin

在家目錄下創建.xprofile文件並寫入以下內容

export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

重啟,在開始菜單中找到名為Fcitx 配置的應用進行輸入法的選擇。

3. 安裝WPS

$ sudo pacman -S wps-office ttf-wps-fonts

安裝完成后第一次打開會報一個錯誤

無法打開URI"file:///messagepush%....

這個錯誤據是因為某個廣告插件彈不出來,反正無視他就好了,並不影響使用,反正只有第一次打開會報這個錯誤
(kainhuck防抄襲插入文字)

4. 安裝其他常用軟件

QQ

$ sudo pacman -S qq-linux

VScode

$ sudo pacman -S code

typora

$ sudo pacman -S typora

百度網盤

$ sudo pacman -S baidunetdisk-bin

virtualbox

$ sudo pacman -S virtualbox

這里我選擇virtualbox-host-dkms

$ sudo pacman -S linux-headers

將當前用戶加入vboxusers

$ sudo gpasswd -a $USER vboxusers

其他

$ sudo pacman -S virtualbox-guest-dkms
$ sudo pacman -S virtualbox-guest-iso
$ sudo pacman -S virtualbox-guest-utils

網易雲音樂

$ sudo pacman -S netease-cloud-music

此時的網易雲音樂還不能輸入中文,需要做以下修改

  1. 安裝qcef
$ yay -S qcef
  1. 修改/opt/netease/netease-cloud-music/netease-cloud-music.bash文件為以下內容
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export XDG_CURRENT_DESKTOP=DDE 
exec "${HERE}"/netease-cloud-music $@

思維導圖

$ yay mindmaster

5. 美化終端

雖然arcolinux默認的bash已經足夠好看,雖然fish也很好看,但是我還是喜歡zsh

1. 切換shell

arcolinux自帶zsh無需額外安裝

$ sudo chsh -s /bin/zsh

重啟

2. 安裝oh-my-zsh

網址https://ohmyz.sh

$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3. 配置插件

ohmyzsh的插件放在~/.oh-my-zsh/plugins

歷史記錄(自動補全)插件

$ cd ~/.oh-my-zsh/plugins
$ git clone git://github.com/zsh-users/zsh-autosuggestions.git

語法檢查插件

$ cd ~/.oh-my-zsh/plugins
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

下載好后在~/.zshrc文件中加入上述插件

找到plugins=(git),改為如下

plugins=(
	git
	sudo
	zsh-syntax-highlighting
	zsh-autosuggestions
)

生效~/.zshrc

$ source ~/.zshrc

給root用戶安裝ohmyzsh

切換用戶

$ su root

這里注意要清空ZSH的環境變量,否則會提示ohmyzsh已經安裝,因為通過su切換用戶環境變量是沒變的

$ ZSH=

其他步驟同上

6. 解決部分軟件中文字體變成框框問題

這是因為缺少字體

$ sudo pacman -S wqy-microhei


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM