Create a multi-media Linux system on the character interface

Source: Internet
Author: User
Create a zero environment and target hardware for the multimedia Linux system on the character interface: one ThinkPadR52 notebook. Objective: to view images, listen to music, watch videos, and access the Internet over wireless in LINUX. 1 System installation 1.1 minimum installation system official website download CentOS6.4-mini... create a character Interface Multimedia Linux system

0 environment and goal
Hardware: one ThinkPad R52 notebook.
Objective: to view images, listen to music, watch videos, and access the Internet over wireless in LINUX.
1. system installation
1.1 minimum installation system
Download the CentOS 6.4-minimal image from the official website and burn the CD installation system. the system itself supports framebuffer.
1.2 enable framebuffer
Modify the/boot/grub. conf file and add the kernel startup parameter vga = 791 to start the framebuffer mode.
1.3 connect to the Internet and install tools

Configure the IP address of the wired network adapter to connect to the Internet.
Yum installs pciutils and usbutils to View hardware devices.
Install wget in yum to download the source package.
2. we want to listen to music, watch movies, and watch pictures.
2.1 Sound card test
Yum installs alsa-utils to test the working status of the sound card. the system itself supports the sound card of this notebook. lspci can see the sound card information.
Run the alsamixer command to adjust the volume and run aplay to play an audio file in wav format. the sound card works properly when the sound is generated.
2.2 install mplayer in source code, supporting most audio and video files
Download the mplayer source code and codec library from the official website, decompress the codec library, and extract all the content in it (note that it is not the folder itself, but the content in the folder after decompression) put it under/usr/local/lib/codecs.
Download yasm, which needs to be used when compiling mplayer. I don't know why I can't download it on the official website. I finally downloaded it from CSDN.
Decompress the mplayer source code and follow README instructions to compile and install the code (no GUI is required). The compilation takes a long time and you can wait patiently.
2.3 make mplayer sound
Mplayer uses the OSS standard sound-driven interface. Therefore, it is very easy to simulate OSS using ALSA, which is as follows:
Modprobe snd_pcm_oss
Now, mplayer can play most audio and video correctly, including mp3 and rmvb.
2.4 View images
First, install libpng and libjpg libraries in yum, so that mgaview supports images in png and jpg formats.
Download the mgaview source code and compile and install it. Note: There will be two errors during compilation. you can modify the source code (with brackets ).
3. we need wireless Internet access.
3.1 install the Wireless Toolkit
Install wireless-tools and wpa_supplicant in yum to set wireless network card access to WIFI.
3.2 install wireless network card firmware
The system can correctly load the driver of the wireless network card. lspci can check the device. But you need to download the firmware file for the ipw2200-bss.fw to the/lib/firmware directory.
Run the iwconfig command to view the wireless network card information. the wireless network card name is eth1.
3.3 access WIFI
Run the iwlist scanning command to scan the currently visible SSID, find the desired one, and write down the ESSID name for backup.
Create the/etc/my_wpa_supplicant.conf file with the following content:
Ctrl_interface =/var/run/wpa_supplicant
Network = {
Ssid = "ESSID name noted down above"
Psk = "WIFI password"
}
Run the following command to connect to WIFI
Wpa_supplicant-B-I eth1-c/etc/my_wpa_supplicant.conf
Run the following command to obtain the IP address:
Dhclient eth1
Now, you have connected to WIFI. run the iwconfig command to check whether the connection is normal.
4. we need a serial port (required by network engineers)
4.1 prepare USB to COM adapter
I am using a Z-TEK and the default system already has its driver, lsusb can be seen on the device. The inserted device name is/dev/ttyUSB0.
4.2 install the minicom Super Terminal
Install yum.
4.3 set minicom
Run minicom-s to set the device name, speed, and other parameters and save the settings.
5. screenshot capture tool fbgrab
5.1 install dependency libraries
The official website displays fbgrab dependencies and splint, libpng, and zlib. Here, we have installed libpng and zlib.
Splint is actually a tool for static code detection. you don't need to use the following method:
Remove the splint line in the fbgrab Makefile.
5.2 compile and install fbgrab
As mentioned above, unzip the package and remove the Makefile line Sino-German splint. directly make and make install.
The following command can be used to complete screenshots and save them as png files. Fbgrab storage path/Image name .png.
This is done in the vicinity of this article. to avoid damaging the image display, you can use the-s parameter of fbgrab or use ssh for remote login.
Appendix: number of system operations
Run the mplayer-zoom-x 400-y 300 audio and video file. rmvb

Run mgaview image file name

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.