最近的一点技术小积累


1 - 如何去掉Ubuntu默认的系统出错蜂鸣。

第一种方法:
    基于Gnome的GUI的配置,选择 首选项 -> 音效 -> Alert ?? Check box选上(系统默认是允许蜂鸣)。
第二种方法:
    基于内核模块的配置(事先切换root用户或是sudo)
    #lsmod | grep pcspkr
    #rmmod pcspkr
    正向有些哥们说的,如果想她了,然后在把模块添加上。
    #modprobe pcspkr

2 - 如何操作apt-get的软件源

首先要编辑/etc/apt/source.list文件,然后把想要添加的软件源的注释去掉或者添加新的软件下载源。编辑之后,更新apt-get。
    #apt-get update
这之后,apt-get将检测改变的软件源,然后提示用户要不要下载最新的软件。
基本上的软件都能在软件源上找到。如果你的apt-get提示你没有这个软件包可以下载,那就是你的添加的软件源没有。你要寻找丰富的软件源了。

3 - 如何把运行控制台添加到右键

社区里提供了一个小工具,让你的鼠标右键能够添加控制台运行。这样你就可以在当前目录上直接通过鼠标右键,就可以键入控制台来操作了。很方面。
具体方法:
    #sudo apt-get install nautilus-open-terminal
OK,重新login你的GUI就可以了。

4 - 如何让你的MPlayer能够播放rm, rmvb格式的视频

Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 8.04 (Hardy Heron)
MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.

Install Mplayer in Ubuntu Hardy Heron

You need to add the following lines to /etc/apt/sources.list file or you need to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

Make sure you have the following two lines save and exit your file

deb http://archive.ubuntu.com/ubuntu hardy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy universe multiverse

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer

if you want to open mplayer just type

gmplayer

or

You can Open from Applications?>Sound&Video?> Mplayer Movie Player

Install libdvdcss2 and w32 video codecs in Ubuntu 8.04 (Hardy Heron)

Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This package is not available from the Ubuntu repositories due to licensing and legal restrictions.

For Ubuntu 8.04 (Hardy Heron) Users run the following command

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

Then, add the GPG Key using the following commands

sudo apt-get update

sudo apt-get install medibuntu-keyring

sudo apt-get update

For i386 Users install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

For amd64 Users install Codecs using the following command

sudo apt-get install w64codecs libdvdcss2

Using above download locations you can install most of the mutimedia codecs for ubuntu.

Mplayer Plugin for Firefox

If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

5 - 如何解决MPlayer和Realone的安装之后不能播放声音的问题

首先需要解决的是声卡独占的问题。
要解决这个问题,只需要安装alsa-oss(Advanced Linux Sound Architecture - Open source system)
参考:
http://alsa.sourceforge.net

#sudo apt-get install alsa-oss

然后在MPlayer的配置中选择Preferences -> Audio -> oss(config成全部默认)
Realone安装之后直接能解决。

完。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值