Watch a movie on the Ubuntu10.04 Console

Source: Internet
Author: User
If you think watching a movie on the Ubuntu10.04 console is cool or you think your terminal resolution is too low, you can read this blog post. The principle is: Enable framebuffer and install mplayer. 1. when I enable the kernel's support for framebuffer, I found that there are many framebuffer modes and I don't quite understand the differences between them. However, under Ubuntu10.04, vesafb and nvidiafb are not doing well and can be used, however, the color resolution is low.

If you think watching a movie on the Ubuntu 10.04 console is cool, or you think your terminal resolution is too low, you can read this blog post.

The principle is: Enable framebuffer and install mplayer.

1. Enable kernel support for framebuffer
I found that there are many framebuffer modes and I don't quite understand the differences between them. However, under Ubuntu 10.04, vesafb and nvidiafb are not doing well and can be used, however, the color resolution is low (maybe the method I used is incorrect). www.linuxidc.com finally read others' posts and changed to uvesafb to OK.

In short, there are three things to do: one is to install uvesafb, the other is to enable kernel support for uvesafb, and the other is to set and update grub2 settings to enable the kernel to start with framebuffer.

You need to install uvesafb and check the resolution of the fb supported by your video card ::
Sudo apt-get install v86d hwinfo
Sudo hwinfo -- framebuffer

Modify the kernel Configuration:
Sudo gedit/etc/initramfs-tools/modules
Add a line at the end
Uvesafb mode_option = 1600x900-24 mtrr = 3 scroll = ywrap
Update Kernel configuration:
Sudo update-initramfs-u

Modify grub2 Configuration:
Sudo gedit/etc/default/grub
Change:
GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash nomodeset video = uvesafb: mode_option = 1600x900-24, mtrr = 3, scroll = ywrap"
GRUB_GFXMODE = 1600x900
The red part is changed, and the resolution is selected based on the above hwinfo. (If the preceding "#" must be removed .)
Update grub2 Configuration:
Sudo update-grub


2. mplayer Installation
Sudo apt-get install mplayer
However, you may need a decoder to play rm, rmvb, and other media. Go to cn99 to find it:

32-bit version: http://ubuntu.cn99.com/ubuntu-cn/medibuntu/pool/non-free/w/w32codecs/w32codecs_20100303-0.0medibuntu1_i386.deb
64-bit: http://ubuntu.cn99.com/ubuntu-cn/medibuntu/pool/non-free/w/w64codecs/w64codecs_20071007-0medibuntu2_amd64.deb

3. Use
[Sudo] mplayer-vo fbdev moviename. rmvb
It seems that some machines do not require superuser permissions. However, my machines are actually needed and I don't know where to configure them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.