≡ Menu


Download of the day: Linux Kernel 2.6.28

Linux kernel version 2.6.28 has been released and available for download. The new version includes following stable and new features:

a] ext4 file system - The ext4 filesystem can support volumes with sizes up to 1 exbibyte and files with sizes up to 16 TiB. ext4 removes ext3 64-bit storage limits and adds other performance improvements.

b] Graphics Execution Manager (GEM) - It is a a modern memory manager specialized for use in device drivers for graphics chipsets. It manages graphics memory, controls the execution context and manages the Non-Uniform Memory Access (NUMA) environment on modern graphics chipsets. The "xf86-video-intel" device driver will feature GEM integration.

c] Other features - Stable USB drivers, KVM, bug fixes and other stuff.

=> Download Linux kernel 2.6.28 here. You may also find our kernel compile tutorial useful.

Security Update: Debian Linux Kernel Local / Remote Vulnerabilities

Debian project today released a pair of security updates to plug at least ten security holes in its core called Linux kernel. Several vulnerabilities have been discovered in the Linux kernel that may lead to a denial of service or privilege escalation. This update has been rated as having important security impact.
[click to continue…]

mount forcedirectio: Disable Linux CIFS / NFS Client Caching

If your network is heavily loaded you may see some problem with Common Internet File System (CIFS) and NFS under Linux. By default Linux CIFS mount command will try to cache files open by the client. You can use mount option forcedirectio when mounting the CIFS filesystem to disable caching on the CIFS client. This is tested with NETAPP and other storage devices and Novell, CentOS, UNIX and Red Hat Linux systems. This is the only way to avoid data mis-compare and problems.

The default is to attempt to cache ie try to request oplock on files opened by the client (forcedirectio is off). Foredirectio also can indirectly alter the network read and write size, since i/o will now match what was requested by the application, as readahead and writebehind is not being performed by the page cache when forcedirectio is enabled for a mount

mount -t cifs //mystorage/data2 -o username=vivek,password=myPassword,rw,bg,vers=3,proto=tcp,hard,intr,rsize=32768,wsize=32768,forcedirectio,llock /data2

Refer mount.cifs man page, docs stored at Documentation/filesystems/cifs.txt and fs/cifs/README in the linux kernel source tree for additional options and information.

How To Use vi as Default Editor and Viewer in Midnight Commander

This is an user contributed article.

Midnight Commander (mc) is an user-friendly text-based file manager UI for Unix. Using mc, you can browse the filesystem easily and manipulate the files and directories quickly. You will not miss the standard command line prompt, which is also available within the mc itself. If you are new to mc, Midnight Commander (mc) Guide: Powerful Text based File Manager for Unix article will give you a quick jumpstart. In this article, let us review how to solve couple of common annoyance about viewing a file in mc.

Use vi as default editor and viewer in mc

Mc uses mcedit for file editor and mcview for file viewer. Like most of you, I'm very comfortable with vi and would like to use vi for both viewing and editing than the mc's internal editor and viewer.

Launch mc in color mode by typing “mc -c” from the command line. Press F9 (or Esc followed by 9) to activate the top menu → select Options menu → select Configurations menu-item, which will display “Configure Options” dialog → de-select the check-box next to “Use Internal Edit” and “Use Internal View”, as shown below to disable, internal editor and viewer.

After this change, when you select a file and press Esc 3 to view or Esc 4 to edit, mc will use vi.

Fig.01 Mc configure options to disable internal editor and viewer

Fig.01 Mc configure options to disable internal editor and viewer

Change the Enter key behavior to view file using vi instead of executing it.

When you select a shell script and press enter, mc will execute it by default. Also, by default when you press enter on text files, nothing happens. I prefer to view the shell script when I press enter key. Also, I would like to view the text file using vi when I press enter key. You can achieve this by modifying the mc extension file as shown below.

Press F9 (or Esc followed by 9) to active the top menu. From command menu → select “Edit extension file” men-item → This will display the extension file. Go to the bottom of the extension file and change the value of open and view parameter values as shown below.

# Default target for anything not described above default/*

        Open=%var{EDITOR:vi} %f
        View=%var{EDITOR:vi} %f 

After the above change, when you press enter key on a shell script, it will open it in vi instead of executing it. This will also open text files in vi when you press enter after selecting it.

Hans Reiser Guilty of First Degree Murder

Hans was deeply involved in Linux kernel development with his widespread ReiserFS journaling file system and its successor Reiser4. Reiser's estranged wife, Nina Reiser, disappeared on September 3, 2006; Reiser was convicted of her murder on April 28, 2008:

Jurors found Linux programmer Hans Reiser guilty of first degree murder on Monday, concluding he killed his estranged wife in 2006. The verdict followed a nearly six-month trial and nearly three days of deliberation

The 44-year-old developer of the ReiserFS filesystem, sat quietly as a clerk for Alameda County Superior Court Judge Larry Goodman read the verdict. Reiser faces a mandatory sentence of 25 years to life in prison. Wearing the same dark coat he's worn for months, the defendant was immediately removed from the courtroom by one of four bailiffs watching over the courtroom. He asked out loud if he could speak with his attorney.

In a murder case with no body, no crime scene, no reliable eyewitness and virtually no physical evidence, the prosecution began the trial last November with a daunting task ahead.

Download of the day: Linux Kernel 2.6.25

Linux kernel 2.6.25 has been released and available for download from the official website. After nearly three months of development and the merging of over 12,000 patches from almost 1200 developers, this kernel is now considered ready for wider use. Highlights of this release include the ath5k (Atheros wireless) driver, a bunch of realtime work including realtime group scheduling, preemptable RCU, LatencyTop support, a number of new ext4 filesystem features, support for the controller area network protocol, more network namespace work and much more. LWN has more information.

Related: How To Compile Linux kernel 2.6.xx.

Download of the day: FreeBSD 7.0 ISO / CD Image

FreeBSD 7.0 stable has been released and available for download. FreeBSD is back to its incredible performance. According to some benchmarks on both Intel and AMD 64 bit systems FreeBSD 7.0 being faster than Linux 2.6 when running PostreSQL or MySQL. It has experimental support for Sun's ZFS filesystem. gjournal can be used to set up journaled filesystems, gvirstor can be used as a virtualized storage provider. Please see complete release note including upgrade instructions here. There is also interview published with FreeBSD developers

Download FreeBSD 7.0

You can download FreeBSD 7.0 ISO file from FTP server

You can also use Bittorent to grab FreeBSD 7.0 ISO files