| Hacking OpenSUSE |
by Jem Matzan (Dec. 2, 2005)
Foreword: There's more to SUSE Linux than simply installing it and going to work. To get the most from the operating system, you'll probably want to do some post-install fine tuning. This article by Jem Matzan explains how to: add download sources to YaST; install the Mozilla Thunderbird email client; add support for Java, Flash, Acrobat, Windows Media, MP3s, and RealMedia; play DVDs -- and more. It serves as a useful supplement to Steven J. Rosen's excellent how-to, "Installing SUSE Linux 10 on a Laptop," recently published here on DesktopLinux.com. Enjoy . . . !
Hacking OpenSUSE By Jem Matzan When you're done installing SUSE Linux 10.0, your desktop system is not complete. If you installed the OSS version, you still need support for Java programs, MP3 audio files, and browser plugins for Macromedia Flash, Adobe Acrobat, RealPlayer, and Windows Media Video. If you installed the commercial edition you might have all of those things, but still not have support for playing DVD videos on your computer. Here's how to effectively make SUSE Linux 10.0 into a desktop powerhouse.
OpenSUSE is comprised entirely of free, open source software. What you will be doing in this tutorial is installing proprietary add-ons that add functionality. All of the browser plugins are proprietary and will require you to agree to software licenses. The DVD playback capabilities are in violation of the US Digital Millennium Copyright Act (and similar laws in other countries), which many believe to be unconstitutional and a violation of consumer fair use rights. (Further information on DMCA reform is available here.) In other words, installing the DVD decoding software could be illegal where you live; therefore I'm not telling you to do it, but I'll tell you how it's done for educational and informational purposes.
Adding sources to YaST
First you'll need to add some software repositories to your YaST installation sources list. Go into the YaST utility by clicking on the green Gecko menu in the lower left corner of your screen. Select System, then click on Control Center (YaST). You'll be prompted for your root password. Go ahead and type it in, check the box next to Keep Password, and click OK.
You're now in YaST, and the Software category is already selected by default. Click on the Installation Source icon. This will bring up a window that will allow you to add software repositories so that you can download the add-on software. You'll notice that your CD or DVD installation media is already listed. Go ahead and disable it by clicking the Enable Or Disable button -- we're going to add an Internet address that will replace your discs. That way if you need to add software from the CDs or DVD, you can get the packages from the Internet instead of putting a disc into your computer. If you need to, you can just as easily enable the CD/DVD source later.
Click the Add button, then click on HTTP in the popup menu. Add the following Internet address to the Server Name field and then click on OK: packman.rsync.zmi.at/suse/10.0 If that repository link does not work, you can choose one of the mirrors from this list.
Now repeat this process and add the following servers to your installation sources using the FTP option instead of HTTP: - mirrors.kernel.org/opensuse/distribution/SL-10.0-OSS/inst-source-java
- mirrors.kernel.org/opensuse/distribution/SL-10.0-OSS/inst-source
- mirrors.kernel.org/suse/i386/10.0/SUSE-Linux10.0-GM-Extra
Now next to all of your new software sources, change the Refresh option to On. You can do this by selecting each source and clicking on the Refresh On Or Off button. The default is Off, so you'll have to change all of the entries.
Without adding the preceding sources and ordering them to refresh, it will not be possible to follow the next three steps. You can now close the Installation Source window.
Installing Thunderbird
OpenSUSE 10.0 doesn't come with Mozilla Thunderbird. If you're a Thunderbird fan, rather than download it separately, why not install it properly through YaST?
Go back to YaST, then select Package Management. In the Search box, type in MozillaThunderbird and click on Search. Click on the MozillaThunderbird checkbox in the right-hand pane, then click on Accept. When it's done, click on Finish to go back to YaST.
Java support
To add support for the Java language both for standalone applications and as a browser plugin for Web applets, go into YaST, then select Package Management. In the Search box, type in sun and click Search. A bunch of packages will show up in the right-hand pane. Click the checkbox next to the following packages - java-1_5_0-sun
- java-1_5_0-sun-alsa
- java-1_5_0-sun-jdbc
- java-1_5_0-sun-plugin
There is no harm in selecting all of the java-1_5_0-sun packages (you'll notice that there are a few more that weren't selected), but they are not necessary for running Java programs. If you're a Java programmer, of course you'll want at least some of the other packages. When you're done selecting them, click on Accept. When it's done installing, click on Finish in the popup window to go back to YaST. Your computer will now be able to run Java programs and applets.
Flash, Acrobat, Windows Media, MP3, and RealMedia support
Go back into the YaST software manager. In the Search box, type in w32codec-all and click on Search. A single package should appear in the right-hand pane. Click the checkbox next to it.
Erase your previous search term in the Search box, type in acroread and click on Search. Click the checkbox next to the acroread package in the right-hand pane. You'll have to accept a software license agreement to continue.
Now search for flash and click Search. Select that package for installation by clicking its checkbox and agreeing to its license.
Search for realplayer and click Search. Click its checkbox. You only need the RealPlayer package itself -- the other search results are not necessary.
Search for mplayer and click Search. Click its checkbox. You don't need the other package that appears in the search results.
Search for kaffeine-mozilla and click Search. Click its checkbox.
When you've done all of this, click on Accept. Other packages will be dependent on some of these, so you'll have to click Continue in the Automatic Changes screen that comes up. After that, all of the packages you just selected will be installed and your Firefox Web browser will have all of the plugins it needs. You'll also have the ability to play MP3 music files. A popup window will appear when it's done -- just click on Finish and you'll be brought back to YaST.
DVD playback
(64-bit users, skip down to the next section). I couldn't find any SUSE installation sources for the DVD decoding program, so you'll have to download it on your own. Go to your Gecko menu, then select Internet, then Web Browser, then click on Web Browser (Konqueror). When Konqueror opens, copy and paste in this address: http://download.videolan.org/pub/libdvdcss/1.2.9/rpm/libdvdcss2-1.2.9-1.i386.rpm Or just click here if you want a link. Konqueror will ask you what you want to do with the file. You could save it to your Desktop, then double-click it to install it, but an easier way is to select the Open With button. That will bring up a popup window. In that window, click on System, then Configuration, then Package Manager (KPackage). (If you do not have KPackage installed, go back to the YaST software manager and install the kdeadmin3 package, then restart this process.) The KPackage program will read the DVD decoding package from the Web. Click on the Install button at the bottom of the KPackage window, then click on Install in the next window too. You will be asked for your root password; type it in and press Enter. Shortly thereafter, the DVD decoding library will be installed. Click on the Done button, then close KPackage and Konqueror.
Next you'll have to modify the video player so that it will play DVDs. While it originally had this functionality built in, Novell has removed it to make life more difficult for people who want to watch DVDs on their computer.
Go into YaST and select Software Management. The familiar package selection screen will come up. In the Search box, type in xine and then click Search. About two dozen entries will appear in the right-hand pane. Right-click on all of the blue-colored packages (there should be at least two) and select Update from the drop-down menu. Click on Accept when you're done, and then click on Continue in the ensuing Automatic Changes screen. The updated software will now download and install properly. When it's finished, a popup window will ask you if you'd like to install more software. Click on Finish and you'll be brought back to YaST's software manager.
You now have the ability to play commercial DVD movies on your computer -- put one in and try it, if it's legal where you are. A popup message should appear when you put in a DVD movie. If it asks you if you want to play the movie with Kaffeine, click on Yes and you'll go straight to the video player. In some instances the disc may be recognized as a data disc, and SUSE will ask you if you want to open the DVD with K3b. In that case, click on Ignore, then go to the Gecko menu, select Multimedia, then Video Player, then click on Media Player (Kaffeine). When Kaffeine starts, click on the Open DVD icon.
For 64-bit users
Those using the 64-bit edition of SUSE 10 will need to compile deCSS from the source code. This is not as difficult as it sounds; just follow the directions below.
First, download the deCSS source RPM from here (RPM download address).
Save it to a location that is easy to get to, like your user's home directory or a "downloads" directory therein (the example assumes you saved it to /home/user/downloads/). Next, open a terminal by clicking on the gecko menu, then System, then Terminal, then Konsole. Use the cd command to change to the directory you saved the source RPM to. Then type in su and press Enter to switch to root permissions. Navigate to the directory where you saved the deCSS source RPM, then type in this command: rpmbuild --rebuild --target=x86_64 /home/user/downloads/libdvdcss-1.2.9-1.src.rpm This will build a binary RPM from the source code you just downloaded. Now it's time to install it. Type this into your terminal:
You now have the ability to play DVD movies. Follow the directions in the previous section to install Xine and/or Mplayer.
Welcome to SUSE
And that's all you need to do to make SUSE a super-powered desktop operating environment. Aside from running Windows binaries, OpenSUSE 10.0 can do everything that Windows XP can and more.
Copyright (c) 2005 by Jem Matzan. All rights reserved. Reproduced by DesktopLinux.com with permission.
Talk back!
Do you have comments or questions on this article? Let us know what you think in the talkback thread for this article:
Join the discussion
About the author
Jem Matzan is the author of three books and the creator/editor of The Jem Report, a respected hardware and software review site. He has written for such sites as NewsForge.com, IT Manager's Journal, and Linux.com and resides in Orlando, Fla.
Related Stories
(Click here for further information)
|
|
|
7 Advantages of D2D Backup
For decades, tape has been the backup medium of choice. But, now, disk-to-disk (D2D) backup is gaining in favor. Learn why you should make the move in this whitepaper.
4 Legal Reasons to Control Internet Access
The Internet is obviously a valuable resource for many organizations. However, many are exposed to legal liability concerns because they fail to control Internet access. Learn if you're safe in this white paper.
Rapidly Resolve J2EE Application Problems
Whether you are in the process of building J2EE applications or have J2EE applications already running in production, you must ensure that they deliver the expected ROI. Learn how in this white paper.
Load Testing 2.0 for Web 2.0
There are many unknowns in stress testing Web 2.0 applications. Find out how to test the performance of Web 2.0 in this white paper.
Build Better Games Online
For the game infrastructure providers, life is complex. Making money from games has become more complicated. Why? Find out in this white paper.
Building a Virtual Infrastructure from Servers to Storage
This white paper discusses the virtual storage solutions that reduce cost, increase storage utilization, and address the challenges of backing up and restoring Server environments.
Gaining Faster Wireless Connections with WiMAX
Welcome to what is quickly becoming the hyperconnected world where anything that would benefit from being connected to the network will be connected. Learn more in this white paper.
Is Your Desktop a Security Threat?
The new wave of sophisticated crimeware not only targets specific companies, but also targets desktops and laptops as backdoor entryways into those business’ operations and resources. Learn how to stay safe in this white paper.
Increasing SAN Reliability by 100 Percent
Storage area networks (SAN) are a strong part of storage plans. Learn how to increase your reliability and uptime by 100 percent in this case study.
|
|
|
|
|