We all know IPTables can be difficult. By adding the following lines to your ~/.bashrc you can simplify the tasks of blocking packets from a certian ip. First your going to need to install IPTables: Gentoo: emerge iptables (Must be Root to use/install iptables) Ubuntu/Debian: sudo apt-get install iptables Then edit your .bashrc file and add the following alias blockedips="iptables [...]
Continue reading...Wednesday, August 12, 2009
This comes in very handy if your trying to track back when you had last run something. To enable it just simply add export HISTTIMEFORMAT="%h/%d - %H:%M:%S " to your .bashrc file echo 'export HISTTIMEFORMAT="%h/%d - %H:%M:%S "' >> ~/.bashrc Then reload your .bashrc source ~/.bashrc Now when you run history you should get a output similar to the one [...]
Continue reading...Saturday, August 8, 2009
Have you ever wanted to update your twitter status from linux command line? Using curl you can do this. curl -u user:password -d status=”Your status message” http://twitter.com/statuses/update.xml Just simply replace user with your username password with your password and Your status message with the content of your latest tweet
Continue reading...Sunday, August 2, 2009
I am going to show you a way that I use to set the local time on my Linux servers. It really isn't that hard either. First, you should get NTP installed. apt-get install ntp ntpdate Next, just in case, make a backup of your already configured time. mv /etc/localtime /etc/localtime-backup Then we start to go into the process of [...]
Continue reading...Saturday, July 4, 2009
This tutorial will show you how to compile in a module for UnrealIRCd. You can find the official list of modules here. First step is to login to the server via SSH and go to the folder where UnrealIRCd is. Then you must go to the "src/modules" directory. cd src/modules Then, of course, you must download the file into [...]
Continue reading...
Sunday, August 30, 2009
0 Comments