25. September 2009

1 Comment

Installing freedesktop sound theme in debian

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

23. September 2009

0 Comments

Setting up passworded directories on lighttpd

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

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

13. August 2009

0 Comments

Resetting your mysql root password

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...
Page 2 of 121234510...Last »