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-27-2004, 08:07 AM   #1
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
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

F1 DOS
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 !
 
Old 05-27-2004, 11:16 AM   #2
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 824

Rep: Reputation: 30
ignore this

Last edited by php; 05-27-2004 at 11:20 AM.
 
Old 05-27-2004, 11:18 AM   #3
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 824

Rep: Reputation: 30
Quote:
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.
 
Old 05-27-2004, 11:32 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
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
 
Old 05-28-2004, 07:48 AM   #5
bushi
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
#
cat > /etc/profile
#


# nice prompt
PS1='[$USER@`hostname` ${PWD##*/}]\$ '
export PS1
^D
 
Old 05-28-2004, 02:02 PM   #6
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
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 !
 
Old 05-28-2004, 09:19 PM   #7
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 824

Rep: Reputation: 30
4)
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.


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

explains this further, also

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

will get your kernel up and going.
 
Old 05-29-2004, 03:49 AM   #8
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
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 !

Last edited by introuble; 05-30-2004 at 12:54 AM.
 
Old 05-30-2004, 01:01 AM   #9
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
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"
EndSubSection
EndSection

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

bash-2.05b$ nslookup linuxquestions.org
*** Can't find server name for address 10.40.0.2: 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 ?
 
Old 05-30-2004, 09:12 AM   #10
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 824

Rep: Reputation: 30
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 --

http://forums.devshed.com/t25981/s.html

3) Try adding it to the individual user's .profile ie. /home/introuble/.profile
 
Old 05-30-2004, 02:01 PM   #11
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Original Poster
Rep: Reputation: 31
1) /etc/X11/XF86Config file follows: Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
# Load "freetype"
# Load "xtt"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Emulate3Buttons"
Option "Device" "/dev/sysmouse"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 31.5 - 31.5
VertRefresh 50.0 - 70.0
EndSection
Section "Device"
Identifier "Card0"
Driver "sis"
ChipSet "SIS630/730"
Card "sis SIS630/730"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
 
Old 05-30-2004, 08:36 PM   #12
sjs
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
[<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

Code:
font8x8="/usr/share/syscons/fonts/iso02-8x8.fnt"
allscreens_flags="132x43"
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.
 
Old 05-30-2004, 09:19 PM   #13
Atrocity
Member
 
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
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
 
Old 06-02-2004, 07:35 PM   #14
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
Quote:
Originally posted by bushi
#
cat > /etc/profile
#


# nice prompt
PS1='[$USER@`hostname` ${PWD##*/}]\$ '
export PS1
^D
You do know that that will overwrite /etc/profile, right?
 
Old 06-04-2004, 02:18 AM   #15
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
X configuration

1) Try

Code:
Section "ServerLayout"
   Identifier "Layout0"
   Screen "Screen0"
   InputDevice "Keyboard0" "CoreKeyboard"
   InputDevice "Mouse0" "CorePointer"
EndSection
--mascdman
 
  


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
newb questions SlipAway172 Solaris / OpenSolaris 4 01-14-2005 02:06 AM
from one newb to others: getting KDE/Gnome going in FreeBSD 5.3 sheepdogj15 *BSD 8 12-18-2004 05:53 AM
freebsd +firewall +newb mortal *BSD 7 11-08-2004 10:14 AM
Newb Questions Sybarite Fedora 5 07-28-2004 08:45 PM
Just some newb questions testament Linux - Newbie 15 07-04-2004 11:52 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration