archlinux

gnome-terminal doesn't work maybe because of locale setting

老子叫甜甜 提交于 2019-12-05 14:09:25
I installed Antergos (easy version of Arch) with the Japanese environment. But I wanted to chaned the language to English, so I reffer the wiki article then run some commands after uncomment #en_US.UTF-8 UTF-8 in /etc/locale.gen and edit /etc/locale.conf into following: LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_ALL= The problem starts from

ArchLinux简明安装教程

∥☆過路亽.° 提交于 2019-12-05 13:52:22
ArchLinux是一个十分优秀的发行版,定制性极高,同时不像Gentoo那样花那么多时间编译。安装ArchLinux无疑是对Linux发行版架构的一次熟悉和学习。目前,网上的相关教程基本已经过期,同时官方wiki上对于相关软件的搭配也没有仔细的描述。 按照本文的步骤做,最终你将得到一个KDE环境的ArchLinux。不过我并没有配置打印机,具体请大家wiki cups。 安装可以分为三大部分: 基本系统的安装 驱动安装 桌面环境的安装 ‍ ‍ 注:最新的教程已经移至我的独立博客,此篇不再更新, 点击进入 。 ‍ ‍ 更新了GPT以及UEFI等相关内容。 1.基本系统的安装 硬盘分区 这里的方案比较多,如果是新手,那么你可以只分一个区,我的方案是/boot,/,/home三个分区由于我的笔记本内存有8GB,因此不用swap。 fdisk /dev/sda #/boot为sda1,/为sda2,/home为sda3 安装文件系统 在sda{1,2,3}安装ext4文件系统 mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda2 mkfs.ext4 /dev/sda3 挂载分区 #挂载/ mount /dev/sda2 /mnt #创建boot和home以挂载sda1和sda3 cd /mnt mkdir boot mkdir home mount /dev

No OpenGL 3 headers in Arch Linux

女生的网名这么多〃 提交于 2019-12-05 11:11:17
I’m trying to compile a very simple “Hello world” OpenGL 3.3 program using FreeGLUT. In all the tutorials I found, they include an header “gl3.h”. The problem is, I don’t have such header file. $ ls -l /usr/include/GL/ total 2164 -rw-r--r-- 1 root root 8797 20 janv. 17:44 freeglut_ext.h -rw-r--r-- 1 root root 681 20 janv. 17:44 freeglut.h -rw-r--r-- 1 root root 26181 20 janv. 17:44 freeglut_std.h -rw-r--r-- 1 root root 837247 27 janv. 12:55 glew.h -rw-r--r-- 1 root root 656589 21 mars 18:07 glext.h -rw-r--r-- 1 root root 84468 21 mars 18:07 gl.h -rw-r--r-- 1 root root 128943 21 mars 18:07 gl

Android Device Monitor not found JDK Path

瘦欲@ 提交于 2019-12-05 01:31:09
I'm using Arch Linux with Gnome. I open Android Studio by the desktop item. The code editor works fine, the device manager starts correctly and the app run like a charm, but when I try to open the Device Monitor, I get this error: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations: /home/grams/Android/Sdk/tools/lib/monitor-x86_64/jre/bin/java java in your current PATH When i run the android studion from command line, the Device Monitor works. Here is the .desktop

Unable to hit breakpoints in MonoDevelop

爷,独闯天下 提交于 2019-12-05 01:26:44
On my archlinux system I did a fresh installation of: mono 3.0.7 monodevelop 4.0.8 monodevelop-debugger-gdb 4.0 When I debug an application the debugger doesn't stop on the breakpoints, even not on the System.Diagnostics.Debugger.Break (); code. And an error windows is displayed with the following message : Could not connect to the debugger Does anyone know how to fix it? As a workaround untick the "Run on external console" checkbox in your running project settings. You can find this option in the "Run" tab from the settings pane. I had a similar problem - breakpoints was not triggered while

archlinux下lxde安装与配置教程

