Tag Archive | "Linux"

IPTables and Bashrc Aliases

Sunday, August 30, 2009

0 Comments

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 [...]

Continue reading...

Howto Add time And Date To Your Bash History

Wednesday, August 12, 2009

0 Comments

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 [...]

Continue reading...

How to update your twitter status using curl

Saturday, August 8, 2009

0 Comments

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...

Setting Local Time on a Linux Server

Sunday, August 2, 2009

0 Comments

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 [...]

Continue reading...

How to Compile a UnrealIRCd Module

Saturday, July 4, 2009

0 Comments

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 [...]

Continue reading...
Page 1 of 3123