Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
暫譯: Linux 伺服器黑客技巧,第二卷:連接、監控與故障排除的提示與工具

William von Hagen, Brian K. Jones

  • 出版商: O'Reilly
  • 出版日期: 2006-01-31
  • 定價: $1,330
  • 售價: 5.0$665
  • 語言: 英文
  • 頁數: 480
  • 裝訂: Paperback
  • ISBN: 0596100825
  • ISBN-13: 9780596100827
  • 相關分類: Linux
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

Description

Today's system administrators deal with a vast number of situations, operating systems, software packages, and problems. Those who are in the know have kept their copy of Linux Server Hacks close at hand to ease their burden. And while this helps, it's not enough: any sys admin knows there are many more hacks, cool tips, and ways of solving problems than can fit in a single volume (one that mere mortals can lift, that is).


Which is why we created Linux Server Hacks, Volume Two, a second collection of incredibly useful tips and tricks for finding and using dozens of open source tools you can apply to solve your sys admin problems. The power and flexibility of Linux and Open Source means that there is an astounding amount of great software out there waiting to be applied to your sys admin problems -- if only you knew about it and had enough information to get started. Hence, Linux Server Hacks, Volume Two.


 


This handy reference offers 100 completely new server management tips and techniques designed to improve your productivity and sharpen your administrative skills. Each hack represents a clever way to accomplish a specific task, saving you countless hours of searching for the right answer. No more sifting through man pages, HOWTO websites, or source code comments -- the only resource you need is right here. And you don't have to be a system administrator with hundreds of boxen to get something useful from this book as many of the hacks apply equally well to a single system or a home network.


Compiled by experts, these hacks not only give you the step-by-step instructions necessary to implement the software, but they also provide the context to truly enable you to learn the technology. Topics include:

  • Authentication
  • Remote GUI connectivity
  • Storage management
  • File sharing and synchronizing resources
  • Security/lockdown instruction
  • Log files and monitoring
  • Troubleshooting
  • System rescue, recovery, and repair

Table of Contents

Credits  

Preface  

Chapter 1. Linux Authentication 

      1. Disable User Accounts Instantly  

      2. Edit Your Password File for Greater Access Control  

      3. Deny All Access in One Second or Less  

      4. Customize Authentication with PAMs  

      5. Authenticate Linux Users with a Windows Domain Controller  

      6. Centralize Logins with LDAP  

      7. Secure Your System with Kerberos  

      8. Authenticate NFS-Lovers with NIS  

      9. Sync LDAP Data with NIS  

Chapter 2. Remote GUI Connectivity 

      10. Access Systems Remotely with VNC  

      11. Access VNC Servers over the Web  

      12. Secure VNC via SSH  

      13. Autostart VNC Servers on Demand  

      14. Put Your Desktops on a Thin Client Diet  

      15. Run Windows over the Network  

      16. Secure, Lightweight X Connections with FreeNX  

      17. Secure VNC Connections with FreeNX  

      18. Secure Windows Terminal Connections with FreeNX  

      19. Remote Administration with Webmin  

Chapter 3. System Services 

      20. Quick and Easy DHCP Setup  

      21. Integrate DHCP and DNS with Dynamic DNS Updates  

      22. Synchronize Your Watches!  

      23. Centralize X Window System Font Resources  

      24. Create a CUPS Print Server  

      25. Configure Linux Connections to Remote CUPS Printers  

      26. Integrate Windows Printing with CUPS  

      27. Centralize Macintosh Printing with CUPS  

      28. Define a Secure CUPS Printer  

Chapter 4. Cool Sysadmin Tools and Tips 

      29. Execute Commands Simultaneously on Multiple Servers  

      30. Collaborate Safely with a Secured Wiki  

      31. Edit Your GRUB Configuration with grubby  

      32. Give Your Tab Key a Workout  

      33. Keep Processes Running After a Shell Exits  

      34. Disconnect Your Console Without Ending Your Session  

      35. Use script to Save Yourself Time and Train Others  

      36. Install Linux Simply by Booting  

      37. Turn Your Laptop into a Makeshift Console  

      38. Usable Documentation for the Inherently Lazy  

      39. Exploit the Power of Vim  

      40. Move Your PHP Web Scripting Skills to the Command Line  

      41. Enable Quick telnet/SSH Connections from the Desktop  

      42. Speed Up Compiles  

      43. Avoid Common Junior Mistakes  

      44. Get Linux Past the Gatekeeper  

      45. Prioritize Your Work  

Chapter 5. Storage Management and Backups 

      46. Create Flexible Storage with LVM  

      47. Combine LVM and Software RAID  

      48. Create a Copy-on-Write Snapshot of an LVM Volume  

      49. Clone Systems Quickly and Easily  

      50. Make Disk-to-Disk Backups for Large Drives  

      51. Free Up Disk Space Now  

      52. Share Files Using Linux Groups  

      53. Refine Permissions with ACLs  

      54. Make Files Easier to Find with Extended Attributes  

      55. Prevent Disk Hogs with Quotas  

