Dec 18

Quick And Easy VNC Installation (Red Hat Version)

Here’s a really quick way of installing VNC on your server or desktop machine. VNC is similar to Remote Desktop in Windows in that you can connect to your computer remotely and have access to a GUI. It comes in handy if you have a VPS and you’re not quite familiar with bash, or if you would like to use applications that require a GUI.

1. Log in as the root user on your server and run:
yum install vnc-server firefox
This installs the vnc server and the firefox browser. You can opt out of installing Firefox and install another one instead, or not install it at all if you do not plan to use a browser.
2. Most dedicated servers and home computers can skip this step if you wish to use GNOME (as they already have gnome installed). Should you choose to use KDE, you can then type: yum groupinstall “KDE (K Desktop Environment)”
If are unsure if you have gnome installed already, you can easily run:
root@server3 [~]# gnome-panel --version
Gnome gnome-panel 2.16.1

and it will let you know what version you have. If you don’t already have GNOME and wish to use it, just run:
yum groupinstall "GNOME Desktop Environment"
Some admins with a VPS may already have a control panel setup, in which GNOME will give you issues installing because it wants to use a certain version of Apache. To bypass this, run this instead:
yum groupinstall "GNOME Desktop Environment" --skip-broken
3. Log out as the root user, and log in as the user you want to run VNC under (or just type su username). Type:
vncserver :1
and it will prompt you to enter a password. Make sure to remember this password as it is the password that you will use to log into VNC.
4. After that, type:
vncserver -kill :1
5. Type:
nano ~/.vnc/xstartup (or use the editor of your choice) and there are two lines you need to uncomment. They are:

# exec /etc/X11/xinit/xinitrc

Just remove the # sign from in front of them. Also you will need to comment out the line that says twm & (just put a # in front of it), then finally start a new line and add kde & for KDE or gnome & for GNOME. After all said and done, the lines will look like this:

exec /etc/X11/xinit/xinitrc

#twm &
kde &

6. Once the file is saved, you may type vncserver :1 and connect to VNC using the username, and the password that you typed in step 3.

Dec 17

Make Bash Aliases

Bash aliases allow you to type short words for commands, which make using terminal easier. By default, certain Linux distros (like Ubuntu) already have several aliases already setup in the .bashrc. For example, typing:
in some Red Hat distros is the equivalent of typing:
ls -l
Now that I’ve explained, lets make one. Use your favorite editor (nano is the easiest) and run this command:
nano ~/.bashrc
Once you have the file open, add your alias in this format
alias shrtwrd='superlongcommandorphrase'
This will allow you to type “shrtwrd” in your terminal window, and it will execute “superlongcommandorphrase”. Once you enter that in, go ahead and save the file. Once the file is saved, you can simple run
or close terminal and re-open it, and we can test out our alias. If you did my example, then this would be the output:
root@server3:~# shrtwrd
bash: superlongcommandorphrase: command not found

And there you have it. Simple, but effective!

Dec 17

Welcome to!

Who knew that what started out as a joke between co-workers would end up being a reality? (well I did, but that’s not the point). I hope you enjoy the stay and find something that you like. Here’s the video that started it all…