Tuesday, 28 May 2013

How To Require a Username at Login

I've always kind of liked the extra security that came with having to enter your username as well as your password at login. It also, I find, looks better.

Here's how to do it.

1. Open the following file in a text editor...

/etc/lightdm/lightdm.conf

2. Simply Add the following lines...  

greeter-show-manual-login = true 
greeter-hide-users = true 
allow-guest = false

3. Save, restart and see the effects!

Monday, 27 May 2013

An Idiots Guide to Installing Truecrypt Quickly and Easily in uBuntu 12.04+

So Truecrypt isn't available in the software centre any more which is a bit of a pain but it's one of those bits of software you can't really do without.

Not to worry.

1. Open up the terminal and type:

For 32bit systems...

wget http://www.truecrypt.org/download/truecrypt-7.1a-linux-x86.tar.gz

Or for 64bit systems...

http://www.truecrypt.org/download/truecrypt-7.1a-linux-x64.tar.gz

2. Extract it... 

tar -zxvf truecrypt*.gz

3. And install it... 

sudo ./truecrypt-7.1a-setup-x86  

And your done!

Sunday, 28 April 2013

Determine the size of each individual file in a folder from Terminal: ls -l

So for some reason you've got a folder with loads of files in it and you want to find out their contents using the terminal. The solution is quite easy.

1. Enter sudo -i & your password to prevent any annoying permission denied messages.

2. Enter ls -l /home/yourname/folder or whatever the path to your folder is. 

And that's it. Easy.

Quickly Cut and Trim Any Video File

So you've got this video file that's taking up a lot of space. You've noticed it's 2-3 hours long but really you only need 20-30 minutes of it. This is going to show you how to chop it up.

Open the terminal and enter this command, changing (00:15:00 -t 00:45:23) to whatever length you're looking for and original.mp4 & output.mp4 as appropriate.

ffmpeg -acodec copy -vcodec copy -ss 00:15:00 -t 00:45:23 -i original.mp4 output.mp4

So that command above would take the original.mp4 file and create a smaller output.mp4 file consisting of original.mp4's 15 minute mark to 45 minute 23 mark.

If you prefer a GUI can also do this using AviDemux available from the software centre but from my experience this takes a longgg time (it needs to build the file - or something) whereas in the terminal it takes a matter of seconds.

Monday, 22 April 2013

How to play a Video with a Vorbis.acm (vo3+) Audio Codec - uBuntu 12.10

Lately I've been getting the following error when trying to play video files:

"No suitable decoder module: VLC does not support the audio or video format "vo3+". Unfortunately there is no way for you to fix this."

We'll see about that.

It's an audio codec problem (duh) and the absent codec is vorbis.acm, which if my casual Google searches are correct is a Japanese codec.


My initial thought was simply install the codec but I found a faster method. However, it's available here, if you're willing to go that route.



But here's what I did (this should take about 20-25 minutes)

1. Install Avidemux from the software centre.

2. Open the file and rip the audio.

   Open -> File (Open the video file with the vo3+ audio)

   Audio -> Save (This'll rip the audio to a location of your choosing)

It's a good idea to save the audio in Home to make the next step easier.

3. Download ogmtools (available from software centre) and run ogmdemux.

   ogmdemux -nv -v /home/username/sample.ogg (or wherever your file is located)

(-nv because there's no video stream, -v to show the process in terminal)

The output file should be in your home folder, regardless of where the input file was.

4. Install Sound Converter from the Software centre.

So by now you should now have a working audio file still in .ogg format.
All that's left is to tack it back to the original video.

Open the audio file in Sound Converter then go

   Preferences -> Type of Result -> mp3

Then hit convert. This should take a few minutes depending on how big your file is and the quality you want it to be in. Afterwards you should have a working .mp3 audio file.

5. Last step - Open Avidemux again then open the video file.

   Audio -> MP3-Lame (Drop down menu - Change from Copy)

Now this time from the top menu:

   Audio -> Main Track -> External Mp3 -> (Select mp3 File)

Finally:

   File -> Save -> Save Video

And you should now have a video file with working audio.

Sponsored Links

Wednesday, 13 March 2013

Change Background of Login Screen in uBuntu 12.10

Annoyed and bored with the same standard login screen? Here's how to turn it into one of your own images.

1. Open the Terminal

2. Type sudo -i and enter your password.

3. Type xhost +SI:localuser:lightdm

4. Type sudo su lightdm -s /bin/bash

5. Type gsettings set com.canonical.unity-greeter draw-user-backgrounds 'false'

6. Type (replacing imagelocation.jpg with the location of your chosen image) gsettings set com.canonical.unity-greeter background '/imagelocation.jpg'

7. Type gsettings set com.canonical.unity-greeter draw-grid 'false' to remove the dotted lines uBuntu that appear.

Restart uBuntu and you should be good to go!

Friday, 1 March 2013

How to Adjust Launcher Icon Size

You can adjust the size of the icons on your uBuntu 12.10 launcher.

1. Click the Control Gear in the top right hand corner.

2. Select "System Settings"

3. Then "Appearance" under "Personal".

4. In the Look tab it should display your desktop background.
At the bottom drag there should be a slider "Launcher Icon Size" which will allow you to change the icon size.