Duffy - who has written 49 posts on Tuts4Tech.
I am the owner of this website, please feel free to ask me any questions you have
A fork bomb is just a bash function that gets called recursively. Once a fork bomb is active on a machine it may not be able to preform normally until a reboot is made, as the only solution to the fork bomb is to kill all its processes.
Bash Functions
A fork bomb is really just a [...]
Friday, September 25, 2009
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 libcanberra0 gnome-session-canberra build-essential fakeroot dpkg-dev intltool [...]
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 [...]
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 SSH port use -P which [...]
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 normal mode
killall mysqld
/etc/init.d/mysql start
Your password should now [...]
Continue reading...
Wednesday, October 7, 2009
0 Comments