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
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...Saturday, August 15, 2009
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...Thursday, August 13, 2009
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...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 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...Saturday, August 8, 2009
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...
Wednesday, September 23, 2009
0 Comments