23. September 2009

0 Comments

Setting up passworded directories on lighttpd

Open your lighttpd.conf If mod_auth isn't already in your server.modules list add it e.g Add the two following lines to your configuration For each directory add a block something similar to be one below for generating your htpasswd you'll need to install apache2-utils and then use htpasswd to generate it Reload the lighttpd config and [...]

Continue reading...

30. August 2009

0 Comments

IPTables and Bashrc Aliases

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

15. August 2009

0 Comments

Grabbing and Sending files and folders over SSH

SCP allows you to transfer files over ssh between computers Copying to remote machines To copy a file to a remote machine run the following If you want to copy a directory you would use -r which would look like this and if you want to specify a SSH port use -P which would look [...]

Continue reading...

13. August 2009

0 Comments

Resetting your mysql root password

First of all we need to stop mysql Create a mysql table dump to reset the password Now we need to start mysql in safe mode and import the mysql table dump Finally we need to kill mysql and start it in normal mode Your password should now be reset to the one you specified [...]

Continue reading...

12. August 2009

0 Comments

Howto Add time And Date To Your Bash History

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 Then reload your .bashrc Now when you run history you should get a output similar to the one below Some other bash history [...]

Continue reading...
Page 2 of 121234510...Last »