![]() |
Search |
| Home |
Desktop FreeBSD Part 2: Initial SetupBy Ed Hurst | Mar 13, 2007 at 21:44:29There are several tasks to which we must attend before actually making use of our freshly installed FreeBSD system. Immediately upon reboot, you will find yourself in the console. While it is possible to setup and use the graphical login managers -- kdm, gdm or others -- it is important to note that this uses extra resources. One of our assumptions is that you might not have all that excess horsepower, so we'll stick with the console login for now. The prompt says 16. X Server Setup On some hardware, the graphical setup tool will lockup or crash, and
perhaps require you to reboot. This is not the fault of anybody at
FreeBSD, since it comes with the X.org package. I've never gotten it to
work right, but many folks like it. Your best bet is the menu based
This text-mode version is really quite simple, and explains itself
very well. You have the main menu with various options and menus under
each item on the list. Most of the time moving from item to item is
simply a matter of hitting You need to know precisely what the specs for your monitor are. That is, you need to know the upper and lower limits of the horizontal and vertical display frequencies. Be sure of this information; don't guess. This is the one place where software can easily damage your hardware. It is usually possible to find the information you want by visiting the website for the manufacturer of your monitor. The other item is to know what sort of screen resolution you want. If you have a really good card and large or high-quality monitor, getting a fancy 1600x1200 display might work, but there's not much point if you have only a 17" monitor. Here's the usual advice:
You can guess the rest for yourself. As for color depth, only older card and monitor combinations run below 16-bit. While most people cannot tell the difference, you can bump it up to 24-bit if you know the hardware can take it. When you are finished, let the script write the file. As always, you can go back later and hand edit the file, so notice where it is saved. We will do some of that next. 17. Final X Setup Unless the script saved
then
The first line makes a backup copy ("cp"). The second line is the
built-in "Easy Editor" We note here for the first time, Most likely, you may have a section left out of the xorg.conf file. This would be the font paths, which are needed for some applications that run somewhat older-style interfaces. There are some dozen or so major interface frameworks for displaying in the X server, and each one has it's own set of peculiarities. If every application you run comes from KDE or Gnome2/Gtk2, you won't notice this at all. However, if you run anything that relies on the Gnome 1 interface (aka Gtk1), Tcl/Tk, or the Motif interface, for example, you will have a problem, because the fonts won't be available to them. The problem has to do with how the fonts are passed to your X server. Without going into too much detail, it's sufficient to explain here that the modern X server has a component called "Xft" that helps improve the font display in most cases. However, Motif (among others) does not use this component. The configuration of Xft is done automatically when you install FreeBSD. However, getting the fonts to display in the X server directly -- without Xft -- is often not set up. To do this manually is really quite simple. In your xorg.conf, look for a pair of lines like this:
In between those two lines should be listed all the places where you system has fonts that will work with the X server. The shortest answer is to write those lines in by hand. The format isn't that mysterious. When you are finished, it should look something like this:
Chances are I've listed font collections you haven't installed, but can add them later when we get to the lesson on ports. For now, it won't hurt to have those lines there, because the system will simply ignore what's missing. Now, page down until you see this section:
where you see the line
and just below it, add this line, if it is missing
making sure the indentation on this line matches the others. Be aware if you are using a newer USB mouse, this line may be unnecessary. Next, if the X configuration script added a line about emulating 3 mouse buttons, and you know you have a middle mouse button that works, remove that line. Then, if you have a graphics card that can put the monitor to sleep when you are away from the computer, scroll down to the section that says
and look for these lines
and add this line, if it is missing
Special note for nVidia card users: If you have a pretty fast card,
you may want to consider using the specially made driver from the
manufacturere to gain full 3D acceleration. You can do that later, by
adding the package Special note for Radeon card users: If your card chipset is numbered R280 or less, you can use the built-in driver for 3D acceleration. For the R300 chipset, 3D is experimental. It has been reported to work pretty well for R300 series, and some say for the R400 series. For newer cards, ATI has not offered a 3D driver for FreeBSD, and the experimental drivers don't seem to work well. Finally, we are ready to setup the standard desktop for each user.
Since we are logged in as root, this run through serves as the example
for your regular user account. Type
In this new file, type this line:
then save and close the file. Now we are ready to try out the GUI. Still logged in as root, simply
type
Since I am assuming you are running KDE, all you need to do is open the Konqueror browser and type that line in the location bar and hit ENTER. Scroll down the index page to section 7 for Multimedia and read about setting up sound cards. As for setting up KDE, just running it for the first time you will be introduced to a setup wizard that should handle most issues. 18. System Mail One of the most important tasks for managing your own system is to
learn to read system mail. Every Open Source operating system uses
this. By default, you already have a system working, called
Here we also learn to use a GUI editor, Kedit. Look for it in the
KDE menu system under "Utilities > Editors" and click on
the name. You'll need to set it up to suit you, by clicking the
"Settings" in the menu bar and selecting the last option,
"Configure Kedit." Check each option and make adjustments;
it's all pretty self-explanatory. The most likely issue everyone wants
to adjust is the font size. When you are finished, click the
"OK" button. Now, click the icon in the toolbar at the top
that looks like a folder and open the file finder utility. On the upper
right-hand side of this is an entry box with a drop down arrow at the
far right end. Click the arrow and choose "Root Directory,"
then navigate into the "etc" directory. Look for a file named
This is the master config file for the whole system. Get the format wrong and your machine may not boot. The main thing to remember is that each entry has the same format: an option name, an equal sign (=) and quotation marks surrounding the variables for that option. Be sure to have the quotation marks before and after. What follows is a quick and dirty method, and if you really want to understand what the options mean, you'll need to read the FreeBSD Handbook a great deal. For now, you'll have to trust me. Make sure this rc.conf file has the following lines in it:
Dialup users need to add these lines, also:
Yes, that last line has no quotation marks and no argument, but it's required as is. There may be other lines, but these are the minimum for our purpose
here. Of particular interest here are the firewall lines. Add them now
in the order shown, and we will explain later. Save the file and close
it, but not Kedit. Now lets open the file named
Below that, add something like this, replacing "user" with your primary user account name:
Now run the command:
This way, any mail the system sends to root will come to my user
account. Once you have logged into your user account, at lease once
each day, you should open a Konsole window (menu: "System >
Konsole") and type the command The more complicated issue of parsing the daily reports is something we don't have room to cover here. Sadly, I've not found any good tutorials on that. The only thing I can suggest is over time you will become more familiar with the format and be able to pick out things that matter to you. 19: Firewall While FreeBSD is one of the most secure systems on the Internet, you still need to take normal precautions to prevent attacks. One of those is to setup a firewall. For dialup use, there's nothing better than the instructions offered in the documentation on your system:
What follows is derived from the Handbook. Copy it verbatim; cut and paste what's between the dashed lines. You can make refinements when you learn more about it. Remember, this is specifically designed for dialup users (notes for broadband users below):
Save this file as
Two more Internet connection issues for dialup. Go to
Save and close. Now is the time to reboot. Look for the logout button in the menu of KDE, and logout of the GUI. At the command line type this:
When all is done, it should come back up to the command line. Log into your user account this time, then startx. In KDE, you can open the KPPP utility from the menu, under "Internet" and follow the instructions to set it up. Unless you are using one of several national ISPs, you will want to avoid the setup wizard. It is now safe to connect to the Internet. The next article will deal with adding a few important programs not included with the Install CD. Ed Hurst is Associate Editor of Open for Business. Ed operates a computer ministry in Oklahoma City. He loves computers, runs FreeBSD and GNU/Linux and reads all sorts of things.Article Path: Home: Computers and Technology: Linux and BSD on the Desktop: FreeBSD: Desktop FreeBSD Part 2: Initial Setup Re: Desktop FreeBSD Part 2: Initial Setup Why not just use xorgconfig or X —configure? Did not see a single crash ever with this things on different machines. Mmh, this is somewhat “FBSD from scratch”? Most of the things are already done if you’re using regular sysinstall at start. Furthermore I would activate a timeserver, it’s quiet nice to have accurate time. Posted by Oliver Herold - Mar 20, 2007 | 5:8:27 Re: Desktop FreeBSD Part 2: Initial Setup I don’t use that method of X configuration because, unlike you, I have had crashes and lockups. The aim of this series is introducing BSD to people with often marginal equipment, and certainly older equipment — how to get a really great working system on the cheap. I opted out of the timeserver for several reasons: many people still use dialup, it is a small security risk, and it’s one more unnecessary item to worry about. However, I would encourage you to write up a small howto on that, and submit it for publication. Posted by Ed Hurst - Mar 20, 2007 | 5:49:49 Trackback: FreeBSD für den Desktop: Eine Anleitung Das FreeBSD auf dem Desktop nutzbar ist wird immer noch gerne Trackback from grUNIX - Aug 16, 2007 | 2:6:55 Please enter your comment entry below. Press 'Preview' to see how it will look. |
UPDATED: BSD on the DesktopBy Ed HurstIn an extensive multi-part report, OFB's Ed Hurst presents how the power of the FreeBSD operating system can be harnessed for the desktop. Using understandable instructions and relevant tips, Ed provides the tools for mere mortals to enjoy BSD's fabled stability. |
![]() |
Write for OFBOpen for Business accepts commentaries and other works on technology, current events, politics, philosophy, business and other relevant matters for publication. Commentaries should be 600-800 words in length, other works vary but should generally be kept to less than 1500 words. If you think you would like to contribute, contact OFB's editor, Timothy R. Butler. |
| Home |
| © 2001-2008 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. |