Ubuntu Kung Fu.Pdf

Ubuntu Kung Fu.Pdf

Prepared exclusively for J.S. Ash Beta Book Agile publishing for agile developers The book you’re reading is still under development. As part of our Beta book program, we’re releasing this copy well before we normally would. That way you’ll be able to get this content a couple of months before it’s available in finished form, and we’ll get feedback to make the book even better. The idea is that everyone wins! Be warned. The book has not had a full technical edit, so it will con- tain errors. It has not been copyedited, so it will be full of typos and other weirdness. And there’s been no effort spent doing layout, so you’ll find bad page breaks, over-long lines with little black rectan- gles, incorrect hyphenations, and all the other ugly things that you wouldn’t expect to see in a finished book. We can’t be held liable if you use this book to try to create a spiffy application and you somehow end up with a strangely shaped farm implement instead. Despite all this, we think you’ll enjoy it! Throughout this process you’ll be able to download updated PDFs from your account on http://pragprog.com. When the book is finally ready, you’ll get the final version (and subsequent updates) from the same address. In the meantime, we’d appreciate you sending us your feedback on this book at http://books.pragprog.com/titles/ktuk/errata, or by using the links at the bottom of each page. Thank you for being part of the Pragmatic community! Andy Hunt Prepared exclusively for J.S. Ash Ubuntu Kung Fu Tips, tricks, hints and hacks Keir Thomas The Pragmatic Bookshelf Raleigh, North Carolina Dallas, Texas Prepared exclusively for J.S. Ash Many of the designations used by manufacturers and sellers to distinguish their prod- ucts are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC. The Ubuntu logo is a regis- tered trademark of Canonical, Ltd. Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein. Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://www.pragprog.com Copyright © 2008 Keir Thomas. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmit- ted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Printed in the United States of America. ISBN-10: 1-934356-22-0 ISBN-13: 978-1-934356-22-7 Printed on acid-free paper. B2.0 printing, July 15, 2008 Version: 2008-7-15 Prepared exclusively for J.S. Ash Contents 1 Introduction 15 1.1 How to read this book ................... 16 1.2 Acknowledgements ..................... 17 2 An Ubuntu administration crash course 19 2.1 The Ubuntu desktop .................... 20 2.2 Users, passwords and files ................. 22 2.3 Command-line or GUI? ................... 25 2.4 Software installation and management ......... 35 2.5 Using gconf-editor ...................... 50 2.6 Editing configuration files ................. 52 2.7 Making and keeping backups ............... 53 2.8 Rescue me! What to do if it all goes wrong ........ 55 2.9 Miscellaneous things you ought to know ........ 57 3 The tips 62 1. Set any picture as wallpaper with a single-click . 62 2. See (and reuse) the most recently typed commands . 63 3. Add cool new visualizations to Totem/Rhythmbox . 64 4. Switch monitor resolutions with a single mouse-click . 64 5. Closely monitor a laptop computer’s power consumption 65 6. Stop the cursor blinking .................. 65 7. Scroll without the mouse in Firefox and Evolution mail windows ........................... 66 8. Optimize startup for faster boot times .......... 66 9. Graph the system bootup performance ......... 70 10. Change Gedit’s printing font ................ 70 11. Shrink or enlarge images at the command line ..... 72 12. View all of a digital photo’s technical information . 73 13. Have Ubuntu speak to you ................. 73 14. Instantly search for files in Nautilus ........... 74 15. Take photos or record videos with your webcam . 74 Prepared exclusively for J.S. Ash CONTENTS 6 16. Add RAR file compression support to Ubuntu ...... 75 17. Add a swap file or expand existing swap space ..... 75 18. Get rid of the virtual console legal boiler-plate ..... 76 19. Make Wubi installations of Ubuntu run faster ..... 77 20. Create website or email links that automatically install software ............................ 77 21. Make fonts look superb ................... 79 22. Download updates faster .................. 80 23. Slow down a touchpad’s scrolling ............. 80 24. Ensure your Windows partition is always available under Ubuntu ............................ 82 25. Improve the GNOME Terminal look and feel ...... 82 26. Ensure Ubuntu always knows the time ......... 83 27. Get more data onto CD-R discs .............. 84 28. Share files across the network (without tearing your hair out) ........................... 84 29. Save ink when printing ................... 86 30. Browse the web from the command-line ......... 87 31. Create an “Ubuntu install” USB stick .......... 88 32. Add a menu entry for Ubuntu’s compression tool . 90 33. Quickly run applications without opening a terminal window ............................ 90 34. Instantly search Google for any word or phrase ..... 91 35. Ensure you’re informed about the newest releases of Ubuntu ............................ 92 36. Create a file delete command that uses the trash . 93 37. Configure Ubuntu’s firewall ................ 93 38. Repair Windows from within Ubuntu ........... 98 39. Empty the trash even if told you can’t .......... 99 40. Logon automatically after boot-up ............ 99 41. Use an alternative wifi connection manager ....... 100 42. Make Evolution more like Outlook (just a little bit) . 101 43. Give Ubuntu a static IP address .............. 103 44. Format a USB memory stick (or camera memory card) 104 45. Protect Ubuntu so it can’t be booted without a password 107 46. Dump the text on a virtual console to a file ....... 109 47. Eliminate the time period during which sudo/gksu pow- ers hang around ....................... 110 48. Access Ubuntu files from Windows ............ 111 49. Kill a crashed GUI ...................... 112 50. Make Ubuntu safe for children to use .......... 113 Report erratum Prepared exclusively for J.S. Ash this copy is (B2.0 printing, July 15, 2008) CONTENTS 7 51. Run two (or more) desktops at the same time . 116 52. Go completely fullscreen in virtually any application . 117 53. Make Calculator to round-up (or down) to two digits . 118 54. Follow the moon’s phases ................. 118 55. Import Internet Explorer settings into Firefox . 118 56. Drag and drop files onto the terminal window . 119 57. Use older digital cameras with Ubuntu ......... 119 58. Use the ultra-quick xterm to bash-out commands . 120 59. Install all the program compilation tools you’ll need . 121 60. Avoid network slowdowns and incompatibilities . 121 61. Print at the command-line ................. 123 62. Find the Ubuntu version and code-name ........ 123 63. Get your webcam working in Ubuntu .......... 124 64. Downgrade to Firefox 2 ................... 124 65. Install all the multimedia playback codecs you’ll ever need .............................. 125 66. Get better DVD movie playback .............. 126 67. Run the terminal with a single key-press ........ 127 68. See the APT cow ....................... 127 69. See what Firefox plugins are installed .......... 128 70. Kill the network connection instantly .......... 128 71. Post blog entries from your Ubuntu desktop . 128 72. Intelligently select only the files you want ........ 129 73. Temporarily disable a user account ........... 130 74. Take complete control of desktop effects and animations 131 75. Do some desktop publishing ................ 133 76. Control volume levels at the command-prompt . 133 77. Search the Ubuntu file system .............. 134 78. Remove the “bad password” wait period ......... 137 79. Make desktop icons REALLY big ............. 138 80. Run Ubuntu... without Linux! ............... 138 81. Instantly hide a file or folder ................ 139 82. Scan for viruses ....................... 139 83. Temporarily login as root user at the command-line . 142 84. Start the screensaver from the command-line . 143 85. Get the most out of (or into) a Nautilus window . 143 86. View images at the command-line ............ 144 87. Administer the printer from a web browser ....... 144 88. Move a window without clicking the titlebar ....... 144 89. Connect to shared folders from the command-line . 145 90. Deactivate Caps Lock .................... 147 Report erratum Prepared exclusively for J.S. Ash this copy is (B2.0 printing, July 15, 2008) CONTENTS 8 91. Format floppies ....................... 147 92. Switch to a lightweight file manager ........... 147 93. Use syntax highlighting in Gedit ............. 149 94. Stop zip files sent colleagues getting lost in the email . 150 95. Use an alternative email client .............. 150 96. Ensure people hear you when using a microphone . 152 97. Quick browse to a location ................. 152 98. Turn off the beep ...................... 153 99. Add a second hard disk .................. 153 100. Update Ubuntu in the background ............ 155 101. Install 465 open source fonts ............... 155 102. Be careful not to badly name files/folders in your Win- dows partition ........................ 156 103. Make your Windows partition read only ......... 156 104. Stop Nautilus neatly arranging icons ........... 157 105. Run GUI programs from a terminal window without tying up input .......................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    369 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us