Thursday, 11 June 2009

How to mount Windows (SMB/CIFS) shares in Linux (Ubuntu)

1. Install smbfs package
sudo aptitude install smbfs

2. Create the directory where you will mount the share
mkdir /mnt/share

3. Create a file to store the credentials...
nano /etc/cifspw
...and enter the username/password
username=enter_username
password=enter_password

4. Edit fstab to mount the share at startup
sudo nano /etc/fstab

//server/share /mnt/share/ cifs credentials=/etc/cifspw,domain=DOMAIN 0 0

5. Mount the share
sudo mount -a

Sunday, 7 June 2009

Creating Ringtones for iPhone using iTunes

1. Select the song you want to convert to a ringtone in iTunes. Right-click and choose 'Get Info'. Click the Options tab. Set the Start and Stop time for the sample (no more than 30 seconds). Click OK.

2. Right-click the song in iTunes again and select 'Create AAC Version'. This will create a sample of the original track in iTunes to the length you set in step 1.

3. You can now set the original song's start / stop time back to how it was (undo step 1).

4. Right-click the sample track in iTunes and select 'Show in Windows Explorer'.

5. Drag the new file to your Desktop (or any other folder).

6. Delete the sampled track from iTunes (right-click, delete). The file can be moved
to the Recycle Bin.

7. Browse to the copy of the track you made in step 5. Right-click and rename. Change the extension from .m4a to .m4r.

8. Import the file back into iTunes (File -> Add File to Library) and it will be added to your library as a Ringtone.

That's it!