0



Broken Comments

by Soddengecko @ 0:44   All | Site News   Permalink

It appears that the commenting system was broken. It has only just come to my attention after an upgrade pointed it out. It was an old plugin that I was using and it has now been deactivated until I can fix it.

Sorry to anyone who has tried posting a comment and it failed.




3



Why I hate Facebook morons

by Soddengecko @ 0:29   All   Permalink

There are a lot of posts and messages going around stating that you need to repost it to prevent Facebook from closing your account down. Let’s get this straight. This is obviously bullshit. I first had this message 3 weeks ago, I did not post it and fuck me if I am not still active on facebook.

Every single time you login to facebook, or post something about yourself or on someone elses wall, a timestamp will be created in the database that contains all the data facebook displays. This timestamp not only confirms when you last did something with your account, it also displays this on your news feed, ie. “so and so said this about an hour ago”. Any decent database design will have time stamping as a priority.

If facebook wishes to delete accounts older than 2 weeks they DO NOT need you to post anything, they can see that your account is active or not by querying said database.

Besides all this, it’s just bullshit marketing to keep people using facebook. Facebook is only interested in the money it can earn from adverts that facebook shows you. The more people log in and click these adverts, the more money it makes.

Come on people, use your heads and stop posting useless bollocks. It’s as bad as spam and those stupid fucking chain letter emails everyone sends out.

And we all hate spam right?




0



Ubuntu Install Screenshots

by Soddengecko @ 20:39   Downloads | Linux / Unix | Tech   Permalink

I have taken a load of screenshots of the Ubuntu Server install process. It is probably slightly outdated by now as the Karmic has been released but you will get the general idea and can use them in any tutorial you see fit. I have prepared a zip file so you can grab them all easy enough.

Ubuntu Install Screenshots.zip

1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg
12.jpg
13.jpg
14.jpg
15.jpg
16.jpg
17.jpg
18.jpg
19.jpg
20.jpg
21.jpg
22.jpg
23.jpg
24.jpg
25.jpg
26.jpg
27.jpg
28.jpg
29.jpg
30.jpg
31.jpg
32.jpg
33.jpg
34.jpg
35.jpg

Ubuntu Install Screenshots.zip




0



HOW TO: Move Ubuntu Home folder to another drive

by Soddengecko @ 20:31   Code | Linux / Unix | Tech   Permalink

Having the “/home” directory tree on it’s own partition has several advantages, the biggest perhaps being that you can reinstall the OS (or even a different distro of Linux) without losing all your data. You can do this by keeping the /home partition unchanged and reinstalling the OS which goes in the “/” (root) directory, which can be on a seperate partition.

But you, like me, did not know this when you first installed Ubuntu, and have not created a new partition for “/home” when you first installed Ubuntu. Despair not, it is really simple to move “/home” to its own partition.

First, create a partition of sufficient size for your “/home” directory. You may have to use that new hard drive, or adjust/resize the existing partition on your current hard-drive to do this. Let me skip those details.

Next, create and mount the new partition:
$mkdir /mnt/newhome
$sudo mount -t ext3 /dev/hda5 /mnt/newhome

(You have to change the “hda5? in the above to the correct partition label for the new partition. Also, the above assumes that the new partition you created is formatted as an ext3 partition. Change the “ext3? to whatever filesystem the drive is formatted to.)

Now, Copy files over:
Since the “/home” directory will have hardlinks, softlinks, files and nested directories, a regular copy (cp) may not do the job completely. Therefore, we use something we learn from the Debian archiving guide:
$cd /home/
$find . -depth -print0 | cpio -null -sparse -pvd /mnt/newhome/

Make sure everything copied over correctly. You might have to do some tweaking and honing to make sure you get it all right, just in case.

Next, unmount the new partition:
$sudo umount /mnt/newhome

Make way for the new “home”
$sudo mv /home /old_home

Since we moved /home to /old_home, there is no longer a /home directory. So first we should recreate a new /home by:
sudo mkdir /home

Mount the new home:
$sudo mount /dev/hda5 /home

(Again, you have to change “hda5? to whatever the new partition’s label is.)

Verify that everything works right.

Now, you have to tell Ubuntu to mount your new home when you boot. Add a line to the “/etc/fstab” file that looks like the following:

/dev/hda5 /home ext3 nodev,nosuid 0 2

(Here, change the partition label “hda5? to the label of the new partition, and you may have to change “ext3? to whatever filesystem you chose for your new “home”)

Once all this is done, and everything works fine, you can delete the “/old_home” directory by using:
$sudo rm -r /old_home

Or you can keep the old one as a backup




0



HOW TO: Random password generator on Ubuntu and other Linux systems

by Soddengecko @ 20:25   All | Code | Linux / Unix   Permalink

Recently I had need to generate random passwords. I did not want to make a script for it and I certainly did not want any applications to do the tasks. Here is the command line argument for such a task:


</dev/urandom tr -dc A-Za-z0-9_ | head -c8


Note that the ‘tr’ strips out everything except characters in the ranges (alphanumeric, mixed case and underscores). This is a nice approach as piping to head means the minimum number of bytes required to generate a password of appropriate length are taken from /dev/urandom vs other methods which take more than you should need but still have a chance of not having obtained enough random data to generate a password of the required length. You can change the parameter to head to get passwords of any length.

NOTE: I have only run this command on Ubuntu, its possible it works on other Linux systems but I have not checked.

News from the BBC


    Warning: DOMDocument::load() [domdocument.load]: Space required after the Public Identifier in http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml, line: 1 in /home/gecko/public_html/rsslib.php on line 91

    Warning: DOMDocument::load() [domdocument.load]: SystemLiteral " or ' expected in http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml, line: 1 in /home/gecko/public_html/rsslib.php on line 91

    Warning: DOMDocument::load() [domdocument.load]: SYSTEM or PUBLIC, the URI is missing in http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml, line: 1 in /home/gecko/public_html/rsslib.php on line 91

Contact