Archive for the ‘Operating Systems’ Category

Automount samba drives

May 30th, 2011 No comments

I have a network share that gets backups sent to it automatically, so I want to have the network drive automatically mounted on bootup, so the backups will work. You’ll need to make sure you have smbfs installed and then open fstab and edit it.

sudo apt-get install smbfs
sudo gedit /etc/fstab

Add the following to the fstab

# My Network Drives
// /media/media cifs credentials=/home/michael/.mediaserverCredentials,rw,iocharset=utf8,_netdev,uid=1000,gid=1000 0 0
  • _netdev is supposed to make it not try to mount the drive until the network is up and going.
  • credentials is where your access credentials are stored
  • cifs is the samba file system type
  • uid is the user id, exclude for root
  • guid is the group id

You will need to create your .mediaserverCredentials

sudo gedit /home/michael/.mediaserverCredentials

and add the following to it.


obviously you will need to put your username and password, and change the paths to something for you. You may want to use /etc/samba/ as a location to store the credentials file. You need to make sure that the file is owned by root, and only readable to root.

sudo chown root:root /home/michael/.mediaserverCredentials
sudo chmod 400 /home/michael/.mediaserverCredentials

I’ve seen it mentioned places to update the unmount order to prevent hanging during shutdown. I’m not sure if this is necessary or not.

sudo update-rc.d -f remove
sudo update-rc.d stop 15 0 6 .
Categories: Operating Systems Tags: , ,

Automount drives based on UUID

May 29th, 2011 No comments

I wanted to be able to automatically mount my drives by adding them to fstab. I have done it before, but I have used the /dev/sdb1 syntax. I have noticed a problem when I unplug the drives, and plug them back into a different SATA controller. When I do that it changes the /dev/sd## to something else. I have learned that if you use the UUID in the fstab, then this issue doesn’t really arise.

First off is to determine the UUID of the drives that you have mounted. Enter the following in the command line.

sudo blkid

It will return something like

/dev/sda1: UUID="6413b21e-ec40-4d80-8103-da8ea5fbbd30" TYPE="ext4" 
/dev/sdd1: UUID="08ae0157-7718-4e3d-be15-11a3b2802148" TYPE="ext3" 
/dev/sdd5: UUID="e580e4fe-4aed-4ea9-bcac-8ab9220414db" TYPE="swap" 
/dev/sdb1: LABEL="Seagate320" UUID="ce09b320-c7b3-4d7c-a192-a2d55208473c" TYPE="ext3"

You can also run “sudo fdisk -l” if you want more information about the different /dev/sd## drives. Otherwise if you can tell from the results which UUID you want then theres no need for “sudo fdisk -l”. The drive I am going to add to fstab is the “Seagate320” drive.

sudo gedit /etc/fstab

Add the following to the fstab file

# My Local Drives
UUID=ce09b320-c7b3-4d7c-a192-a2d55208473c /media/Seagate320/ ext3    defaults,errors=remount-ro 0       1

Next time you reboot the drive will automatically be mounted.

Categories: Operating Systems Tags: , ,

LAMP with Ubuntu

April 21st, 2011 1 comment

I have a new install of Ubuntu 11.04 beta installed on a machine, and I wanted to use it to do some web development, so I needed to install Apache2 with PHP5 and MySQL. All I needed to do was run a simple command.

sudo apt-get install mysql-server mysql-client apache2 php5 libapache2-mod-php5

You’ll then need to restart apache to get php working.

sudo /etc/init.d/apache2 restart

You may view you phpinfo by editing a file in /var/www/

sudo gedit /var/www/info.php

add the following to the info.php.

<?php phpinfo(); ?>

Now visit http://localhost/info.php to view your php info. You may also want to add additional things to php5. You may search the repository using

sudo aptitude search php5

Then once you found what other things you’d like to have installed you may do so by entering something like

sudo aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json

Usually I need to have mod_rewrite enabled for my applications to work.

