2009年6月26日 星期五

Ubuntu 9.04 NotifyOSD

https://wiki.ubuntu.com/NotifyOSD
參考
Ubuntu 9.04新的Notifcation機制
但在安裝IBM T42的過程中,音量調整及螢幕亮度調整時,無法出現On-Screen OSD顯示
如何調整

sudo -i
echo 0x00ffffff > /proc/acpi/ibm/hotkey

2009年6月25日 星期四

[轉貼]Search for Install Packages from the Ubuntu Command Line

Source

When you are trying to install software on Ubuntu or Debian linux using the apt-get package system, quite often you’ll forget the exact name of the package you are trying to install. Here’s how you can get a little help figuring out what the name is.

Syntax:

apt-cache search SearchTerm

Example:

> apt-cache search monodevelop

monodevelop – C#/Boo/Java/Nemerle/ILasm Development Environment
monodevelop-boo – Boo plugin for MonoDevelop
monodevelop-java – Java plugin for MonoDevelop
monodevelop-nunit – NUnit plugin for MonoDevelop
monodevelop-query – MonoQuery plugin for MonoDevelop
monodevelop-versioncontrol – VersionControl plugin for MonoDevelop

Rather useful, no? I’ve found it very useful even when I know the name of the package I’m trying to install, you can figure out what the names of extra plugins are, as in the above example. I had initially installed monodevelop, but didn’t realize there was nunit and version control plugins for it.

You may also want to run the results through a more, or even a grep. For instance:

> apt-cache search firefox | grep plugin

libflash-mozplugin – GPL Flash (SWF) Library – Mozilla-compatible plugin
mozilla-helix-player – the helix audio and video player (browser plugin)
j2re1.4-mozilla-plugin – Java plugin for mozilla/firefox
mozilla-acroread – Adobe Acrobat(R) Reader plugin for mozilla / konqueror
totem-gstreamer-firefox-plugin – Totem Firefox Plugin – gstreamer version
totem-xine-firefox-plugin – Totem Firefox Plugin – xine version

[轉貼]Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.04 (Jaunty)

Source
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 9.04 (Jaunty)

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 Using GUI.

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 jaunty universe multiverse
deb-src http://archive.ubuntu.com/ubuntu jaunty 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 go to Applications—>Sound&Video—> Mplayer Movie Player

Install Mplayer Front-end

1) Smplayer

Qt Mplayer front-end, with basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more. One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave… don’t worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume…

sudo apt-get install smplayer

Install smplayer themes using the following command

sudo apt-get install smplayer-themes

2) gnome-mplayer

A simple GUI for MPlayerIt provides a simple and clean interface to MPlayer. GNOME MPlayer has a rich API that is exposed via DBus. Using DBus you can control a single or multiple instances of GNOME MPlayer from a single command.GNOME MPlayer can be used to play media on websites when used in conjunction with Gecko Mediaplayer.

Install gnome mplayer using the following command

sudo apt-get install gnome-mplayer

Install libdvdcss2 and w32 video codecs in Ubuntu 9.04 (Jaunty)

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.To play encrypted DVDs, the libdvdcss2 package is essential.

For Ubuntu 9.04 (Jaunty) Users use the following procedures

sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/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