-   *BSD (
-   -   newb freebsd questions (

introuble 05-27-2004 09:07 AM

newb freebsd questions
Well .. I have installed FreeBSD 4.8 about .. 6 days ago ..


I have *some* experience in using Linux .. but I can't find the answers to the following (probably not OS dependent) questions :

1) How do I enable copy+paste (meaning : mouse highlight to copy , right click to paste) in the console ?

2) How do I change the console resolution to , let's say 1024x768 ?

3) How do I change the default BASH prompt to , let's say a string like this:

"root@examplehost /WorkingDirecoty #" ?

4) I can't manage to make my sound card work (in Linux I could do it quite simple using ALSA) .. I have read the "Multimedia" section from the FreeBSD handbook and I still can't figure it out .. (Silicon Integrated Systems Corp [SiS] , PCI bus 0) . Anyone willing to post an answer containing step-by-step configuration ?

5) Can I configure FreeBSD's boot loader (not sure what it is called) to clear the screen and maybe even modify the prompt ? It's usually something like

F3 FreeBSD

these questions are probably trivial .. but I would really appreciate , if not step-by-step answers , (web / man) pages that could help me ..

thanks !

php 05-27-2004 12:16 PM

ignore this

php 05-27-2004 12:18 PM


Originally posted by hackers_
1) Do you have a mouse wheel, and/or is it setup correctly in /etc/X11/XF86Config? Generally, selecting the text will copy it, and pressing the mouse wheel will paste it.

2) You are use to Linux's "framebuffer" support. FreeBSD doesn't use this type of system. I'm not sure if there is a 3rd party that works on this, if it's something in the ports, or if it doesn't exist it all. Someone else might be able to clarify this. From my past experiences with *BSD, you would use something like 80x*? I can't quite remember.

3) .bashrc, .profile -- something like PS1="[\u@\H\w] "

4) Well, you didn't even tell us what soundcard you are using, that would help greatly. The handbook explains how to either load a module (kldload) or what options you will need to build into your kernel configuration.

5) During /stand/sysinstall there is options for bootloader specific items. Consult the handbook for further information.

introuble 05-27-2004 12:32 PM

1) I'm not talking about X (X doesn't even work , but I'll deal with this some other time) .. but the normal , "text-mode" console . I know that in Linux , this worked .. I could just select a line to copy it and right click to paste it

bushi 05-28-2004 08:48 AM

cat > /etc/profile

# nice prompt
PS1='[$USER@`hostname` ${PWD##*/}]\$ '
export PS1

introuble 05-28-2004 03:02 PM

1) I really need help with this one .. I have no ideea what to do ..

2) this would be a nice thing aswell:> and I would appreaciate any help

3) thanks hackers and bushi , that problem is fixed :>

4) sound card: SiS 7018 <- critical ! I'm forced to use windows just to be able to listen to music (AH!!! I wish I had the knowledge)

5) problem fixed, thanks hackers !

php 05-28-2004 10:19 PM

I'm not 100% sure on this, but I am guessing that you could get your sound working by using the "pcm" audio device infrastructure.

Is your sound onboard? I will assume it is;

Some systems with built-in motherboard sound devices may require the following option in your kernel configuration:

In your kernel config you will need to make sure these are present

device pcm

options PNPBIOS -- most onboard sound archs.

explains this further, also

will get your kernel up and going.

introuble 05-29-2004 04:49 AM

1 -> problem fixed ;> It was actualy a Kernel option that needed to be added , in case someone on this forum ever experiences this problem , I'm talking about: options SC_TWOBUTTON_MOUSE .
4 -> problem fixed ;> a great big THANK YOU ! goes to hackers , your answer solved my problem ! now I can finaly relax under FreeBSD :>
2 -> well , everywhere I go I get the same thing: framebuffered console .. well .. I guess I'll leave this for now .. thanks for all your help !

introuble 05-30-2004 02:01 AM

Another set of questions :> :

1) as I said earlier , X doesn't work , when I do a "startx" I get this:

(==) Using config file: "/etc/X11/XF86Config"
(EE) SIS(0): Virtual height (0) is too small for the hardware (min 128)
(EE) SIS(0): xf86ValidateModes() error
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found

I guess I have to add something to /etc/X11/XF86Config .. the problem is .. I don't know exactly WHAT to add .. This is the "Screen" section in the config file:

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"

2) My primary dns server is (secondary: . "host <host>" seems to work but when I try to do a 'nslookup' , this is what I get:

bash-2.05b$ nslookup
*** Can't find server name for address Non-existent host/domain
*** Default servers are not available

How can I fix this ?

3) I have changed the PS1 variable (in /etc/profile) to PS1='[\h \w] \u\$
The problem is: the bash prompt is still 'bash-2.05b$' when I run SCREEN .
How do I change this ?

php 05-30-2004 10:12 AM

1) Can you paste your full /etc/X11/XF86Config file? It will help us out, also what video/onboard video does your computer use exactly? What size is your monitor, about how old is it?

2) For your DNS this may help --

3) Try adding it to the individual user's .profile ie. /home/introuble/.profile

introuble 05-30-2004 03:01 PM

1) /etc/X11/XF86Config file follows: Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Section "Files"
Section "Module"
# Load "freetype"
# Load "xtt"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "speedo"
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Emulate3Buttons"
Option "Device" "/dev/sysmouse"
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
Section "Monitor"
Identifier "Monitor0"
HorizSync 31.5 - 31.5
VertRefresh 50.0 - 70.0
Section "Device"
Identifier "Card0"
Driver "sis"
ChipSet "SIS630/730"
Card "sis SIS630/730"
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"

sjs 05-30-2004 09:36 PM

[<ENTER> means press the return key, don't type those chars in, replace HOSTNAME with whatever you want just make sure it's the same everywhere]

To get a better resolution on the console try doing this:

1) edit /etc/rc.conf and add these lines



You can find other fonts in the fonts dir and use them if you like.

2) Next you have to compile vesa support into your kernel. Go to /usr/src/sys/i386/conf and copy the file GENERIC to HOSTNAME. It doesn't have to be your hostname, it can be whatever you want really it's just typically called HOSTNAME. Next edit this file in vi (or whatever you use) and do the following:

a) Substitute HOSTNAME for GENERIC everywhere (in vi ":%s/GENERIC/HOSTNAME/g<ENTER>")
b) At around line 135, directly after the line "device vga0 at isa?" (in vi: "/vga0<ENTER>")
add the line: "options VESA".

Save the file (vi: "ZZ") and change to the directory /usr/src. type "echo "KERNCONF=HOSTNAME" >> /etc/make.conf<ENTER>", then make kernel. I think this should get you what you're looking for.

Atrocity 05-30-2004 10:19 PM

Sound is easy, just do this
open up your Generic kernal file
and type this in it

device pcm

then compile that
sound should work, I have done it on a couple different systems and it worked, then just unmute the sound

KneeLess 06-02-2004 08:35 PM


Originally posted by bushi
cat > /etc/profile

# nice prompt
PS1='[$USER@`hostname` ${PWD##*/}]\$ '
export PS1

You do know that that will overwrite /etc/profile, right?

mascdman 06-04-2004 03:18 AM

X configuration
1) Try


Section "ServerLayout"
  Identifier "Layout0"
  Screen "Screen0"
  InputDevice "Keyboard0" "CoreKeyboard"
  InputDevice "Mouse0" "CorePointer"


All times are GMT -5. The time now is 04:40 AM.