Skip to content

Instantly share code, notes, and snippets.

@ps
ps / gist:7664902
Created November 26, 2013 19:46
Changing where localhost points to in Ubuntu 12.10
-Navigate to /etc/apache2/sites-enabled
-sudo vim into the default file (000-default)
-Change DocumentRoot and second <Directory> path to the path where you want localhost to point to
-sudo service apache2 restart
-DONE!
@ps
ps / gist:6766407
Last active December 24, 2015 07:49
Ubuntu 12.10 Fixes
Fix 1
---------------------------------------------------
From time to time I'll get a clicking sound from my hard drive, I have identified it to be HDD head parking problem. The fix that has worked for me was the following:
Temporary solution: sudo hdparm -B 255 /dev/sda
sudo vim /etc/hdparm.conf
Unfortunately after sleep or reboot the heads parking property resets back to default. I don't want to run this command every time so I came upon a fix in ArchLinux which put a bash script in a folder that executes everything in it on awake/power on.
In Ubuntu 12.10 I placed my script in /etc/pm/power.d and /etc/pm/sleep.d