Archive for the 'unix' Category

FAQ: How to retreive hardware manufacturer name, serial numbers, etc. in Linux command line

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

ibm serial numberQuestion: How can I get information about hardware manufacturer, model name, serial number, BIOS information using Linux command line (CLI)?

Answer: You are welcome to use dmidecode which helps to get information about your system’s hardware as described in your system BIOS. That information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details depending on the manufacturer.

Beware that DMI data have proven to be too unreliable to be blindly trusted. Dmidecode does not scan your hardware, it only reports what the BIOS told it to. Dmidecode was first written by Alan Cox and is now being further developed and maintained by Jean Delvare. It is released under the General Public License (GPL).

This tool can be easily downloaded from here (source code) or can be installed as binary package included into repositories of many distributions like Debian, Ubuntu, Gentoo. FreeBSD version is also available. Actualy it is reported that dmidecode works well on the following systems:

  • Linux i386
  • Linux x86_64
  • Linux ia64
  • FreeBSD i386
  • FreeBSD x86_64
  • NetBSD i386
  • OpenBSD i386
  • BeOS i386
  • Cygwin i386
  • Solaris x86 (CVS version)

In Ubuntu (my favourite distro) just execute the following: sudo aptitude install dmidecode (sample output is here).

Share This

OpenBSD: Secure Mail Server with Postfix, MySQL, ClamAV, SpamAssassin, Amavis-new

openbsd logoFew days ago I started configuring corporate mail server that should be deployed on OpenBSD and comprise the following features:

  1. Easy to configure and powerful MTA (Postfix)
  2. Virtual domains and user accounts (this information is stored in MySQL database)
  3. Antispam and antivirus checking for all accounts (spamassassin and clamav via amavis-new)
  4. Secure access to mailboxes through POP3, IMAP and HTTP (squirellmail)
  5. Secure SMTP server
  6. Extremal Stability and Security

Actually OpenBSD 4.2 was chosen because of it’s "security by default". Thankfully Daniele Mazzocchio from friendly site www.kernel-panic.it wrote an excellent article about how to build such mail server on this operating system:

Offering a reliable and secure email service is probably one of the top priorities of most system administrators; therefore, in the next chapters, we will build a full-featured mail server, based on open-source software and focusing on security. Read more…

The only thing that is not covered by it is mail content filtering with maildrop and vacation messages that users often ask to set while they are out. Working on it! :)

Share This

10 good Unix habits to pick up

ibm logoas usual provides us with excellent article about good habits which would help Unix administrators to improve their command line usage efficiency and break away from bad usage patterns in the process. I was impressed by this article and realized my everyday CLI usage is full of "bad patterns". Nice point to give up them and pick up good style.

unix platWhen you use a system often, you tend to fall into set usage patterns. Sometimes, you do not start the habit of doing things in the best possible way. Sometimes, you even pick up bad practices that lead to clutter and clumsiness. One of the best ways to correct such inadequacies is to conscientiously pick up good habits that counteract them. This article suggests 10 UNIX command-line habits worth picking up -- good habits that help you break many common usage foibles and make you more productive at the command line in the process. Each habit is described in more detail following the list of good habits.

Those 10 good habits to adopt are:

  1. Make directory trees in a single swipe.
  2. Change the path; do not move the archive.
  3. Combine your commands with control operators.
  4. Quote variables with caution.
  5. Use escape sequences to manage long input.
  6. Group your commands together in a list.
  7. Use xargs outside of find.
  8. Know when grep should do the counting -- and when it should step aside.
  9. Match certain fields in output, not just lines.
  10. Stop piping cats.

Full article is here.

Share This

Sun acquires MySQL AB

sun logoExciting news was published today at Jonathan Schwartz' (Chief Executive Officer and President of Sun Microsystems) blog:

We announced big news today - our preliminary results for our fiscal second quarter, and as importantly, that we're acquiring MySQL AB.

mysql logo This puts products like MySQL in an interesting position. They're a part of every web company’s infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and retailers), many have been waiting for a Fortune 500 vendor willing to step up, to provide mission critical global support.

Read full article here and here (official agreement announcement)…

Share This

Slackware + NetBSD = VoltaLinux

VoltaLinux is a GNU/Linux distribution based on Slackware and includes pkgsrc package system from NetBSD. Recently this project released 2.0 version of their distro where any system administrator can enjoy the clean design of Slackware and power of *BSD with the availability of more than 5900 ports ready to be installed. Basically VoltaLinux is intended for servers or small/embedded devices as it requires only 12MB of RAM (it was tested).

I found the idea to cross the power of above mentioned systems quite interesting. You can download VoltaLinux 2.0 ISO from here, installation instructions are the same as for Slackware.

linux logo + bsd daemon -->> voltalinux logo

Share This

Secure Linux/Unix system that runs OpenSSH

I came across invaluable article on how to make Linux system that runs OpenSSH server to be even more secure. It’s written by 17-year-old (!!!) Peter Upfold from FOSSwire and covers the following simple steps:

  • fosswire logoDisable SSH protocol 1
  • Enable key-based logins
  • Don’t enable password-based logins
  • Don’t run on port 22
  • No remote root logins

I found these tips invaluable and sire that there is no doubt SSH-2 protocol remains the most common and safe method to access remote Linux or Unix system. The article is freely available here.

Share This

Latest nmap 4.50 is out. Must upgrade!

nmap demo scanNmap is well known open source tool for security auditing and many other related network exploring activities. Here is it’s developers' description taken from their site:

Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and both console and graphical versions are available.

Few days ago latest version 4.50 of this outstanding tool was released celebrating 10 years anniversary. Among notable changes are Zenmap GUI, new generation OS detection, the nmap scripting engine, new host discovery system, advanced zenmap screenshottraceroute and ~ 1500 new version detection signatures. Full changelog is here, binary packages for almost all operating systems (including Linux, BSD, Windows) can be downloaded at project’s download page.

One of major changes in 4.50 is multi-platform Graphical User Interface (GUI) that would be helpful for nmap newbies as well as experienced people. Manual page is here, screenshot is right :)

Share This



Information Improvisation: Operating system is the backbone for every organization. Having professionals with CISSP certification in organization ensures the life running through its networks. Organizations manage tremendous amounts of traffic due to the use of pc phone and people with 646-058 certifications are ideal for this job. They can also manage online networks which can be hosted on lunarpages, which also provides free email hosting. With the company's logo design every page and a well crafted web template the site can be given a graceful look.