Arch各种问题解决方法

安装Anaconda后Vim插件YouCompleteMe报错

1
YouCompleteMe unavailable: /opt/anaconda/lib/python3.7/lib-dynload/_posixsubprocess.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _Py_write_noraise
  • 解决方法,在.zshrc添加
1
2
# 排除anaconda环境再打开VIM
# alias vim='PATH=`echo $PATH | sed "s/\/opt\/anaconda\/bin://"` vim'

Wireshark免Root

1
2
3
4
5
sudo groupadd wireshark
sudo usermod -a -G wireshark kali-team
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

ssh密钥权限问题

1
2
3
4
5
6
7
8
9
10
Bad owner or permissions on /home/kali-team/.ssh/config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/kali-team/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/kali-team/.ssh/id_rsa": bad permissions
root@localhost: Permission denied (publickey).
  • 解决方法:
1
2
3
chmod 400 ~/.ssh/config
chown $USER ~/.ssh/config
chmod 400 ~/.ssh/id_rsa

HashCat

1
clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR
  • 安装OpenCL的库

ClamTK

1
2
3
4
5
6
7
➜  ~ clamtk 
*** unhandled exception in callback:
*** Wide character at /usr/lib/perl5/5.28/core_perl/Encode.pm line 228.
*** ignoring at /usr/share/perl5/vendor_perl/ClamTk/GUI.pm line 145.
*** unhandled exception in callback:
*** Wide character at /usr/lib/perl5/5.28/core_perl/Encode.pm line 228.
*** ignoring at /usr/share/perl5/vendor_perl/ClamTk/GUI.pm line 145.
  • 改desktop文件,和gnome的插件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Comment[zh_CN]=扫描威胁...
Comment[zh_TW]=掃描威脅...
TryExec=clamtk
Exec=env LC_ALL=en_US clamtk %F
Icon=clamtk
Type=Application
Terminal=false
Categories=GTK;GNOME;Utility;
StartupNotify=true
Keywords=antivirus;virus;malware;scan;scanner;

TryExec=clamtk
Exec=env LANG=en_US clamtk %F
os.system('env LC_TIME=C clamtk %s &' % filename)

中文

1
2
3
4
5
6
7
➜  ~ cat /etc/locale.conf 
LANG=zh_CN.UTF-8
---
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN GB2312