Chapter 6. Standardizing, Sharing, and Synchronizing Resources 

      56. Centralize Resources Using NFS  

      57. Automount NFS Home Directories with autofs  

      58. Keep Filesystems Handy, but Out of Your Way  

      59. Synchronize root Environments with rsync  

      60. Share Files Across Platforms Using Samba  

      61. Quick and Dirty NAS  

      62. Share Files and Directories over the Web  

Chapter 7. Security 

      63. Increase Security by Disabling Unnecessary Services  

      64. Allow or Deny Access by IP Address  

      65. Detect Network Intruders with snort  

      66. Tame Tripwire  

      67. Verify Fileystem Integrity with Afick  

      68. Check for Rootkits and Other Attacks  

Chapter 8. Troubleshooting and Performance 

      69. Find Resource Hogs with Standard Commands  

      70. Reduce Restart Times with Journaling Filesystems  

      71. Grok and Optimize Your System with sysctl  

      72. Get the Big Picture with Multiple Displays  

      73. Maximize Resources with a Minimalist Window Manager  

      74. Profile Your Systems Using /proc  

      75. Kill Processes the Right Way  

      76. Use a Serial Console for Centralized Access to Your Systems  

      77. Clean Up NIS After Users Depart  

Chapter 9. Logfiles and Monitoring 

      78. Avoid Catastrophic Disk Failure  

      79. Monitor Network Traffic with MRTG  

      80. Keep a Constant Watch on Hosts  

      81. Remotely Monitor and Configure a Variety of Networked Equipment  

      82. Force Standalone Apps to Use syslog  

      83. Monitor Your Logfiles  

      84. Send Log Messages to Your Jabber Client  

      85. Monitor Service Availability with Zabbix  

      86. Fine-Tune the syslog Daemon  

      87. Centralize System Logs Securely  

      88. Keep Tabs on Systems and Services  

Chapter 10. System Rescue, Recovery, and Repair 

      89. Resolve Common Boot and Startup Problems  

      90. Rescue Me!  

      91. Bypass the Standard Init Sequence for Quick Repairs  

      92. Find Out Why You Can't Unmount a Partition  

      93. Recover Lost Partitions  

      94. Recover Data from Crashed Disks  

      95. Repair and Recover ReiserFS Filesystems  

      96. Piece Together Data from the lost+found  

      97. Recover Deleted Files  

      98. Permanently Delete Files  

      99. Permanently Erase Hard Disks  

      100. Recover Lost Files and Perform Forensic Analysis  

Index

商品描述(中文翻譯)

描述

今天的系統管理員面對著大量的情況、操作系統、軟體包和問題。那些了解情況的人都會隨身攜帶《Linux Server Hacks》這本書,以減輕他們的負擔。雖然這有幫助,但仍然不夠:任何系統管理員都知道,解決問題的方法、技巧和竅門遠比一本書能容納的多(至少是普通人能舉起的那種)。

這就是為什麼我們創建了《Linux Server Hacks, Volume Two》,這是第二本收集了極其有用的技巧和竅門的書,幫助你找到並使用數十種開源工具來解決系統管理問題。Linux 和開源的強大與靈活性意味著有大量優秀的軟體等待著被應用於你的系統管理問題——如果你知道它們的存在並擁有足夠的信息來開始。因此,《Linux Server Hacks, Volume Two》應運而生。

這本方便的參考書提供了100個全新的伺服器管理技巧和技術,旨在提高你的生產力並提升你的管理技能。每個技巧都代表了一種巧妙的方法來完成特定任務,幫助你節省無數尋找正確答案的時間。再也不需要翻閱手冊頁、HOWTO網站或源代碼註釋——你所需的唯一資源就在這裡。而且,你不必是一位擁有數百台伺服器的系統管理員,這本書中的許多技巧同樣適用於單一系統或家庭網路。

由專家編寫的這些技巧不僅提供了實施軟體所需的逐步指導,還提供了真正讓你學習技術的背景。主題包括:
- 認證
- 遠端 GUI 連接
- 儲存管理
- 檔案共享與資源同步
- 安全/鎖定指令
- 日誌檔案與監控
- 故障排除
- 系統救援、恢復與修復

目錄

- 版權
- 前言
- 第1章 Linux 認證
1. 立即禁用用戶帳戶
2. 編輯你的密碼檔案以增強訪問控制
3. 在一秒鐘內拒絕所有訪問
4. 使用 PAM 自定義認證
5. 使用 Windows 域控制器認證 Linux 用戶
6. 使用 LDAP 集中登錄
7. 使用 Kerberos 保護你的系統
8. 使用 NIS 認證 NFS 用戶
9. 使用 NIS 同步 LDAP 數據

