rob897
October 6th, 2003, 18:03
Since I cannot get my USB mouse and keyboard working, the XFree86 setup in the sysinstall also fails since I cannot choose USB as a mouse device. Does anyone else know how I can get around this? I need to get this machine running soon!! Also I am using an NVidia GeForce 3 card, is there anything special I have to do to get that working as well?

bsdjunkie
October 7th, 2003, 10:15
Im not sure on the USB in FreeBSD, but you can download Nvidia Drivers fro FreebSD at their website.

http://www.nvidia.com/object/freebsd_1.0-4365

soup4you2
October 7th, 2003, 10:20
nvidia drivers are also in the ports tree

rob897
October 7th, 2003, 11:54
So if I get this from the ports, will the XFree86 know to look for these drivers?

elmore
October 7th, 2003, 12:18
I think the nvidia driver is a kernel module which X looks for when it loads. I don't have an nvidia card on FreeBSD so I can't say for sure but I believe what I've read on the mailling lists states that to use the nvidia driver in X the kernel module needs to be present. The kernel module is what the ports tree should load.

soup4you2
October 7th, 2003, 14:47
i believe it makes a loadable kernel module that gets loaded in your boot loader. then the xf86 driver is nv or something.. the post install msg should tell you something about it.

[code:1:0965da66eb]
( Port Query )=> nvidia

===>
===> Port: nvidia-driver-1.0.4365
===> Path: /usr/ports/x11/nvidia-driver
===> Info: NVidia graphics card binary drivers for hardware OpenGL rendering
===> Maint: danfe@regency.nsu.ru
===> Index: x11
===> B-deps: XFree86-libraries-4.3.0_6 expat-1.95.6_1 fontconfig-2.2.90_3
===> freetype2-2.1.4_1 imake-4.3.0_1 pkgconfig-0.15.0
===> R-deps: XFree86-libraries-4.3.0_6 expat-1.95.6_1 fontconfig-2.2.90_3
===> freetype2-2.1.4_1 imake-4.3.0_1 linux_base-7.1_5 pkgconfig-0.15.0
===>
===> Number of matching ports = 1
===>
[/code:1:0965da66eb]

[code:1:0965da66eb]
( Install Query )=> nvidia

===>
===> To use these drivers, make sure that you have loaded the nvidia kernel
===> module, by doing
===>
===> # kldload nvidia
===>
===> If you compile this package with WITH_FREEBSD_AGP=yes, you must load
===> the agp.ko kernel module *at boot time* by putting the following
===> line into your /boot/loader.conf:
===>
===> agp_load="YES"
===>
===> or have your kernel compiled with "device agp".
===>
===> Otherwise the nvidia kernel module will not load.
===>
===> See ${PREFIX}/share/doc/NVIDIA/README for more information.
[/code:1:0965da66eb]

rob897
October 7th, 2003, 14:54
Ok, I will try this out tonight and HOPEFULLY I will be posting from my FreeBSD machine.. Woohooo!! can't wait now.

rob897
October 7th, 2003, 15:11
OK here was the results from my port make install:

==================================
Installation of the NVIDIA Accelerated Graphics Driver for FreeBSD is
now complete. Please update your XF86Config file as appropriate; see
the README for details.

If you wish to let the installer assist you with setup type 'make setup'
To use these drivers, make sure that you have loaded the nvidia kernel
module, by doing

# kldload nvidia

If you compile this package with WITH_FREEBSD_AGP=yes, you must load
the agp.ko kernel module *at boot time* by putting the following
line into your /boot/loader.conf:

agp_load="YES"

or have your kernel compiled with "device agp".

Otherwise the nvidia kernel module will not load.

See ${PREFIX}/share/doc/NVIDIA/README for more information.
===> Running ldconfig
/sbin/ldconfig -m /usr/X11R6/lib
===> Registering installation for nvidia-driver-1.0.4365
===========================================

If I try to do : kldload nvidia I get the following error now:
kldload: can't load nvidia: Operation not permitted

Any suggestions?

soup4you2
October 7th, 2003, 15:45
are you running in kern.securelevel (anything other than -1)? that would prevent you from loading modules and also prevent you from using X

rob897
October 7th, 2003, 16:13
yea I am at Extreme... ug

soup4you2
October 7th, 2003, 16:15
yea I am at Extreme... ug

these are reasons why people say not to run X on servers.. because if you plan on using X you loose the ability to use kern.securelevel

