CODESHIF - 2019年8月
http://codeshif.com/2019/08/
最有灵魂的开发者
-
让aurman和makepkg在root下载运行
http://codeshif.com/archives/38.html
2019-08-24T04:28:00+08:00
1.先修改makepkg直接贴办法 原文vim /usr/bin/makepkg加入asrootOPT_LONG=('allsource' 'check' 'clean' 'cleanbuild' 'config:' 'force' 'geninteg'
'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'noarchive' 'nobuild'
'nocolor' 'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'pkg:' 'repackage'
'rmdeps' 'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps'
'verifysource' 'version' 'asroot')再修改EUID:if (( ! INFAKEROOT )); then
if (( EUID == 0 )); then
error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\catastrophic damage to your system.")" "makepkg"
#exit 1 # $E_USER_ABORT
fi
fi2.修改aurman先搜索一下错误提示的文件再哪grep -r "Do not run aurman" /usr再修改源文件vim /usr/lib/python3.7/site-packages/aurman/main.py注释os.getuid下面的再加个passef check_privileges() -> None:
"""
checks the privileges and exists in case of aurman being executed with sudo
"""
if os.getuid() == 0:
pass
#aurman_error("Do not run aurman with sudo")
#sys.exit(1)
OK
-
ArchLinux GF119 GT620显卡驱动
http://codeshif.com/archives/34.html
2019-08-23T01:53:00+08:00
本来默认是有显卡驱动的【nouveau】,感觉不太好用的话就换官方的闭源网卡驱动,通过这个列表查询型号在里面,显示【The 390.xx driver supports the following set of GPUs.】然后在搜索一下发现有:pacman -Ss nvidia-390结果extra/nvidia-390xx 390.116-45 [已安装]
NVIDIA drivers for linux, 390xx legacy branch
extra/nvidia-390xx-dkms 390.116-45
NVIDIA driver sources for linux, 390xx legacy
branch
extra/nvidia-390xx-lts 1:390.116-14
NVIDIA drivers for linux-lts, 390xx legacy branch
extra/nvidia-390xx-settings 390.116-1
Tool for configuring the NVIDIA graphics driver,
390xx legacy branch
extra/nvidia-390xx-utils 390.116-1 [已安装]
NVIDIA drivers utilities
extra/opencl-nvidia-390xx 390.116-1
OpenCL implemention for NVIDIA直接安装!pacman -S nvidia-390xx
nvidia-xconfig重启pkill xinit
xinit或者rebootOKWiki帮助文档
-
ArchLinux USB无线网卡8192CU上网
http://codeshif.com/archives/32.html
2019-08-23T01:38:00+08:00
用wpa_supplicant制作,详情可以参考ArchLinux Wiki传送这里说一下简略步骤,首先弄一个文件:vim /etc/wpa_supplicant/wpa_supplicant.conf写入:ctrl_interface=/run/wpa_supplicant
update_config=1然后开刚,先弄个服务wpa_supplicant -B -i interface -c /etc/wpa_supplicant/wpa_supplicant.conf-B是后台运行,-i是指定你的网卡名称,可以用ip link查看,-c是上面wpa配置文件的地址。完事之后啊,用wpa_cli开始连接:wpa_cli
scan
scan_result
add_network
set_network 0 ssid "你要连接的无线名称(英文)"
set_network 0 psk "无线密码"
enable_network 0
save_config保存配置到哪了?到刚才你创建的文件里面了:/etc/wpa_supplicant/wpa_supplicant.conf然后启动服务:dhcpcd 你的网卡名这里注意点啊,如果你在装系统呢,可以在netctl下手,netctl咋弄?cd /etc/netctl/examples
cp /etc/netctl/examples/wireless-wpa-config ../
vim wireless-wpa-config将里面的interface的值改成你的网卡名称,然后netctl enable wireless-wpa-config(配置文件名称)然后就OK了,和dhcpcd性质差不多,详情看文档。ArchLinux Wiki网络设置
-
ArchLinux安裝sogou输入法
http://codeshif.com/archives/31.html
2019-08-23T01:10:00+08:00
折腾1现在的AUR上面安装不了sogou输入法不知道为什么,我看帖子这么说:简书传送门我曹啥玩意啊,行吧,爬了个百度帖子解决了:贴吧传送门说有个办法是这样的:sogoupinyin 更到 2.3.0.0109,加了五笔,依赖qt5,不需要qt4了。但是新版目前没有deb包,不过可以从优麒麟镜像里面提取。
下载 ubuntukylin-19.04-enhanced-amd64.iso(为了一个输入法,下了一个镜像,也是蛮拼的),解压 filesystem.squashfs,打包 /var/lib/dpkg/info/sogoupinyin.list 里的文件(去掉目录)
改一下 aur上的 PKGBUILD,打包安装,测试可用我没试,看了后面的办法,这个就行了完整步骤:sudo pacman -S fcitx-lilydjwg-git fcitx-sogoupinyin如果是i3-gaps或i3-wm,别忘了加在~/.config/i3/config中:# fcitx
exec --no-startup-id fcitx折腾2(继续折腾)我又去试了试直接安装老版本的东西,先去aur上面看评论了:那就行了啊,直接开刚,他说加入他的repo,我们就跟着去呗!AUR搜狗输入法信息和他的repo和他的博客说明来吧,vim /etc/pacman.conf干进去这个:[xuanrui]
Server = https://arch.xuanruiqi.com/repo/然后导入这玩意:pacman-key --recv-keys 6E06FBC8
pacman-key --lsign-key 6E06FBC8安装,OKpacman -S fcitx fcitx-im fcitx-sogoupinyin