Duffy - who has written 48 posts on Tuts4Tech.
I am the owner of this website, please feel free to ask me any questions you have
I Recently found the 'system sound' tab in gnome-sound-property grayed out my work around to this was to install the freedesktop sound theme. Firstly remove gnome-audio sudo apt-get remove --purge gnome-audio Remove all your old users gconf data related to system sounds sudo rm -rf /home/*/.gconf/desktop/gnome/sound Install some needed packages sudo apt-get install libcanberra-gtk-module libcanberra-gtk0 [...]
Continue reading...Wednesday, September 23, 2009
Open your lighttpd.conf nano /etc/lighttpd/lighttpd.conf If mod_auth isn't already in your server.modules list add it e.g server.modules = ( "mod_alias", "mod_accesslog", "mod_fastcgi", "mod_auth", "mod_cgi", "mod_expire", "mod_redirect" } Add the two following lines to your configuration auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/home/lighttpd/htpasswd" For each directory add a block something similar to be one below auth.require = [...]
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 scp ~/file/to/be/transfered username@hostname:~/destinationfolder If you want to copy a directory you would use -r which would look like this scp -r /folder/to/be/transfered username@hostname:/path/to/destination and if you want to specify a [...]
Continue reading...Thursday, August 13, 2009
First of all we need to stop mysql /etc/init.d/mysql stop Create a mysql table dump to reset the password UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root'; FLUSH PRIVILEGES; Now we need to start mysql in safe mode and import the mysql table dump mysqld_safe --init-file=/path/to/mysql/table/dump & Finally we need to kill mysql and start it in [...]
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 [...]
Continue reading...
Friday, September 25, 2009
1 Comment