LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-10-2005, 12:27 AM   #1
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
Talking Newcomer to FreeBSD


Hello FreeBSD gurus,

I have recently installed FreeBSD 5.3 on my hard disk and it is a completely new experience to me. It is one of the few OSes that have detected my network card without a flaw and also configured X Windows automatically! I could not believe that when I booted into FreeBSD and typed startx, I got the TWM screen immediately.

Installation was a breeze, especially since I'm used to the Debian type of installer (with text-based menus and a non-linear approach) and I managed to add a boot option to the existing GRUB to boot FreeBSD.

Now I have a few questions.
  • Booting takes a long time. In one of the boot messages, FreeBSD pauses for a very long time. How do I shorten the boot process?
  • I wish to configure the sound. I have already done this in Linux using the i810_audio module in OSS and intel8x0 module in ALSA. So I am quite confident of my hardware. Just how do I configure this in FreeBSD?
  • I created a user account 'hari' during the installation, but now I am unable to login using this user even when I type the password correctly. Luckily the root account works fine for now. What could be the problem?
  • I wish to use KDE (which I already installed) as the desktop and the KDM as the desktop manager (for graphical login). How do I configure this?
  • What is the basic personal firewall required for FreeBSD? I will use this purely as a desktop box with no outgoing services, so I need a basic, default setup.
 
Old 05-10-2005, 01:04 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You've got a range of choices for the "firewall".... I use ipfilter (IPF) on my FreeBSD box - if you want to use ipfilter, add this to your /etc/rc.conf file:

