Showing posts with label video. Show all posts
Showing posts with label video. Show all posts

Sunday, 29 June 2014

Eric The Half-A-Bee

Over the last couple of days, I've been using Allen Downey's excellent resources for brushing up my Python skills. For my interpreter, I use the Eric Integrated Development Environment and it works flawlessly on the laptop. However, I couldn't get it to install on the Dimension 8400. Summoning the application from the terminal resulted in a segmentation fault.

Fortunately, if you experience the same problem, you can install the program manually:

Download the latest stable version from the Eric SourceForge page to your Download folder. Select the latest version, and from the following directory, select the .tar.gz file. Then, when your file has downloaded, navigate to the file in the file manager of your choice, right-click the file and select the Extract Here option.

Open a terminal and change your directory to the extracted folder:

cd /home/[user_name]/Downloads/ericversion_number

Now, install the program with:

sudo python install.py

That's it! Now you can enjoy Monty Python's track, Eric the Half-A-Bee.

Sources & Reference:

Wednesday, 4 June 2014

By Popular Demand - Fixing On-Demand Video in Mint 16

After a brutal shift at work, all I wanted to do this afternoon was crash in front of the TV but I got home to find that I had no signal. So, I thought I'd catch up with some on-demand TV from Channel 5 but I couldn't get any video to play via Chromium on any of my Mint 16 systems.

A little research suggested that installing the (now deprecated) hardware abstraction layer (HAL) should get everything except Amazon Prime working. If I've understood the concept correctly, HAL is (more accurately, was) simply a generic way of allowing the OS to access the system hardware regardless of type: conceptually, I think of it as a universal translater! Installing it on Mint 16 is simple. First you need to close Chromium and add a new PPA:

sudo add-apt-repository ppa:mjblenner/ppa-hal

Next, install HAL:

sudo apt-get update && sudo apt-get install hal

This was all that was needed on the DELL Dimension 8400, but I needed to reboot the Aluetia for the changes to take effect. It was worth it though, TV always looks better on a bigger screen!

Sources & References:

Tuesday, 3 June 2014

Mint 16: XServer Fails on Live Disk

I've been playing around with an old Fujitsu Siemens Amilo laptop but couldn't get the Mint 16 Live Disk to boot to the live desktop: from the welcome screen I could only get an error message that XServer had failed. The Amilo graphics are listed as VIA/S3G UniChrome Pro IGP which require the OpenChrome video drivers in Ubuntu and its derivatives.

I have managed to get to a low resolution live desktop (using a USB Live Disk) by tweaking some guidance on the Linux Mint Forums:

From the Linux Mint Welcome screen, I selected Start Linux Mint and then hit Tab. The following code appears under the menu:

/casper/vmlinuz noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz quiet splash --

Playing around with the options, I found that replacing the quiet splash -- element with nouveau.modeset=0 gave me the best result: booting without error to the low-res desktop. My code looked thus:

/casper/vmlinuz noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/linuxmint.seed boot=casper initrd=/casper/initrd.lz nouveau.modeset=0

This code isn't persistent so it won't survive a reboot. However, the advice is that the kernel can be amended to make the change permanent after installation: but, as this isn't my system, I haven't tested that advice!

If you receive the XServer error after changing the code, simply restart X at the prompt:

startx

Then check to make sure that you're using the correct amendments for your graphics.

I've been worrying at this for several days and was about to give up so I'm pretty chuffed that I've got it resolved. That said, I'm not sure that the owner will want to go to the trouble of changing the system on hardware that is this ancient - time will tell!

Sources & References:

Sunday, 27 April 2014

Chromium Flash Player in 14.04 LTS

If, like me, you're not a big fan of Firefox, you may prefer an alternative browser - I like Chromium, but in 14.04 flash player is not enabled by default. In 14.04 the fix is fairly straight forward, in a terminal, copy & paste:

sudo apt-get install pepperflashplugin-nonfree

Followed by:

sudo update-pepperflashplugin-nonfree --install

If restarting your browser doesn't enable flash video, rebooting my PC worked for me.

Sources & References:

Tuesday, 23 April 2013

Seeing Clearly

My refurbished PC is up and running but I wanted to share my screen using a VGA switch. This had a disastrous effect on Ubuntu's appearance as the OS didn't seem to be able to detect the screen's native resolution through the switch although it had no problems when I plugged the cable directly into the video card.

There's a fair few solutions on the web, but I couldn't seem to make any work, so I cobbled together a fix which, although not particularly elegant, does work (for me). Simply put, I automate a command at startup that adds the desired resolution and forces Ubuntu to adopt it as the default.
There are a couple issues with my solution:
  • The script runs at startup not at boot, so I'm stuck with a low-res login screen.
  • The script (initially) runs too early giving me some weird video effects until the resolution had been reset.
  • This will only work for my login
