0. 安裝
# 啟動時選擇第二項boot(non-free),Manjaro自帶的驅動精靈會幫你安裝好所需驅動,筆記本雙顯卡則會幫你安裝bumblebee
driver boot(non-free)
如果是WIndows+Manjaro雙系統安裝,
步驟可以參考:https://my.oschina.net/langxSpirit/blog/1633384
1.系統信息
#查看系統信息
inxi -Fx
2.網絡設置
#查看網絡狀態
ping 8.8.8.8
------------
connect: Network is unreachable
------------
#如果網卡驅動是正常,請嘗試手動設置IP地址、網關、DNS信息
3.筆記本雙顯卡設置
#查看顯卡NVIDIA狀態
lspci| grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev ff)
Nvidia 卡信息的末尾是 rev ff,表示獨顯已經關閉。現在運行的是intel核顯,這正是我們安裝bumblebee目的。
bumblebee的作用是禁用nvidia獨立顯卡,需要使用獨顯時,使用”optirun 程序名“手動開啟nvidia來運行需要加速的程序,如optirun vmware。
https://wiki.archlinux.org/index.php/Bumblebee
https://wiki.archlinux.org/index.php/Bumblebee_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
要使用 Bumblebee,請確保添加你的用戶到 bumblebee 組:
$ gpasswd -a svenaugustus bumblebee #gpasswd -a 您的用戶名 bumblebee
啟用服務:
systemctl enable bumblebeed.service
重啟
測試 Bumblebee 是否工作:
optirun glxgears -info
如果一個內有動畫的窗口出現,那么 Optimus 和 Bumblebee 正在工作。
------------------
NVIDIA(0): Failed to assign any connected display devices to X screen 0
如果終端輸出如下:
[ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0
[ERROR]Aborting because fallback start is disabled.
你要修改 /etc/bumblebee/xorg.conf.nvidia 里的這行:
Option "ConnectedMonitor" "DFP"
為:
Option "ConnectedMonitor" "CRT"
------------------
打開N卡設置:
optirun nvidia-settings -c :8
如果需要不依賴Bumblebee來使用CUDA, 為開啟NVIDIA顯卡,運行:
sudo tee /proc/acpi/bbswitch <<< ON
注意,重啟完N卡又會回復關閉狀態。
4.時間和日期
#如果安裝的是雙系統,注意Manjaro Setting Manager > Time and Date勾選以下選項
--set time and date automatically
--hardware clock in local time zone
If you has Windows as well, please install NTP. http://www.satsignal.eu/ntp/setup.html
Tips: NTP server ,please select your nearest country or region from the drop-down list.
Here are some links in chinese: http://blog.csdn.net/aaazz47/article/details/78696899
#如果你裝了雙系統,那么Windows系統需要裝NTP同步為UTC時間,或者委屈Manjaro使用本地時間localtime。
5.源鏡像與系統更新
#排列源
sudo pacman-mirrors -i -c China -m rank #只留下清華源能令帶寬跑滿
#同步並優化(類似磁盤整理,固態硬盤無需操作)$ sudo pacman-optimize && sync
#增加archlinuxcn庫和antergos庫
echo -e "\n[archlinuxcn]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch\n\n[antergos]\nSigLevel = TrustAll\nServer = https://mirrors.tuna.tsinghua.edu.cn/antergos/\$repo/\$arch\n"|sudo tee -a /etc/pacman.conf
#升級系統:
sudo pacman -Syyu
#安裝archlinuxcn簽名鑰匙&antergos簽名鑰匙
sudo pacman -S --noconfirm archlinuxcn-keyring antergos-keyring
6.中文輸入法
#安裝搜狗輸入法#xfce桌面
sudo pacman -S --noconfirm fcitx-im fcitx-configtool fcitx-sogoupinyin
#安裝搜狗輸入法#kde桌面
sudo pacman -S --noconfirm fcitx-im kcm-fcitx fcitx-sogoupinyin
#配置fcitx
sudo echo -e "export GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx">>~/.xprofile
then restart.
#fcitx的激活輸入法方式改為ctrl+逗號,避免jetbrains系列快捷鍵沖突
#額外的激活輸入法快捷鍵禁用
#輸入法切換取消,上一頁下一頁改為逗號句號
#在窗口間共享狀態改為所有(所有的話就是windows的習慣)
#對於jetbrians系列fcitx無法跟隨的情況 fcitx輸入法配置>附加組件>勾選高級>xim前端>勾選on the spot
7.中文漢化
#切換系統語言為中文,可以在登錄界面右下角選擇zh_CN.utf8然后重啟
login screen choose zh_CN.UTF8
then restart.
sudo pacman -S --noconfirm firefox-i18n-zh-cn thunderbird-i18n-zh-cn gimp-help-zh_cn libreoffice-still-zh-CN man-pages-zh_cn
7-1.火狐漢化
https://support.mozilla.org/en-US/kb/use-firefox-interface-other-languages-language-pack
安裝火狐漢化
$ sudo pacman -S firefox-i18n-zh-cn
在add-ons檢查language是否已包含。如果已包含,在火狐瀏覽器中敲about:config然后回車。
搜索intl.locale.requested
如果沒有那么右鍵new一個 鍵是 intl.locale.requested 值 是 zh_CN。
最后重啟Firefox,解決。
8.中文字體
https://wiki.archlinux.org/index.php/Arch_Linux_Localization_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E5.AE.89.E8.A3.85.E4.B8.AD.E6.96.87locale
sudo pacman -S --noconfirm wqy-microhei && fc-cache -fv
安裝完可以 在"外觀>字體"中設置應用程序的默認字體。
可以在"QT5設置>字體"設置qt窗體的默認字體。
還可以在各個應用程序中,如notepadqq中設置顯示的字體。
其他文泉驛家族:
$ sudo pacman -S wqy-microhei-lite
$ sudo pacman -S wqy-bitmapfont
$ sudo pacman -S wqy-zenhei
選用:
$ sudo pacman -S adobe-source-han-sans-cn-fonts
$ sudo pacman -S adobe-source-han-serif-cn-fonts
$ sudo pacman -S noto-fonts-cjk
9.AUR助手yaourt
Manjaro有自己的圖形化包管理器,pamac,當然也可以命令行使用archlinux系的,還有AUR助手 yaourt 更方便。
Yaourt可用於查找軟件包(包括[core] [extra] [community] AUR的軟件包,pacman只能查找非AUR的軟件包)。 已經過期。
https://linux.cn/article-9925-1.html
sudo pacman -S yay
10.桌面菜單或啟動器
https://wiki.archlinux.org/index.php/Desktop_entries_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
應用程序配置項,即 .desktop 文件是原信息資源和應用程序快捷圖標的集合。
系統程序的配置項通常位於 /usr/share/applications 或 /usr/local/share/applications目錄,單用戶安裝的程序位於 ~/.local/share/applications 目錄,優先使用用戶的配置項。
cd ~/.local/share/applications
[Desktop Entry]
Type=Application
Version=1.0
Name=IntelliJ IDEA
Exec=/opt/ide/idea/bin/idea.sh
Icon=/opt/ide/idea/bin/idea.png
Terminal=false
Categories=Development;Languages;Java;
11.應用程序快捷鍵
可以給軟件設置熱鍵,比如截圖
在鍵盤–應用程序快捷鍵
選擇添加,命令:里輸入xfce4-screenshooter -f
點擊確定,彈出快捷鍵確認,按下Print
再次點擊確定。
在需要截圖的時候,按下Print
就可以截圖
#xfce默認快捷鍵盤修改(鍵盤)
打開啟動器菜單(類似windows的開始) >設置>鍵盤> xfce4-popup-whiskermenu > super+退出(Esc)
打開文件管理器:系統工具>設置>鍵盤> exo-open --launch FileManager > super+F
打開郵件客戶端:系統工具>設置>鍵盤>exo-open --launch MailReader > super+M
打開默認瀏覽器:系統工具>設置>鍵盤> exo-open --launch WebBrowser > super+W
打開應用程序查找器:系統工具>設置>鍵盤> xfce4-appfinder --collapsed > super+R
打開任務管理器:系統工具>設置>鍵盤> xfce4-taskmanager > super+K
打開顯示/分辨率設置:系統工具>設置>鍵盤> xfce4-display-settings -minimal > super+P
打開下拉終端:系統工具>設置>鍵盤> xfce4-terminal --drop-down > super+N
打開模擬終端:系統工具>設置>自定義快捷鍵> exo-open --launch TerminalEmulator > super+T
截圖:系統工具>設置>鍵盤>自定義快捷鍵>xfce4-screenshooter -f > Print
截圖:系統工具>設置>鍵盤>自定義快捷鍵>deepin-screenshot>super+A
#xfwm4默認快捷鍵盤修改(窗口管理器)
顯示桌面:改為 Super + D
Ctrl + F1 .... F12 刪除 清除不需要的,以防止與Jetbrains等IDE開發工具快鍵鍵沖突。
Ctrl+Alt+上下左右 清除,暫時不需要,以防止與Jetbrains等IDE開發工具快鍵鍵沖突。
Alt+insert、delete 清除,暫時不需要,以防止與Jetbrains等IDE開發工具快鍵鍵沖突。
12.快速設置
#系統全面更新
sudo pacman -Syyu --noconfirm
#登錄后開啟數字鎖
yay -S --noconfirm systemd-numlockontty&&sudo systemctl enable numLockOnTty.service
#文件管理器(可選)
###for xfce
yay -Sy --noconfirm nemo nemo-fileroller && gsettings set org.cinnamon.desktop.default-applications.terminal exec xfce4-terminal
nemo 一款很不錯的文件管理器,某程度比 thunar 更好用。
wiki : https://wiki.archlinux.org/index.php/Nemo
nemo-fileroller 增加fileroller,nemo提供解壓,壓縮的菜單。
#安裝常用軟件
yay -Sy --noconfirm netease-cloud-music smplayer smplayer-skins smplayer-themes google-chrome sublime-text-dev-zh-cn masterpdfeditor remarkable uget filezilla deepin-screenshot shutter
netease-cloud-music 網易雲音樂;
smplayer 視頻播放器;
google-chrome 谷歌瀏覽器;notepadqq 像notepad++文本編輯;
sublime-text-dev-zh-cn 強大的開發必備文本編輯器;(有能力采用付費許可證)
masterpdfeditor 對linux用戶免費的PDF瀏覽及編輯器,支持實時預覽;
remarkable 卓越且功能齊全的 Markdown 編輯器;
uget 媲美迅雷的下載工具;
filezilla 強大的FTP工具;
deepin-screenshot 深度截圖工具;
shutter 強大的截圖工具,gnome-web-photo配合使用;variety 隨即更換壁紙的應用;
ccal 終端農歷日歷,終端啟動ccal;
yay -Sy --noconfirm bleachbit redshift
bleachbit 快速釋放磁盤空間並不知疲倦地守衛你的隱私。釋放緩存,刪除 cookie,清除互聯網瀏覽歷史,清理臨時文件,刪除日志,以及更多功能...i-nex 小而全的系統信息查看軟件;
redshift 根據你的周邊調整你屏幕的色溫。當你夜晚在屏幕前工作時,它也許能幫助你減少對眼睛的傷害;
yay -Sy --noconfirm keepassx-git screenfetch-git freefilesync #需要網絡git
keepassx-git 密碼管理器;
screenfetch-git 系統信息工具,終端使用screenfetch命令;
freefilesync 文件夾比較和同步工具;
#生產力
yay -Sy --noconfirm wiznote meld goldendict easystroke catfish peek
wiznote 為知筆記;
meld 文本比較;
goldendict 詞典軟件;
easystroke 鼠標手勢;
catfish 基於GTK+的非常快速,輕量級的文件搜索工具;
peek 屏幕錄像工具,小巧玲瓏,可保存錄像為gif動圖和兼容於html5的webm視頻;
yay -Sy --noconfirm xmind #需要網絡
xmind 跨平台的思維導圖工具,關鍵還是可以導入MindManage的文件;
#編程開發
yay -Sy --noconfirm eclipse-jee jetbrains-toolbox openjdk8-doc openjdk8-src dbeaver dbeaver-plugin-apache-poi dbeaver-plugin-batik dbeaver-plugin-office
eclipse-jee 企業Java 集成開發環境;
jetbrains-toolbox 著名的jetbrains序列的IDE管理工具;
openjdk8-doc openjdk8-src 針對OpenJDK8的文檔和源碼;
dbeaver 通用數據庫客戶端,支持多個平台及多種數據庫,社區版是免費的;
yay -Sy --noconfirm codeblocks qtcreator glade glade-gtk2 kompozer kompozer-i18n-zh-cn
codeblocks 跨平台的C++ IDE,官方網站上稱其能滿足最苛刻的用戶的需求。'
qtcreator 基於QT的C++開發工具(包括界面設計);
glade基於GTK3 的C++開發工具(包括界面設計);
glade-gtk2基於GTK2 的C++開發工具(包括界面設計);
kompozer 類似Dreamweaver所見即所得功能的開源HTML編輯器。
yay -Sy --noconfirm soapui #需要網絡
yay -Sy --noconfirm nginx tomcat8 zookeeper
dbeaver 通用數據庫客戶端,支持多個平台及多種數據庫,社區版是免費的;
nginx 終端執行 sudo nginx 啟動,sudo nginx -s stop/realod 停止或重啟;
tomcat8 開發必備,輕量的應用服務器;
zookeeper 終端執行sudo zkServer.sh start 啟動;
#有意思
yay -Sy --noconfirm cmatrix geogebra stellarium celestia
cmatrix 終端從上往下輸出無盡的字符串,類似<<黑客帝國>>中的矩陣效果,終端運行 cmatrix ;
geogebra 圖形計算器,支持函數,幾何,代數,微積分,統計以及 3D 數學。
stellarium 星象軟件。可調選項很多,這是隨便開起來截圖的。
celestia 免費的空間模擬器,讓你在三維空間中探索我們的宇宙;gnucash 開源免費的個人或小型企業財務軟件;
gramps 家譜軟件;
#游戲
yay -Sy --noconfirm nethack gnome-mines 2048-qt zaz
nethack 經典的命令行游戲,啟動命令行nethack;
gnome-mines 經典的掃雷游戲(gnome桌面自帶,kde也有類似的kmines);
2048-qt 經典的2048游戲;
zaz 經典的泡泡射擊游戲;
yay -Sy --noconfirm sudokuki wesnoth wesnoth-data 0ad
sudokuki 基於Java的跨平台的數獨游戲(https://sourceforge.net/projects/sudokuki/files/sudokuki/);
wesnoth 經典的韋諾之戰,Linux上比較火的游戲,回合制策略游戲;
0ad 跨平台的“帝國時代”(http://sourceforge.net/projects/zero-ad/files/releases/locales/下載對應版本的漢化放到$HOME/.local/share/0ad/mods/public/);
#虛擬機(全面更新系統重啟后最后安裝)
sudo pacman -Sy virtualbox linux414-virtualbox-host-modules virtualbox-ext-oracle
virtualbox 虛擬機工具,linux首選,比vmware還好用。
https://wiki.manjaro.org/index.php?title=Virtualbox
linux414-virtualbox-host-modules 根據安裝的內核版本選擇,比如有 uname -r 如果是4.14內核,則安裝 linux414-virtualbox-host-modules ;
#展示Linux系統信息(裝逼)
screenfetch
by 斯武丶風晴 https://my.oschina.net/langxSpirit
還可以看看這篇文章:https://blog.tshine.me/manjaro-install-and-setup.html