archlinux

When building gem5.opt, I get 'ImportError: no module named six'

我的未来我决定 提交于 2020-06-28 01:51:27
问题 I'm new to gem5. New even to computer architecture. I am trying to build the gem5.opt using scons build/X86/gem5.opt I get an import error for module six: ➜ gem5 scons build/RISCV/gem5.opt scons: Reading SConscript files ... ImportError: No module named six.py: File "/home/hari/gem5/SConstruct", line 102: from m5.util import compareVersions, readCommand File "/home/hari/gem5/src/python/m5/util/__init__.py", line 54: from .smartdict import SmartDict File "/home/hari/gem5/src/python/m5/util

Install MongoDB on Manjaro

六月ゝ 毕业季﹏ 提交于 2020-06-14 04:11:35
问题 I'm having difficulties installing the MongoDB community server on Manjaro Linux. There isn't official documentation on how to install it on Arch-based systems and Pacman cant find the AUR repos. Does anyone ever tried to install it? 回答1: Here is what I did to install. As the package is not available in the official Arch repositories and can't be installed using pacman , you need to follow a few steps to install it. First, you need to get the URL for the repo of prebuilt binaries from AUR. It

linux Wayland display multiple-user

不问归期 提交于 2020-05-15 05:01:51
问题 I use sway compositor. When I change user in console, I can NOT display a wayland graphic interface (It work with a X application) $ su - otherUser $ ./myApplicationWayland error: XDG_RUNTIME_DIR not set in the environment I set it: (get from the other user) $ export XDG_RUNTIME_DIR=/run/user/1000 $ export WAYLAND_DISPLAY=wayland-0 $ ./myApplicationWayland Assert ... It cannot create the "display" In the main user: $ ls -l /run/user/1000 total 0 srw-rw-rw- 1 edupin edupin 0 Jan 23 08:14 bus

linux Wayland display multiple-user

我的梦境 提交于 2020-05-15 05:01:30
问题 I use sway compositor. When I change user in console, I can NOT display a wayland graphic interface (It work with a X application) $ su - otherUser $ ./myApplicationWayland error: XDG_RUNTIME_DIR not set in the environment I set it: (get from the other user) $ export XDG_RUNTIME_DIR=/run/user/1000 $ export WAYLAND_DISPLAY=wayland-0 $ ./myApplicationWayland Assert ... It cannot create the "display" In the main user: $ ls -l /run/user/1000 total 0 srw-rw-rw- 1 edupin edupin 0 Jan 23 08:14 bus

error: RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0

二次信任 提交于 2020-05-09 04:12:14
问题 I use Arch Linux and this problem appears when trying to push on my rip error: RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0 this issue when writing git push origin master Counting objects: 65, done. Delta compression using up to 4 threads. Compressing objects: 100% (56/56), done. Writing objects: 100% (65/65), 76.27 KiB | 1.00 MiB/s, done. Total 65 (delta 32), reused 0 (delta 0) error: RPC failed; curl 56 OpenSSL SSL

archlinux 中文乱码解决

会有一股神秘感。 提交于 2020-04-21 07:20:25
pacman -S wqy-zenhei ttf-fireflysung(flash乱码) /etc/locale.gen 设置en_US.UTF8 UTF-8 zh_CN.UTF8 UTF-8 locale-gen locale locale -a /etc/rc.conf 中 LOCALE=en_US.UTF-8 在google浏览器中设置中文字体。 来源: oschina 链接: https://my.oschina.net/u/566401/blog/99001

原来ibus输入法和gnome整合是这么玩