rob897
October 7th, 2003, 16:32
Good to know. This is just my desktop machine not a server. I have a separate machine that is also running FreeBSD and that is a standalone server, no X windows. Used your tutorial to help me get that one tightened up a bit. :D

soup4you2
October 7th, 2003, 19:35
:)

dont just thank me, many people here's guides also went into that....

rob897
October 7th, 2003, 21:38
Woohoo, finally got Xwindows running now, without the USB keyboard still... the mouse is working great!! Here is my rc.conf, do you think I need to alter this to get the keyboard working?

You can see that the sysinstall kept making changes to this file. Can I assume that the later info take presidence over the others:


usbd_enable="YES"
inetd_enable="NO"
kern_securelevel="2"
kern_securelevel_enable="YES"
nfs_server_enable="NO"
sendmail_enable="NO"
sshd_enable="YES"
linux_enable="YES"
moused_port="/dev/mse0"
moused_type="auto"
moused_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 11:26:53 2003
kern_securelevel_enable="NO"
sendmail_enable="YES"
sshd_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 12:43:23 2003
moused_port="/dev/mse0"
moused_type="mouseman"
moused_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 12:46:58 2003
moused_port="/dev/mse0"
moused_type="auto"
moused_enable="NO"


Just want to clean this thing up.

soup4you2
October 7th, 2003, 22:09
now how did you get X to work w/

kern_securelevel="2"
kern_securelevel_enable="YES"

enabled?

dont you get an error about not being able to write to /dev/io ?

rob897
October 7th, 2003, 22:12
I did before, what should I set this too?

Kernel_Killer
October 7th, 2003, 22:14
Set your securelevel to "1" or "Moderate" in sysinstall.

rob897
October 7th, 2003, 22:16
and leave the
kern_securelevel_enable="YES"
in there as well?

soup4you2
October 7th, 2003, 22:22
for X to work properly it needs to be -1

trust me.. i even got flamed on the mailing lists for asking why this is.

rob897
October 7th, 2003, 22:26
ok cool, fluxbox is running.
Thanks alot Soup!!

Can you tell me the best way to clean this up, since there are duplicates and triplets:

======================================
usbd_enable="YES"
inetd_enable="NO"
kern_securelevel="1"
kern_securelevel_enable="YES"
nfs_server_enable="NO"
sendmail_enable="NO"
sshd_enable="YES"
linux_enable="YES"
moused_port="/dev/mse0"
moused_type="auto"
moused_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 11:26:53 2003
kern_securelevel_enable="NO"
sendmail_enable="YES"
sshd_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 12:43:23 2003
moused_port="/dev/mse0"
moused_type="mouseman"
moused_enable="YES"
# -- sysinstall generated deltas -- # Tue Oct 7 12:46:58 2003
moused_port="/dev/mse0"
moused_type="auto"
moused_enable="NO"
================================
when you get a chance

Strog
October 7th, 2003, 23:12
It loads them in order so the last ones are the ones that are working for you. Delete all previous dupes and you should be fine. You can remove the sysinstall comments too.

soup4you2
October 7th, 2003, 23:23
Further Tweaking Necessary

[code:1:788c52a0b0]
#=================================
# Hostname And Networking
#=================================
hostname="YOURHOSTNAME"
ifconfig_IFACE="IPINFO"

#=================================
# Console Settings
#=================================
saver="daemon"
blanktime="300"
usbd_enable="YES"
moused_port="/dev/mse0"
moused_type="auto"
moused_enable="YES"
update_motd="NO"

#=================================
# Security Settings
#=================================
log_in_vain="YES"
accounting_enable="YES"
clear_tmp_enable="YES"
tcp_drop_synfin="YES"
icmp_drop_redirect="YES"
icmp_log_redirect="YES"
tcp_extensions="NO"
tcp_keepalive="YES"
icmp_bmcastecho="no"
icmp_bandlim="YES"

#=================================
# Services
#=================================
sendmail_enable="NO"
sshd_enable="YES"
sshd_flags="-4"
syslogd_enable="YES"
syslogd_flags="-ss"
linux_enable="YES"
inetd_enable="NO"
nfs_server_enable="NO"

#=================================
# Kernel Secure Level
#=================================
kern_securelevel_enable="NO"
kern_securelevel="1"

[/code:1:788c52a0b0]

elmore
October 8th, 2003, 00:06
saver fire is way better than daemon, IMHO.

soup4you2
October 8th, 2003, 09:09
A buddy of mine wrote me up a loadable kernel module that i used to use.. just spining text that says "Bsdhound" i thought it was pretty cool. but that went bye bye on my last HD crash :( maybe he has a backup..