setup x11 behind firewall

How do we setup x11 behind firewall ? In this case we will use a Rackspace Cloud server with Red Hat Linux and a windows box behind a corporate firewall.  I have slightly modified the Rackspace guide below (you will…

howto install gnome centos

howto install gnome centos? yum install groupinstall gnome-desktop alternatively: To install KDE Desktop, type this: yum groupinstall “X Window System” “KDE (K Desktop Environment)”   To install Gnome Desktop, type this: yum groupinstall “X Window System” “GNOME Desktop Environment”  …

linux eternal bash history all users secured

I use this on my unix/linux boxes for eternal bash history for all users (place in /etc/bashrc) if [ “$BASH” ]; then export HISTTIMEFORMAT=”%Y-%m-%d_%H:%M:%S ” export PROMPT_COMMAND=”${PROMPT_COMMAND:+$PROMPT_COMMAND ; }”‘echo “`date +’%y.%m.%d-%H:%M:%S:’`” $USER “(“$ORIGINAL_USER”)” “COMMAND: ” “$(history 1 | cut -c8-)”…

Linux List Free Memory Pretty Output

Who doesn’t like pretty command output? resize; echo -ne ‘\n’;echo “===========================================”;ps -eo user,%cpu,%mem,rsz,args|sort -rnk4|awk ‘BEGIN {printf “%s\t%s\t%s\t%s\t%s\n”,”USER”,”%CPU”,”%MEM”,”RSZ”,”COMMAND”}{printf “%s\t%g’%’\t%g’%’\t%d MB\t%-10s\n”,$1,$2,$3,$4/1024,$5}’|head -n30;echo “===========================================”;echo -e “\n===========================================”;vmstat -s -S M|head -n10;echo “===========================================”; Sample output: Or to see output with pid resize; echo -ne ‘\n’;echo…

install java centos

How do I install java on centos? Step 1: download the JDK or JRE from Step 2: chmod +x Step 3: Execute Package Example: [root@interweb tmp]# wget [root@interweb tmp]# mv jre-6u25-linux-x64-rpm.bin\?e\=1305390057\&h\=b1bb96445e6d1965e1c566f5279a49f2 jre-6u25-linux-x64-rpm.bin [root@interweb tmp]# chmod +x jre-6u25-linux-x64-rpm.bin [root@interweb…

list all host headers iis

source: Option Explicit On Error Resume Next Dim objBaseNode, objChildNode Dim objBindings, intBindings Dim objFSO, objFile, strOutput ‘ get a base object Set objBaseNode = GetObject(“IIS://LOCALHOST/W3SVC”) Set objFSO = WScript.CreateObject(“Scripting.FileSystemObject”) Set objFile = objFSO.CreateTextFile(“HostHeaders.txt”) ‘ check if we have…

setup ssh cent-os

install the server and client # yum -y install openssh-server openssh-clients Start the service: # chkconfig sshd on # service sshd start Make sure port 22 is opened: # netstat -tulpn | grep :22 source:

mac os software update link modify

mac os software update link modify To reset the software update link to the default run this command: defaults delete CatalogURL Source: Also you can try this: Move the softwareupdate.plist file out of Library/Preferences to desktop…and run a…

picasa mac missing icons

Picasa mac missing icons This was pretty frustrating for me. I finally figured it out. You need to download georgia.TTF (just google it) and copy that to /Library/Fonts That’s it! Icons will re-appear! … stupid shitty Picasa!