[Linux] Debian install additional locales

#dpkg-reconfigure locales Now select you locale (for NL choose nl_NL.UTF8). Then select a default (or none for default system locale). If you use the locale for apache restart your apache #/etc/init.d/apache2 restart Now you can define your locate trough you php config files. More info: http://wiki.debian.org/Locale

June 28, 2012 · 1 min · thomasf

XBMC (XBMCBuntu) ContextMenu option Logitech Harmony

With my Logitech Harmony 300 I didn’t have the ContextMenu (right click or c keyboard) option. This action is essential when you want to change some movie information. If I use my XBMC Android app I had the title (= ContextMenu) option so I thought that it must be possible do the same with my logitech harmony. After some searching and debugging I find a solution. The steps: login to your xbmc with ssh xbmc@IPXBMC cp /usr/share/xbmc/system/keymaps/keyboard.xml /home/xbmc/.xbmc/userdata/keymaps/keyboard.xml(never hack the original file, that can be overwritten when you do an update) nano /home/xbmc/.xbmc/userdata/keymaps/keyboard.xml Add this line between the other keyboard shurtcuts ContextMenu Save the file (CTRL + W) and restart your xbmc to reload the keyboard.xml config ...

June 19, 2012 · 2 min · thomasf

IPTables SNMP

See bold lines (192.168.1.9/32 is my monitor): nano /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Thu Jun 14 14:51:55 2012 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1842:173072] -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m state –state NEW -m tcp –dport 22 -j ACCEPT -A INPUT -p udp -m udp -s 192.168.1.9/32 –dport 161:162 -j ACCEPT -A INPUT -j REJECT –reject-with icmp-host-prohibited -A FORWARD -j REJECT –reject-with icmp-host-prohibited COMMIT # Completed on Thu Jun 14 14:51:55 2012 ...

June 14, 2012 · 1 min · thomasf

[Pinta] Crossplatform Paint.NET alternative

Today I found a very nice cross platform Paint.NET program clone with the name Pinta. Now I can edit images on every platform (OSX, Linux & Windows) and use always the same interface and hotkeys for the few times a year I need a simple paint prgram. When you install the software under windows do not forget to install the “Gtk# for Windows”. Without the GTK the program don’t start and don’t give any error. ...

May 16, 2012 · 1 min · thomasf

Delete mail from postfix queue

The old command won’t work anymore on my ubuntu server because of the error: tail: cannot open `+2’ for reading: No such file or directory OLD Command: ` ` NEW Command: ` ` ...

April 27, 2012 · 2 min · thomasf

Linux show disk space specific folder

$du -c -h /path/to/directory

March 14, 2012 · 1 min · thomasf

Troubleshoot SNMP

If you want to know what a specific SNMP value must be, snmpwalk is your friend :) snmpwalk -v1 -c -On 1.3 Download SNMPWALK for windows

March 7, 2012 · 1 min · thomasf

Configure SNMP Linux

Be careful so do a backup of the snmpd config file. [root@linux ~]# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org Create a new config file. [root@linux ~]# nano /etc/snmp/snmpd.conf rocommunity public IPMonitorServer syslocation "Webserver, WAPNET" syscontact some@email.com Start the snmpd service and set the snmp stratup at boot on [root@linux ~]# /etc/init.d/snmpd start [root@linux ~]# chkconfig snmpd on

January 26, 2012 · 1 min · thomasf

locate command for OSX

Locate is a great unix/linux util that you can use for fast file searching. enable locate (search command database) this takes 10 minutes the first ime. But it is a background process. sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist Updatedb (search db) sudo /usr/libexec/locate.updatedb find a specific file locate file

December 7, 2011 · 1 min · thomasf

Cyanogenmod 7 move all applications to sd card without data loss

I have an HTC Desire phone. I like the phone but there is one big problem; the NAND (internal storage) is way to small. I installed a lot of ROM’s but the last time I install Cyanogenmod 7.1 with the “Launcher 7” and I did a lot of customization I don’t want to reinstall my phone. There is an crappy android workaround to move some of your apps to the SD card but when you connect/mount your phone to your pc you cannot start these apps and if you disconnect some of the settings are ruined. ...

November 23, 2011 · 2 min · thomasf