Enable Colors Linux Terminal
nano ~/.bashrc Remove the # or add a new line: force_color_prompt=yes
nano ~/.bashrc Remove the # or add a new line: force_color_prompt=yes
First, check the software sources, then paste this command into the terminal: sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot If you have a 64 bit system, do this step: sudo apt-get install ia32-libs-multiarch:i386 lib32gcc1 libc6-i386 cd /usr sudo ln -svT lib /usr/lib64 Paste these commands into the terminal to create a new folder and download your driver: cd ~/ mkdir catalyst12.4 cd catalyst12.4/ wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run chmod +x amd-driver-installer-12-4-x86.x86_64.run 4-A) IF you have Intel HD graphics AND discrete ATI GPU, then do this(and reboot): ...
This week I have my new toy. A raspberry PI :-) I will post in this article nice articles you definitely needed when you have a Raspberry also. Extra hardware you need: SD Card, USB Keyboard, HDMI Cable, USB Wifi module/Ethernet Connection, Phone Charger with micro USB connection Recommended Linux Distribution: Raspbian “Wheezy” @ http://www.raspberrypi.org/downloads Installation : http://elinux.org/RPi_Easy_SD_Card_Setup Audio: http://elinux.org/R-Pi_Troubleshooting#Sound Alsa fix: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=7107 Wifi: http://www.raspberrypi-tutorials.co.uk/set-raspberry-pi-wireless-network/ Wifi Tip: to get a nice WPA script type the following: #wpa_passphrase ssidname ssidpassword Which board do you have: http://elinux.org/RaspberryPi_Boards
#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
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 ...
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 ...
Start a FTP program and connect to your wordpress website Locate your funtions.php (wp-content\themes\theme_name\functions.php) Edit the file and put the following code in your functions.php file: function showads() { return ' <script type="text/javascript"><!-- google_ad_client = "ca-pub-3134535021136249"; google_ad_slot = "3483719222"; google_ad_width = 468; google_ad_height = 60; // --> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> ';} add_shortcode('banner', 'showads'); Modify the client, slot, width and height values Safe the file and overwrite the current Now you can use the [banner] tag in your post to publish the banner: ...
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. ...
[banner] Sometimes you want to put code in your wordpress blog. The beste way to write code is switch to switch to HTML and put the and tags to your post. Example with : mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "user@example.com") print $1 } ' | tr -d '*!' | postsuper -d - Example withoute : ...
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: ` mailq | tail +2 | grep -v ‘^ (’ | awk ‘BEGIN { RS = "" } { if ($8 == “user@example.com” && $9 == “") print $1 } ’ | tr -d ‘!’ | postsuper -d - ` NEW Command: ` mailq | tail -n +2 | grep -v ‘^ (’ | awk ‘BEGIN { RS = "” } { if ($7 == “user@example.com”) print $1 } ’ | tr -d ‘!’ | postsuper -d - ` ...