Tuesday, April 19, 2016
Emacs configure script not finding gnutls even though you have it.
You probably don't have pkg-config installed. At least that was the case for me in my new Arch install. I just did a `sudo pacman -S pkg-config`, then configured emacs again.
Monday, April 18, 2016
modprobe: FATAL: Module uio not found.
What the hell is going on? Where is this u-i-o module DPDK needs? It's simple. Your probably using a cloud image; a vagrant VM or an EC2 instance most probably. You don't have everything you need pre-installed. Simply run "sudo apt-get install linux-generic linux-headers-generic" and you'll be fine. Go wild!
Saturday, March 12, 2016
Fixing problematic keys in st (suckless terminal)
Some keys were not working in Suckless Terminal (st). In particular Backspace and END keys were not working. Performing the following two steps fixes the problem (courtesy of the st page in the ArchWiki):
- Put this line in ~/.inputrc or /etc/inputrc:
set enable-keypad on
- Run this in your terminal (you can put it in ~/.bashrc):
stty erase '^H'
Monday, March 7, 2016
Container fstab not working in LXC
It seems that from some version of LXC, the deafults have changed such that container fstab simply has stopped working for me. This is how I fixed the problem: add the following line to your container config file:
lxc.mount = /var/lib/lxc/container-name/fstabFix the container name in that, and you're ready to go.
Sunday, February 14, 2016
How to enable graph style meters in htop 2.0?
The graph style meters added in htop 2.0 are really cool. You can see a sample in the htop homepage (at the moment anyway). In order to have one of those, go to setup (R2), then meters. Choose one of the meters (or add a new one) select it and hit space to change its style until it's on "graph".
Wednesday, November 11, 2015
Fixing VLC stutter on Android
VLC is a great player on the desktop, but my experience with it on Android has not been the best. Everytime I play start playing a track there's a delay and then a stutter. I can never hear the first couple of seconds properly. Worse this behavior continued for the entirety of an m4b audiobook I just tried to play.
Then I thought, why haven't I tried tweaking with the settings and see what happens. Sure enough, a few minutes later, I found a solution. Go to Preferences, then Advanced. Change Audio output from "OpenSL ES" to "Audio Track (Java)". Done! Everything is fine now.
Then I thought, why haven't I tried tweaking with the settings and see what happens. Sure enough, a few minutes later, I found a solution. Go to Preferences, then Advanced. Change Audio output from "OpenSL ES" to "Audio Track (Java)". Done! Everything is fine now.
Saturday, November 7, 2015
Fixing MTP mounting error in Ubuntu
I used to be able to mount my Galaxy S4 over USB but for some weird reason I started getting an error message a few days ago. Today I finally managed to fix the problem. First run lsusb to get the bus and device ID:
Now we know that the device is on bus 002 and its device ID is 104. Let's take a look at it:
For some reason, the device belongs to the audio group and I'm not part of that group. So I simply run:
Then I logout and login and the problem is fixed. As a temporary workaround, if you don't want to logout right now, you can run:
$ lsusb | grep -i samsung
Bus 002 Device 104: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-I9300 Phone [Galaxy S III], GT-P7500 [Galaxy Tab 10.1]
Now we know that the device is on bus 002 and its device ID is 104. Let's take a look at it:
$ ls -l /dev/bus/usb/002/104
crw-rw---- 1 mostafa audio 189, 231 Nov 7 17:23 /dev/bus/usb/002/104
For some reason, the device belongs to the audio group and I'm not part of that group. So I simply run:
$ sudo addgroup mostafa audio
Then I logout and login and the problem is fixed. As a temporary workaround, if you don't want to logout right now, you can run:
$ sudo chmod 666 /dev/bus/usb/002/104
Subscribe to:
Posts (Atom)