- 第2章 遠端 GUI 連接
10. 使用 VNC 遠程訪問系統
11. 通過網路訪問 VNC 伺服器
12. 通過 SSH 保護 VNC
13. 按需自動啟動 VNC 伺服器
14. 將你的桌面放在瘦客戶端上
15. 通過網路運行 Windows
16. 使用 FreeNX 進行安全、輕量級的 X 連接
17. 使用 FreeNX 保護 VNC 連接
18. 使用 FreeNX 保護 Windows 終端連接
19. 使用 Webmin 進行遠程管理

- 第3章 系統服務
20. 快速簡便的 DHCP 設置
21. 使用動態 DNS 更新整合 DHCP 和 DNS
22. 同步你的時鐘!
23. 集中 X Window 系統字型資源
24. 創建 CUPS 列印伺服器
25. 配置 Linux 連接到遠程 CUPS 列印機
26. 使用 CUPS 整合 Windows 列印
27. 使用 CUPS 集中 Macintosh 列印
28. 定義安全的 CUPS 列印機

- 第4章 酷炫的系統管理工具和技巧
29. 在多台伺服器上同時執行命令
30. 安全地協作使用安全的 Wiki
31. 使用 grubby 編輯你的 GRUB 配置
32. 讓你的 Tab 鍵運動起來
33. 在 Shell 退出後保持進程運行
34. 在不結束會話的情況下斷開控制台
35. 使用 script 節省時間並訓練他人
36. 只需啟動即可簡單安裝 Linux
37. 將你的筆記本電腦變成臨時控制台
38. 為懶惰者提供可用的文檔
39. 發揮 Vim 的威力
40. 將你的 PHP 網頁腳本技能轉移到命令行
41. 從桌面啟用快速 telnet/SSH 連接
42. 加速編譯
43. 避免常見的初學者錯誤
44. 讓 Linux 通過守門人
45. 優先處理你的工作

- 第5章 儲存管理和備份
46. 使用 LVM 創建靈活的儲存
47. 結合 LVM 和軟體 RAID
48. 創建 LVM 卷的寫時複製快照
49. 快速輕鬆地克隆系統
50. 為大型硬碟製作磁碟到磁碟的備份
51. 現在釋放磁碟空間
52. 使用 Linux 群組共享檔案
53. 使用 ACL 精細化權限
54. 使用擴展屬性使檔案更易於查找
55. 使用配額防止磁碟佔用過多

- 第6章 標準化、共享和同步資源
56. 使用 NFS 集中資源
57. 使用 autofs 自動掛載 NFS 主目錄
58. 保持檔案系統方便,但不妨礙你的工作
59. 使用 rsync 同步根環境
60. 使用 Samba 跨平台共享檔案
61. 快速簡便的 NAS
62. 通過網路共享檔案和目錄

- 第7章 安全
63. 通過禁用不必要的服務來提高安全性
64. 根據 IP 地址允許或拒絕訪問
65. 使用 snort 檢測網路入侵者
66. 飼養 Tripwire
67. 使用 Afick 驗證檔案系統完整性
68. 檢查 Rootkit 和其他攻擊

- 第8章 故障排除和性能
69. 使用標準命令查找資源佔用者
70. 使用日誌檔案系統減少重啟時間
71. 使用 sysctl 理解和優化你的系統
72. 使用多個顯示器獲得全局視圖
73. 使用極簡的窗口管理器最大化資源
74. 使用 /proc 進行系統分析
75. 正確終止進程
76. 使用串行控制台集中訪問你的系統
77. 在用戶離開後清理 NIS

- 第9章 日誌檔案和監控
78. 避免災難性的磁碟故障
79. 使用 MRTG 監控網路流量
80. 持續監控主機
81. 遠程監控和配置各種網路設備
82. 強制獨立應用使用 syslog
83. 監控你的日誌檔案
84. 將日誌消息發送到你的 Jabber 客戶端
85. 使用 Zabbix 監控服務可用性
86. 微調 syslog 守護進程
87. 安全地集中系統日誌
88. 監控系統和服務

- 第10章 系統救援、恢復和修復
89. 解決常見的啟動和啟動問題
90. 救救我!
91. 繞過標準初始化序列以進行快速修復
92. 找出為什麼無法卸載分區
93. 恢復丟失的分區
94. 從崩潰的磁碟中恢復數據
95. 修復和恢復 ReiserFS 檔案系統
96. 從 lost+found 中拼湊數據
97. 恢復已刪除的檔案
98. 永久刪除檔案
99. 永久抹除硬碟
100. 恢復丟失的檔案並進行取證分析

索引