Archive for July 2008
Making the Most of the Vim editor
Nessun commento » Open Source , System , Tips & Tricks No Comments »
There are advanced features of Vim that does not use often, as we are sure that working from remote command line must necessarily mean having few facilities available.
One of the most misunderstood feature concerns the possibility to edit multiple files. Thanks to his unique approach to buffering, Vim can handle a virtually unlimited number of files. The only real limitation is the display mode: to work on multiple files Vim's interface is split - horizontally or vertically, see below - by progressively reducing the area allocated to each file.
To open two files at once by dividing the work area orizzontalmentesi uses the-o option:
$ vim -o file1.txt file2.txt
To open two files at once by dividing the workspace horizontally-O option is used:
$ vim -O file1.txt file2.txt
To switch between windows using the following shortcut:
- CTRL + W + <Down sinistra> active window on the left
- CTRL + W + <Down destra> the active window to the right
- CTRL + W + <Down up> the active window up
- CTRL + W + <Down Arrow> active window at the bottom
- CTRL-W CTRL-W + (twice CTRL + W) moves rapidly from one window to another
To close the current window, simply proceed with the usual sequence
[ESC]+:q
just like when you're editing a single file at a time.
To open a new file from within Vim using the sequence
[ESC]+:new nomefile.txt
If the file exists will be edited, otherwise it will be created from scratch.
To resize the current window, before you type the number corresponding to the amount of rows you want to resize and then proceed with the key combination "CTRL-W + + / -":
[ESC] + 5 + CTRL + W + -
In the example abiamo reduced the current window of 5 rows.
After working on multiple files, you may need to close everything and go a little fun. These are the commands with which to close a session of multiple Vim:
[ESC]+:wqall
[ESC]+:qall!
In the first case, close all windows after saving the changes to each. The second asks you to close all ignoring any changes made to files.
It was released the fourth update of Debian GNU / Linux 4.0:
The Debian project is pleased to announce the fourth update of the ITS stable distribution Debian GNU / Linux 4.0 (codename etch). Additions to Several in correcting security problems and A Few serious defects in the stable release, for the first time in Debian's history an update for a stable distribution Also adds support for newer hardware by giving users the option to install newer drivers. Existing Debian GNU / Linux 4.0 installation CDs and DVDs can continue to be used to install this update. After installation, upgrading via an up-to-date Debian mirror will cause any out of date packages to be updated. However, users of the network-console installation method are strongly Encouraged to update Their media, see the "Debian Installer" portion of this announcement for more information. Those who frequently install updates from security.debian.org will not have to update many packages and most updates from security.debian.org are included in this update.
For a detailed changelog, as always see the ' official announcement of the release .
Karl Unterkircher, Nanga Parbat and Dolent: reflections in the clear sky
Nessun commento » Log book , Reflections (oni) No Comments »I waited for the bad misfortune of Nanga Parbat culminate in his epilogue before writing anything about it. This morning he finally managed to rescue Walter Nones and Simon Kehrer, the two climbing companions of Karl Unterkircher were at the mercy of Wall Rakhiot for nearly ten days.
Apart from the few but inevitable queues extraordinary controversy that each firm brings with it (see the ' attack Fausto De Stefani appeared online in the Courier), the EV-K2-CNR Committee is receiving from the dawn of this morning's message of congratulations the way in which they were conducted rescue operations. The crisis unit was set up right at the Committee building in Bergamo, home that was immediately besieged by journalists and television crews.
The news of the rescue has had significant consequences for me: the peak of sudden and violent access to Internet sites of the Committee obliged me to an emergency on a firewall that has often shown moments of weakness. More than 40 thousand sailors in a single hour, of which most interested in the large video documenting the entire operation.
Now that everything, absolutely everything has ended, is instinctively question the meaning of this story so wonderfully human. The death of a little man, not a hero, but a little man with clear eyes swallowed by the monster who had so inextricably linked to his life, a love fatal to the greatest mystery, or the Mountain and its invisible web of meanings Hidden challenge, elevation, asceticism, life and death.
I was very passionate about this story, and not just because I was involved, albeit indirectly. It impressed me as the day's disaster on Dolent as the fatal conjunction of two events. Some things seem mysteriously weave their own paths to mean other things bigger. Or are our eyes to invent these invisible pathways. For the need to make sense of things. For the need to understand.
Bash and speed of a SCSI hard disk
Nessun commento » Open Source , System , Tips & Tricks No Comments »
Suppose we want to establish the speed of a SCSI hard disk mounted on a server that can only be accessed remotely.
There are more ways to get this kind of information.
The simplest model is to derive and / or serial number of the disk.
These two pieces of information in fact almost always contain clear indications about the type of device and its main characteristics.
It is only to know the exact syntax of the serial, which varies depending on the manufacturer.
Take for example a Seagate model # ST373355SS labeled.
By breaking the code as follows we get a series of valuable information:
- ST = identidicatore brand
- 3 = hard drive format (3 = 3.5 ")
- 73 = disk capacity (in GB)
- Field 3 = reserved for future use
- RPM = 5 (5 = 15k, 10K = 0)
- 5 = number of model generation
- SS = interface (SCSI = SS)
To locate the model and / or serial disk from command line we can just do a `` cat / proc / scsi / scsi:
# cat /proc/scsi/scsi
Or use the sg3-utils to directly question the SCSI device:
# sginfo -g /dev/sda
If the sg3-utils are not installed:
# apt-get install sg3-utils
Although most elegant, this second approach is far more cumbersome than necessary, after obtaining the serial using the `cat` indicated above, if we are not able to decode it simply visit the website of the manufacturer and obtain the information we need directly from the data sheet.
Debian Lenny: new installer allows the upload of the firmware
Nessun commento » Announcements , News , Open Source No Comments »
The new stable release of Debian GNU / Linux (codenamed Lenny) begins to take shape in a more defined and confirmed all the expectations of the community.
Among the new features there is one particularly interesting about the installer: the ability to upload firmware owners already during the earliest phases of the installation. In this way you will not need to make the hardware implementation of "special" only after you have installed and configured the operating system.
The new feature of Lenny installer makes it possible to take when installing the firmware specific to a particular device from an external device, such as a USB stick. In many cases you can get zipped versions of the firmware tarball and Debian repositories by downloading them directly from specifically dedicated for this purpose. A good innovation that will make it less complex integration of proprietary hardware-based systems Debian GNU / Linux.
This and other news are available in the Debian Project News was released today.
SCO Group has been ordered to pay two and a half million dollars in favor of Novell on the thorny issue of the UNIX copyrights.
From what we read and wrote in the last twelve months, the sentence was more than expected.
None of the people I know would never have bet a euro on the success of this misbegotten adventure in which SCO seems to have more tuffata headlong out of desperation for a conviction.
Please remember that the same has been dragging in court SCO Novell: in some ways manufacturers OpenServer have gambled ... and lost.
We make a brief summary of the issue: in 1995, SCO and Novell enter into a contract providing for a right of SCO 5% of all proceeds from sales of licenses for UNIX. In violation of this agreement, SCO has continued to require 100% of such rights, which in recent years has used inter alia to fund the legal campaign against Linux other absurd! Novell's win opens up a huge hole in a desperate project that SCO would have liked to write off their balance sheets through a complex bankruptcy and - in some respects - convoluted legal battle, to show that the source codes of Linux contain large portions of code his property. For this reason, SCO has called to court companies like IBM, Red Hat and Novell for the note.
Here is the news source, where you can find a PDF containing the original sentence:
Judge rules in SCO v. Kimball. Novell! Here it is [PDF] at last! I have not read it yet myself, just Quickly skimmed it enough to see That SCO Owes Novell some money ($ 2,547,817 plus interest Probably - SCO can oppose - agreement from the Sun) and It Had no right to enter into the Sun agreement, but it did have the right to enter into the Microsoft and other SCOsource agreements. Requests for attorneys fees are separate, and That part comes next. Then appeals. I know you want to see it Immediately, so let's read it together, and after it's clear, I'll come back and explain some more.
From now officially started the project "tetragon".
For the moment I can not say more: I just record the happy event here and make myself and all those who have been or will be involved in the project my best wishes.
Stay tuned!









