DistroWatch Weekly |
| DistroWatch Weekly, Issue 241, 25 February 2008 |
|
Welcome to this year's 8th issue of DistroWatch Weekly! Great week for all the fans of FreeBSD - according to the project's updated release engineering page, the delayed FreeBSD 7.0 should be up on the mirrors within hours! In the news section, Ubuntu introduces the all-new Intrepid Ibex, Gentoo polls its developers on issues facing the project, gNewSense announces a new level of package freedom in its repositories, and PCLinuxOS sets up a dedicated forum board for security notices. Other topics in this week's issue include a quick tutorial on using the cut and paste commands for manipulating columns of data in text files and a brief introduction to Ultimate Edition, an Ubuntu-based distribution for the desktop. As always, happy reading!
Content:
Join us at irc.freenode.net #distrowatch
|
| Featured Story |
UNIX cut and paste
After last week's heated debate on the state of security infrastructures in Linux distributions, I am hoping for a quieter week with a more neutral and distro-agnostic topic as today's feature story. Ready for a quick and easy tips and tricks session?
Looking through the history of commands in my terminal, I've noticed that among the commands I use most frequently are "cut" and "paste". For those of you who are just entering the UNIX world, these have little to do with cutting and pasting chunks of text with a mouse or keyboard à la Windows; instead, these old UNIX commands are designed to extract and rearrange columns of text separated by delimiters. Let's take a look at an example. If you are on a Debian system and you run "dpkg -l" on the terminal, you'll get a full list of packages installed on your system in a tabular format. The end of the output might look something like this:

