折腾基于Arch的Linux发行版:Manjaro 【KDE桌面】,本文有一些我在安装和使用Manjaro中所遇到的问题和解决方案,包括英特尔+英伟达双显卡的驱动问题。
1.安装前
1.进入到grub界面,首先选择语言为Chinese–>zh-CN
2.选择drives=nofree(带有英伟达显卡的务必选这个)
2.进行安装
主要是选择分区,分区步骤:
1.选择300M,格式为FAT32,挂载点为/boot/efi,标记为boot
2.选择15G,格式为exT4,挂载点为/opt
3.选择30G,格式为exT4,挂载点为/
4.选择剩余空间,格式为exT4,挂载点为/home
5.点击下一步,点继续安装
注意:最好空出几个G空间出来,不要问为什么
3.安装后
1.更改为国内软件源
$ sudo pacman-mirrors -i -c China -m rank
然后选择延迟最低的源,点击确定
2.更新软件源
$ sudo pacman -Syyu
3.安装第三方包管理器yay和vim
$ sudo pacman -S yay
$ yay -S vim
yay命令跟pacman命令用一样点参数,而且不用加sudo
4.安装googlepinyin中文输入法
$ yay -S fcitx-im
$ yay -S fcitx-configtool
$ yay -S fcitx-googlepinyin
使用vim编辑~/.xprofile文件,加入一下文本:
$ export GTK_IM_MODULE=fcitx
$ export QT_IM_MODULE=fcitx
$ export XMODIFIERS="@im=fcitx"
5.安装解包之内工具:
yay -S pkgconf fakeroot patch
6.如果发现系统没有声音,声音设备显示伪输出,执行以下命令(有声音就不用看这条)
$ echo “options snd-hda-intel dmic_detect=0” | sudo tee -a /etc/modprobe.d/alsa-base.conf
$ echo “blacklist snd_soc_skl” | sudo tee -a /etc/modprobe.d/blacklist.conf
7.完成以上操作就reboot
4.使用中
1.科学上网
Qv2ray:
ssr-gtk:
ssr-gtk(需安装的包:media-control-indicator-git)
2.解决下载软件时git clone很慢的情况
配置git帐号信息
$ git config --global user.name "你的git名称"
$ git config --global user.email 你的git邮箱
生成SSH密钥
$ ssh-keygen -t rsa -C “你的git邮箱” #一路回车
复制公钥
$ cd .ssh/
$ cat id_rsa.pub #将显示出来点公钥全部复制
进入你的github账户设置添加SSH密钥,设置git clone代理(每次开启代理都要设置,SSR端口默认为1080,Qv2ray默认为1089)
$ git config --global http.proxy socks5://127.0.0.1:1080
$ git config --global https.proxy socks5://127.0.0.1:1080
确保打开了SSR或者Qv2ray全局代理模式,然后便可以快速的clone了
3.yay安装出现错误解决
如果出现以下错误
fatal: 无法访问 '***':OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to aur.archlinux.org:443
运行以下命令即可解决
$ git config --global --unset http.proxy
#如果速度慢运行以下命令
$ git config --global http.proxy socks5://127.0.0.1:1080
$ git config --global https.proxy socks5://127.0.0.1:1080
4.安装美化下载工具
$ yay -S ocs-url
5.解决QQ/Tim闪退,打不了中文
如果闪退,执行以下命令
$ sudo pacman -S gnome-settings-daemon
$ sudo cp /etc/xdg/autostart/org.gnome.SettingsDaemon.XSettings.desktop ~/.config/autostart
然后打开系统设置->开机或关机->自动启动->添加脚本->输入/usr/lib/gsd-xsettings,重启
如果发现打不了中文在‘/opt/deepinwine/apps/Deepin-TIM/run.sh’开头加入以下命令,并重启:
export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS=@im=fcitx
安装TIM
$ yay -S deepin-wine-tim
6.安装微信
$ yay -S deepin-wine-wechat
$ yay -S deepin-wine
修改以下两个文件的WINE_CMD的值
$ sudo vim /opt/deepinwine/apps/Deepin-WeChat/run.sh
$ sudo vim /opt/deepinwine/tools/run.sh
# 改成WINE_CMD="deepin-wine"
7.解决网易云音乐无法加载问题(貌似能解决)
$ yay -S automake autoconf bison flex
$ yay -S gstreamer0.10-good-plugins
8.英特尔+英伟达双显卡,使用英伟达显卡运行程序
用终端在需要用英伟达显卡执行的程序前加入“prime-run”命令:
$ prime-run <程序名>
如果要使用英伟达显卡运行steam里面的游戏,则设置该游戏的启动选项为:
prime-run %command%
9.出现Failed to connect to raw.githubusercontent.com:443的解决办法
开启代理,1080需要换成你自己代理的端口(ssr)
$ exportall_proxy=socks5://127.0.0.1:1080
关闭代理
$ unset all_proxy