Author Archives | Duffy

Duffy - who has written 47 posts on Tuts4Tech.

I am the owner of this website, please feel free to ask me any questions you have

Contact the author

Setting up passworded directories on lighttpd

Wednesday, September 23, 2009

0 Comments

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

Grabbing and Sending files and folders over SSH

Saturday, August 15, 2009

0 Comments

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

Resetting your mysql root password

Thursday, August 13, 2009

0 Comments

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

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

How to flush your dns cache

Saturday, August 8, 2009

0 Comments

Windows Firstly open a cmd box by going to start > run > cmd Then flush your dns by running the following: OSX Open your terminal Run the following command: Linux Just run the following:

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