大牛們都是怎麼玩 Manjora 的

0. 前言

安裝好 manjora 後,基礎配置每每不夠咱們平常需求,而後咱們就須要對其進行一些改造,讓其成爲咱們稱手的工具。
先介紹下經常使用軟件命令,後邊的過程當中將會頻繁使用它們。java

  • 軟件安裝
pacman -S softwareName
  • 軟件更新
pacman -Syu
  • 軟件移除
pacman -R softwareName

1. 基礎配置

1.1 配置國內源

sudo pacman -Syy
sudo pacman-mirrors -i -c China -m rank  # 選一個清華源就行
sudo pacman -Syyu

鏡像選擇

1.2 系統更新

sudo pacman -Syyu

1.3 添加 Archlinuxcn 源

打開 /etc/pacman.conf 文件,而後在末尾加入如下兩行便可;mysql

[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

1.4 安裝 anchlinuxcn 簽名鑰匙

進行上一步的添加後,導入 GPG key,避免在後邊安裝軟件時提示 GPG 簽名損壞問題;linux

sudo pacman -S archlinuxcn-keyring

1.5 中文字體安裝

sudo pacman -S wqy-zenhei
sudo pacman -S wqy-bitmapfont
sudo pacman -S wqy-microhei
sudo pacman -S adobe-source-han-sans-cn-fonts

2. 軟件安裝

2.1 搜狗拼音輸入法

首先安裝以下軟件:git

sudo pacman -S fcitx-im 
# 安裝fcitx-qt4可能與以前安裝的有衝突,但必須安裝,否則搜狗安裝後沒法正常使用。
sudo pacman -S fcitx-qt4
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-sogoupinyin

而後配置 fcitx 環境,新建 ~/.xprofile 文件,同時添加以下內容後,重啓系統便可切換搜狗中文輸入法;github

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=「@im=fcitx」

2.2 yay

一個很是好用的 AUR 包管理器助手,用於裝軟件,能提供最少化用戶輸入的 pacman 界面、yaourt 式的搜索,同時幾乎沒有任何依賴軟件;sql

sudo pacman -S yay

而後修改 aur 源爲清華鏡像;chrome

yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save

2.3 Chrome

雖然已經自帶 firefox ,可是我的仍是偏好 Chrome;shell

yay -S google-chrome

2.4 網易雲音樂

工做閒暇之餘,怎麼能少了音樂的陪伴呢;數據庫

yay -S netease-cloud-music

2.5 Typora

最好的 Markdown 編輯器,沒有之一;visual-studio-code

yay -S typora

2.6 WPS

做爲一個生產力工具,辦公工具怎麼能少呢;

yay -S wps-office

安裝後,會提示缺失字體,能夠經過安裝字體解決;

yay -S ttf-wps-fonts

針對打開後菜單欄是英文的狀況,能夠安裝 WPS 中文語言包後切換便可;

yay wps|grep zh

安裝好以後,切換便可;
切換菜單語言

2.7 flameshot

很是好用的截圖軟件,不只支持批註等基礎功能,還支持上傳圖片到圖牀;

yay -S flameshot

2.8 git

yay -S git

安裝後配置;

git config --global user.name "xxxx"
git config --global use.email "xxx@qq.com"
ssh-keygen -t rst -C "xxx@qq.com"

2.9 zsh

這是一款強大的 shell,推薦使用,使用以下命令安裝;

yay -S zsh

安裝好以後,將其設置爲默認 shell,而後重啓 shell 便可生效;

chsh -s /bin/zsh

而後安裝 oh-my-zsh 便可;

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

而後能夠在配置文件中配置 ~/.zshrc 咱們喜歡的主題,以及安裝相關插件後進行配置激活,經常使用的插件推薦以下;

  • extract

用於解壓文件,無論什麼壓縮文件,均可以用以下命令進行解壓,不用再記憶參數;

x filename
  • zsh-autosuggestions

自動建議補全;

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
  • zsh-syntax-highlighting

語法高亮顯示;

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

而後在配置文件中加入以下配置便可:

# 主題
ZSH_THEME="dallas"
# 插件
plugins=(
    git zsh-syntax-highlighting zsh-autosuggestions extract z
)

2.10 utools

效率工具神器;

yay -S utools

2.11 XMind

思惟導圖工具;

yay -S xmind

2.12 okular

PDF 閱讀器;

yay -S okular

2.13 微信

yay -S wechat

2.14 QQ

yay -Sy deepin.com.qq.office

解決字體發虛的問題:

yay -S lib32-freetype2-infinality-ultimate

2.15 堅果雲

yay -S nutstore

2.16 百度網盤

yay -S baidunetdisk-bin

3. 開發環境

3.1 IntelliJ IDEA

最強 Java IDE;

yay -S intellij-idea-ultimate-edition

3.2 VSCode

微軟家本身出的編輯器;

yay -S visual-studio-code-bin

3.3 Postman

Web 開發利器;

yay -S postman-bin

3.4 Pycharm

一款 Python IDE;

yay -S pycharm-professional

3.5 JDK

輸入以下命令,而後選擇想要安裝的版本安裝便可;

yay jdk

安裝以後能夠用以下命令查看已有 JDK 版本,而後設置默認 JDK 版本;

# 查看已有 JDK
archlinux-java status

# 設置默認版本
sudo archlinux-java set java-11-openjdk

3.6 MySQL

  • 數據庫安裝;
yay -S mysql
  • 初始化數據庫,此時會生成數據庫登陸密碼,記得保存
sudo mysqld --initialize --user=root --basedir=/usr --datadir=/var/lib/mysql
  • 啓動數據庫
sudo systemctl start mysqld
  • 登陸並修改密碼
# 登陸,密碼是剛纔初始化時生產的密碼
mysql -u root -p 

# 修改密碼
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼';

# 使得密碼生效
FLUSH PRIVILEGES;
  • 而後退出後從新登陸時使用修改後的密碼便可;
相關文章
相關標籤/搜索