Manjaro安装配置

时间:2022-05-06
本文章向大家介绍Manjaro安装配置,主要内容包括0. 安装、1.系统信息、2.网络设置、3.Manjaro Settings Manager、4.镜像地址更新与系统更新、5.笔记本双显卡设置、6.中文输入法、8.中文字体、9.软件汉化、10.应用程序快捷键、11.软件管理、基本概念、基础应用、原理机制和需要注意的事项等,并结合实例形式分析了其使用技巧,希望通过本文能帮助到大家理解应用这部分内容。

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.Manjaro Settings Manager

3-1.Language #切换系统语言为中文,可以在登录界面右下角选择zh_CN.utf8然后重启 login screen choose zh_CN.UTF8 then restart. 3-2.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。

4.镜像地址更新与系统更新

#排列源

 sudo pacman-mirrors -G

#同步并优化(类似磁盘整理,固态硬盘无需操作)$  sudo pacman-optimize && sync #升级系统:

sudo pacman -Syyu

#打开配置文件

sudo nano /etc/pacman.conf

#在文件末尾添加 [archlinuxcn] SigLevel = Optional TrustedOnly Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

按ctrl+X键保存,y确认,回车。 #之后同步一下:

sudo pacman -Syyu

#导入 GPG key:

sudo pacman -S archlinuxcn-keyring

5.笔记本双显卡设置

#查看显卡NVIDIA状态

inxi -G
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卡又会回复关闭状态。

6.中文输入法

#安装搜狗输入法

sudo pacman -S fcitx-im #默认全部安装
sudo pacman -S fcitx-configtool #xfce依赖 , kde桌面安装kcm-fcitx
sudo pacman -S fcitx-sogoupinyin

#添加输入法配置文件

 sudo nano ~/.xprofile

#添加以下内容 export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx"

then restart.

7.桌面菜单或启动器

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;

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 wqy-microhei
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.软件汉化

sudo pacman -S firefox-i18n-zh-cn
sudo pacman -S thunderbird-i18n-zh-cn
sudo pacman -S gimp-help-zh_cn
sudo pacman -S libreoffice-still-zh-CN
sudo pacman -S man-pages-zh_cn

9-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,解决。

10.应用程序快捷键

可以给软件设置热键,比如截图 在键盘–应用程序快捷键 选择添加,命令:里输入xfce4-screenshooter 点击确定,弹出快捷键确认,按下Ctrl+Shift+P 再次点击确定。 在需要截图的时候,按下Ctrl+shift+P 就可以截图。

11.软件管理

Manjaro有自己的图形化包管理器,pamac,当然也可以命令行使用archlinux系的,还有AUR助手 yaourt 更方便。

 sudo pacman -S yaourt

比如:

#Notepad++ Linux like

yaourt notepadqq

1 community/notepadqq 1.2.0-2     Notepad++-like text editor for Linux

#比较文本meld

yaourt meld

1 extra/meld 3.18.0-1     Compare files, directories and working copies

#为知笔记

yaourt wiznote

1 community/wiznote 2.5.6-1     Opensource cross-platform cloud based note-taking client

#鼠标手势

yaourt easystroke

1 community/easystroke 0.6.0-17     Use mouse gestures to initiate commands and hotkeys.

#下载软件UGET

$ sudo pacman -S uget

#展示Linux系统信息(装逼)

yaourt screenfetch

4 aur/screenfetch-git 1:3.8.0.r35.gdf6a2b1-1 (73) (1.24)     CLI Bash script to show system/theme info in screenshots

#经典游戏Nethack $ yaourt Nethack 1 extra/glhack 1.2-7     A port of Nethack, a single player dungeon exploration game in 2D 启动:$ glhack 退出命令: #q

virtualbox $ yaourt oracle virtualbox 2 aur/virtualbox-bin 5.2.8-1 (46) (1.70)     Oracle VM VirtualBox Binary Edition (Oracle branded non-OSE version)

关于腾讯QQ、微信

腾讯TIM

yaourt Tencent tim

https://wiki.archlinux.org/index.php/Tencent_QQ_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) 2 aur/deepin-wine-tim 2.1.5-3 (6) (0.76)     Latest Tencent TIM (com.qq.office) on Deepin Wine For Archlinux

PS:推荐virtualbox安装windows系统,再装软件。

Wechat微信客户端

yaourt wechat

2 archlinuxcn/electronic-wechat 2.0-2     A better WeChat client

PS:推荐virtualbox安装windows系统,再装软件。

by 斯武丶风晴  https://my.oschina.net/langxSpirit