sudo a2enmod rewrite

Finally you may want to install phpmyadmin for working with your MySQL databases

sudo apt-get install phpmyadmin
Categories: Operating Systems Tags: , , , ,

Zotac HD-ID11-U 1GB memory

March 13th, 2011 No comments

I have been using my Zotac HD-ID11-U Zbox for a little bit now.  Recently I found a stick of 1GB DDR2 6400 ram sitting around my house.  I believe that I originally bought it to put in my Acer REVO 1600, but I haven’t been seeing any playback problems with it.  The Acer only has 1GB of ram in it currently, and I had read articles about it needing 2GB if you want to be ably to do 1080 video.  I don’t have any 1080 videos, because they take up too much space on the server.  Actually it’s mostly likely because I don’t have a 1080p tv.  So here is what I’m going to change I am going to remove:

  • CORSAIR VS2GSDS667D2 2GB 200-Pin DDR2 667 (PC2 5300) Memory
    • Newegg Item #: N82E16820145172
    • Price: $29.99 (Free with Zotac)

and replace it with

  • Crucial CT12864AC800 1GB 200-Pin DDR2 800 (PC2 6400) Memory
    • Newegg Item #: N82E16820148165
    • Price: $23.99 (2010/02/13)

I don’t think that I should have any problems with this setup.  The Zotac has dedicated memory for the video card, where the Acer Revo does not, this means that the Zotac should have more memory available for the system to use.

The reason that I am doing this, is so that I can put the 2GB stick of ram in my laptop.  Currently it only has 2.5GB of ram.  A 2GB stick (same as listed above), and one of the 512MB sticks that came in the laptop.  This should help out running those virtual machines.

Categories: Operating Systems Tags: , ,


March 12th, 2011 1 comment
Conky Desktop

Conky Desktop

Conky is a free, light-weight system monitor for X, that displays any information on your desktop. Conky is licensed under the GPL and runs on Linux and BSD. The biggest issue that I have had with conky is setting it up.

It’s kind of a pain to get everything up and running just right.  Recently I ran across CONKY-colors. It is a nice little program to help you set up conky. To get CONKY-colors to work properly you will have to do several things.

Read more…

Misc Bash Scripts

August 1st, 2010 No comments

Here are a few little bash scripts that i use to do different things on my ubuntu machine.  I can’t always remember them, so I have to write them down somewhere. Hopefully someone else will find these useful too.  Visit for some other command line basics. Read more…

Categories: Operating Systems Tags: , , ,

Clone VirtualBox Machine

July 22nd, 2010 No comments

I wanted to make a new copy of a virtual box machine that I have. It’s an install of Windows XP which has some modifications done to it with nLite.

You have to first clone the hard drive with the VBoxManage command, or else there will be issues with the UUIDs being the same.
Read more…

Categories: Operating Systems Tags: , ,

Ubuntu 10.04 LTS

April 21st, 2010 No comments

Looks like I’ll be getting another new free operating system.  If you use both two different operating systems like my you may want to try dropbox, to sync your files between the two.

Categories: Operating Systems Tags: ,

Ubuntu 9.10

October 25th, 2009 No comments

Aren’t we all excited?  Actually I’m the only one in my family and friends that I know to use Linux daily as a desktop. There are a couple that have linux servers floating around. Anyway I should have posted this a while ago.  I’ve been looking forward to the new version of Ubuntu for a while now.  Also the new looks like it will be a nice little feature.  Similar to dropbox, but linux only.

Categories: Operating Systems Tags: ,

AT&T Tilt Custom ROM – Dutty’s Diamond V1

June 14th, 2008 2 comments

I’ve been running Dutty’s Official WM6.1 5.2.19209 UC ROM for about a month and a half now, so naturally it was time to see if I could tweak my phone a little more. There have been a few new developments in the ROM Cooking world. The chefs have figured out how to get the keyboard layouts from the new HTC Diamond ROM and put them into the ROMs for the Tilt.

Read more…