Wednesday, 20 January 2010

video across multiple monitors

We set up a multiple monitor configuration in Linux in one of m previous posts. I was not able to do a strech of video across the dual monitors I set up.

Until, I came across this cool feature which VLC has, called "Wall" output.

It splits the video output for multiple screens working together. Like playing video on a wall of monitors.

Using it is simple, in the VLC menubar go to : (using version 1.0.3)

Tools -> Effects and filters -> Video Effects Tab -> Vout/Overlay tab -> Check the Wall option.

By default the video is split up into a grid of 2x2. We may adjust this grid size to have the number equal to the number of monitors we have.

Once we do this, and we drag the blocks to their respective monitors and full screen, We still may see Video size not being as big as expected. If this happens with you then you need to adjust the aspect Ratio of the video being played by going to :

Video -> Aspect Ratio -> Select the appropriate one for your screen size.

Once done, we again do a full screen Wall, and can see our video being played stretched across all our monitors.

You might also want to try options like Panoramix filter in the same option window as Wall. There are many others present there. Enjoy!

Tuesday, 12 January 2010

Create Live or Bootable USB pendrive for Linux or Windows

Creating bootable USB disks is now ever easier than before, thanks to a cool utility known as UNetBootin ... its easily available in popular distro repositories or you can download a version for yourself from here.

Nothing more needs to be spent on buying CD-Rs that wear due to scratches in some days and is a sheer waste of 10 bucks.

Steps :

1. Install UNetBootin from the repository or from the link provided above.

2. Procure the bootable ISO of the target operating system, it might be a Linux iso or a Windows iso.

3. Launch UNetBootin. And select the option "Disk Image" and then point to your iso. Select the target drive and press OK.

4. Its done! within some minutes.

I have tested the method for many Linux distros like Ubuntu, Debian, Arch Linux and others. also for Windows7. I will check this for the difficult Windows XP soon, with high hopes :)

configure IP adress with Linux

Well windows is quite straightforward when it comes to fixing up an ip address ... Linux is even more :)

open the file /etc/network/interfaces with sudo privileges in text editor and then edit accordingly

$ sudo gedit /etc/network/interfaces

Now copy paste the following :


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static # (specify the interface, eth0 is the default ethernet, static tells that the ip address is static)
address 10.108.10.131 #(ip address you want to configure)
netmask 255.255.255.0 #(the subnet mask if any)
network 10.108.10.0 #(the network mask, optional)
broadcast 10.108.10.255 #(the broadcast adress, optional )
gateway 10.108.10.2 #( the default gateway )
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 144.16.192.55 # (the dns server address)



Now this configuration can be done for iface wlan0 in case of a wireless connection...

Now issue the following commands at terminal :

$ sudo ifdown eth0
$ sudo ifup eth0

$sudo ifconfig :
to check the new ip address

this resets the ethernet and sets the static ip specified.

for Dynamic ip setting via DHCP, just give the command :

$ sudo dhclient

This would search for DHCP servers on all configured interfaces and set the ip addresses automatically if any found.

use multiple monitors with Linux

So you are planning to enjoy the convenience of multiple monitors with your linux system... here's a way to go about it...

1. Connect the external display/monitor to your computer/Laptop. Make sure its turned on.

2. use apt-get / yum whatever to install xrandr.

3. issue the following command at your command line : (for a laptop)

xrandr --output LVDS --mode 1280x800 --output VGA --mode 1024x768 --right-of LVDS

here the resolution of the LVDS(Laptop LCD) is 1280x800 and the external VGA monitor is 1024x768... the logical positioning of extended desktop would be the right of Laptop screen. There are several options in this regard like --left-of --above etc... refer to xrandr manpages for many other advanced options like panning etc.

If you get an error like

Maximum allowed size is blah blah etc..

then add a line to your /etc/X11/xorg.conf ..
Section "screen"
....

Subsection "Display"
...
virtual 2400 800 ( example, use a value which is higher then your resolutions added together )

now try the xrands command again, after restarting your X with Alt+Bkspace.

Hopefully your new monitor now comes to life... enjoy!

P.S. by default the external screen is made your default primary display... all panels are now visible on the external display... in GNOME you can easily add panels to the LCD screen as well and remove the ones from external if you want.