社会主义新天地 提交于 2020-04-06 19:41:54
1. 安装拼音输入法。 虽然gnome和ibus整合了,但没有安装任何输入法。安装ibus-libpinyin sudo pacman -S ibus-libpinyin ibus-googlepinyin和ibus-sunpinyin不能使用整合功能。 ibus-pinyin,不要被这个输入法名字迷惑了,虽然可以整合入gnome,但没有实用性。 此外,为了启动ibus的Qt应用程序支持, 安装ibus-qt软件库: sudo pacman -S ibus-qt 2. 在gnome区域设置里,添加新的输入源: 3. 设置输入源切换热键 4. 不需要其他设置,例如export QT_IM_MODULE,GTK_IM_MODULE,XMODIFIERS, 在.profile文件中启用ibus-daemon等;也不需要在IBus首选项中添加输入法。 如有这些,清除掉。 5. 登出gnome,按Alt-F2,输入命令: gnome-session-quit 6. 重新登入,按下CTRL-Space,看看右上角有没有输入法图标,有点Windows的感觉吧。 ================2013/4/26 update======== 升级成gnome 3.8.1,“区域和语言”设置界面有所修改。切换输入源的热键自动设置成Super+Space了。 来源: oschina 链接:

Archlinux/Manjaro安装配置使用clamav杀毒软件

一曲冷凌霜 提交于 2020-04-06 04:47:43
1.安装clamav #pacman -S clamav 2.更新病毒库 # freshclam 如果更新不了,或者更新特别慢,可以手动下载病毒库文件,放到/var/lib/clamav/文件下,在更新病毒库。 病毒库文件链接(三个文件): bytecode.cvd: http://database.clamav.net/bytecode.cvd daily.cvd: http://39.137.1.205/cache/database.clamav.net/daily.cvd main.cvd: http://39.137.1.205/cache/database.clamav.net/main.cvd 3.配置开机启动病毒库自动更新服务 #systemctl enable clamav-freshclam.service 4.配置开机启动守护进程服务 systemctl enable clamav-daemon.service 5.使用clamav扫描根目录 # clamscan -ri / --move=/home/renren/文档 --max-scansize=4000M 选项注释: -r 递归检查目录下的文件 -i 只打印受感染的病毒文件 --move 将受感染文件移至某文件夹 --max-scansize=4000M 支持扫描大文件 来源: oschina 链接:

树莓派(archlinux)中搭建vim IDE --golang

↘锁芯ラ 提交于 2020-03-18 23:31:42
3 月,跳不动了?>>> 1.安装vundle插件; 2.安装vim-go; 3.安装最为头大的YouCompleteMe; 通过git clone 来离线安装YouCompleteMe。步骤如下: cd ~/.vim/bundle 然后执行 git clone https://gitee.com/Random_Coder/YouCompleteMe.git 把YouCompleteMe目录的所有者改为当前用户(bysu) sudo chown -R bysu:bysu YouCompleteMe 然后执行 git submodule update --init --recursive 报上面的错一般是因为curl的postBuffer的默认值太小和git clone速度太慢,可能被限制了,现在贴出这两方面的解决方案。 postBuffer的默认值太小: 在这里,笔者把postBuffer的值配置成500M,对笔者来说已经够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。 git config --global http.postBuffer 524288000 这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。 git config --list ———————————————— 版权声明:本文为CSDN博主「Jane

Archlinux 踩坑实录

吃可爱长大的小学妹 提交于 2020-03-05 07:04:58
Archlinux 没声音 1. 排查驱动,声卡驱动没问题 2.排查alsa,alsa没问题(并确认声卡存在且取消静音) 3.抱着尝试的心态,安下VLC。然后提示找不到默认声卡设备(大概这个意思),通过audio选项切换至其他几个设备,终于有声音了。。 4.设置默认音频设备: aplay -l 查看所有音频设备,锁定我需要的设备是:card 1 device 1 ALC892 Digital 编辑文件:/etc/asound.conf defaults.pcm.card 1 defaults.pcm.device 1 defaults.ctl.card 1 即可 参考:https://segmentfault.com/a/1190000002918394 Archlinux+xfce4 自动挂载 TODO Yaourt 出现 Unkown Trust 参考:http://www.jianshu.com/p/0750bc1a7155 脸好黑,刚安好arch就遇上更新key了。 1.升级keyring pacman -S archlinux-keyring 2.升级key pacman-key --refresh-keys 3.似乎按照某些教程在 /etc/pacman.conf 里加了cn的源,直接删掉。 然后就没问题了。 Yaourt速度太慢 用Yaourt试着装个vscode