Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Thursday, August 7, 2014

Get Rid of Stupid Disappearing Scrollbars in Ubuntu 12.04+

I have no idea how anyone thought disappearing scrollbars were a good idea, but I don't. Here's how to make the disappearing scrollbars disappear. In the terminal, type:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

Thursday, February 2, 2012

Change FourCC setting in Linux Using Mencoder

Sometimes an AVI video file will not play on my PS3, resulting in a "data type not supported" error message. I finally figured out the problem this time. It wasn't audio codec, and it wasn't the weird fps it had; It was a FourCC setting that was incompatible. I tried using cfourcc to do this, but it did not result in playable AVI files. So, I tried mencoder and it worked fine, all without remuxing.

mencoder <input-file> -oac copy -ovc copy -ffourcc XVID -o <output-file>

-oac stands for "output audio codec"
-ovc stands for "output video codec"
-ffourcc is for forcing the changing of the fourcc setting. The non-playable files had a FourCC setting of FMP4. I changed it to XVID, which made them playable.
-o is for output file

Example:

mencoder The.Big.Show.S01E03.avi -oac copy -ovc copy -ffourcc XVID -o The.Big.Show.S01E03-XVID.avi

Friday, December 2, 2011

Edit PDF Meta Data

Edit Existing PDF Meta Data:

pdftk book.pdf dump_data output report.txt

Now edit "report.txt" and save the changes.

Update the PDF with this new info:

pdftk book.pdf update_info report.txt output bookcopy.pdf

Wednesday, March 16, 2011

Easy CLI Commands for CD-ROM

To get information about CD media in a drive:

cdrecord -atip

To record a CD ISO image (i.e. the latest Linux release):

cdrecord -v the-filename.iso

Note: wodim is interchangeable with cdrecord.
Note: You may have to specify your optical drive by including, for example, /dev/cdrom in the above commands.

Sunday, August 15, 2010

United States English as Default Language

I chose English as my default language when installing Ubuntu, but still in some applications, especially in Firefox, the spell-checking would use Great Britain English (insisting that there is a "u" in "color" "favorite" and "behavior"). To change it to US English, simply navigate to a page in Firefox that has a text box (i.e. a web form to send an email or something), right click, choose Languages, and choose "English / United States."