若如初见. 提交于 2019-12-04 17:01:00
首先需要安装archlinux,可以参考 Archlinux安装指南图解教程 首先安装所需的驱动 pacman -S xf86-input-keyboard xf86-input-mouse xf86-video-ati pacman -S alsa-utils laptop-mode-tools 接着安装守护进程与所需的功能支持 pacman -S acpid dbus dvd+rw-tools ntfs-3g gamin 输入alsamixer进行音频设置 设置完成后输入alsactl store保存 安装xorg与lxde pacman -S xorg lxdm lxde xorg提示选择54)xorg-server,lxde提示时全选 下来,编辑/etc/rc.conf修改 DAEMONS行内容,我的实例如下 DAEMONS=(syslog-ng !network netfs crond acpid dbus alsa lxdm) 设置lxdm与lxde启动 编辑/etc/lxdm/lxdm.conf ## default session or desktop used when no systemwide config #session=/usr/bin/startlxde //将此行前面的#去掉 编辑~/.xinitrc 写入如下内容 export LC_ALL=zh

Sample SDL program gives an empty window

笑着哭i 提交于 2019-12-04 14:19:47
config: archlinux with awesome desktop environment I just installed sdl2, and tried to run this sample code: https://github.com/xyproto/hello_sdl2/blob/master/c%2B%2B/main.cpp The result is an empty window (I can see my console through it) in the middle of the screen. Even when I hit mod4+Enter, it doesn't tile up nicely with the others. Why is that? (I updated my system, reinstalled sdl2. I also couldn't find any relevant hit browsing google.) All windowing systems require you to handle messages by pumping a message queue. See this chapter for some SDL specific examples but the essence is

Python always returning Network is unreachable because of old ipv6 configuration

江枫思渺然 提交于 2019-12-04 13:40:26
问题 I currently get a Network is unreachable error to any request I'm making with python. No matter if im using the urllib library or the requests library. After some more research its likely that its being caused by an incorrect setup ipv6 tunnel, which seems to be still active: $ ip -6 addr show $ ip -6 route default dev wlan0 metric 1 Some context: I'm running Archlinux and updated the system today, although there didnt seem to be any special updates today related to python. I'm also running

Haskell: Missing C library on Arch Linux works on Ubuntu

狂风中的少年 提交于 2019-12-04 11:24:27
I recently switched my PC at work from Ubuntu to Arch Linux . And I am now getting the following error (I am using stack to build my project): setup-Simple-Cabal-1.22.4.0-ghc-7.10.2: Missing dependency on a foreign library: * Missing C library: HSrts-ghc7.10.2 This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. As far as I understand it, the difference in

1.树莓派3安装archlinux通用配置部分

二次信任 提交于 2019-12-04 09:23:41
本文永久地址:https://my.oschina.net/bysu/blog/1560594 安装过程请参考:https://my.oschina.net/bysu/blog/1557801 树莓派3安装archlinux配置web、samba和aria2请参考 买了个树莓派3主要是想用来当家用NAS和学习编程。由于树莓派性能有限,故此分两种环境配置。现在先配置通用环境部分。 强插入: 虚拟内存 分区 (该节点未验证,网上看到,记录为日后不时之需) 创建交换文件 交换文件可以在物理内存不足的时候将部分内存暂存到交换文件中,避免系统由于内存不足而完全停止工作。 之前我们通常采用单独一个分区的方式作为交换分区,现在更推荐采用交换文件的方式,更便于我们的管理。 分配一块空间用于交换文件,执行: fallocate -l 512M /swapfile (请将512M换成需要的大小,只能以M或G为单位) 更改权限,执行:交换文件的大小可以自己决定,推荐4G以下的物理内存,交换文件与物理内存一致,4G以上的物理内存,交换文件4-8G。 chmod 600 /swapfile mkswap /swapfile 设置交换文件,执行: 启用交换文件,执行: swapon /swapfile vim /etc/fstab 最后我们需要编辑 /etc/fstab 为交换文件设置一个入口,使用 vim