background preloader

Sysadmin

Facebook Twitter

Start - Xorg - ArchWiki - Pentadactyl. From The X.Org project provides an open source implementation of the X Window System. The development work is being done in conjunction with the freedesktop.org community. The X.Org Foundation is the educational non-profit corporation whose Board serves this effort, and whose Members lead this work.

Xorg is the public, open-source implementation of the X window system version 11. Since Xorg is the most popular choice among Linux users, its ubiquity has led to making it an ever-present requisite for GUI applications, resulting in massive adoption from most distributions. See the Xorg Wikipedia article or visit the Xorg website for more details. Installation You will need to install the essential package xorg-server, available in the official repositories. Additionally, the xorg-server-utils meta-package pulls in the most useful packages for certain configuration tasks, they are pointed out in the relevant sections. Driver installation First, identify your card: Running.

Start - Practical Tmux - Pentadactyl. Today I switched over completely from GNU Screen to the more modern BSD-licensed alternative, tmux. After making sure that tmux had replacements for all Screen's key features, I took the plunge, and haven't looked back. The project's webpage has a complete list of features available under tmux, but as an everyday user of Screen, here are the major reasons I switched: Better redraw model: I use Awesome WM, a tiling window manager, and terminals containing Screen sessions would glitch out regularly; spewing all kinds of artifacts into their windows.

Sufficed to say, tmux doesn't do this.Screen contents persisted through full-screen programs: in Screen, you lose your terminal's previous contents after leaving a full-screen program like an editor. Tmux doesn't have this problem.Rational configuration: I once tried to configure my screen's status line, and eventually just gave up. In comparison, tmux's lines like set -g status-right "#[fg=green]#H are almost a little too easy. C-b #! Start - Amazon Elastic Compute Cloud (Amazon EC2) - Pentadactyl. Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.

Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. Introduction to Amazon EC2 (4:01) Amazon EC2 enables you to increase or decrease capacity within minutes, not hours or days. You have complete control of your instances. You have the choice of multiple instance types, operating systems, and software packages. Start - Epylog - Trac - Pentadactyl.

Epylog is a syslog parser which runs periodically, looks at your logs, processes some of the entries in order to present them in a more comprehensible format, and then mails you the output. It is written specifically for large network clusters where a lot of machines (around 50 and upwards) log to the same loghost using syslog or syslog-ng. It is an alternative to a similar package, called "logwatch.

" The epylog engine should work on most unix systems running Python-2.2 and above, although currently the processing modules are only written to work with linux (and particularly Red Hat Linux series 7 and above). However, other unix and linux flavors should work fine, as long as they use standard logging facilities and things like PAM. Features ¶ Threaded for faster network lookups Unwraps "last message repeated" lines Mails reports in either html or plain text (or both) Publishes reports to a file with optional notification via email.

Requirements ¶ Modules ¶ Installing ¶ $ autoconf $ . See ". Start - Linux-Backup.net - Pentadactyl.

Interesting shell snippets

Start - Subtleties of the X Clipboard - Pentadactyl. A few months back, I started running the lean Archlinux build that I've been using through to today. I elected not to use a display manager, instead preferring booting Awesome (an aptly named tiling window manager) via the startx script. After getting used to Awesome's key bindings, and throwing Luakit, Urxvt and Tmux into the mix, I got about as close to an optimized Linux build as I was likely to get. Everything was perfect ... except for one aspect: the clipboard. Its behavior was utterly perplexing: I could select text and middle-click (or Shift-Insert) it most places I wanted, but I could only copy out of Chromium; while pasting it seemed to only respect text that had been copied from itself.

Vim was even worse, even with set clipboard=unnamed it didn't seem to play nice with anything else. This was pretty frustrating—the clipboard's importance in the everyday workflow really can't be understated. The X Clipboard In X10, cut-buffers were introduced. Thus selections came about. Vim. Start - bashrc at master from jpalardy/dotfiles - GitHub - Pentadactyl.

Git

Start - HOWTO: Mount NFS shares under Windows 7 « Sage Hacks - Pentadactyl. UNIX and Linux users have long been accustomed to networking over NFS, or Network File System. It’s been around for a quarter of a century, was made popular by SunOS, and if you can stomach it’s myriad security flaws, it’s always been the quickest, dirtiest way to share files between disparate systems. With the upcoming Windows 7, Microsoft has (finally!) Deemed it neccesary to provide proper NFS client support (and requisite MMC snap-in) to consumer Windows.

