Podstrony
- Strona startowa
- Linux. .Mandrake.10.Podręcznik.Użytkownika.[eBook.PL] (3)
- Kirch O, Dawson T Linux. Podręcznik administratora sieci
- Linux Network Admistrator's Guide
- Linux Complete Command Reference
- Linux Podrecznik Administratora Sieci
- Anne McCaffrey Jezdzcy Smokow Smocze Oko
- Kos Kala Moc aloha i wiedza huny
- Chmielewska Joanna Trudny Trup
- Chmielewska Joanna Nawiedzony Dom
- Philip G. Zimbardo, John Boyd Paradoks czasu (2)
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- boszanna.htw.pl
[ Pobierz całość w formacie PDF ]
.After you ve enabled the emacs calendar mode, click in the calendar window on a specific day,go to the Diary menu, and select Insert Daily.Your scratch buffer will change to diary, andyou ll find your cursor following text containing the selected date.Make some diary entries,then save the buffer, and exit and restart emacs.After you restart emacs, you can enter appointment reminders in your diary with the emacsappt-add command.First enter the calendar mode, and click your left mouse button on aspecific day.Next, press and release the Esc key, type an x, then type appt-add, and pressEnter.You ll be asked for appointment time (hours and minutes).Enter the time.After youpress Enter, you ll be prompted for a message.Type in your reminder and press Enter again.Five minutes before the appointment time on the specified day, emacs will beep and thendisplay a new mode line, informing you of the appointment.Two minutes later, the samething will happen.You can also manually add reminders to your diary file, for example:8:00am Jogging with dog12:00am Lunch with Cathy15:00pm Check with car repair shopYou can save these reminders following each date in your diary files.If you want to deleteappointments, use the appt-delete command after selecting a specific day.You ll be askedinteractively to delete various appointments from your diary.By using the emacs calendar mode and appointment functions, you can build a history ofyour appointments in your personal diary.Experiment with different modes, and read theemacs info files for more information.1 8Playing Linux Games 281PARTI VHour 19Playing Linux GamesIt s time to sit back, relax, and have some fun.Chances are that you ve skippedthe rest of the book and are reading this chapter first.Well, that s okay, becausewe all know the real reason we bought our computers, right? To zap hordes ofalien invaders streaming across our screen!1 9In this hour you ll learn about two music CD players and some of the more than70 games you can install on your system.This hour starts with an overview ofthe CD players, then moves on to information about playing games at theconsole and with the X Window System.282 Hour 19Playing Music CDs with the cpd andxplaycd CommandsUsing your computer as a stereo system may seem a bit extravagant, but it s nice to be ableto listen to music while you work.In order to do this, Linux must be configured to use yoursound card.If you have not configured Linux to support sound, stop! In order to useyour CD-ROM drive to play music CDs, you must have sound supportinstalled in your kernel.See Hour 22, Red Hat Tools.TIME SAVERIf your sound card works with Linux, great! You can start playing music CDs right away.Ifyou re not using X11, you can play music CDs with Sariel Har-Peled s cdp command, foundunder the /usr/bin directory.This command is a text-mode program.To use it, put a musicCD in your CD-ROM drive and type the command:# cdpIf nothing happens, make sure have a symbolic link, called /dev/cdrom, that points to yourCD-ROM device for example,# ls -l /dev/cdromlrwxrwxrwx 1 root root 3 Dec 22 08:19 /dev/cdrom -> hdbYou can create a symbolic link with the ln command.Make sure you re logged in as the rootoperator and type the following:# ln -s /dev/XXX /dev/cdromThis creates the symbolic link, /dev/cdrom, which points to your CD-ROM drive deviceXXX (hdb, sdb, scd, and so on).If you re not the root operator when you run first run cdp,you may get an error message:# cdpAs root, please runchmod 666 /dev/cdromto give yourself permission to access the CD-ROM device.By default, CD-ROM devices are created with a file permission of 660, and the cdp commandrequires your device to be readable by anyone on your system.To fix this, use the chmodcommand (discussed in Hour 21, Handling Files ):# chmod 666 /dev/cdrom1 9Playing Linux Games 283Now run the cdp command.When it starts, you ll see a list of the tracks on your CD.Youshould then turn on the NumLock key of your keyboard to control how you d like to playyour CD.Table 19.1 lists the controls for playing CDs from your keyboard s keypad.Table 19.1.The cdp command keypad controls.Action Keypad KeySoft exit (music continues) 0Help.Back 15 seconds 1Hard abort (eject CD) 2Forward 15 seconds 3Previous Track 4Replay CD 5Next Track 6Stop 7Toggle Pause/Resume 8Play 9The cdp command has a number of command-line options.A symbolic link, called cdplay,can be used to play music without the cdp command s interactive screen.You can tell cdplayto start playing music at a certain track with the play option, followed by a track number:1 9# cdplay play 3This command line starts the cdp program, and your music CD starts playing from the thirdtrack.For more details about using the cdp command, see its manual page.The cdp commandis handy for playing CDs from your console or the command line of an X11 terminal window,but if you use X11 all the time, you may want to use the xplaycd command, found under the/usr/X11R6/bin directory.The xplaycd command, by Olav Woelfelschneider, is an X11 client you can use to play musicCDs.The program appears in a small window with the standard music CD controls, alongwith horizontal stereo volume bars and a list of buttons representing the tracks on the CD.You can raise or lower your music s volume by clicking your left mouse button ahead of orbehind the horizontal bars.One great feature of this program is the ability to reorder tracks, and even play a track multipletimes (see Figure 19.1).By clicking a track number and dragging, you can rearrange the play284 Hour 19sequence of the tracks on your CD.To play a track multiple times, click a track number withyour mouse s middle button and drag the track along the CD track sequence.When yourelease your mouse button, the track number is duplicated.Figure 19.1.The xplaycd X11 clientoffers standard music CDcontrols, along with trackre-ordering and volumecontrol.The xplaycd also supports a music CD database, so you can create playlists of tracks for yourfavorite CDs.If you press your right mouse button anywhere on the xplaycd window, a menuof editing commands pops up.Use this menu to create and save your CD s play list.Thedatabase will be saved in the /var/lib/cddb, or CD database directory.You also can save CDsinto different categories, such as jazz, new age, and so on.For details about using the xplaycdcommand, read its manual page, or the more detailed documentation under the /usr/doc/multimedia directory.Games for the ConsoleIf you don t use X11, you also can have fun at the console, because you ll find an assortmentof 43 classic games you can play.Some of the games, like DOOM, have impressive graphics.Others use simple cursor movements and characters on your display
[ Pobierz całość w formacie PDF ]