As I'm the only user, I don't have to worry about multiple fixes. Moreover, I've fixed the second issue and resolved to live with the first. Here's how I solved the problem:

First of all, ascertain the monitor's native resolution. I just Googled mine, but if you have the manual, the information is probably in there. My resolution is 1280x1024 with a refresh rate of 60Hz. Now create the resolution in Ubuntu. Open a terminal and type:

sudo cvt 1280 1024 60

Change the values to suit your monitor (horizontal, vertical, and the refresh rate). The output of this command will look similar to that below.

# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync


We're interested in the second line (the one starting Modeline): we'll be using this information in our script later.

Next, determine the Output Port Name (aka monitor designation). In your terminal, type:

sudo xrandr -q

The output of this command gives you information about your monitor and how it's connected to the PC. The output will depend on the video driver in use; for my analogue connection, the port name is VGA-0. If you're uncertain which designation is correct, look here (under Output Port Names) to see which is the most likely.
Now prepare the script that will run at startup. Open a text editor such as Gedit with:
sudo gedit /home/username/.resfix
Then:
#!/bin/bash
      # Fix screen resolution at boot via VGA switch
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode VGA-0 1280x1024_60.00
xrandr --output VGA-0 --mode 1280x1024_60.00


Change the values (in red) to suit and then save and close your file. Next, make the file executable. In a terminal:

sudo chmod a+x /home/username/.resfix

Now add the script to the startup routine. The easiest way to do this is via the shutdown button - just select Startup Applications... from the dropdown menu. In the Startup Applications Preferences dialog, click Add. Now complete the Edit Startup Program:
  • Name: anything you want!
  • Command: /home/username/.resfix
  • Comment: something useful!
One last thing to do and that's to delay the script so that it minimizes the weired video. In a terminal:

sudo gedit /home/username/.config/autostart/.resfix.desktop

At the end of the file, add the following:

X-GNOME-Autostart-Delay=15

The number is the time in seconds that you want to delay your script: change yours to suit. Reboot for your changes to take effect.

Sources &References:

Monday, 13 June 2011

U(buntu)Tube

New blogs are always difficult to get going - finding new material or drafting howtos takes time. Imagine then, the difficulty of starting and maintaining a YouTube channel dedicated to Ubuntu!

Well, just such a channel popped up on YouTube a couple of weeks ago. There's only four videos to date, but the production quality is excellent even though the videos are (so far) little more than advertising vignettes.

The seven minute video on the Ubuntu Font Family is the certainly worth a watch and it'll be interesting to see how this channel develops.

Here's a taster to whet your appetite...

Sources & References:

Tuesday, 10 May 2011

Quick Dash

One of the recent additions to the GUI in Ubuntu 11.04 is the Unity Dash: it's a Gnome Menu replacement that allows users to search for and launch applications.

You can launch the dash window by clicking the Distributor icon (the Ubuntu logo) on the Unity Panel or hitting the super key (aka the Windows key) on your keyboard.

The first thing to notice is the search function at the top of the panel: this facilitates predictive searching - displaying the results for applications and files as you type. As more data is added to the search string, so the results are refined:

The Dash home screen also provides shortcuts to common destinations and it won't take long for users to realize that the default values are media-based applications (such as Internet, photos, email, etc) rather than productivity-based! Clicking an option displays three categories of applications:
  1. Most Frequently Used
  2. Installed
  3. Available for Download
I like this last option; it's a bit like an app-store function that introduces you to a selection of the 35,918 applications available from the Ubuntu Software Centre.

More traditional users and access a Gnome-type menu via the drop-down control to the right of the search box:

So much for function: but what of fashion?

Clearly, Ubuntu is moving towards an Android-type interface and focussing more on social use. Whilst this is not necessarily a bad thing, there are some shortcomings!

Firstly, the Dash is dark and I find it a little depressing. Secondly, configuring Dash is as limited as configuring the Unity-Panel (see links). However, I suspect that as this release of Ubuntu (and the next) will start to rectify these issues and the Ubuntu GUI will once again become the home of eye-candy.

Sources & References
Ask Ubuntu How Can I Configure Unity?
Jorge Castro How I use the Unity Dash - video

Saturday, 9 April 2011

The First 20 Years

No, not my first twenty years; twenty years of Linux!

I came across this video when catching up on the news at OMG!Ubuntu! and thought that it would be rude not to share.