First, set up NFS exports on the server- in my case a Ubuntu desktop. An /etc/exports file may look like this: /home 192.168.1.0/24 (rw, async, insecure)/opt 192.168.1.2 (rw, async, insecure)/usr/share *.op.us (ro, insecure) That’s it- three fields. On the Windows side, you mount an NFS export much like any other network share, by issuing a command such as mount [options] //nfs-server-unc-name/share-name [drive letter] This is assuming, of course, that you’ve installed Client Services for NFS under Windows. Like this: Like Loading... Start - Log Files (Perl for System Administration) - Pentadactyl. If this weren't a book on system administration, an entire chapter on log files would seem peculiar. But system administrators have a very special relationship with log files. Like Doctor Doolittle, who could talk to the animals, system administrators are expected to be able to communicate with a large menagerie of software and hardware.

Much of this communication takes place through log files, so we become log file linguists. Perl can be a big help in this process. It is impossible to touch on all of the different kinds of processing and analysis you can do with logs. Entire books have been devoted to just statistical analysis of this sort of data. Logs come in different flavors, so we need several approaches for dealing with them. Here's a simple Perl program to scan for the word "error" in a text-based log file: open(LOG,"logfile") or die "Unable to open logfile:$!

Perl-savvy readers are probably itching to turn it into a one-liner. Perl -ne 'print if /\berror\b/i' logfile. Start - Dear r/LinuxAdmin, how did you get your job? : linuxadmin - Pentadactyl. I'm in the final stages of an IT Graduate program, and by labour day, I should be out in the harsh, dark world of employment. There are several jobs available in the area, but almost nothing with a Linux slant to it.

Even the webservers in the area are running Windows. What's the career-path look like for a Linux admin? Do we all start as Windows Desktop Support while waiting for that Linux break? Or is there some sort of specific ground-floor technology I should be focusing on? Thanks in advance. Edit: Basically, here's my options: Take an unpaid general support internship at a local hospital that uses Windows servers, Cisco switches and a lot of VoIP phones.Take a paid co-op help-desk position in my college's IT department using Windows servers, HP hardware and a bit of VoIP.Take an unpaid internship with my friend's start-up, where I will essentially be the CTO of a small video-streaming network using *NIX web servers and integrating with a high-profile CDN.

Sysadmin - Ask LinuxAdmin, what are the five most important interview questions that all Linux Administrators should be able to Ace? : linuxadmin - Pentadactyl. Sysadmin - Gregable.: Why you should learn just a little Awk - A Tutorial by Example - Pentadactyl. In grad school, I once saw a prof I was working with grab a text file and in seconds manipulate it into little pieces so deftly it blew my mind. I immediately decided it was time for me to learn awk, which he had so clearly mastered.

To this day, 90% of the programmers I talk to have never used awk. Knowing 10% of awk's already small syntax, which you can pick up in just a few minutes, will dramatically increase your ability to quickly manipulate data in text files. Below I'll teach you the most useful stuff - not the "fundamentals", but the 5 minutes worth of practical stuff that will get you most of what I think is interesting in this little language. Awk is a fun little programming language. It is designed for processing input strings.

A (different) prof once asked my networking class to implement code that would take a spec for an RPC service and generate stubs for the client and the server. For our examples, assume we have a little file (logs.txt) that looks like the one below. Sysadmin - BashFAQ/004 - Greg's Wiki - Pentadactyl. In Bash, you can do this safely and easily with the nullglob and dotglob options (which change the behaviour of globbing), and an array: # Bash shopt -s nullglob dotglob files=(*) (( ${#files[*]} )) || echo directory is empty shopt -u nullglob dotglob Of course, you can use any glob you like instead of *. E.g. *.mpg or /my/music/*.mpg works fine. Bear in mind that you need read permission on the directory, or it will always appear empty. Some people dislike nullglob because having unmatched globs vanish altogether confuses programs like ls.

. # Bash if (shopt -s nullglob dotglob; f=(*); ((! The other disadvantage of this approach (besides the extra fork()) is that the array is lost when the subshell exits. Both of these examples expand a glob and store the resulting filenames into an array, and then check whether the number of elements in the array is 0. . # Bash shopt -s nullglob dotglob files=(*) echo "The current directory contains ${#files[@]} things. " Never try to parse ls output. Start - sysadmin, set me some tasks to advance above 'noob admin' status : sysadmin - Pentadactyl.

Hi guys, I've recently begun renting a VPS. It's a box running CentOS 5 and I have root access to the server. So far I've: Set up ssh to use RSA authenticationSet up httpdSet up MySQLSet up bind - one of my domains is now a nameserver after messing with glue records and bind settings. This took me a good hour and a half of googling and hacking! Set up a minecraft serverConfigured scripts to run on startup - chkconfig blah onPlayed with permissions and sym links (between sbin and bin) I'm now at the stage where I've got everything I planned on doing with the server done and am wanting to learn more about the ins and outs of linux admin.

I would love some suggestions on things I could use the server for as well as being given tasks (i.e. set up bind) to help me learn more. Cheers!