Friday, February 26, 2010

Ubuntu latest original Flash plugin

How to install latest version of original Flash plugin in Ubuntu.

Do under root:

Remove Ubuntu Flash package:
# apt-get remove flashplugin-nonfree

Install required libraries:
# apt-get install libnspr4-dev libnss3-dev

Download latest Flash plugin from:
http://get.adobe.com/flashplayer/

Install downloaded plugin:
# dpkg -i install_flash_player_10_linux.deb

Debian Ubuntu dual monitor KDE

KDE dual monitor setup short guide:

Start ControlPanel from KDE menu or by Alt+F2 or from console:
$ ControlPanel

Choose:
System settings / Display / Multiple monitors / Show unmanaged windows on

Choose your default monitor for new windows.

You can set positions, resolutions and rotation for each output by xrandr:

In console:
xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA-0 --auto --rotate normal --right-of LVDS

xrandr --output VGA-0 --auto --rotate normal --pos 0x0 --output LVDS --auto --rotate normal --right-of LVDS

Set equal contents for both outputs:
xrandr --output LVDS --same-as VGA-0

If the following error occurs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)

you have to change virtual desktop resolutions:

Open file /etc/X11/xorg.conf
Add to section "Screen" - SubSection "Display" item Virtual x y
where x and y is new resolution required by xrandr.

For example, if xrandr outputs:
xrandr: screen cannot be larger than 1280x1280 (desired size 2560x1024)

Add following line:

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 2560 1024
EndSubSection
EndSection

If you don't have any xorg.conf, you can (re)generate xorg.conf

Stop X Window:
Do as root from console:
# /etc/init.d/kdm stop
# /etc/init.d/gdm stop
# /etc/init.d/xdm stop
# killall X
# killall Xorg

Reconfigure:
# dpkg-reconfigure xserver-xorg

or:
# Xorg -configure

Done.

You can restart your X Window and reconfigure resolutions, positions and rotations for your monitors.

Ubuntu Linux WebCam

WebCam Acer TravelMate 5720.

Install under root:

# apt-get install luvcview guvcview
# depmod -ae

Done.

Test under regular user:

$ guvcview