Monday, December 13, 2010

"Networking is disabled" bug

When the system sleeps/power drains out completely, on subsequent reboots, the network is disabled. Both the wired and wireless n/w is disabled.

I tried the following steps to get this rectified.

1) network-manager applet and check enable network.
2) /etc/init.dNetworkManager restart
3) run service network-manager stop
    rm /var/lib/NetworkManager.state
    service nework-manager start
4) ifconfig wlan0 up

Please feel free to suggest any better solutions.

Sunday, December 5, 2010

Viewing WMV files in Ubuntu10.04

Step 1 Add the Medibuntu repositories to sources

Code:
sudo vim /etc/apt/sources.list
by adding this at the bottom of the file then saving
Code:
#medibuntu repo
deb http://packages.medubuntu.org/ lucid free non-free
Step 2 Update for that change to take effect
Code:
sudo apt-get update
Step 3 Install the w32codecs [you won't find it if Medibuntu repositories are not in place]
Code:
sudo apt-get install w32codecs
Step 4 Install mplayer

Code:
sudo apt-get install mplayer

After this, I hit a bug where the audio was playing but the video was not..
I get the following message when trying to play a movie.

"Error opening/initializing the selected video_out(-vo) device"

To solve this,

open the .mplayer/gui.conf file and edit the vo_driver to x11.

vim.mplayer/gui.conf
vo_driver = "x11"