Category Archives: Sysadmin

Managing Services on Linux with systemd

New article at Linux.com by me: Managing Services on Linux with systemd . You’ve read all about systemd, the new Linux init daemon. You know what it does, and why. Now it’s time to dig in and learn how to make it sit up and beg — or at least start, stop, and get information on services.

Starting and Stopping Services

My earlier piece, “Here We Go Again, Another Linux Init: Intro to systemd” discusses the concepts behind systemd and what it is supposed to do. Now it’s time to learn how to use it to control services on our systems. systemd is backwards-compatible with sysvinit and Upstart, so you can try it out by installing it on any Linux that uses sysvinit or Upstart without a lot of extra work. Arch Linux, Debian, and OpenSUSE all include systemd in their software repositories.

Nmap Network Probing Cheatsheet

New article by me at Olex Wazi: Nmap Network Probing Cheatsheet– Nmap is a powerful utility for scanning your network and discovering all kinds of information about who is on it and what they’re doing. You can discover used and unused IP addresses, hostnames, services, and operating systems, and their versions – information that can help you monitor who is on your network, and lead you to unsafe or unauthorized servers.

My fine September articles!

My fine September articles:

Crash course: How to make a website with Drupal
Drupal is an amazing content management system (CMS) that can build pretty much any Web site you want it to — if you can figure out how. Follow along as I remake my personal Web site, bratgrrl.com, using Drupal.

Become an ImageMagick Ninja: Doing Things in Batches. Today we’re going to unleash more of the mighty ImageMagick power and learn to make drop shadows, raised buttons, and proof sheets, and generate different sizes of the same image.

A crash course in PostgreSQL, part 2. In which we learn how to populate a table with data, and about important concepts like schema, normalization, views, and transactions.

Doxygen Magically Turns Source Code into Documentation. Good source code documentation takes time and effort, and it’s essential, so what’s an overworked coder to do? Look for tools to make it easier, like the Doxygen documentation system.

Improve Network Security with Open Source Monowall: Part 2. Security doesn’t have to be a brain-burner.

Weekend Project: Find Hidden Treasures in XFCE 4.8

Yet another fine article by me:

“Xfce 4.8 is a major upgrade to the popular lightweight desktop environment. 4.8 was released in January 2011, replacing 4.6. Xfce 4.8 is available in Debian Testing, Ubuntu Natty Narwhal, Fedora 15, and probably other Linux distributions. There is more to Xfce than meets the eye; let’s dig under the hood and uncover some of its hidden goodies.

“Xfce is broken up into several dozen packages, so you have a lot of control over which components you install. In Debian and Natty you can install the Xfce4 meta-package to get a complete desktop environment with niceties like Network Manager, themes, a top panel, a dock, system menu, and a nice logout dialog with a complete set of actions: log out, shut down, restart, suspend, hibernate, and save session. Figure 1 shows how it looks in Natty.

Xubuntu, Ubuntu’s official Xfce spin, ships with more th”emes, multimedia apps, more apps in the dock, and much Gnome integration. Ubuntu users don’t need to download and install Xubuntu, but can get it by installing xubuntu-desktop with all of its Recommends on any *buntu. You can install any number of desktops and window managers on any Linux, and select the one you want to use at login. There is a trick to it on Ubuntu, in case you hadn’t noticed– the Ubuntu login screen won’t show your options until you enter which user is logging in. Then a teeny-tiny menu with various options appears at the bottom of the screen. (Apparently Ubuntu is “humanity towards others with perfect vision and sharp, high resolution computer monitors.”)

“Fedora has its own Xfce customizations that I’ve only skimmed…” Read the rest here

Things You Can’t Do With a GUI: Finding Stuff on Linux

Things You Can’t Do With a GUI: Finding Stuff on Linux , by me, is full of great stuff like:

“How much space is left on my hard drive or drives? This particular incantation is one of my favorites because it uses egrep to exclude temporary directories, and shows the filesystem types:

$ df -hT | egrep -i "file|^/"
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 51G 3.6G 32G 11% /
/dev/sda3 ext4 136G 2.3G 127G 2% /home
/dev/sda1 ext3 244G 114G 70G 63% /home/carla/photoshare
/dev/sdb2 ext3 54G 5.8G 45G 12% /home/carla/music

What files were changed on this day, in the current directory?

$ ls -lrt | awk '{print $6" "$7" "$9 }' | grep 'May 22'

May 22 file_a.txt
May 22 file_b.txt

Read the rest on Linux.com!

IPv6 Crash Course For Linux

IPv6 Crash Course For Linux is my fast, practical introduction to actually using IPv6. In part 1 on Linux.com learn about link-local IPv6 addressing for an instant ad-hoc LAN, how to discover and connect to your LAN neighbors, and how to assign and remove IP addresses from your network interfaces. In part 2 we’ll go out on the Internet using IPv6, and learn about name services and managing your local IPv6 network.

Tip: Fixing Linux Audio Failure

Linux audio is powerful and flexible, and annoying as heck. When you have no sound it can be as simple as Alsamixer resetting everything to mute when you shutdown (Why? Who the heck knows) to problems caused by device conflicts, and our ever-popular friends* Java and Adobe Flash. Java and Flash need drama in their lives, so they break things to get attention.

If you have sound at startup, and then sound quits sometime during your session, the lsof (“list open files”) command will tell you if a process has hijacked your audio. This example shows Java locking up my audio and not letting it go. First take a look in /dev/snd:

Read the rest of this Linux audio tip at Bookofaudactiy.com: