Month: January 2010

Faking User Agent with Wget

Faking User Agent with Wget Written by Steve Lake From http://www.raiden.net Posted on: Jan 27, 2010 at 07:49am Section: Tutorials Printer Friendly Version Legacy URL A good portion of the Linux community who are familiar with the command line are also very familiar with a powerful tool known as Wget.  It’s sort of an FTP/web…


Termbuilder

http://www.tuxradar.com/termbuilder has a nifty little utility to create command line output. It is limited right now but as time goes on, it could be a very useful tool for those looking to improve their command line fu. From their site: This is TermBuilder, an easy-to-use script that helps newbies form Linux terminal commands by selecting…


Install Pear mail_queue

A client asked me to install this last night and I figured i’d share the joy that is pear. To install pear on a server, simply use the following commands; wget http://pear.php.net/go-pear php go-pear Once pear is installed, you can see a list of the available options by typing in pear at the command line….


Shell scripting tutorial

Here is an awesome shell scripting tutorial from Nixcraft. Enjoy!


Disable Direct Root Login

Allowing the root user to login directly can be a major security issue. Here, i’ll show you how to disable it so you can still login as root but just not directly, reducing the security risk. This will force an attacker to guess 2 separate passwords to gain root access. You will first need to…


Can’t move Ubuntu taskbar

Came across this silly little thing about a week ago and had to dig for an hour or so to fix it. After I updated my nvidia drivers, my taskbar suddenly went from my left screen to my right screen. (I have a multi-screen setup). In order to fix this, try holding down the ALT…


Changing time to IST

Client wrote in today asking me to change the time setting on his computer to IST (India Standard Time). In order to change this, login via SSH and then cd /etc/ once there, create a link to the following file by running the following command etc >> ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime This will now show…


Cpanel required ports list

Port Service Protocol Direction Notes 20  ftp  tcp inbound/outbound 21  ftp  tcp, udp inbound/outbound 22  ssh  tcp  inbound 25  smtp  tcp inbound/outbound 26  smtp  tcp inbound/outbound 37  rdate  tcp  outbound 43  whos  tcp  outbound 53  DNS  tcp, udp inbound/outbound Inbound only needed if you run your own DNS server 80  http  tcp inbound/outbound 110  pop3…


Migrate cPanel accounts

From http://www.justin-cook.com This tutorial explains a simple, straightforward method for migrating cPanel accounts from one server to another. You can use this method to transfer accounts from an old server to a new one or help customers move from another host move to your host. This does not even require root access on one end…


Add temporary swap

While it would be ideal if every server had plenty of RAM, in the real world that does not happen. If for some reason you have a server with too little SWAP or you are hitting the max of the swap here is a quick hack which will create a 2Gb container file then use…