As we can see, there are four columns of data. The first one, consisting of two characters, indicates the status of the file (whether it has been fully installed, partially removed, etc.), the second column lists the names of the packages, the third one their versions, and the last one gives a brief description of each package. This is too verbose for my needs, so I decide to rearrange the columns so that they only contain the package names and versions. Also, I want to list fully installed packages only. This is how we do it.
First, we use the "grep" command to filter out all the lines that do not start with "ii", so we pipe (|) the original "dpkg" command to "grep" like this:
dpkg -l | grep "^ii"
Next, we'll start using the "cut" command. For this, we'll need to specify the delimiter, i.e. which character is used to cut off columns of text from the rest. In this case, the delimiter will be the "space" character, since this is the character that immediately precedes and immediately follows the second column. For specifying the delimiter we use the -d switch and enclose the space character in single or double quotes. For specifying the desired column we use the -f switch (as there are two spaces before the package name column, we'll be cutting off everything before the second space character and everything after the third space character, including the space characters themselves). This will expand the previous command as follows:
dpkg -l | grep "^ii" | cut -d' ' -f3
The result is a long list of package names and nothing else. We'll save it in a temporary file with the output redirection character (>):
dpkg -l | grep "^ii" | cut -d' ' -f3 > temp1.txt
You can also cut off more than one column by using the -f switch in this fashion: -f3-6. If you are following this brief tutorial in a terminal window, try to change a few variables (the delimiter, the column numbers) to get a feel for how each change affects the output.
Next, we are going to isolate the third column, the one that lists package versions. This is a bit trickier because the number of spaces between the second and third column varies depending on how long the package name is. As such, we cannot use the -d delimiter. Luckily we have another option: the -b switch, which stands for number of bytes (or a number of characters you want to cut off from the original list). We use the -b switch in this way:
dpkg -l | grep "^ii" | cut -b 46-
The above command will cut off everything from the beginning of the line until the 46th character on each line. In other words, it will only display text from the the 46th character onwards. The problem here is that we don't know where exactly the third column starts (it depends on several factors, including the width of your terminal window), so you will either have to count the characters to determine it or you can do a few test runs with different variables (46, 50, 54, etc.) to find the correct value. You will also want to cut off anything following the package version numbers, which we can do with another pipe to another space-delimited "cut" command:
dpkg -l | grep "^ii" | cut -b 46- | cut -d' ' -f1
Finally, we'll save it to a temporary file:
dpkg -l | grep "^ii" | cut -b 46- | cut -d' ' -f1 > temp2.txt
We have two temporary text files, both containing the same number of lines. We can now combine them into one file with the paste command:
paste -d^ temp1.txt temp2.txt
Here I used the caret (^) character as the delimiter, but you can use any other character you wish. (The caret is great, because it is rarely employed elsewhere, so it can be used as a delimiter fairly universally. Over the years I've really grown fond of using the caret as the delimiter of columns in my text files ;-). The end result now looks like this:

Now, as a home work, please pipe the above command to "cut" in such a way that it removes all text after the dash (-) character. (Yes, I am serious!)
Of course, you can combine all these commands into one line by joining them with "&&" or you can create a Bash script placing each command on its own line and make the script executable. The advantage of a Bash script is that you can also pass variables to it; in the above example, you can simply replace the number "46" with "$1", then when you execute it, you can specify the correct number as the first argument of the script.
By giving the above example I wanted to show how flexible and fast the command line really is. If you'd tried to perform the above in a spreadsheet, it would certainly take a lot longer to accomplish (the above commands will complete their run long before you open your OpenOffice.org Calc!), so by learning a few commands, you can sort through long columns of data with ease and elegance. You can further combine "cut" and "paste" with other useful commands, such as "uniq", "sort", "grep" and "sed" to display virtually anything from any text file. In fact, I've found that extracting an exact piece of information from a 600 MB Apache log file using these commands won't take more than a few seconds.
If you regularly work with data and text files, do spend a few minutes to learn how to cut and paste the UNIX way. You'll find that you'll be able to accomplish many seemingly complex, time-consuming tasks in a jiffy.
|
| Miscellaneous News |
FreeBSD reaches 7, Ubuntu introduces Intrepid Ibex, Gentoo conducts developer survey; gNewSense "frees" software packages, PCLinuxOS announces security board, interview round-up
Let's start the news section with a rumour: the long-awaited FreeBSD 7.0 will be officially released tomorrow (Tuesday). This is further supported by the fact that, apparently, if you run your preferred FreeBSD upgrade utility today and recompile your system, you will end up running "FreeBSD-7.0-RELEASE". Which means that the development of FreeBSD 7.0 has been completed and all that remains to be done before the official release is to generate ISO images for all the different architectures, update the release notes and prepare the release announcements. FreeBSD 7.0 is a very big update and we'll take a closer look at it in next week's DistroWatch Weekly, but for now it's suffice to say that there are many exciting features that will make the operating system much easier to administer. However, don't expect this new version to be any desktop-friendlier than the older ones (for that you'll still need to reach for one of the FreeBSD-based desktop projects, such as PC-BSD or DesktopBSD).
* * * * *
The Ubuntu code names have become an integral part of the Ubuntu culture. Last week, Mark Shuttleworth announced that Ubuntu 8.10, scheduled for release in October this year, will bear the name "Intrepid Ibex": "And so I'd like to introduce you to the Intrepid Ibex, the release which is planned for October 2008, and which is likely to have the version number 8.10. During the 8.10 cycle we will be venturing into interesting new territory, and we'll need the rugged adventurousness of a mountain goat to navigate tricky terrain. Our desktop offering will once again be a focal point as we re-engineer the user interaction model so that Ubuntu works as well on a high-end workstation as it does on a feisty little sub-notebook. We'll also be reaching new peaks of performance - aiming to make the mobile desktop as productive as possible."
* * * * *
What are the most critical issues facing Gentoo Linux? This is a question that Donnie Berkholz (better known as "spyderous") sent to 50 developers on an internal Gentoo mailing list. The result? A neat chart that explains a lot about how an average Gentoo developer feels about his or her project: "Technical issues are way down on the list. Developers' top 5 issues are manpower, publicity, goals, developer friction, and leadership. It's good to see that we've been addressing at least a couple of them with the newly energized public relations project and work on the Code of Conduct. Other issues that have been ongoing for quite a while now are the lack of distro-wide vision and goals. The Council could provide those by increased activity and taking stronger stands in particular directions, and that's part of the reason I did this survey - to figure out which directions our developers care about. I think part of the problem is that nobody sits around pondering directions and ideas. Everybody's busy working in their own little areas and not thinking about the big picture."
* * * * *
Karl Goetz, a developer of gNewSense, has emailed DistroWatch with an important piece of news. According to recent communication, the main package repository of gNewSense is now officially free, as defined by the Free Software Foundation (FSF): "Following some last minute work by Brian, and some good work this week from Marco, Lee and I, I would like to announce the the gNS/Packages/MAIN repository, is now officially free (as defined by the FSF). It has taken quite a bit of effort to get there, and the number of contributors is a little large to list here. Needless to say, I'd like to thank all of those that helped in a small or large way, as any contribution is significant." The same announcement also reveals that the next release of gNewSense will be based on Ubuntu 8.04 "Hardy Heron" and will be released April this year.
* * * * *
Several interesting interviews showed up last week in the Linux media. First, it was CNET which has talked to Fedora's new project leader. Is there room for non-developers in an open source software project? Paul Frields replies: "Obviously, a big portion of Fedora is software development. But there's a whole host of other activities going on as well. In Fedora I've discovered big pockets of people like me: artists, writers, translators, evangelists, etc. In a project like this, there's a place for all these people, and not solely developers. The fact that I was recognized for my non-development work is a testament to the great things that non-developers can do within Fedora and within open-source projects. Fedora is about enabling the democratization of content. Our community reflects this."
* * * * *
Next, an interview with Kenneth Granerud, the creator of Wolvix. Wolvix is a Slackware-based live CD that is not particularly well-known, but those who try it tend to be rather impressed. But how did Wolvix come about? "The thought of creating Wolvix came a good while before I had the required knowledge to actually develop it. I don't remember all the details, but the idea came after seeing KNOPPIX for the first time. I thought it was great that you could run an operating system from a CD without installing anything to the hard drive. Like many others I wanted to make my own version of KNOPPIX and my initial idea was to make a live CD full of games and a few key applications like a web browser, text editor, audio player, etc. ... The first prototype of Wolvix was based on Feather. I found remastering Feather rather cumbersome and with my limited knowledge I managed to break the prototype so many times that I eventually gave up and scrapped the whole idea. It was not until some time later that I found SLAX while looking for a distro to run on my USB flash drive. Seeing how easy it was to add applications to SLAX, the idea of Wolvix was reborn."
* * * * *
One more interview, this time it's with Anne Nicolas, the director of engineering at Mandriva Linux. It's in French, but it's short (2 minutes), sweet and informal, and it's a video - the interview was conducted during last week's Solution Linux 2008 in Paris. It's a good way to (virtually) meet the person responsible for the excellent 2008 release and the unexpected resurgence of Mandriva as a distribution likely to give its bigger competitors a serious challenge in the coming months. Watch the brief interview with Anne Nicolas here.
* * * * *
Finally, a quick note on PCLinuxOS. Last week's discussions about security notifications in various distributions produced a number of heated exchanges, but it also led to at least one project introducing a more open security policy. A new PCLinuxOS forum section devoted exclusively to security was announced last week by Texstar: "Security updates on PCLinuxOS are fairly transparent to the end user as they are just part of the normal Synaptic update process. Most commercial distributions have a full time security officer who works 40+ hours a week doing security updates, testing and posting update notices. Since we are a community distribution without commercial backing this section has been established to keep you informed." While this is not quite the same as issuing real GPG-signed security advisories, it's definitely a step in the right direction. See the PCLinuxOS Security Update Notices forum for further details.
|
| Released Last Week |
GoblinX Linux 2.6
Flavio Pereira de Oliveira has announced the final release of GoblinX 2.6 Standard edition, a Slackware-based live CD for the desktop: "GoblinX 2.6 is released. GoblinX Standard is the original edition which was first released in October 2004. It includes five windows managers: KDE, Fluxbox, Xfce, Enlightenment and WindowMaker. The main upgrades since release candidate 1: Added SLAX firewall; added more options to Isolinux menu; rebuilt GtkDialog interfaces to prevent resize action; corrected several errors and bugs; corrected Kill button in media manager interfaces; upgraded some libraries and packages, including xorg-server; corrected some sudo issues; removed X.Org default resolution; removed some libraries; added more services to boot; added more auto-start options; corrected Ivman issues." Visit the project's news page to read the release announcement.

GoblinX 2.6 - the default KDE desktop (full image size: 1,343kB, screen resolution: 1280x1024 pixels)
NetSecL 2.2
Iuri Stanchev has announced the release of NetSecL 2.2, a security-focused distribution based on Slackware Linux: "NetSecL 2.2 is out! As you can see I have shrunk the distribution to 1 CD. The default desktop is Xfce from now on, but you can still run KDE applications. In this release you will find 106 updates and 20 fixes, Linux kernel 2.6.23.9 with GrSecurity also the pre-compiled kernel supports from 1 up to 8 processors. Major packages like Snort, iptables, firewall scripts and others were updated. The fixes in this release are updates as well. The mark i486_64 indicates that the package is executable from i486 machines up to 64-bit systems, it also indicates that it is compiled with Binutils that supports PT_PAX_FLAGS and with GCC with stack smashing protection." Read the release announcement and changelog for more details.
CentOS 5.1 Live CD
Patrice Guay has announced the release of CentOS 5.1 live CD: "The CentOS Development team is pleased to announce the availability of the CentOS 5.1 i386 live CD. This CD is based on our CentOS 5.1 i386 distribution. We used the tools from the Fedora livecd-tools project to create the CentOS 5.1 live CD image. It can be used as a workstation, with the following software: OpenOffice.org 2.0.4, Firefox 1.5.0.12, Thunderbird 1.5.0.12, Pidgin 2.0.2, Scribus 1.3.3.2, XChat 2.6.6, K3b 0.12.17, GIMP 2.2.13. It can also be used as a rescue CD with the following tools: Memtest86+ 1.65, full set of LVM and RAID command line tools, QTParted, Nmap and NMapFE, traceroute, Samba 3.0.25b with CIFS kernel support to connect to Windows file shares, System Log Viewer, GUI Hardware Device Manager." See the release announcement and release notes for further information.
Scientific Linux 5.1 Live CD/DVD
A live edition of Scientific Linux 5.1, a distribution built from Red Hat Enterprise Linux source packages and enhanced with extra scientific software, has been released: "Scientific Linux Live CD/DVD 5.1 has been released for i386 and x86_64 architectures. The Scientific Linux Live CD/DVD runs Scientific Linux directly from CD/DVD without installing. The following editions are available: Mini-LiveCD 32-bit with IceWM; LiveCD 32-bit with GNOME; LiveCD 64-bit with GNOME; LiveDVD 32-bit with GNOME, KDE and IceWM; LiveDVD 64-bit with GNOME, KDE and IceWM. Live CD/DVD features: fully writeable root file system; hardware auto-detection; can be installed to local hard disk; can be installed on USB key; can be mounted over NFS (as diskless client)." More in the release announcement.
Linux Caixa Mágica 12
Linux Caixa Mágica is a Portuguese desktop and server distribution based Mandriva Linux. Version 12 is the project's latest release available for both the i586 and x86_64 architectures. Some of the more interesting new features include: 3G access; support for national identity card readers; friendly desktop with 3D effects courtesy of Compiz Fusion; new hardware detection engine, OpenOffice.org 2.3.1 in Portuguese; new server software. The distribution is powered by Linux kernel 2.6.22 and includes X.Org 7.2, the default KDE desktop 3.5.7, GNOME 2.20, GIMP 2.4.3, Synaptic and APT for RPM package management tools, proprietary graphics drivers, and support for many popular media formats and browser plugins. For more information please read the release announcement and visit the product page (both links in Portuguese).
FreeNAS 0.686.1
Volker Theile has announced the release of an updated version of FreeNAS, a tiny FreeBSD-based operating system which provides free Network-Attached Storage (NAS) services. From the changelog: "Upgrade Samba to 3.0.28; add attributes 'Guest account' and 'Null passwords' to 'Samba: Settings' advanced section in WebGUI; enhance WebGUI + rc-script to define additional group memberships for user accounts; replace uShare UPnP Mediaserver with MediaTomb 0.10.0; increase mfsroot size to 54MB for embedded version; add kernel patch to support ATI IXP600/700 PATA/SATA; switch back to SCHED_ULE scheduler; upgrade 3ware serial ATA RAID controller driver to 9.4.2; allow creation of users with empty passwords; upgrade ATAidle to 2.3; add SSL/TLS support to FTP service; use inadyn-mt instead of inadyn dynamic DNS client...." Read the rest of the release notes for more information.
* * * * *
Development, unannounced and minor bug-fix releases
|
| Upcoming Releases and Announcements |
|
Summary of expected upcoming releases
|
| DistroWatch.com News |
|
New distributions added to database
* * * * *
New distributions added to waiting list
- Inquisitor. Inquisitor is a hardware testing and certification system, suitable for both enterprise and home use, customisable, modular and available in both serverless live CD/DVD format and server-controlled network boot production system. Based on Alt Linux.
- Zebuntu. Zebuntu is a Linux distribution based on Xubuntu, with some influences from Zeta (an operating system based on BeOS). The project's web site is in German only.
* * * * *
DistroWatch database summary
And this concludes the latest issue of DistroWatch Weekly. The next instalment will be published on Monday, 3 March 2008.
Ladislav Bodnar
|
|
|
Archives |
| • Issue 507 (2013-05-13): Impressions of Calculate Linux, 13.4, Ubuntu's portable packages, mintDrivers |
| • Issue 506 (2013-05-06): Ubuntu and Kubuntu 13.04, Debian "Wheezy", Slackware on systemd, distros for Raspberry Pi |
| • Issue 505 (2013-04-29): First look at PCLinuxOS 2013.04, Saucy Salamander, Remastersys and System Imager, Linux containers |
| • Issue 504 (2013-04-22): Look at Bodhi 2.3.0, Ubuntu 13.04 features, building OpenBSD ports, opening large files |
| • Issue 503 (2013-04-15): CentOS versus Scientific Linux, PCLinuxOS 64, Lucas Nussbaum, ZFS/Btrfs versus ext4 |
| • Issue 502 (2013-04-08): Look at Mint 201303 "Debian", Ubuntu versus openSUSE, comparing ZFS and Btrfs file systems |
| • Issue 501 (2013-04-01): KANOTIX 2013 and GhostBSD 3.0, openSUSE Rescue-CD, Haiku package management, computer forensics |
| • Issue 500 (2013-03-25): Look at openSUSE 12.3, Ubuntu release changes, Debian backports, growing divide |
| • Issue 499 (2013-03-18): MINIX 3.2.1, openSUSE 12.3 on desktop, Ubuntu GNOME and UbuntuKylin, distros for musicians, KolibriOS |
| • Issue 498 (2013-03-11): Sabayon Linux 11, Ubuntu's Mir, Linux malware |
| • Issue 497 (2013-03-04): Rebellin Linux 1.00 "Adrenaline", rolling-release Ubuntu, Arch vs spin-offs, justification and diversity |
| • Issue 496 (2013-02-25): Review of Chakra 2013.02, The Book of GIMP, Ubuntu and privacy, FreeNAS vs NAS4Free |
| • Issue 495 (2013-02-18): SparkyLinux 2.1 "Ultra", Fedora 19 schedule, Xubuntu on DVD, cloud privacy |
| • Issue 494 (2013-02-11): FreeBSD 9.1, web server stats, Anaconda, rolling-release PC-BSD, fixing broken packages in Arch |
| • Issue 493 (2013-02-04): UberStudent 2.0, OmniBoot 1.0, MariaDB, Enlightenment 0.17 |
| • Issue 492 (2013-01-28): Fedora 18 review, systemd, Kali Linux, Ubuntu Unleashed |
| • Issue 491 (2013-01-21): Fuduntu 2013.1, Fedora 18 desktop choices, Consort, accessing encrypted drive |
| • Issue 490 (2013-01-14): Look at Manjaro Linux 0.8.3, openSUSE on Chromebook, Able2Extract 8.0 |
| • Issue 489 (2013-01-07): PC-BSD 9.1, Arch spin-offs, rolling-releases, year-end PHR stats, removing applications |
| • Issue 488 (2012-12-24): Reviews of Unity and Puppy Linux 5.4 "Slacko", FreeBSD 10 |
| • Issue 487 (2012-12-17): Cinnarch 2012.11.22, OpenMandriva, Fedora Magazine, Tumbleweed, OpenJDK vs Oracle Java |
| • Issue 486 (2012-12-10): Linux Mint 14 review, Ubuntu "spyware" controversy, Haiku overview, troubleshooting Linux servers |
| • Issue 485 (2012-12-03): Kwort Linux 3.5, Mint bug-fix update, Fedora's new Anaconda, defining a distribution |
| • Issue 484 (2012-11-26): Look at SMS 2.0.1, Fedora pre-beta report, Illumos, Secure Boot update |
| • Issue 483 (2012-11-19): DragonFly BSD 3.2.1 and Xubuntu 12.10, Gentoo and udev, switching file systems |
| • Issue 482 (2012-11-12): Review of Zenwalk 7.2, Clang in FreeBSD, Omniboot 0.5, priorities on external drives |
| • Issue 481 (2012-11-05): Look at Tails 0.13, EFF on Ubuntu and privacy, Debian installer changes, ext4 data corruption bug |
| • Issue 480 (2012-10-29): Review of Ubuntu 12.10, Wayland 1.0, FreeBSD's pkgng |
| • Issue 479 (2012-10-22): Look at Zentyal 3.0, Debian bug reporting, initiating a halt |
| • Issue 478 (2012-10-15): Slackware 14.0 review, Ubuntu donations, connecting to multiple machines behind router |
| • Issue 477 (2012-10-08): Review of ODROID-X, OpenBSD's anti-Linux song, interview with Vincent Untz, Linux as operating system |
| • Issue 476 (2012-10-01): Review of openSUSE 12.2, Slackware 14.0 features, accessing home computer with SSH |
| • Issue 475 (2012-09-24): Look at PCLinuxOS 2012.08, Ubuntu and Amazon, SolusOS and PiSi, ownCloud |
| • Issue 474 (2012-09-17): Bodhi Linux 2.0.1, OpenIndiana interview, Frugalware history, update notifications |
| • Issue 473 (2012-09-10): The Linux Command Line, Slackware documentation project, Debian's new primary arch, Goobuntu |
| • Issue 472 (2012-09-03): Kororaa Linux 17, OpenIndiana and SchilliX, Ubuntu GNOME remix, home server tip |
| • Issue 471 (2012-08-27): Linux Mint 13 "KDE", Ubuntu 12.10 features, Slax update, folder quotas |
| • Issue 470 (2012-08-20): Liberté Linux 2012.2, Arch and systemd, NetBSD's sysbuild and sysupgrade, 19 years of Debian |
| • Issue 469 (2012-08-13): Peppermint OS Three, SUSE on Secure Boot, GNOME OS, moving email to Linux |
| • Issue 468 (2012-08-06): First look at CentOS 6.3, Debian installer beta, Fedora and MATE, Libtrash |
| • Issue 467 (2012-07-30): Ubuntu Made Easy, Debian "Jessie", OpenBSD on Secure Boot, Rawhide troubles |
| • Issue 466 (2012-07-23): Fuduntu 2012.3, Linux in PC-BSD jails, secure boot on older computers |
| • Issue 465 (2012-07-16): Netrunner 4.2, Mandriva's two codebases, firewalls and window frames |
| • Issue 464 (2012-07-09): Zorin OS 6, FSF's views on secure boot, Virtual PDF Printer |
| • Issue 463 (2012-07-02): TurnKey Linux 11.3, Red Hat and Btrfs, Sabayon's MATE spin, ZFS on Linux |
| • Issue 462 (2012-06-25): Sabayon 9, "Wheezy" freeze, Zorin OS overview, Vinux interview, mounting network shares |
| • Issue 461 (2012-06-18): Linux Mint 13, openSUSE 12. delays, Debian Multimedia, Mageia 3 roadmap |
| • Issue 460 (2012-06-11): Look at Fedora 17, PC-BSD and Slackware interviews, Openfiler and FuguIta |
| • Issue 459 (2012-06-04): Impressions of Mageia 2, Fedora updates, Debian or Raspberry Pie, improving software performance |
| • Issue 458 (2012-05-28): Impressions of SolusOS 1, Linux kernel 3.4, encrypting home folder |
| • Issue 457 (2012-05-21): Linux accessibility, Fedora 17 overview, MultiSystem, launching tasks |
| • Issue 456 (2012-05-14): Look at OpenBSD 5.1, Debian Installer 7.0 alpha, UDS news round-up |
| • Issue 455 (2012-05-07): Review of Ubuntu 12.04, "Quantal Quetzal" plans, Debian infographic |
| • Full list of all issues |
|