Code:
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
ipmon_enable="YES"
ipmon_flags="-Ds"
And then create an /etc/ipf.rules file and add the following code - (my setup's a NIC to an ADSL modem router, modify if necessary to suit your setup etc) - the code below is sufficient for a very basic firewall offering no services - it drops all unsolicited incoming connections whilst allowing all outbound connections with state.

Code:
pass in quick on lo0 all
pass out quick on lo0 all 

pass out quick on <nic_interface_name> proto tcp/udp from any to any keep state

block in log first quick on <nic_interface_name> all
For KDE with a graphical KDM login, edit your /etc/ttys file and change your ttyv8 line to :

Code:
ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on secure
And create a .xsession file and add:

Code:
exec startkde

Last edited by Skyline; 05-10-2005 at 05:10 AM.
 
Old 05-10-2005, 01:19 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Thumbs up

Welcome to the "paradise" Harishankar. FreeBSD is outstanding, you will find it out eventually

1 - In which message is BSD taking long time? It maybe a service that you can disable during boot time to speed things up.

2 - To configure the sound in FreeBSD is quite simple. There're two ways: one that is automatic and one which isn't. As root, type:

# kldload snd_emu10k1

That would load the module for Sound Blaster cards based on the chipset emu10k1. Substitute that for your module. If you want FreeBSD to try it out automatically, try this:

# kldload snd_driver

Once you are happy with your sound and wish to get sound everytime you boot, add the following line to your /boot/loader.conf, something like this:

snd_emu10k1_load="YES"

More info about sound is found here:

http://www.freebsd.org/doc/en_US.ISO...und-setup.html

3 - That can be very tricky, I don't know why, but I found it a bit buggy, since I did not understand it well. I tried several times to create an user called "r2d2" to be of class ftp. I wanted, as you know, use this user to be a ftp user only. It always returned some weird messages about /etc/passwd or something. I moved that file and things started working fine again. Either way, check this link out:

http://www.freebsd.org/doc/en_US.ISO...modifying.html

4 - The first thing you need to know, is if you have KDE installed. If you don't, there are two ways of installing it. You could install from binaries:

# pkg_add -r kde

or compile it from source:

# cd /usr/ports/x11/kde3
# make install clean

since your profile says you've used Debian and gentoo, you are familiar with those tools: pkg_add works similarly to Debian's apt-get, while ports works similar to Gentoo's portage/emerge. So yes, you get the best of both worlds . Once done with KDE installation, you will need to create a xinitrc file at your home directory. That file is read every time you time "startx". Do this:

echo "exec startkde" > ~/.xinitrc

when logged as your user(normal) account and you are all set. More info about that is found here:

http://www.freebsd.org/doc/en_US.ISO...ok/x11-wm.html

5 - Firewalls. Your very best bet is to look at FreeBSD firewalls section:

http://www.freebsd.org/doc/en_US.ISO...firewalls.html

it has examples and packages for you to enjoy. As you might have already figured, 99% of any question you will ever have with FreeBSD is on the hand book. Hands down to the very best documentation I've ever found on the net for any OS.

Good luck!

Last edited by Mega Man X; 05-10-2005 at 01:22 AM.
 
Old 05-10-2005, 03:08 AM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
Thanks for the help.

But suddenly there is a new problem and I'm not sure what went wrong.

When I booted to FreeBSD now I could not start X windows at all. startx keeps giving me an error. Strangely I didn't change any settings at all, nor does there exist any file inside /etc/X11.

Well, I think I'll reinstall FreeBSD fresh and go from there again.
 
Old 05-10-2005, 03:12 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
About the slow boot process.

Actually it happens when I've switched off my cable modem. When the cable modem is switched on, the booting takes place quite quickly.

It's not due to DHCP either because I don't have DHCP (only static IP).

Also I noticed (before the X server problem came up) that even KDE did not load fully unless I switched on my cable modem. What could be the problem here?
 
Old 05-10-2005, 01:17 PM   #6
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
Yea you might have a static ip but your computer is still looking for a connection till it times out
 
Old 05-10-2005, 11:46 PM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
Then how do I disable the ethernet from activating during startup?

When I type
Code:
ifconfig sk0 down
then everything loads as normal. But when the connection is active, I cannot switch off the modem because FreeBSD seems to be waiting for some connection before proceeding.

This happens when loading X with startx as well as when KDE is being loaded (KDE splash screen).
 
Old 05-11-2005, 04:58 AM   #8
Naqoyqatsi
LQ Newbie
 
Registered: May 2005
Location: Holland
Distribution: FreeBSD-5.3 release p13
Posts: 6

Rep: Reputation: 0
Check your /etc/rc.conf for entries like

ifconfig_vr0="inet 192.168.168.3 netmask 255.255.255.0"

This is how you statically set up your network. The default route entry should also be in there of course:

defaultrouter="192.168.168.1"

Can you provide the output of your dmesg and /var/log/messages (the boot section) so we know where it goes wrong during the bootup.
The thing I encountered was that I didn't have a default route setup and my NTP service was trying to get out of my house onto the WWW. Which failed of course and took quite some time.....

More information is helpfull!!

Greetings,


Naq.
 
Old 05-11-2005, 07:07 AM   #9
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
Yea your configs should be in rc.conf in the /etc directory, that is the file you would change to add or delete things from startup such as network and ssh and firewall stuff, that is also the file that sysinstall would write to if you added something of that nature
 
Old 05-11-2005, 09:35 AM   #10
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
Quote:
Originally posted by Naqoyqatsi
Check your /etc/rc.conf for entries like

ifconfig_vr0="inet 192.168.168.3 netmask 255.255.255.0"

This is how you statically set up your network. The default route entry should also be in there of course:

defaultrouter="192.168.168.1"

Can you provide the output of your dmesg and /var/log/messages (the boot section) so we know where it goes wrong during the bootup.
The thing I encountered was that I didn't have a default route setup and my NTP service was trying to get out of my house onto the WWW. Which failed of course and took quite some time.....

More information is helpfull!!

Greetings,


Naq.
Oh, I see. Thanks. By the way, I haven't had time to boot into FreeBSD all of today because I was busy with other work, but I'll do as you suggestion when I get the opportunity! FreeBSD does take some getting used to but I'm sure I can learn all that.
 
Old 05-11-2005, 11:51 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you are comfortable using Linux then the transition to FreeBSD isn't very difficult. I am sort of FreeBSD newbie myself, but getting a lot comfortable with it, the more I use it.
 
Old 05-11-2005, 01:33 PM   #12
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
I started my nix career on BSD and its not that much diff then linux
 
Old 05-12-2005, 05:20 AM   #13
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
I think FreeBSD is easier to use than linux. I was using linux(slackware, my favourite distro) and i switched to FreeBSD few months ago.
 
Old 05-12-2005, 10:54 AM   #14
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
I feel the same way, I used to think that slackware was easier way back but then I found out how to use ports and they have added so much more functionality to bsd over the years that BSD seems easier to me as well
 
Old 05-12-2005, 01:09 PM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Yeah ports are the "killer feature" on FreeBSD for me. Its a system thats so simple to use but very powerful as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello...Newcomer with Linux ScubaGear2001 LinuxQuestions.org Member Intro 2 08-18-2005 05:56 PM
Newcomer to Linux JSLayton Linux - General 26 04-24-2005 07:54 AM
Newcomer-- Redhat linux 9 kimnajoo Programming 2 04-18-2005 12:07 AM
newcomer in Linux. Samba problem jalla Linux - Software 17 06-02-2004 04:52 AM
Newcomer MAGOVIA Linux - Newbie 1 06-27-2003 11:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration