| Acknowledgments |
|
xix | |
| Introduction |
|
xxi | |
| Chapter 1: Starting with SUSE |
|
1 | |
|
About SUSE, Novell, and Linux |
|
|
2 | |
|
Comparing SUSE to Other Linux Versions |
|
|
2 | |
|
|
|
3 | |
|
Focusing on Linux Commands |
|
|
4 | |
|
|
|
5 | |
|
Command Reference Information in SUSE |
|
|
6 | |
|
|
|
10 | |
| Chapter 2: Installing openSUSE and Adding Software |
|
11 | |
|
|
|
11 | |
|
|
|
12 | |
|
Choosing Installation Options |
|
|
12 | |
|
Answering Installation Questions |
|
|
15 | |
|
Working with Software Packages |
|
|
18 | |
|
Getting Software Packages with YaST |
|
|
19 | |
|
Adding and Updating Software with YaST |
|
|
20 | |
|
Using zypper to Manage Software |
|
|
23 | |
|
Working with zypper Repositories |
|
|
24 | |
|
Searching for Software with zypper |
|
|
27 | |
|
Installing and Removing Software with zypper |
|
|
31 | |
|
Managing Software with RPM |
|
|
33 | |
|
Installing a Package with rpm |
|
|
34 | |
|
Upgrading a Package with rpm |
|
|
34 | |
|
Removing a Package with rpm |
|
|
35 | |
|
Querying Information about RPM Packages |
|
|
35 | |
|
Verifying Installed Packages with rpm |
|
|
38 | |
|
|
|
39 | |
|
Extracting Files from RPMs |
|
|
40 | |
|
|
|
40 | |
| Chapter 3: Using the Shell |
|
41 | |
|
Terminal Windows and Shell Access |
|
|
41 | |
|
|
|
41 | |
|
|
|
43 | |
|
|
|
44 | |
|
|
|
44 | |
|
Using Command Line Completion |
|
|
45 | |
|
Redirecting stdin and stdout |
|
|
46 | |
|
|
|
49 | |
|
|
|
50 | |
|
|
|
50 | |
|
Acquiring Superuser Power |
|
|
50 | |
|
|
|
50 | |
|
Delegating Power with sudo |
|
|
51 | |
|
Using Environment Variables |
|
|
52 | |
|
Creating Simple Shell Scripts |
|
|
54 | |
|
Editing and Running a Script |
|
|
54 | |
|
Adding Content to Your Script |
|
|
54 | |
|
|
|
58 | |
| Chapter 4: Working with Files |
|
59 | |
|
|
|
59 | |
|
|
|
59 | |
|
|
|
61 | |
|
Using Symbolic and Hard Links |
|
|
61 | |
|
|
|
62 | |
|
Using Named Pipes and Sockets |
|
|
63 | |
|
Setting File and Directory Permissions |
|
|
63 | |
|
Changing Permissions with chmod |
|
|
64 | |
|
|
|
66 | |
|
|
|
66 | |
|
Traversing the File System |
|
|
67 | |
|
|
|
68 | |
|
|
|
70 | |
|
|
|
71 | |
|
Finding Files with locate |
|
|
72 | |
|
|
|
72 | |
|
Using Other Commands to Find Files |
|
|
75 | |
|
Finding Out More About Files |
|
|
75 | |
|
|
|
75 | |
|
|
|
76 | |
|
|
|
78 | |
| Chapter 5: Manipulating Text |
|
79 | |
|
Matching Text with Regular Expressions |
|
|
79 | |
|
|
|
80 | |
|
|
|
81 | |
|
Using the Pico and nano Editors |
|
|
84 | |
|
|
|
86 | |
|
Listing, Sorting, and Changing Text |
|
|
86 | |
|
|
|
87 | |
|
|
|
88 | |
|
Paginating Text Files with pr |
|
|
88 | |
|
Searching for Text with grep |
|
|
89 | |
|
|
|
91 | |
|
Translating or Removing Characters with tr |
|
|
92 | |
|
Checking Differences Between Two Files with diff |
|
|
93 | |
|
Using awk and cut to Process Columns |
|
|
95 | |
|
Converting Text Files to Different Formats |
|
|
96 | |
|
|
|
96 | |
| Chapter 6: Playing with Multimedia |
|
97 | |
|
|
|
97 | |
|
|
|
97 | |
|
|
|
99 | |
|
|
|
100 | |
|
|
|
101 | |
|
|
|
103 | |
|
|
|
105 | |
|
|
|
106 | |
|
Getting Information about Images |
|
|
106 | |
|
|
|
107 | |
|
Converting Images in Batches |
|
|
109 | |
|
|
|
109 | |
| Chapter 7: Administering File Systems |
|
111 | |
|
Understanding File System Basics |
|
|
111 | |
|
Creating and Managing File Systems |
|
|
113 | |
|
|
|
113 | |
|
Working with File System Labels |
|
|
117 | |
|
|
|
118 | |
|
Viewing and Changing File System Attributes |
|
|
119 | |
|
Creating and Using Swap Partitions |
|
|
121 | |
|
Mounting and Unmounting File Systems |
|
|
122 | |
|
Mounting File Systems from the fstab File |
|
|
122 | |
|
Mounting File Systems with the mount Command |
|
|
124 | |
|
Unmounting File Systems with umount |
|
|
127 | |
|
|
|
127 | |
|
|
|
129 | |
|
Finding Out About File System Use |
|
|
131 | |
|
|
|
132 | |
|
|
|
133 | |
|
|
|
135 | |
|
|
|
136 | |
|
|
|
137 | |
|
Removing LVM Logical Volumes and Groups |
|
|
137 | |
|
|
|
138 | |
| Chapter 8: Backups and Removable Media |
|
139 | |
|
Backing Up Data to Compressed Archives |
|
|
139 | |
|
Creating Backup Archives with tar |
|
|
139 | |
|
|
|
141 | |
|
Listing, Joining, and Adding Files to tar Archives |
|
|
144 | |
|
Deleting Files from tar Archives |
|
|
145 | |
|
|
|
145 | |
|
Backing Up tar Archives Over ssh |
|
|
145 | |
|
Backing Up Files with rsync |
|
|
147 | |
|
|
|
148 | |
|
Backing Up to Removable Media |
|
|
149 | |
|
Creating Backup Images with mkisofs |
|
|
150 | |
|
Burning Backup Images with cdrecord |
|
|
152 | |
|
Making and Burning DVDs with growisofs |
|
|
154 | |
|
|
|
154 | |
| Chapter 9: Checking and Managing Running Processes |
|
155 | |
|
|
|
156 | |
|
Viewing Active Processes with ps |
|
|
156 | |
|
Watching Active Processes with top |
|
|
162 | |
|
Finding and Controlling Processes |
|
|
163 | |
|
Using pgrep to Find Processes |
|
|
163 | |
|
Using fuser to Find Processes |
|
|
164 | |
|
Changing Running Processes |
|
|
165 | |
|
|
|
171 | |
| Chapter 10: Managing the System |
|
173 | |
|
|
|
173 | |
|
|
|
174 | |
|
|
|
177 | |
|
Monitoring Storage Devices |
|
|
179 | |
|
|
|
181 | |
|
Changing Time/Date with Graphical Tools |
|
|
182 | |
|
Displaying and Setting Your System Clock |
|
|
182 | |
|
Displaying and Setting Your Hardware Clock |
|
|
184 | |
|
Using Network Time Protocol to Set Date/Time |
|
|
184 | |
|
Trying Other Date/Time Commands |
|
|
185 | |
|
Managing the Boot Process |
|
|
186 | |
|
Using the GRUB Boot Loader |
|
|
186 | |
|
Repairing the initial ramdisk (initrd) |
|
|
187 | |
|
Controlling Startup and Run Levels |
|
|
188 | |
|
|
|
190 | |
|
|
|
193 | |
|
|
|
194 | |
| Chapter 11: Managing Network Connections |
|
195 | |
|
Configuring Networks from the GUI |
|
|
195 | |
|
Managing Network Interface Cards |
|
|
196 | |
|
Managing Network Connections |
|
|
198 | |
|
Starting and Stopping Ethernet Connections |
|
|
199 | |
|
Viewing Ethernet Connection Information |
|
|
200 | |
|
Using Wireless Connections |
|
|
201 | |
|
|
|
203 | |
|
|
|
206 | |
|
Troubleshooting Network Problems |
|
|
208 | |
|
Checking Connectivity to a Host |
|
|
208 | |
|
Checking Address Resolution Protocol (ARP) |
|
|
209 | |
|
|
|
210 | |
|
Displaying netstat Connections and Statistics |
|
|
212 | |
|
Other Useful Network Tools |
|
|
213 | |
|
|
|
214 | |
| Chapter 12: Accessing_Network Resources |
|
215 | |
|
Running Commands to Browse the Web |
|
|
215 | |
|
|
|
216 | |
|
Downloading Files with wget |
|
|
216 | |
|
Transferring Files with cURL |
|
|
218 | |
|
Transfering Files with FTP Commands |
|
|
219 | |
|
Using SSH Tools to Transfer Files |
|
|
221 | |
|
Using Windows File Transfer Tools |
|
|
222 | |
|
Sharing Remote Directories |
|
|
223 | |
|
Sharing Remote Directories with NFS |
|
|
223 | |
|
Sharing Remote Directories with Samba |
|
|
225 | |
|
Sharing Remote Directories with SSHFS |
|
|
229 | |
|
Chatting with Friends in IRC |
|
|
229 | |
|
Using Text-Based E-mail Clients |
|
|
231 | |
|
Managing E-mail with mail |
|
|
231 | |
|
Managing E-mail with mutt |
|
|
232 | |
|
|
|
234 | |
| Chapter 13: Doing Remote System Administration |
|
235 | |
|
Doing Remote Login and Tunneling with SSH |
|
|
235 | |
|
|
|
236 | |
|
Logging in Remotely with ssh |
|
|
237 | |
|
Using screen: A Rich Remote Shell |
|
|
242 | |
|
Using a Remote Windows Desktop |
|
|
245 | |
|
Connecting to a Windows Desktop with tsclient |
|
|
246 | |
|
Connecting to a Windows Desktop with rdesktop |
|
|
247 | |
|
Using Remote Linux Desktop and Applications |
|
|
247 | |
|
Sharing Desktops Using VNC |
|
|
248 | |
|
Setting Up the VNC Server |
|
|
249 | |
|
Starting Up the VNC Client |
|
|
249 | |
|
Using VNC on Untrusted Networks with SSH |
|
|
250 | |
|
|
|
250 | |
| Chapter 14: Locking Down Security |
|
251 | |
|
Working with Users and Groups |
|
|
251 | |
|
Managing Users the GUI Way |
|
|
252 | |
|
|
|
252 | |
|
|
|
254 | |
|
|
|
254 | |
|
|
|
255 | |
|
|
|
257 | |
|
|
|
257 | |
|
Configuring the Built-In Firewall |
|
|
259 | |
|
|
|
262 | |
|
Using Advanced Security Features |
|
|
263 | |
|
|
|
264 | |
| Appendix A: Using vi or Vim Editors |
|
265 | |
|
Starting and Quitting the vi Editor |
|
|
265 | |
|
|
|
267 | |
|
Changing and Deleting Text in vi |
|
|
268 | |
|
Using Miscellaneous Commands |
|
|
269 | |
|
Modifying Commands with Numbers |
|
|
270 | |
|
|
|
271 | |
|
|
|
272 | |
| Appendix B: Shell Special Characters and Variables |
|
273 | |
|
Using Special Shell Characters |
|
|
273 | |
|
|
|
274 | |
| Appendix C: Getting Information from /proc |
|
277 | |
|
Viewing /proc information |
|
|
277 | |
|
Changing /proc information |
|
|
281 | |
| Index |
|
283 | |