archlinux

“Proper way” to manage multiple versions of Python on archlinux

耗尽温柔 提交于 2019-11-30 08:11:10
So I have read this - https://wiki.archlinux.org/index.php/Python And it is clear from this wiki that I can install Python 2.7.2 via pacman -S python2 Is it reasonable for me to create a symlink to python2 ln -s python2 /usr/bin/python if I don't forsee myself switching to python 3.0 any time soon? Or is there a better way of managing multiple python versions like what I usually use on a debian system (update-alternatives --config python) or on a mac os x system (python select)? CLARIFICATION: What I am trying to find out is - what is the "best practice" of managing various python versions on

ImportError: /usr/lib/libboost_python.so.1.54.0: undefined symbol: PyClass_Type

百般思念 提交于 2019-11-30 05:17:41
问题 I have code written in C++: #include <boost/python.hpp> char const* greet() { return "Yay!"; } BOOST_PYTHON_MODULE(libtest) { using namespace boost::python; def("greet", greet); } Now i want to import this dynamic library to python by: import libtest But I get: ImportError: /usr/lib/libboost_python.so.1.54.0: undefined symbol: PyClass_Type What should I do? My OS is Arch Linux. 回答1: Ok, I have found solution for this problem. The simplest options is to compile by: g++ testing.cpp -I/usr

clang 4 build error on <functional> with c++1z

喜你入骨 提交于 2019-11-30 03:24:12
问题 I just updated my arch linux system to the latest which includes gcc 7.1.1. Trying to build this: #include <functional> int main(int argc, char** argv) { return 1; } using the command clang++ main.cpp -std=c++1z results in the error: In file included from main.cpp:1: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/functional:60: In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.1.1/../../../../include/c++/7.1.1/unordered_map

archlinux更改tty终端显示效果

本小妞迷上赌 提交于 2019-11-29 19:11:21
一、 安装kmscon yaourt -S kmscon 二、 手动创建配置文件 /etc/fonts/conf.d/99-kmscon.conf ------------------------------------------------------------------------------ <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match> <test name="family"><string>monospace</string></test> <edit name="family" mode="prepend" binding="strong"> <string>DejaVu Sans Mono</string> <string>WenQuanYi Micro Hei Mono</string> </edit> </match> </fontconfig> 三、 启动kmscon替换内核终端 1. 在某个tty显示 # systemctl enable kmsconvt@tty1.service 2. 在所有tty显示 # ln -s /usr/lib/systemd/system/kmsconvt\@.service /etc/systemd

ArchLinux Useage Record

我们两清 提交于 2019-11-29 18:14:33
目录 ArchLinux Useage Record 1. Download ArchLinux ISO 2. Install ArchLinux on VirtualBox 3. Boot existing OS 4. Install Vim 5. Compile the first C program in ArchLinux 6. End ArchLinux Useage Record 1. Download ArchLinux ISO ArchLinux 2. Install ArchLinux on VirtualBox Open VirtulBox and new virtual machine Boot Arch Linux (x86_64) Ping test ping baidu.com ==If ping test is failed, Stop and end !== Create 10GB Hard disk partition Three partition root partition cfdisk Select dos chance, Clik New option to change 20GB to 10GB, select primary option and press Enter. Select Bootable option and

archlinux/manjaro常用软件推荐

非 Y 不嫁゛ 提交于 2019-11-29 12:03:41
请确保已经配置好了 arhclinuxcn 和 aur 源 安装aur助手 --> yaourt用户 $ sudo pacman -S yaourt $ nano /etc/yaourtrc --------------------------------------------------- AURURL="https://aur.tuna.tsinghua.edu.cn" #修改此行 --> yay用户 $ sudo pacman -S yay $ yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save $ yay -P -g 修改的配置文件位于 ~/.config/yay/config.json 安装搜狗输入法^[aur]^ $ sudo pacman -S fcitx-sogoupinyin fcitx-configtool fcitx-im $ yay -Sa fcitx-qt4 $ sudo nano /etc/environment -------------------------------------------------------------------------------------------------------- GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx

