Quick Overview of Bsd Systems With Main Focus on Openbsd

Ollie Hancock — October 11, 2007, 4:53 pm

Most users who use Linux use it because they hate Microsoft; people who use BSD use it because they love Unix

Juraj Sipos
/>

I have been a BSD user since the late 1990’s. I started with FreeBSD 3.0 and I also made my own FreeBSD distro - a tiny floppy disk entitled 1fcdbsd, which boots in any x86 computer and plays MP3 files from a hard disk or CD’s (One Floppy CD Audio and MP3 Player - http://www.freebsd.nfo.sk/). I gained some experience with the BSD world, which rather thrives on the side without people’s knowledge that it is almost the best.

History

To say it metaphorically, the Internet sprung out of BSD. It is not because these systems can handle the biggest traffic as servers, but because the concept of IP addresses and the TCP/IP stack is a BSD invention. If you right click on the file “winsock.dll” in Windows 98 (C:Windowswinsock.dll), you will see “BSD Socket API for Windows” in the Properties > Version window; however, the “BSD” is not seen in newer Windows systems in the “version information” window of winsock.dll. But there is a lot of writing on the Internet about this if you Google both terms: “winsock.dll” AND “bsd”. BSD systems have a different licensing policy and anybody can take their code. BSD license gives more freedom to programmers.

From the above it is clear that Microsoft, too, used or “stole” this code, not only Linux.

BSD grew up in the 1970’s with a Defense Advanced Research Projects Agency (DARPA) support. Version 4.3 BSD (1986), 4.3 BSD Tahoe (1988), BSD Net 1 (1989), and so on followed. The history is well described also on BSD sites, such as www.freebsd.org. FreeBSD, for example, started as a project in 1993 shortly after NetBSD; and OpenBSD is a fork of NetBSD, but these all are derived from 386/BSD.

Linux versus BSD

BSD: BSD systems are based upon an actual Unix variant called Berkeley Software Distribution, which has a long history.

Linux: Linux is based upon a clone of Unix (Minix), which was far away in functionality in comparison to the above Unix at its time. Terminologically speaking, Linux is only the kernel.

The “Linux-versus-BSD” discussion is very sensitive for some people – they may get very angry about any direction, either in favor of BSD or Linux. It is not a good idea to compare these systems as the whole, but it’s not a bad idea to compare their “usability” in various aspects, for example, as an “office solution”, “desktop solution”, “multimedia solution”, “server solution”, “firewall solution”, etc.

The widespread use of Linux helped some users switch to BSD for good, as various opinions made the issue of “Linux-versus-BSD” visible to public eyes, which made the BSD world appear more attractive.

If we talk in general, we can say that “BSD is much more stable, as it is a REAL Unix” and that “Linux is a very good desktop toy more adapted to users’ needs, as it has more drivers and apps”.

Other global aspect that makes Linux and BSD systems look different is that BSD OS’s have everything under one hood and control. Linux is murky waters because it is not united. For example, you have a DEB (Debian Linux) package – you will not always install it if you use Mandrake or SuSE. A long list of problems ensuing from discrepancies among Linux distros may be written. Linux users surely remember the effort of UnitedLinux, but now it is devoid of life. In the chaos where one Linux system installs with various services and the other one does not, we see that the Linux community is broken as the whole.

Linux is more developed in terms of its accessibility to various types of hardware like, for example, inkjet printers or WiFi USB solutions. But this is because, as I already said, various companies support it. Linux is good for desktop users who want to forget about Microsoft and BSD systems are best as server/router/firewall solutions. Many good administrators say that Linux behaves much worse as server than BSD systems. Something like Red Hat or SuSE Enterprise Server is rather a joke – these systems cost a lot of money. Every good administrator would only bet on BSD or other Internet solutions today. Slackware Linux is exception – it is one of the best.

There are many reasons why BSD systems are less noticeable. The availability of Live CD’s and their easy-to-use presentation is something in which BSD systems lagged behind. You may download Linux ISO images at the drop of a hat. With BSD systems, this is a bit different. You could hardly find a desired BSD Live CD in the 1990’s. Only a few of them do appear now.

OpenBSD

I tackled the problem of building such a CD myself. I toiled with FreeBSD. I succeeded. Later I focused on OpenBSD, as it has a good reputation concerning its solid security structure. I succeeded too. But this would require additional writing and this article is not about making an OpenBSD Live CD; I only want to introduce this system a little and give advice how to make a simple OpenBSD bootable installation CD/DVD, which is also hard to get.

Usability

BSD systems work well with all kinds of standard hardware; however, some users say they are “less user-friendly”. On the other hand, others consider the so-called “user-friendliness” to be a hindrance in making needed configurations. In other systems, where many services run automatically, it is a bit irritating when administrators, with their own security policies in mind, must turn them off on a regular basis after every installation.

OpenBSD could be, from a Linux user’s point of view, a can of worms. Some may disagree with me, but in the world where all mainstream operating systems bet on easiness-to-use and the graphical interactivity, this is surely the case. This means you must forget about graphical installers - your first touch with the system is the text mode. But the text is the best format some people like.

OpenBSD can run Linux binaries on an emulation layer; DOS (and other systems) programs within the Qemu emulator, as well as FreeBSD and other BSD and Unix binaries. Albeit OpenOffice.org has not been ported yet (do you really need such a big bulk of software when there are more handy solutions?), you can easily write or open your MS Word documents in TextMaker for Linux, or in native OpenBSD AbiWord port.

The system and packages

The BSD family of operating systems consists of the base system and packages. The OpenBSD core - its kernel and the base system (system/network utilities, man pages, etc.) get cautiously, if not paranoically audited for security holes.

The OS has a different packaging philosophy in comparison to Linux. It uses ports and prebuilt packages. Ports are fingerprints of applications on your disk. They contain the basic information where they can be downloaded from. You just “cd” somewhere to the hierarchy of the /usr/share/ports directory, where applications are divided by categories; then type “make install” and wait for sources to be downloaded, compiled, and installed.

Prebuilt packages, too, can be installed with a breeze. Unlike RPM archives, which you must install in the consecutive dependency order, here you have everything on tap. And with the “pkg_add –v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/package.tgz” command you download everything from the Internet even without specifying a package’s version. This is something most Linux packagers cannot do, only APT (Debian) and its clones.

Installation

The policy of the OpenBSD team is to sell CD’s. Unless you are prepared for a difficult network install, you have two options: either you buy their CD’s, or build them yourself. If you choose the latter option, download the core system from these FTP mirrors: www.openbsd.org/ftp.html. Pick out your architecture like AMD64 or i386 and the version (like 4.0, 3.9, etc.). Place all downloaded files in any directory (for example, in /usr/opbsd) and issue the following command to make the ISO image of it:

mkisofs -b cdrom40.fs -c boot.cat -R -v -o /usr/my_openbsd.iso /usr/opbsd

The above command may be used both in Linux and in BSD systems and possibly in any system to which mkisofs is ported.

When ever in the future you are ready to download a newer version of OpenBSD with purpose to make a bootable CD/DVD of it, just change the “cdrom40.fs” in the above mkisofs command (4.0 is the current version of OpenBSD) to the version it agrees with, for example, “cdrom45.fs” (a future OpenBSD), which is a bootable image as the emulated big floppy. A CD or DVD burned with this ISO file will boot on any PC (not DVD in UDF format, but DVD in ISO format).

The following files contain the basic OpenBSD installation – networking, Unix commands, X Window, man pages; not packages like KDE, Aspell, etc.

OpenBSD 4.0 core system

Packages # you can create this directory and put packages in it

CKSUM, INSTALL.i386 , INSTALL.Linux, MD5, base40.tgz , bsd, bsd.mp, bsd.rd, cd40.iso, cdboot ,cdbr, cdemu40.iso, cdrom40.fs, comp40.tgz, etc40.tgz, floppy40.fs, floppyB40.fs, floppyC40.fs, game40.tgz, index.txt, man40.tgz, misc40.tgz, pxeboot, xbase40.tgz, xetc40.tgz, xfont40.tgz, xserv40.tgz, xshare40.tgz

It is important to say that the ISO file cannot be burned to a CD as an ordinary file like an MP3 file – it can be done this way, however, but you will not be able to boot from such a CD/DVD. If you use Windows, the proper way for burning ISO files is to use the “burn image” command in programs like Nero Burning ROM (or “burn ISO” in other programs). Under FreeBSD, you can burn the ISO image with the burncd command (if your CDROM is the master on the second IDE channel; “-s” is for speed):

burncd -f /dev/acd0 -s 4 data my_openbsd.iso fixate

It would be a good idea to make the bootable OpenBSD DVD with packages included in it – just download them and put them to a directory (for example, to a directory “Packages”) where you have your core OpenBSD installation files; then apply the above mkisofs command.

Installation is quite easy. For newbies it is recommended to use a mobile rack and use some older disk (about 3 GB). This is because installing OpenBSD to an already partitioned disk requires a lot of knowledge and if users do not want to bother about numbers of sectors/cylinders and other things they must type in the text wizard, this solution is very handy.

OpenBSD in action

The system boots fast (much faster than Linux). If you selected the X Window environment during the installation text wizard, you only need to run the “xorgcfg” command from the console to configure your X Window environment.

Did you lose yourself somewhere in the text-mode consoles? Use the F5 key (Ctrl+Alt+F5) to get back to the X Window. Are you a complete newbie? Type “man afterboot”. Are you accustomed to Linux and do you prefer a Linux terminal type? After every logon, OpenBSD asks you to type the terminal type you want to use, but the default one - vt220 - does not map keys like you got accustomed to in Linux if you use programs like Midnight Commander (for example, F7 behaves like F6, etc., but not in X). After typing “nxterm” everything should work OK.

A manual text-mode configuration is the absolute preference here. Almost all services are turned off - a first choice for every good administrator, as he will have ultimate control over the whole system. Users, too, may familiarize themselves with Unix and see what is going on under its hood. To run the X Window, just execute the “startx” command. If you want to edit or re-edit the configuration files, peep into the /etc directory with vi as your editor. Do you want to add more packages? Just download them and issue “pkg_add -i package.tgz” command and that’s it!

OpenBSD 4.0 is geared up for most of the network or desktop tasks. After I downloaded some fine MP3 players, I could instantly listen to music. The X Window’s look does not differ from any Unix-like box. VLC or MPlayer multimedia players will help you enjoy all your favorite music or film recordings.

If you have euphoria from seeing the KDE or Gnome Desktop and other apps running smoothly, you may soon become disappointed - OpenBSD has fewer packages than FreeBSD or Linux. For example, running VMware on FreeBSD has been possible for quite a long time; OpenBSD (but not OpenBSD in the VMware environment) requires some smart tweaks to achieve this.

New technologies and automation can also impose a risk

Numerous companies want to earn the highest profit and they introduce various technologies that serve as a marketing competition strategy for most of the time and are often useless. A bluetooth or WiFi technology in your mobile phone brings a security risk when any good hacker can get to your most sensitive data within seconds right from your neighborhood. Most users do not have time to study various security datasheets and they often live happy without knowing they are unprotected. I do not want to say that newer technologies are always nonsensical; however, they deserve pertinent praise only if used on the right place.

If a reader understands this, the mainstream world’s policy is to create the Matrix or a big web of dependencies – if hardware can run in Linux, users use Linux (and possibly buy Red Hat or Xandros).

Numerous “terrific” companies that sell their “amazing security products” forget that using carrier pigeons for communication is by far a more secure solution than any computer communication – an encrypted e-mail, if you are already under suspicion, will always get intercepted, and governments have always enough resources and money to do their job well.

Why BSD or OpenBSD?

Today, when too many companies bring out various distros, it is hard to tell which of them best suits our needs and you may become mixed-up in such a huge list. If companies invest money to a software solution, they may become disappointed if its licensing policy changes. OpenBSD has one sturdy feature above everything – the system and packages are perfectly audited for security holes.

The power of a good policy will make you feel somewhat sheltered from the bad behavior of the world, because you do not have to worry that network services, for example, contain security holes. Something like this often happens with Linux - its websites urge users to download important patches soon after distros are released. With this particular security point OpenBSD as a BSD system stands aside from the usual crowd.

Source: http://www.freebsd.nfo.sk/

.About the Author:

I published some books of poetry and I live in Europe, Slovakia; I write and sell computer articles

Is Linux Ready for your Desktop?

Ollie Hancock — October 2, 2007, 11:29 am

If you have any involvement with Information Technology, you’re probably already familiar with Linux as a server operating system. Indeed, for many

applications Linux is an accepted and even preferred platform. Google has built and is expanding one of the world’s largest cluster of Linux servers to host its pervasive search engine system. Major hardware vendors, including IBM and Hewlett-Packard, sell servers preloaded with Linux and provide premium support for the operating system. Oracle is the largest commercial database running on Linux with more than 80% market share. Successful commercial applications like VMware ESX are built on Linux foundations. And many of the largest Internet hosting providers run on Linux.

On the other hand, if your computer experience is limited to your own home PC, you may never have even heard of Linux and may be wondering what all the fuss is about. If that’s the case, listen up because Linux may be coming to a desktop near you!

What is Linux?

Simply put, Linux is a computer operating system like the Mac OS X or Microsoft Windows. The difference is that Linux is open source; anyone can view, modify, and redistribute the underlying code. Further, while OS X is designed to run only on Apple hardware, and while Windows runs primarily on x86 processors from Intel and AMD, there are many distributions or flavors of Linux, compiled to run on a wide array of hardware, everything from high-end corporate servers and mainframes, to home PC’s, to cell phones.

Linux began as a pet project of a Finnish university student, Linus Torvalds, in 1991 as an alternative to the server operating system Unix. He made it freely available to anyone who wished to modify it and it was quickly adopted and grew. Still, it remained primarily a server-based system. Few home users would have chosen its complex command-line interface over the comfortable and easy-to-use point-and-click GUI of the Macintosh or Windows.

However, Linux now also sports a graphical front-end and a plethora of user-friendly applications.

Going GUI

Since Linux is all about choice, it’s not surprising that there are a number of graphical environments available. The two most popular that come preloaded on many distributions targeted for desktop or workstation use are Gnome and KDE. Both offer features home users have come to expect: menus, icons from which to launch applications and documents, desktop wallpaper, screen savers, trash icons, and the like.

Connecting to printers is a simple process of selecting the printer type from a menu and telling the system where to find it, either on a local port or a network queue. To print from most applications simply select File, Print. No surprises there.

Sharing folders is equally simple and relies upon standard protocols that interface well with Macintosh and Windows systems.

For security, you can create multiple user accounts; each user gets their own desktop they can customize as they wish. There’s also a built-in firewall to protect you from Internet intruders.

Of course, most people are more interested in the applications they can run, rather than the underlying operating system. Here, Linux is in no way deprived.

Applications

For browsing the Internet, there’s Mozilla’s Firefox and Konqueror. For e-mail there’s Thunderbird and Evolution. The popular OpenOffice.org suite provides typical office functionality including word processing, spreadsheet, database, drawing, and presentations. The Gimp and Inkscape offer advanced graphics capabilities. And there’s a variety of utilities for burning CDs and DVDs, listening to music, watching videos, and chatting via services like AOL’s Instant Messenger.

This list is by no means complete. There are thousands of open source applications for Linux; you’d be hard-pressed not to find one that could do what you need. But there are also many commercial applications available.

Drawbacks

If Linux offers so much of the same functionality as Windows, why isn’t it more widely used? Why do many home and corporate users reject it?

Microsoft Windows, while it has many faults, has become so widespread in its use as to be nearly ubiquitous. It has become the de facto standard by which other systems are measured. For those people already familiar with and comfortable with Windows, anything else is a step back, even if it is faster, more intuitive, more stable, and more secure.

Also, it must be admitted, there are still situations where you may need to venture into the cryptic world of the Linux command shell. For those used to living with a mouse in one hand, typing commands like awk and grep at a flashing cursor is unacceptable.

And, while there are enough applications to satisfy all but the most demanding of users, there are a few notable exceptions. Microsoft Office is not available on Linux, and likely never will be. Adobe Photoshop is also missing. In both cases, nearly all of the functionality these two giants provide is available in other applications, but for some die hards, that’s not good enough. While there are ways of running some Windows applications on Linux, they’re not usually as fast or as stable — or as easy to implement — as native Linux applications.

The situation is even dimmer for games. While the console market — PlayStation, Nintendo, and Xbox — is growing, the PC and Mac game market is shrinking. The commercial Linux game market is even smaller. Oh, there are plenty of games for Linux, but most are modest efforts, with few of the heavy hitters widely available on other platforms. Those that have been ported to Linux are not always fully supported — if they’re supported at all — by the original producer. For example, while you can purchase Quake 4 for Linux, don’t expect id Software to help you get it running, a task not for neophytes or those who shy away from the command line.

Vendors

Despite any apparent drawbacks, some major vendors are actively promoting Linux on the desktop. Novell now offers the SUSE Linux Enterprise Desktop, while Red Hat offers Enterprise Linux WS, both targeted at corporations. Since users in this environment are likely to have a fixed set of applications without a heavy gaming need, Linux is often ideal. And a number of organizations are taking advantage of the potential savings offered by these open source options. Governments especially, under scrutiny for how they handle the public purse, are often quick to make the move. Among them are the cities of Largo, Florida, USA; Bristol, UK; and Bergen, Norway. They have each made their taxpayers happy with significant savings over the closed source, proprietary systems they used to use.

Choices

If you’re a heavy gamer, then you’ll probably want to stick with Windows or a dedicated console. If your focus is advanced graphics and video editing, then Linux may be an option, if you’re willing to give up certain commercial applications. Otherwise, you’d be better off with a Macintosh. If you’re just surfing the Internet, sending e-mail, writing letters, and editing spreadsheets, then Linux and the open source software that comes with many distributions will do everything you need.

On the other hand, if you don’t want to ever see a command line or edit configuration files by hand, then Linux probably isn’t for you just yet. But it may be soon.

.About the Author:

Jules Smith is the principal of LightningStrike Studios, a professional business and technical writing firm.

Guide to Installing and Finding Ubuntu Applications

Ollie Hancock — August 7, 2007, 9:48 pm

Mary Riley

The best thing and the

worst thing about moving to a brand new operating system is all of the new applications that are immediately available to you. With Ubuntu, an open-source GNU/Linux based operating system, this is compounded even more by the astounding number of options along with the close-to automated package management system and strong community support.

Therefore, it’s helpful to have a basic guide to guide new and returning users through the varied software options by highlighted specific popular packages and providing installation directions, along with information about where users can look for more options and support. By showing the new Ubuntu user the best of the software repository from the start, we can ensure retention and thereby further undercut the market share of the 8,000 pound gorillas in the OS market.

Seeing all of the software available for Ubuntu through the official repositories is an easy and enjoyable experience. In fact, you don’t even need to open an internet browser. You can see the repositories (or repo’s) in two different ways:

1. Click on the Add/Remove Programs option in the Applications menu. This will most of the more popular items, along with each package’s estimated popularity. The option to install is provided right through the dialog screen.

2. Use the Synaptic Package Manager, which is available through selecting System–>Administration–>Synaptic Package Manager. A search function is included, making this process even easier. Also, you can choose to update all of your current packages through the click of the button. More often than not, no restart or reboot is required.

Without further ado, here are some common applications for Ubuntu, and directions on how to install them.

BitTorrent

qBitTorrent is an application used to connect to the BitTorrent file sharing network, which acts as an uncentralized way to distribute and download large files without much hassle. Many sites on the internet provide these torrent files, and it is the responsibility of the user to make sure they are not violating the copyright laws of their respective nation by using them.

qBitTorrent is not available in the official repositories, so you’ll have to use the Terminal to install it. You can access the Terminal through Applications -> Accessories -> Terminal. As soon as it opens, enter the following commands (a root password may be required).

gksudo gedit /etc/apt/sources.lst

Copy the following lines to the end of the file:

deb http://hydr0g3n.free.fr/qbittorrent/feisty/ ./

deb-src http://hydr0g3n.free.fr/qbittorrent/feisty/ ./

Close the window, and copy and paste the following command:

sudo apt-get update && sudo apt-get install qbittorrent

Evolution

Check your e-mail in style with this client. Evolution comes pre-installed with Ubuntu, and you can open it from the Applications menu. This program is ideal for calendaring, keeping track of contacts, and checking e-mail. If it isn’t installed for some reason, you can install it with the Synaptic Package Manager.

Pan

Pan is a way to connect to UseNet. It’s one of the few for Ubuntu that has a graphical display.

Type this in to install it:

sudo apt-get install pan

Pan rivals the XNews program for Windows, and it’s completely open-source.

Firefox

Firefox is a really quick web browser developed by Mozilla. Yep, it definitely knocks the socks off of Internet Explorer, and it’s way more compatible with most websites than Safari. Based on the latest statistics, more people than ever before are moving over to Firefox from other browsers, and almost everything on the internet is compatible with it. Though it comes pre-installed with Ubuntu, I definitely think it’s worth a mention. If it’s not preinstalled, type this in the command line:

sudo apt-get install firefox

Pidgin

Multi-protocol Instant Messaging, baby! Includes support for AIM, Yahoo!, GMail, and MSN. I know, I know, it’s amazing. And trust me, it is EASY to install!

Here’s the directions: Insert this stuff into your command line.

wget http://vicox.net/ubuntu/pidgin_2.0.0beta7devel.vicox-1_i386.deb

sudo dpkg -i pidgin_2.0.0beta7devel.vicox-1_i386.deb

I hope this was a useful start. For more application ideas, you can try the official documentation or the forums. Good luck, and enjoy your new experience with Ubuntu!

.About the Author:

Mary Riley is a maverick web designer and aspiring law student. She maintains the Daily Ubuntu, a guide for new Ubuntu applications on a daily basis. You can follow Mary Riley’s stories and articles through her Twitter feed.

Switching to Linux: Why Dual-booting is Best

Ollie Hancock — July 25, 2007, 10:20 pm

With the user-friendly Linux distribution Ubuntu gaining popularity at an astounding rate, you may be considering making the move from Windows to Linux.

If you are, then you will have wondered how you will work and play without the applications and games you use every day in Windows.

Windows applications can be run in Linux, just not natively. You have two main options: Emulation and Virtualization. Neither are as effective as dual-booting but I will explain them here and their drawbacks.

Emulation allows you to run Windows applications through a “translation layer” which tricks the applications into thinking they are running on Windows. Although great advances have been made by the WINE Project and commercial offshoot, Cedega, many applications are still unsupported. Support for certain applications may even vary depending on your hardware configuration.

Virtualization takes running Windows applications on Linux a step further and is capable of running an entire Windows (or any other) operating system straight from your Linux desktop. With the free application VirtualBox, you can create a “virtual machine” and install any version of Windows you wish onto it.

A virtual machine is switched on and off exactly like a normal PC, except the entire operating system runs inside a window on your Linux desktop. You may then install any Windows applications you wish into the virtual machine and use them as you normally would.

Running applications natively in Windows, via a virtual machine, is far more reliable than running them through a translation layer, but virtualization has its drawbacks too.

When you run Windows in a virtual machine you are effectively running two operating systems, simultaneously, on one computer. This has obvious performance drawbacks. Although most office-type applications could be run this way, if your office insists on a particular piece of Windows-specific software, performance issues and lack of DirectX support severely hampers game applications.

The only way to successfully run all your Windows applications at their full capacity is to install Windows and Linux as dual-boot operating systems.

Dual-booting is the process of installing two operating systems side-by-side, to be run independently. By this method you will be presented with a menu listing your operating systems when you switch on your computer. this allows you to choose the OS most suitable for the tasks at hand, be it work or gaming.

I personally run Ubuntu 7.04 and Windows XP as a dual-boot system. I mostly use Ubuntu for day-to-day tasks and run Windows XP purely for gaming. This way, dual-booting grants me access to the best features of both operating systems and allows me to use my computer to its full potential.

.About the Author:

Dan R provides tech support to the Green Bay area via Green Bay Tech Support


Recent posts on BlogLion:

hey wattup ( 2010-03-11 09:36:56 )

we get it crackin ( 2010-03-11 09:15:41 )

Online Shopping Carts; Keeping Customers Happy ( 2010-03-10 23:36:09 )

The Best Ways To Boost Your Credit Score ( 2010-03-08 04:21:25 )


Previous blog: Iva
Next blog: Allie Boy