Archive for the ‘Linux’ Category
Quick Overview of Bsd Systems With Main Focus on Openbsd
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 AMD
64 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/
Pros and Cons of Linux. is it Right for your Business?
What is Linux?
Linux is an operating system, like Microsoft Windows, MacOS, or Unix. It was created as a hobby by Linus Torvalds, a student at the University of Helsinki in Finland. What most people don’t know about Linux is that its source code is available to anyone. The Linux source code is called the kernel and it is the base of the Linux operating system. Because the source code or kernel is free, it has enabled hundreds of companies and individuals to release their own operating systems based on the Linux system. These operating systems or formats are often referred to as Linux distributions.
Each distribution has its own set of features and functionality that makes it unique. While Linux is generally considered free-ware and people associate that with no cost, that is not always the case. Some distributions are available for download for free and others are available on CD or floppy disk and have a small charge associated with them. You can find a list of distributions at http://www.linux.org/ and a list of applications at http://www.Linux.org/apps/
Because if the adaptability of Linux it has been embraced and supported by a number of operating systems and software programs. For example, IBM, Hewlett-Packard and other giants of the computing world have embraced Linux and support its ongoing development and openoffice.org and Mozilla run on Linux. US retailing giant Wal-Mart began selling Linux systems back in 2002 – if Wal-Mart isn’t mainstream, nothing is.
What are the benefits of Linux?
Many people fear that Linux is going to be difficult to work with or that it will be difficult to find software that will run on Linux however Linux is a very standard operating system, compatible with just about any software you need.
Beyond being a standard operating system, Linux supports open source software which makes it a very economical operating system, especially if you program your own software. It offers many free or low cost applications which include, basic desktop applications like web browsers, email programs, word processing programs, spreadsheets, graphics programs, and file managers.
Linux can easily operate as a central server for your business. With Linux, you can serve your own web pages up for public consumption and handle your own email.
Linux doesn’t require top of the line hardware though many recommend you have at least 256 MB of RAM and at least 4 GB of space in your hard drive.
Linux is considered to be extremely stable and doesn’t need to be rebooted periodically to maintain performance levels. Think about the last time you sat at your computer and it froze. Not fun, right? That doesn’t happen with Linux if it is configured correctly.
Linux isn’t going to be replaced anytime soon and when bugs are found in the system, a developer are quickly on the job and often times a solution is offered within a matter of hours, not months or years like many other operating systems.
Linux is also fast and can handle a number of tasks at the same time.
Linux also claims to be one of the most secure operating systems isn’t plagued with the viruses that other operating systems generally deal with.
Linux is free from having to upgrade it or deal with proprietary file formats and licensing fees. You don’t have to register it due to its open source format.
You can have both Linux and windows on your computer. (You’ll have to partition them on your hard drive and you can only boot them one at a time.)
Drawbacks of Linux
There is no 1800 customer service number to call. However, most distributions offer a support number or email to call if you find a bug. They also generally come with installation instructions.
You cannot run applications for MS windows on Linux. However, there are Linux emulators or applications that enable you to run some windows applications on your Linux system. They operate like a translator. Some of these ‘translation or emulator’ products are free and others are available for a price.
Linux is not able to run some advanced financial applications or reproduce some proprietary multimedia formats.
Tips and Advice:
Choose a popular distribution has a large developer community. A large developer community means that you’ll find the programs that you need easily and you will be able to install them with the same ease. The more well-known distributions have prepared programs in ‘packages’ that are easy to install. On top of this, there are tools designed especially for a particular distribution to manage these packages to make sure that programs run correctly right away. The website Distrowatch.com maintains a comprehensive list of the most popular distributions.
Get the latest version of your chosen distribution. The newer the Linux distribution version, the better the hardware support. The number of glitches you’ll get in the installation process decreases with the newness of the version of Linux you choose.
Consider paying for your Linux distribution. It is true that you can get a full-featured Linux operating system free of charge by downloading it from any number of sources. This is an excellent alternative to an operating system like Windows, which either comes pre-loaded with a newly purchased computer (which gets figured into the cost), is bought separately or copied ‘illegally’. In most people’s experience, the popular Linux distributions are easy to install. However, if you do run into some glitch (normally hardware related), you may have a frustrating experience. Although there are a number of excellent Linux support forums out there, personalized advice on your particular problem may be hard to find.
Use an appropriate computer. if you want to use Linux to do the same things that you would with Windows XP or Mac OS X, then you’ll need the newest computer you can get your hands on. Avoiding ‘elite’ video cards and new, exotic hardware will also work in your favor because you won’t have to deal with hardware support which may be inferior to hardware support from other operating systems.
Bottom Line:
Linux is a fantastic and powerful operating system that can handle most or all of your operating needs. It is secure, fast, reliable, and generally extremely cost effective. When purchased or obtained through a reliable distributor and installed and configured correctly there are virtually no drawbacks to running Linux. Additionally, you don’t have to give up your windows if you don’t want to.
MemberSpeed Content Management software can run on any Linux Any Linux based Hosting Platform (Preferably RHEL 3 or above).
The Top Ten Concepts for Linux Beginners – Number 8, Programming Language Support
Damn Small Linux can be an ideal platform for supporting a wide range of programming languages. You can even program directly from the command line via a programming shell such as Bash. Major programming languages used in this environment include C, C++, and Java. If you are developing for the Internet you may want to use PHP, a web programming language and MySQL, a language for database system development. All these programming languages are also available in the Windows environment. So the question arises, why would you want to program under Linux rather than under Windows?
Many web developers and Internet service providers feel that Linux provides a more stable web site environment than does Windows. The most widely used web server, Apache, is available under both these operating systems but its new features, security enhancements, and bug fixes always are made available first on the Open Source (LAMP) version. And then they filter down to the Windows version. At the time of this writing the Windows version of Apache has problems with its cryptographic functions.
While programming languages are essentially the same across these two operating systems, their libraries are quite different. Basically, when you write complicated programs you want to make use of as much prewritten software as possible to reduce your programming and debugging effort. One example is handling the graphical user interface. As programmers often say, why reinvent the wheel? Linux provides a wider choice of libraries and graphical user interface toolkits.
When you program in Linux it is often fairly easy to port your programs to the Windows environment. Unfortunately, the inverse is rarely true. Of course as Linux systems become more popular, you will find more and more Windows-based programming systems that enable you to convert your programs to run under Linux. To do so makes clear economic sense.
Program conversion tools may be fairly difficult to develop. For example, executing programs must access the actual computer hardware. As you may imagine Linux and Windows programs access hardware quite differently. The modules that manage hardware access are called drivers. Linux drivers tend to be of higher quality than Windows drivers.
These two operating systems differ substantially in the way they manage programs during their execution. In other articles we discussed Linux’s increased security compared to Windows. We conclude this article by repeating a point that we have often made; you can run Damn Small Linux and its associated applications on very reduced hardware. You can do Linux, PHP, and MySQL development on old computers, ones that may have seemed ready for the garbage heap. In contrast many Windows competitors such as SQL Server Developer Edition require substantially more powerful computers, the kind of computers that people purchase for one or a few thousand dollars. When your programs will be used by dozens of people simultaneously, you will need powerful hardware. Don’t forget the operating system; can you guess which one we recommend? Our next subject is the graphical user interface.