Language Selection

English French German Italian Portuguese Spanish

June 2007 (#139) Issue of Linux Gazette Online

Filed under
Linux

This month's issue of Linux Gazette is ready and online. This month's highlights include:

  • Creating an Unkillable Process

Annoying as unkillable processes can be, there are some circumstances where you might legitimately want to create one. For example, if I run an audit tool, or if I want to write a program that makes sure I go to bed on time even when I'm really stuck into something, then I might not want even the root user to be able to stop it from running.

One approach would be to simply disallow any root access to the system, or at least disallow it at critical times, but that can get very complex if you still need to be able to administrate the system and/or cannot tell with certainty which times will not be critical. So I wanted an approach that did not rely on disallowing root access altogether.

---

  • Installing Perl Modules as a Non-Root User

If you use Perl for anything more complex than the traditional (and boring) generation of "Hello, World", then it's also likely that you're familiar with those wonderful work-saving devices - Perl modules. Furthermore, chances are that you're also familiar with CPAN, the Comprehensive Perl Archive Network, and the easy interface to it that is provided by the CPAN module. That all works just great - assuming that you a) run a sensible modern OS like Linux, and Cool have root access to the machine you're using (or have a friendly and cooperative sysadmin). But what if those assumptions don't hold true? What if, for example, you have a shell account on a machine run by some mega-corporation that doesn't feel like installing the Foo::Bar::Zotz::Blagger-0.01 module in their /usr/lib/perl? I, for one, can't blame them; a system-wide installation could open them up to unknown bugs galore. When your interests and theirs conflict, you lose every time - since they own the system.

So, what can we do if we really, really need that module but can't get it installed on a system-wide basis?

---

  • Writing PostgreSQL Functions in C

PostgreSQL is a powerhouse in its own right, but it is also extensible. You have a lot of options when it comes to extending PostgreSQL. You can use SQL, PL/pgSQL, PL/Tcl, PL/Perl, PL/Python, and more. Each option has its advantages. C has the advantage of speed, of course. Because PostgreSQL itself is written in C, writing C code also allows you to leverage some of PostgreSQL's own internal code. Your C code can also readily leverage any number of other programming libraries. C functions are also a stepping stone toward defining your own new PostgreSQL base types. Ready to get started? Great! Because instead of trying to butter you up with a witty preamble, I'm going to take you straight to work.

---

  • 2-Cent Tips

Recording ALSA PCM output as RAW data

I'd like to write a short tip here. Sometimes, you may want to record the PCM output stream, maybe for further sound analysis and such. How to do it?

You need to modify your ALSA setting e.g in /usr/share/alsa/alsa.conf and add below lines:

---

June 2007 (#139) Issue of Linux Gazette



More in Tux Machines

LWN (Now Open Access): Kernel Configuration, Linux 4.14 Merge Window, Running Android on a Mainline Graphics Stack

  • A different approach to kernel configuration
    The kernel's configuration system can be challenging to deal with; Linus Torvalds recently called it "one of the worst parts of the whole project". Thus, anything that might help users with the process of configuring a kernel build would be welcome. A talk by Junghwan Kang at the 2017 Open-Source Summit demonstrated an interesting approach, even if it's not quite ready for prime time yet. Kang is working on a Debian-based, cloud-oriented distribution; he wanted to tweak the kernel configuration to minimize the size of the kernel and, especially, to reduce its attack surface by removing features that were not needed. The problem is that the kernel is huge, and there are a lot of features that are controlled by configuration options. There are over 300 feature groups and over 20,000 configuration options in current kernels. Many of these options have complicated dependencies between them, adding to the challenge of configuring them properly.
  • The first half of the 4.14 merge window
    September 8, 2017 As of this writing, just over 8,000 non-merge changesets have been pulled into the mainline kernel repository for the 4.14 development cycle. In other words, it looks like the pace is not slowing down for this cycle either. The merge window is not yet done, but quite a few significant changes have been merged so far. Read on for a summary of the most interesting changes entering the mainline in the first half of this merge window.
  • Running Android on a mainline graphics stack
    The Android system may be based on the Linux kernel, but its developers have famously gone their own way for many other parts of the system. That includes the graphics subsystem, which avoids user-space components like X or Wayland and has special (often binary-only) kernel drivers as well. But that picture may be about to change. As Robert Foss described in his Open Source Summit North America presentation, running Android on the mainline graphics subsystem is becoming possible and brings a number of potential benefits. He started the talk by addressing the question of why one might want to use mainline graphics with Android. The core of the answer was simple enough: we use open-source software because it's better, and running mainline graphics takes us toward a fully open system. With mainline graphics, there are no proprietary blobs to deal with. That, in turn, makes it easy to run current versions of the kernel and higher-level graphics software like Mesa.

Beautify Your KDE Plasma 5 Desktop Environment with Freshly Ported Adapta Theme

Good morning! It's time to beautify your KDE Plasma 5 desktop environment, and we have just the perfect theme for that as it looks like the popular Adapta GTK theme was recently ported to Plasma 5. Read more

Roughing it, with Linux

I have been traveling for about two weeks now, spending 10 days camping in Iceland and now a few days on the ferry to get back. For this trip I brought along my Samsung N150 Plus (a very old netbook), loaded with openSUSE Linux 42.3. Read more

Red Hat: Ansible Tower, Patent Promise, and Shares Declining

  • Red Hat’s automation solution spreading among APAC enterprises
    Red Hat recently shared revealed its agentless automation platform is spreading among enterprises in APAC countries like Australia, China, India and Singapore. The company asserts its Ansible Tower helps enterprises cut through the complexities of modern IT environments with powerful automation capabilities that improve productivity and reduce downtime. “Today’s business demands can mean even greater complexity for many organisations. Such dynamic environments can necessitate a new approach to automation that can improve speed, scale and stability across IT environments,” says head of APAC office of technology at Red Hat, Frank Feldmann.
  • Red Hat broadens patent pledge to most open-source software
    Red Hat, the world's biggest open source company, has expanded its commitment on patents, which had originally been not to enforce its patents against free and open source software.
  • Red Hat expands Patent Promise
    Open-source software provider Red Hat has revised its Patent Promise, which was initially intended to discourage patent aggression against free and open-source software. The expanded version of the defensive patent aggregation scheme extends the zone of non-enforcement to all of Red Hat’s patents and all software under “well-recognised” open-source licenses. In its original Patent Promise in 2002, Red Hat said software patents are “inconsistent with open-source and free software”.
  • Red Hat Inc (RHT) AO Seeing a Consistent Downtrend
  • Red Hat, Inc. (RHT) noted a price change of -0.14% and RingCentral, Inc. (RNG) closes with a move of -2.09%