美文网首页Arch之道
after install archlinux

after install archlinux

作者: _narcissus | 来源:发表于2018-01-21 13:49 被阅读48次

安装软件

  • 1.pacman的使用(以前介绍的不全,现在补上)

pacman -Syu 升级系统
pacman -Ss 搜索软件
pacman -Si 查看软件详细信息
pacman -S 安装软件
pacman -Rs 删除软件
pacman -Qs 查询已安装软件
pacman -Qi 查询已安装软件详细信息
这两个查询命令有啥作用呢?可以把已安装的软件导出到一个文件里面去,下次安装系统就知道要安装那么东西了。

  • a 如果想指定某些软件不更新,该怎么做?
    例如我不想更新mate-desktop这个软件,那么就修改 /etc/pacman.conf 这个文件,ignorepkg后面写上不需要更新的软件名就好了
  • b 是不是每次搜索软件的时候终端搜索出来的结果都很难看(都是一个颜色),去掉color的注释就好了
  • 一些必备应用:

    • 字体:ttf-dejavu ttf-inconsolata ;
    • 资源查看:htop;
    • 终端图片查看:feh (used for x window , set desktop background);
    • 编辑器: vim ;
    • 终端文件管理器:ranger
    • 终端视频播放器:mplayer
  • 2.配置aur来启用更多的软件库 : 找到aur源,选择一种
    比如添加163源

vim  /etc/pacman.conf
## 网易 (ipv4, http, https)
[archlinuxcn]
Server = https://mirrors.163.com/archlinux-cn/$arch

然后需要安装archlinuxcn签名

  pacman -S archlinuxcn-keyring

然后安装一个aur的包管理器
比如安装:yay

pacman -S git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

然后就可以使用yay来安装软件了

  • 3.firefox
pacman -S firefox
pacman -S wqy-microhei  #firefox显示中文
pacman -S flashplugin  #firefox播放视频
  • 4.安装搜狗输入法
pacman -S fcitx
pacman -S fcitx-configtool
pacman -S fcitx-im
yay -S fcitx-sogoupinyin

如果使用的是wayland,那么在/etc/environment中添加

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

如果使用xorg,则添加到.xinitrc

  • 5.安装网易云音乐
yay -S netease-cloud-music 
  • 6.安装urxvt,以及配置xterm
pacman -S rxvt-unicode

配置:新建.Xresources

touch .Xresources
URxvt.font: xft:Inconsolata:style=bole:pixelsize=22
URxvt.letterSpace: +1
URxvt.scrollBar_right: True
URxvt.cursorBlink:True
URxvt.cursorColor:#DCB36A
URxvt.cursorUnderline:False
URxvt.pointerBlankDelay:1
URxvt.saveLines:1000

URxvt.background:#002B35
URxvt.foreground:#839496

URxvt.scrollBar:false
URxvt.inheritPixmap: true
URxvt.tintCddolor:white 
URxvt.shading:40 

URxvt.colorBD:#78E3BF
URxvt.colorUL:#D7D2BC
! Colors
URxvt*color0:  #000000
URxvt*color8:  #686868
URxvt*color1:  #B21818
URxvt*color9:  #FF5454
URxvt*color2:  #18B218
URxvt*color10: #7EDD7E
URxvt*color3:  #B26818
URxvt*color11: #FFFF54
URxvt*color4:  #14477b
URxvt*color12: #2578cb
URxvt*color5:  #B218B2
URxvt*color13: #FF54FF
URxvt*color6:  #18B2B2
URxvt*color14: #6ADCDC
URxvt*color7:  #B2B2B2
URxvt*color15: #FFFFFF

URxvt*iso14755:false
URxvt*iso14755_52:false

URxvt.urlLauncher:firefox
URxvt.urgentOnBell:True
URxvt.fade:50
URxvt.fadecolor:gray
URxvt.highlightColor:#BDBC6A
URxvt.highlightTextColor:black

配置xterm

vim  .Xresources
!XTerm.vt100.faceName:Libration Mono:size=14:antialias=false
XTerm.vt100.faceName:Inconsolata Mono:size=14:antialias=false

XTerm.vt100.foreground: black
XTerm.vt100.background: #DEDEDE
XTerm.vt100.color0: rgb:28/28/28
XTerm.vt100.color15: rgb:e4/e4/e4

让配置生效

xrdb .Xresources

如果使用的是xorg,就需要将这句加入.xinitrc (cp /etc/X11/xinit/xinitrc ~/.xinitrc)
如果使用wayland,加入.bash_profile

相关文章

网友评论

    本文标题:after install archlinux

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