I occasionally write stuff down that are somewhat related to Javascript, Open Source, Unix, Android, XBMC/Kodi, Arduino, Networking or breaking stuff in general..
onsdag den 1. juli 2015
why VIM uses "h,j,k,l" for navigation
mandag den 9. marts 2015
makepkg 4.2 killed --asroot.
/usr/bin/makepkg
asroot
to OPT_LONG
(line 3366). OPT_LONG=('allsource' 'check' 'clean' 'cleanbuild' 'config:' 'force' 'geninteg'
'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'noarchive' 'nobuild'
'nocolor' 'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'pkg:' 'repackage'
'rmdeps' 'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps'
'verifysource' 'version' 'asroot')
if (( ! INFAKEROOT )); then
if (( EUID == 0 )); then
#error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
#catastrophic damage to your system.")" "makepkg"
#exit 1 # $E_USER_ABORT
plain "$(gettext "Running as root restored by Orc ;)")"
fi
søndag den 1. marts 2015
Archbang login manager
Now the Arch Bang Wiki is not the Arch Wiki, which is close to being the most thorough and well written guide i have ever encountered. It is close, since the end result of installing Arch Bang is Arch, but looking at the package list of Arch Bang the login manager looks to be Slim.
Searching my system i could not find a single reference to Slim. It took me way to long to think about taking a look at the systemd processes enabled on my system, but running the following command listed every enabled process.
systemctl list-units -t service --all
This command revealed that the login manager was in fact "lxdm"
Good times. Now i can disable the process by running:
systemctl disable lxdm
And there was much rejoicing ..
tirsdag den 30. december 2014
Launching applications using a certain theme on Arch
That have left me distro hopping all around, but i keep coming back to Linux Mint since 15 and up to 17.1, i'm on debian and ubuntu for my servers, and switched over to Arch Linux on my laptop a few months back. Talk about a distribution that will force you to learn, patch and learn some more about your system.
I have been meaning to write down a few things here, mainly to remind myself somewhere down the line if i run into the same problem.
One thing i have found helpful as a workaround for problems with customizing my own OS themes, and having applications break from GTK errors and the like, is launching a program using a specific theme. In my case i have used the Adwaita theme, for it's basic allround functionality.
So to run a custom command launching a program using the Adwaita theme i do:
GTK2_RC_FILES=/usr/share/themes/Adwaita/gtk-2.0/gtkrc agavewhere "agave" is my application name to be replaced with whatever you want to launch.
For launching a application using its gtk3 theme simple structure the command as such:
GTK_THEME=Adwaita agave
edit: you need to include a export statement to your bashrc
export GTK_PATH="$GTK_PATH:/usr/share/themes/"
fredag den 31. oktober 2014
Fixing the glibc 2.14 'not found " error in Wheezy
Now i know that other people have had this problem with other applications and i honestly don't know if this way of fixing it will work for those applications, but in theory it should.
I encountered the error message after Bitcasa updated their Linux headless client, without notifying any users that they did.
They now include a "bitcasa2" package in their repository. i wanted to mount my Bitcasa drive on my server to setup Rsync using SSH to backup my files. My server is running Debian Wheezy and threw the error of the missing glibc 2.14 library at me when i tried to mount my Bitcasa drive.
I had to spend quite some time on solving the issue so i thought that i would share my solution.
First thing i did was to add experimental builds to my sources.list:
nano /etc/apt/sources.list
Then added:
søndag den 7. september 2014
Finally found a useful fanless device that is affordable. The Cubox-i2 eX from SolidRun
søndag den 24. august 2014
Odroid U3
So I was hoping to get a new media center device that had just a bit more power than my raspberry pi and did not have a fan like my aging Acer Revo 3600. So I decided on the Odroid U3 from Hardkernel.
The device shipped from South Korea and I sadly ended up paying the same amount in taxes and fees that I had originally payed for the device itself. In my rush I had not learned that the U3 is NOT USB powered like the raspberry pi is, so I had not chosen to buy a power supply along with it. Big mistake.
The power plug size listed seemed fairly standard, it did however take me 3 weeks to track down the right size as the size listed in the specifications is not that standard around here.
I then threw Debian wheezy on a class 10 micro SD card, and that let me run a Xbmc build that could play back up to 720p without to much trouble. I did get some constant UI freezes that made the simple fact of using the device pretty horrible. I sprung for a micro SD card twice the price but still class 10, as I have before had problems with SD cards claiming to be high quality being.. Well anything but.
Same problem with UI freezing up and me having to wait anywhere from 5 to 20 seconds before the U3 became responsive again. I then tried out a Android jelly bean build that let me boot straight into a full screen, libstagefright supported xbmc version that could playback 1080p, with a bit of lag here and there. And what was worse. The same UI freezing persisted. When I asked around the hardkernel community, I was told that the devices could not really run OS from micro SD and that I should purchase a emmc memory module to use for the OS.
I have been running anything from servers to flawless xbmc versions from sd and flash memory so I was not about to purchase anything like that. My RPi runs without the UI freezing up from the very same micro SD. And the Odroid U3 sports a 1.7GHz Quad-Core processor and 2GB Ram so I am really surprised it was such a poor experience for me. I have no idea if it was a faulty device or something similar. But I sold it again.
And are now awaiting the arrival of a Cubox-i2eX that sports slightly lower specifications but has support for OPENELEC xbmc builds, that imo is the bees knees if you need a device for media playback only. My experience is that the stable builds are beyond rock solid and by far the most amazing builds out there.