Showing posts with label netbsd. Show all posts
Showing posts with label netbsd. Show all posts

Free online BSD Magazine 3/2010 published

Many Linux users have heard about BSD family of Unix operating systems, but few have had the courage to install a BSD to be used on a regular basis.

Nowadays, most users could probably do their everyday computing with some of the more mainstream BSDs just as easily as with Ubuntu or some other desktop oriented Linux distribution. If you are one of those Linux users, you should have a look at the free online BSD Magazine.

But don't stop there! If you have an extra old computer somewhere, you might as well like to install some BSD variant on it. Those of you who are just looking for an easy-to-install-and-use BSD would probably be very happy with PC-BSD 8.0 released last week. Some of the highlights of the latest release are:
* FreeBSD 8.0-RELEASE-P2
* KDE 4.3.5

* Brand new System Installer, allows the install of PC-BSD or FreeBSD
* Run in Live mode directly from DVD
* Updated Software Manager, allows browsing and installing applications directly
* Support for 3D acceleration with NVIDIA drivers on amd64


NetBSD 5.0 Released!

NetBSD 5.0 has been released. I warmly recommend you to test this simple and clean operating system from the BSD family. If you have been using Linux for some time and are looking for new challenges, NetBSD will provide them!

How to install binary applications in NetBSD (day 5)

Today I learned how to configure the NetBSD package management system for installing precompiled binaries. I immediately installed some new console applications to my system.

After reading some good and some excellent NetBSD documentation, I was ready to export some environment variables as I had learned that it would be necessary for the package management to function. After experimenting and correcting some typos in the command line options I decided to add the tweaks to the root's .profile.

I decided to open the file:

vi .profile

It took me three seconds to realize, that I only had to uncomment a line in order to be able to install binaries from the ftp.NetBSD.org. I wonder why I bother to read the fine documentation, if everything I need to know can really be read in the comment lines of the configuration files.

Now new applications can be installed with a simple command:

pkg_add -v screen

Cool, isn't it?

NetBSD, day 4: reinstalling the system

During the weekend, I was not able to use my new NetBSD system as I was back home using my Ubuntu desktop. Now that I returned back to the town where I study economics and business administration, I am right now reinstalling the system.

Actually there was nothing really wrong in the way I had originally installed the NetBSD. I just made the mistake of trying to use the wonderful packages system that installs all the packages by compiling them from the sources. Unfortunately, the packages collection takes a huge amount of my limited disk space.

Furthermore, it takes hours to compile anything at all with this machine. So it seems that I have to use binary packages of the applications in the future. If you intend to use NetBSD on anything built during the last couple of years, you will most probably be quite happy to use the source-based packages. See the pkgsrc guide for extensive documentation of the system!

The unix way of doing the cleanup of the system would probably have been to rm some directories by hand and tweaking some configuration files. As I have nothing special installed on the system - it was just configured to be a basic but usable command line system - I figured a reinstall would be easier and faster than reading some more of the great NetBSD documentation just to make sure I have removed everything unnecessary.

Now I have again a clean system, with just a root and one ordinary user created. I'm back in the beginning - and slowly learning to use the vim.

NetBSD, day 3

Eight years ago, when I first installed Linux it was not unlike everything I had used before. I had used computers with MS-DOS and every day I read my email on an Unix system over ssh. So I was familiar with the basics of Unix and the command line. But I had a lot to learn.

In many ways, moving from Linux to NetBSD is similar to my jump from Windows 98 to SuSE. The system is familiar enough to be somehow understandable but still I don't know everything I should know.

Today I learned to make the keyboard encoding permanent. In case you are not using an English keyboard, you should add a line to /etc/wscons.conf:

encoding sv

The abbreviation sv stands for a Swedish keyboard (it is exactly the same as a Finnish keyboard, but there is no encoding fi available!). At the moment I use a console screen with 80x25 characters. It will probably take a few days before I have the courage to even consider configuring the console for 50 lines.

In NetBSD, only those users who are members of the wheel group are allowed to su into root. Thus, I added myself (as root!) to the group:

usermod -G wheel mikko

Now I can finally use su like in most Linux systems I've used during the last years.

I have not yet decided whether I should continue using vi or should I install something I am more familiar with. For years, I've known that I should learn to use vi but I have always had nano or emacs installed.

I suppose I'm too lazy to be a real geek.

One more note before returning to my books: unlike some modern Linux distributions, NetBSD's default install includes locate. The database for locate had to be created as root with /usr/libexec/locate.updatedb - unlike in Linux where the command is updatedb.

NetBSD on an old computer, day 2: configuring the system

NetBSD is not meant for those who are afraid of the command line. Unlike most of the Linux distributions, it does not install any tools for configuring the system. Well, actually there is one tool for the task: vi.

If vi is not the editor of your choice for your daily editing, you should have a cheat sheet of vi modes and shortcuts available before you install NetBSD. In addition to the cheat sheet, it would not do any harm to have the NetBSD Guide printed as well. I have printed a copy of the book two years ago, and that's what I intend to use as my reference for the configuration. And if I cannot solve some problem with it, it is good to have this debianized iBook for browsing the Internet!

The first thing to do on an just installed system is to add a user without root privileges. This is easily done with:

useradd -m mikko

Then I gave a password for Mikko:

passwd mikko

Next I changed the keyboard layout to the right one:

wsconsctl -k -w encoding=sv

And finally, I wanted to have the network up and running. I added two lines to /etc/rc.conf:

dhclient=yes
sshd=yes

The second line starts ssh daemon on the boot. Next I rebooted the system and tried to open a ssh connection to another box. Nothing happened.

I read all kinds of man pages and the NextBSD guide for about ten minutes to find out if there was yet another text file to tweak before I would have the box connected to the world.

The solution was, however, quite simple. All I had to do was to connect the network cable to the computer.

NetBSD on an old computer, day 1.

Every now and then I see bloggers testing their limits. Some of the bloggers have decided to live for a month in console, with no X installed. Some bloggers try to do their everyday computing with a Pentium 100.

I decided to try something similar. I had once or twice installed NetBSD on a P100 with 40 Mb but I had never really tried to use it for everyday tasks. A few months ago I got an old PC that would make an excellent sandbox for this experiment.

I burned the NetBSD 5.0 RC3 on a CD, put it into the cd drive of an old desktop computer with an Asus P5A-B motherboard, 256 Mb RAM and an AMD K/6 processor that runs on the extremely high speed of 450 MHz. This is more than enough for NetBSD that can be run with as little as 8 MB RAM. Furthermore, as the full installation needs about 200 Mb there was no need for tweaking the package selection.

The installation was a lot easier than I expected. As this is the first time I intend to use NetBSD for real computing I let the installer take care of the partitioning. I was quite happy to dedicate all of the 6 GB for NetBSD. I just pressed the Enter a few times and after a few minutes I had the full system installed on the hard disk drive. I was ready to reboot the system into the installed system.

After the reboot I was greeted by the command line.

The adventure was to begin.