archlinux

How to issue a c++ termination catch without a OOM killer

谁都会走 提交于 2020-03-03 14:00:44
问题 I am learning about exceptions from a book and try/catch and the OS should terminate the following program. The book says, the message terminate called after throwing an instance of 'std::bad_alloc' should show up. But doesn't. I am using Arch Linux and the program is not stopping. It runs, fills the RAM a bit linear until it doesn't (at about 90%), the processor is working a lot but no freezing and no terminating. Is this a Windows only use case or how could I reproduce the error on a Linux

VirtualBox 中为 ArchLinux 安装 Gnome3 到 部分记录

一个人想着一个人 提交于 2020-02-29 12:01:15
首选安装 pacman -S gnome gdm 其它设置: 下面开始安装gnome,如果不喜欢用桌面环境下面的就当是废话。 1 2 3 4 5 groupadd example1 useradd example2 - s / bin / bash - m - g example1 passwd example2 如果不设置用户无法登录gnome 安装dbus 1 pacman - S dbus 然后设置xinitrc 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 nano ~ / . xinitrc 添加 #!/bin/sh if [ - d / etc / X11 / xinit / xinitrc . d ] ; then for f in / etc / X11 / xinit / xinitrc . d / * ; do [ - x "$f" ] && . "$f" done unset f fi exec $ your_window_manager nano / etc / rc . conf DAEMONS = ( syslog - ng < strong > dbus < / strong > network crond ) 启动DBUS守护进程: /etc/rc.d/dbus start 加载FUSE内核模块:modprobe

How to downgrade to cuda 10.0 in arch linux?

孤人 提交于 2020-02-21 11:04:36
问题 I want to downgrade my cuda 10.1 to cuda 10.0 in arch linux as tensorflow requires cuda 10.0 only. I installed tensorflow on CUDA 10.1 in arch Linux but I didn't know tensorflow-gpu needs CUDA 10.0 or lesser. I tried tried symlinking the required 10.0 libraries with new 10.1 libraries but it didn't work. Whenever I try to import tensorflow in python console error shows up that 'libcublas.so.10.0' not found. So I found out that I can only run tensorflow on CUDA 10.0 so now I want to downgrade

How to downgrade to cuda 10.0 in arch linux?

我的未来我决定 提交于 2020-02-21 11:03:51
问题 I want to downgrade my cuda 10.1 to cuda 10.0 in arch linux as tensorflow requires cuda 10.0 only. I installed tensorflow on CUDA 10.1 in arch Linux but I didn't know tensorflow-gpu needs CUDA 10.0 or lesser. I tried tried symlinking the required 10.0 libraries with new 10.1 libraries but it didn't work. Whenever I try to import tensorflow in python console error shows up that 'libcublas.so.10.0' not found. So I found out that I can only run tensorflow on CUDA 10.0 so now I want to downgrade

ArchLinux下中文字体及主题配置心得

送分小仙女□ 提交于 2020-02-19 08:49:55
只是介绍我在ArchLinux折腾中文字体及主题的心得,仅供参考。 主要参考Arch Wiki,有几点注意下: 1.英文字体一般会使用ttf-dejavu,中文字体使用wqy-microhei(yaourt),但个人感觉ttf-dejavu没有wqy-microhei看上去舒服,因此没有安装ttf-dejavu,于是出现了一些问题,midori中monospace字体会显示不完整,应该是没有识别mono字体的缘故。解决办法:编辑/etc/fonts/conf.avail/65-wqy-microhei.conf View Code <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font"> <test name="family"> <string>WenQuanYi Micro Hei</string> </test> <edit name="hinting" mode="assign"> <bool>false</bool> </edit> </match> <match> <test name="lang"> <string>zh</string> </test> <test name="family"> <string>monospace<

Can't install virtualbox in Arch

余生长醉 提交于 2020-01-26 17:41:59
问题 I have tried to install Virtualbox on Arch(4.7.0-1) using pacman and everything seems to go fine until I try to run it. I get the following message WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.7.0-1-ARCH) or it failed to load. Please recompile the kernel module and install it by sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed. VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib

'sh' environment does not respect the PATH extensions, user's local PATH not in effect?

纵饮孤独 提交于 2020-01-25 06:42:14
问题 $ bl 1 $ sh -c 'bl 1' sh: bl: command not found The bl script is located in the user's PATH extension ( /home/user/.local/bin ) but the sh environment does not seem to be aware of it, the bash is. The main /usr/bin/sh executable symlinks to /usr/bin/bash . Placing a symlink in /usr/local/bin pointing to the local bl script does seem to fix the issue. Expanding the PATH manually $ PATH=/usr/bin:$HOME/.local/bin sh -c 'bl 1' also solves it, something I don't really understand since both the

How to build C programs to link generic (version independednt) library modules

大憨熊 提交于 2020-01-25 03:09:29
问题 when I build Apache and PHP on Arch Linux the programs becomes out dated after some updates showing messages like for example 'libicui18n.so.64: cannot open shared object file: No such file or directory' because libicui18n.so.64 is now upgraded to libicui18n.so.65, which I solve this issue by rebuilding the programs again. My concern is there a away to link a program to library generic module like 'libicui18n.so' instead of 'libicui18n.so.64' so when upgrade the programs keep working. 来源:

matplotlib does not detect font

冷暖自知 提交于 2020-01-24 11:19:12
问题 When i use fontname= with the Humor Sans font I get this error: /usr/lib/python3.5/site-packages/matplotlib/font_manager.py:1288: UserWarning: findfont: Font family ['Humor Sans', 'Comic Sans MS'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) I have the Humor Sans installed. I use archlinux and I installed the ttf-humor-sans package. I have ensured that the font config cache fc-list finds the Humor Sans font: $ fc-list | grep -i Humor /usr

更改archlinux不识别高分辨率

家住魔仙堡 提交于 2020-01-19 02:04:58
利用 xrandr 命令修改屏幕分辨率 电脑外接着一个 23‘ 的显示器,分辨率为 1920*1080。 操作系统:archlinux 6.5 今天,通过 Setting->Displays 中选择外接屏的分辨率时,发现最大只有 1024×768,并且外接屏显示 “Unknown Displays”,被狗日了。。。。。 解决方案 解决办法主要是给这个 “Unknown Displays” 设置一个 1920*1080 的选项,下面借助 xrandr 命令来实现。 先查看两个屏幕支持的分辨率情况 在终端输入 xrandr: 执行 xrandr Screen 0: minimum 8 x 8, current 1366 x 1536, maximum 32767 x 32767 LVDS1 connected primary 1366x768+0+768 (normal left inverted right x axis y axis) 290mm x 160mm 1366x768 60.02*+ 40.01 1280x720 59.86 60.00 59.74 1024x768 60.00 1024x576 60.00 59.90 59.82 960x540 60.00 59.63 59.82 800x600 60.32 56.25 864x486 60.00 59.92 59