“Proper way” to manage multiple versions of Python on archlinux

耗尽温柔 提交于 2019-11-29 11:16:52
问题 So I have read this - https://wiki.archlinux.org/index.php/Python And it is clear from this wiki that I can install Python 2.7.2 via pacman -S python2 Is it reasonable for me to create a symlink to python2 ln -s python2 /usr/bin/python if I don't forsee myself switching to python 3.0 any time soon? Or is there a better way of managing multiple python versions like what I usually use on a debian system (update-alternatives --config python) or on a mac os x system (python select)? CLARIFICATION

ArchLinux 安装笔记:续 --zz

爷,独闯天下 提交于 2019-11-29 03:55:07
续前话 在虚拟机里调试了几天,终于鼓起勇气往实体机安装了,到桌面环境为止的安装过程可以看我的前一篇文章 《ArchLinux 安装笔记》 。桌面环境我使用的是 GNOME,虽然用了很长一段时间的 KDE,但是 KDE5 神一般的开机速度简直让人喜感,最后还是选择了 GNOME~ 安装 GNOME 桌面环境 安装 Xorg 本来以为需要安装整个 Xorg 事实上根本不用~ pacman -S xorg-xinit xorg-server xorg-twm xterm 安装 GNOME pacman -S gnome 如果你还需要 GNOME 自带的软件的话 pacman -S gnome-extra 顺便安装一下 GNOME 优化工具 GNOME Tweak Tool pacman -S gnome-tweak-tool 启动服务 Display Manager 显示管理器 GNOME 默认是用的是 GDM。 systemctl enable gdm.service Network Manager 装完 GNOME 进系统过后你会发现没地方设置网络,到 Settings 里面找到 Network 点开会提示你 NetworkManager 没有运行。 systemctl enable NetworkManager.service 然后重启电脑应该就能进入 GDM 了

64位archlinux运行steam

北慕城南 提交于 2019-11-28 19:51:21
1. steam 自带的OpenGL 库是过时的,运行可能会抱怨“Cannot find OpenGL GX” 之类的东西,看ArchWiki 「steam」条目,删除steam 自带的几个库。 2. 但是删除了steam 自带的那些库之后你需要在系统中安装新版的库,除去64 位的库之外(不可能还有人在用32 位的系统吧),看看有没有「lib32-mesa」和「lib32-mesa-libgl」,双显卡的lib32 还需要安装「lib32-intel-dri」,不要问为什么,不装上的话会非常非常卡,「primusrun」会不声不响失败,「optirun」会提示“cannot find opengl entry point xxxx” 之类的东西。 3. NVIDIA 的驱动需要安装「nvidia」而不是「nouveau」,同时安装「nvidia-utils」 和 「lib32-nvidia-utils」 。不过「bumblebee」安装的时候可能会有依赖冲突,看ArchWiki 的「bumblebee」条目,好象是同时安装「intel-dri」、「xf86-video--intel」、「bumblebee」和「nvidia」来规避依赖冲突。 4. 「bumblebee」是用来切换独显来运行某个程序的东西,但是「startx」进入桌面环境还是用的Intel 核心显卡,所以不要生成

set-up X11 Forwarding over ssh

和自甴很熟 提交于 2019-11-28 19:35:23
I'm attempting to set up x11 forwarding to monitor video on an embedded robotics platform yet I cannot seem to get the board to generate graphical output. I'm running Arch Linux on a Beagleboard xM wired directly over ethernet (though, I plan to use WiFi in the future). When I try to set the DISPLAY variable it will accept it but when I attempt to run an x11 application is says: (Object:287): Gtk-WARNING **: cannot open display: [displaynamehere] obviously [displaynamehere] was whatever I tried to set as the display, yet no display location seemed to work. What's weird is that whenever I