Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread Federico Lorenzi

I had this problem only yesterday, and I couldn't get it to work, but
i played around with the Agp options and rebooted and it worked. Sorry
I dont have anymore info about how i did it.

HTH
Federico

On 5/28/07, Garrett Cooper <[EMAIL PROTECTED]> wrote:

Garrett Cooper wrote:
> Vittorio De Martino wrote:
>> Il Monday 28 May 2007 14:51:04 John Nielsen ha scritto:
>>> On Monday 28 May 2007 11:18:07 Vittorio De Martino wrote:
 On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and
 one of the latest portsnap I have an nvidia go 7400 card, *** fully ***
 supported by the nvidia driver according to the docs.

 I followed the minimal configuration by nvidia-xconfig and just taiored
 the language for the keyboardBUT
   startx fails to load X and in the log file I find I find the below
 reported errors.

 Being a beginner I find myself somewhat disorientated by these errors
 that I couldn't find surfing the net.

 (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
 ensure (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
 system, and (EE) NVIDIA(0): that the NVIDIA device files have been
 created properly. (EE) NVIDIA(0): Please consult the NVIDIA README
 for details.
 (EE) NVIDIA(0):  *** Aborting ***
>>> Not too cryptic. Make sure that the nvidia kernel module is loaded
>>> and try
>>> again. To verify, type "kldstat". If nvidia.ko is not listed, type
>>> "kldload
>>> nvidia". To load it automatically on boot (which is the only way for
>>> it to
>>> load successfully), add a line like this to /boot/loader.conf:
>>>
>>> nvidia_load="YES"
>>>
>>> Then reboot.
>>>
>>
>> Actually the nvidia.ko mdule was and is loaded
>> hpbsd# kldstat
>> Id Refs AddressSize Name
>>  1   24 0xc040 5b33d8   kernel
>> ..
>>  43 0xc0a7e000 1e058linux.ko
>>  51 0xc0a9d000 435c acpi_video.ko
>>  63 0xc0aa2000 61ba0acpi.ko
>>  71 0xc0b04000 6d4de0   nvidia.ko
>>  81 0xc11d9000 aed4 cpufreq.ko
>>  91 0xc11e4000 4a2c acpi_ibm.ko
>> ..
>> 151 0xc7245000 2000 rtc.ko
>>
>> I was able to eliminate the following error
>> 
>> (II) LoadModule: "wfb"
>> (II) Loading /usr/X11R6/lib/modules/libwfb.so
>> dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
>> (EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
>> --
>> because the required librpcsvc.so.2 has become  (and is presente as)
>> librpcsvc.so.3. Therefore I linked ln -s librpcsvc.so.3 librpcsvc.so.2
>>
>> That's ok now BUT
>>
>> NVIDIA: could not open the device /dev/nvidiactl (II) Setting vga for
>> screen 0.
>> (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
>> (==) NVIDIA(0): RGB weight 888
>> (==) NVIDIA(0): Default visual is TrueColor
>> (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
>> (**) NVIDIA(0): Enabling RENDER acceleration
>> (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
>> ensure
>> (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
>> system, and
>> (EE) NVIDIA(0): that the NVIDIA device files have been created
>> properly. (EE) NVIDIA(0): Please consult the NVIDIA README for
>> details.
>>
>> still something incorrect prevents startx to fire X.
>> The problems seems to be /dev/nvidiactl!
>>
>> Please help - Vittorio
>
> Add yourself to the video group and chown/mod the /dev node until you
> have read, write, and executable access.
>
> -Garrett

Vittorio,

Hint: Everything in the Xorg.0.log file with...
...(EE) right before it, generally means that it's a problem ;).
...(WW) sometimes mean you should consider what's being said.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how many data can i write to my tape, how to tested?

2007-05-28 Thread Dan Nelson
In the last episode (May 28), perikillo said:
>I'm running bacula 1.38.11 with one tape storage-works 232 200Gb.
>  But i start to get some errors about "Tape Full" like this:
> 
>  28-May 04:30 bacula-dir: Start Backup JobId 1409, 
> Job=MBXDBA-FD.2007-05-28_04.30.00
>  28-May 06:18 bacula-sd: End of Volume "FullTape-0009" at 184:1 on device 
> "StorageWorks-232" (/dev/nsa0). Write of 64512 bytes got 0.
>  28-May 06:18 bacula-sd: End of medium on Volume "FullTape-0009" 
> Bytes=177,755,370,128 Blocks=2,755,390 at 28-May-2007 06:18.
>  28-May 06:19 bacula-dir: There are no Jobs associated with Volume 
> "FullTape-0010". Marking it purged.
>  28-May 06:19 bacula-dir: Recycled volume "FullTape-0010"
> 
>   Them, he says that my tape is full, but calculating all clients, is
>  about 181GB, them why hi say that my tape is full?
> 
>   This is the reason i want to test my tape first, to see if the
>  problem is freebsd or bacula. Hope you could point how to fill my
>  tape with freebsd and see how much data can i write to my tape.

An HP StorageWorks 232 is an LTO-1 drive, which has 100GB native
capacity.  The advertised 200GB capacity is with a 2:1 compression
ratio:

 http://h18006.www1.hp.com/products/storageworks/ultrium232/specs.html

If you can only put 181GB of data on the tape, that just means you have
some files that don't compress very well (gif/jpg images, gzipped
files, etc).  You should only get worried if your tape fills up after
less than 100GB :)

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


i have a system that will not installworld.

2007-05-28 Thread Jonathan Horne
i just did a buildkernel and world, and installing the kernel was normal with 
no issues.  mergemaster -p, and then when i installworld, i get this:

phoenix# make installworld
mkdir -p /tmp/install.iA4Zk47v
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find grep 
install-info  ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl  test 
true uname wc zic; do  cp `which $prog` /tmp/install.iA4Zk47v;  done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386  
CPUTYPE=  GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin  
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac  
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.iA4Zk47v
 
make -f Makefile.inc1 reinstall
make: Permission denied
*** Error code 126

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

note that im not in single user mode, but personally, ive been doing it in 
full mode for a long time, and this is the first box thats not performing as 
expected.does what i posted above make any sense to anyone?  i have 
already did a rm -rf on /usr/src/* and /usr/obj/* and re-ran the buildworld, 
same thing both times.  any ideas would be appreciated.

thanks,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to find disk slice layout

2007-05-28 Thread Olivier Nicole
If you have the resaources, do backup /var, it should not take much time.

/var contains the log files, it is nice to ave them handy when something 
crashes.

Bests

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Su newbie question

2007-05-28 Thread Olivier Nicole
> But that may not be the best way.   You really don't want to spread
> root accounts around a lot.   One alternative might be setting up
> sudo to allow the specific things that this other person needs to do.
>
sudo woul dbe the right way to do: you have fine choice on the various
priviledges you give to the various people; each sudo command is
logged so you can trace back in case of problem; you use your own
password to sudo so you are not tempted to give it away to another
user, even temporar.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: msk driver (Marvell/SysKonnect Yukon II Gigabit controllers) in 6.2-STABLE

2007-05-28 Thread boris
> Hi!
>
> I need a subj driver - msk - for Marvell/SysKonnect Yukon II Gigabit
> controllers (on i386 platform ), which, as announced, was incorporated
> in 6.2-STABLE
>
> Now, can anybody tell me where to find kernel sources for 6.2-STABLE ?

Tried reading the handbook?

http://freebsd.org/handbook


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


msk driver (Marvell/SysKonnect Yukon II Gigabit controllers) in 6.2-STABLE

2007-05-28 Thread Serge E. Yakubovich

Hi!

I need a subj driver - msk - for Marvell/SysKonnect Yukon II Gigabit 
controllers (on i386 platform ), which, as announced, was incorporated 
in 6.2-STABLE


Now, can anybody tell me where to find kernel sources for 6.2-STABLE ?
On ftp, both links:


FreeBSD-current -> branches/-current
FreeBSD-stable -> branches/4.0-stable

points to non-existent dir branches/

In snapshots/200705/6.2-STABLE-200705-i386-disc1.iso, there is nothing 
in sys/ ...


I'm in panic ;)...

any advices ? 10x in advance,

+
With respect,   | [EMAIL PROTECTED]
Serge E. Yakubovich | YSE-RIPE
+



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


XGL/Beryl/Compiz with Xorg 7.2

2007-05-28 Thread Tom Grove
Has anyone tried installing and using any of the above after 7.2 was 
committed?  I tried all weekend and just get poor results.  In XFCE and 
Gnome performance is unusably slow.  I have a dual-core cpu with 1GB of 
memory and a 256MB NVidia video card.  It certainly shouldn't be slow 
because of hardware.  I just can't find much documentation because the 
7.2 port is so new.  Any help is much appreciated.  Thanks.


-Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Su newbie question

2007-05-28 Thread Jerry McAllister
On Mon, May 28, 2007 at 12:58:51PM -0400, Ian Lord wrote:

> Hi,
> 
> A real dumb question today : I’ve always been the only administrator of
> servers I installed so I never searched too much on the topic…
> 
> A new employee has joined the team and he will need to administer the
> servers (compile ports, etc)
> 
> Usually, I do a su when I need to do these tasks, so I wonder if everybody
> needs to know that password or if he could have his own password to su ?

It is possible for there to be more than one account that is root.
Just make it have UID 0 and GID 0.  Use vipw to do that.  It is common
to make an R id as root for a person.  - Say the regular id is joe
then you might make an Rjoe account with UID and GID of 0.

But that may not be the best way.   You really don't want to spread
root accounts around a lot.   One alternative might be setting up
sudo to allow the specific things that this other person needs to do.


jerry

> 
> Thanks
> 
> ~~
> 
> Ian Lord
> 
> MSD Informatique
> 
> 1711 Montée Major Terrebonne (Québec) J7M 1E6
> 
> Tél: (514) 776-MSDI  -> (514) 776-6734
> 
> Sans Frais: 1(877) 776-MSDI  -> 1(877) 776-6734
> 
> http://www.msdi.ca
> 
>  
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Java on the BSD Desktop?

2007-05-28 Thread Tom Grove
I am wanting to write a gui frontend to pkg_cutleaves.  I see that it is 
just a simple perl script so, it would be quite simple to just put a gtk 
frontend on it and call it a day.  However, I am starting to write a 
good amount of code in java and was wondering what others think about 
java as the de-facto gui standard on the BSD desktop.


Python started me on a path of cross platform coding and I found that 
java also makes this task quite simple.  Along with it's nice feature 
set and significant speed improvements since 1.5 I am starting to see it 
as a great language for most everything.  Is it just me or does BSD and 
java make sense?  Basically, before I get started writing a program that 
I hope is used by more than me does it make more sense to write this 
program and future programs in java or gtk/python/perl/c/whatever?


-Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to find disk slice layout

2007-05-28 Thread Jerry McAllister
On Mon, May 28, 2007 at 10:38:41AM -0500, Jeffrey Goldberg wrote:

> On May 28, 2007, at 9:53 AM, Jerry McAllister wrote:
> 
> >On Sun, May 27, 2007 at 10:34:52PM -0500, Jeffrey Goldberg wrote:
> >
> >>Is there some
> >>command I can use to remind me of how I sliced that partition?
> >
> >I am guessing that you have your terminology scrambled,
> 
> You guessed correctly.  I should have asked to see how I "partitioned  
> that slice" instead of "sliced that partition".   Once I realized my  
> error, it became clear that I needed to ask bsdlabel about a slice  
> and so
> 
>   bsdlabel /dev/ad0s1
> 
> would have been the correct command (while I had incorrectly been  
> trying it on /dev/ad0)

Could just say baslabel ad0s1.   IT will add any necessary /dev/ and
other stuff (if any).

> >Note you do not back up the swap partition which is normally 'b'
> >and don't do anything to the 'c' partition which is there only to
> >describe the slice to the system and is not a true partition.
> >You can probably skip backing up your /tmp also.
> 
> What about /dev and /var?

Not /dev.   That must be part of / and not its own file system.

If /var is its own partition/file system, then you might want to
back it up.It can possibly contain databases and such and
thus be valuable.   But, that is for you to determine the need.
Some people leave /var as part of / or put it in another filesystem
with a symbolic link.  In that case you wouldn't back up /var separately.
Of course, then it would not show up in 'df' output either.

> I'm willing to lose the log files in /var/log if it comes to it, and  
> I don't have local mail delivery or much important that would be in  
> out-going mail queues.

Well, check for stuff in /var/db and /var/share and make sure there is
nothing worth keeping.  Then, it's up to you.   You might have to
recreate some files with touch to make logs and other things work
if you loose things and have to rebuild.

> I also feel that I should have put /usr/ports/distfiles on another  
> file system, since I don't particularly care to back up those  
> either.  I guess I could just put in a symbolic link to something on / 
> var

That is up to you.  I generally make a large /home or sometimes /work
file system and put things that might change size more than planned
including user home directories, /var/log, all of /usr/ports and some
other things in it and make symbolic links.   It is one way to manage
file systems and dumps.

> Again, thank you.

Sure,  Enjoy,

jerry

> 
> -j
> 
> 
> 
> -- 
> Jeffrey Goldberghttp://www.goldmark.org/jeff/
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: probe my HDD

2007-05-28 Thread Garrett Cooper

Norberto Meijome wrote:

On Mon, 28 May 2007 21:30:23 +0700
"erik freaks" <[EMAIL PROTECTED]> wrote:


From: "erik freaks" <[EMAIL PROTECTED]>
To: "Norberto Meijome" <[EMAIL PROTECTED]>
Subject: Re: probe my HDD
Date: Mon, 28 May 2007 21:30:23 +0700

firstly I use FreeBSD 4.7 everything fine..,then I try to use freeBSD 6.2,when
I try to install I got message "Disk not found!.", how to probe hardware
manually in freeBSD 6.2 ?,my spesification hardware:
CPU:intel P4 2.0
MB : Asus P4P8X
HDD :Samsung 160 Gb
...
 please help me,I just newbie


Hi Erik,
please reply to all, including the list, so others can help as well.

hardware gets probed automatically..i can't imagine what would work with 4.7
and not with the 6 series (it's usually the other way around for me).
I would take note of what is the name of the HD in 4.7 (ad0 , i imagine) and
then let 6. know..

btw, have you read the handbook ? it's the best place to start if you are a
newbie. You can find it in freebsd.org

good luck,
_
{Beto|Norberto|Numard} Meijome


Who's the disk controller made by? SATA or PATA (MB supports both)?

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: probe my HDD

2007-05-28 Thread Norberto Meijome
On Mon, 28 May 2007 21:30:23 +0700
"erik freaks" <[EMAIL PROTECTED]> wrote:

> From: "erik freaks" <[EMAIL PROTECTED]>
> To: "Norberto Meijome" <[EMAIL PROTECTED]>
> Subject: Re: probe my HDD
> Date: Mon, 28 May 2007 21:30:23 +0700
> 
> firstly I use FreeBSD 4.7 everything fine..,then I try to use freeBSD 6.2,when
> I try to install I got message "Disk not found!.", how to probe hardware
> manually in freeBSD 6.2 ?,my spesification hardware:
> CPU:intel P4 2.0
> MB : Asus P4P8X
> HDD :Samsung 160 Gb
> ...
>  please help me,I just newbie

Hi Erik,
please reply to all, including the list, so others can help as well.

hardware gets probed automatically..i can't imagine what would work with 4.7
and not with the 6 series (it's usually the other way around for me).
I would take note of what is the name of the HD in 4.7 (ad0 , i imagine) and
then let 6. know..

btw, have you read the handbook ? it's the best place to start if you are a
newbie. You can find it in freebsd.org

good luck,
_
{Beto|Norberto|Numard} Meijome

"People demand freedom of speech to make up for the freedom of thought which
they avoid. " Soren Aabye Kierkegaard

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Locked Myself Out - Cannot "su"

2007-05-28 Thread Daniel Marsh

On 5/29/07, Schiz0 <[EMAIL PROTECTED]> wrote:


On 5/27/07, Schiz0 <[EMAIL PROTECTED]> wrote:
> On 5/27/07, Conrad J. Sabatier <[EMAIL PROTECTED]> wrote:
> > On Sun, 27 May 2007 19:17:20 -0400
> > Schiz0 <[EMAIL PROTECTED]> wrote:
> >
> > > This is one of those things where after you realize what you've
done,
> > > you just want to smack yourself.
> > >
> > > I've been working on hardening my FreeBSD 6.2-Stable box. I disabled
> > > root login from everywhere, including the console (The box isn't
> > > physically secure, so I didn't want anyone screwing around). Now, me
> > > being stupid, didn't reboot after making all these changes to harden
> > > it. So I finally rebooted (With the secure level set to 2) and I
found
> > > that I can't run "su." I get the following error:
> > >
> > > $ su -
> > > su: not running setuid
> > >
> > > I can't shutdown since I can't become root, so I pulled the plug and
> > > rebooted into single-user mode. I edited /etc/rc.conf and set
> > > kern_securelevel_enable="NO"
> > >
> > > I rebooted again, but for some reason I still get the same error for
> > > "su."
> > >
> > > So basically, I locked myself out of my box completely. I fail :-(
> > >
> > > su has the following permissions:
> > > -r-sr-xr-x   1 root  wheel   schg   12240 May 13 13:15 su
> > >
> > > And sudo isn't installed, unfortunately. Any ideas of how to get
root
> > > back?
> > >
> > > Thanks!
> >
> > First, you need to make sure that ttyv0 is *not* set to "insecure"
> > in /etc/ttys, so no login/password will be needed in single-user mode:
> >
> > ttyv0   "/usr/libexec/getty Pc" cons25l1on  secure
> >
> > This *should* allow you to use single-user mode once again as root.
> >
> > Then, make sure that any user you want to have su capability is listed
> > in /etc/group under the "wheel" entry:
> >
> > wheel:*:0:root,foouser
> >
> > After that, any other problems you may encounter will have to be dealt
> > with as they arise.  Post a followup if you still have trouble.
> >
> > HTH
> >
> > --
> > Conrad J. Sabatier <[EMAIL PROTECTED]>
> >
> >
>
> Well I do know the root password, so I can get into single user mode
> even though the console is marked insecure. So that's not a problem.
>
> I just checked /etc/group and my username is NOT in the wheel group.
> I'm not in front the system right now to reboot it into single user
> mode and change /etc/group, but hopefully when I do, it will solve the
> problem. It's weird though, because I've been using this box fine for
> the past two months. I was able to su to root during that time. It's
> very strange that my username's group was changed automatically out of
> the wheel group.
>
> Thank you for your help!
>

Hm, this is odd. /etc/group contains:
wheel:*:0:root,steve
(My username is "steve")

I rebooted (SecureLevel is still disabled) and logged in as "steve."
Then I tried to run "su - root" and I got the same error:
$ su - root
su: not running setuid

But it's weird, because in the permissions for "su" it does have the suid
flag:
$ ls -l /usr/bin/ |grep su
-r-sr-xr-x   1 root  wheel 12240 May 13 13:15 su

Also, when I dropped to single-user mode, I edited my
/etc/login.access and enabled root login on the console. But now I
when I try to login as root, I get the error:
login: pam_acct_mgmt(): authentication error

I definitely remember what root's password is. I even changed root's
password in single-user mode, and it still doesn't let me login. I
don't think the box is compromised; this isn't a production server at
all, only a home HTTP/FTP server for personal use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
[EMAIL PROTECTED]"



Have you mounted any file systems with the nosuid flag?
Type: mount to check.
Also have a look in your /etc/fstab
If you have mounted a filesystem with nosuid then regardless of the flags on
the file it wont run as suid.

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


how many data can i write to my tape, how to tested?

2007-05-28 Thread perikillo

  Hi people.

  I'm running bacula 1.38.11 with one tape storage-works 232 200Gb. But i
start to get some errors about "Tape Full" like this:

28-May 04:30 bacula-dir: Start Backup JobId 1409,
Job=MBXDBA-FD.2007-05-28_04.30.00
28-May 06:18 bacula-sd: End of Volume "FullTape-0009" at 184:1 on
device "StorageWorks-232" (/dev/nsa0). Write of 64512 bytes got 0.
28-May 06:18 bacula-sd: End of medium on Volume "FullTape-0009"
Bytes=177,755,370,128 Blocks=2,755,390 at 28-May-2007 06:18.
28-May 06:19 bacula-dir: There are no Jobs associated with Volume
"FullTape-0010". Marking it purged.
28-May 06:19 bacula-dir: Recycled volume "FullTape-0010"

28-May 08:07 bacula-sd: MBXDBA-FD.2007-05-28_04.30.00 Fatal error:
append.c:207 Fatal append error on device "StorageWorks-232"
(/dev/nsa0): ERR=label.c:733 Expecting Volume Label, got FI=0 Stream=0
len=64412

28-May 08:07 bacula-sd: MBXDBA-FD.2007-05-28_04.30.00 Fatal error:
askdir.c:291 NULL Volume name. This shouldn't happen!!!
28-May 08:11 MBXDBA-FD: MBXDBA-FD.2007-05-28_04.30.00 Fatal error:
backup.c:500 Network send error to SD. ERR=Broken pipe
28-May 08:07 bacula-dir: MBXDBA-FD.2007-05-28_04.30.00 Error: Bacula
1.38.11 (28Jun06): 28-May-2007 08:07:31
 JobId:  1409
 Job:MBXDBA-FD.2007-05-28_04.30.00
 Backup Level:   Full
 Client: "MBXDBA" i686-redhat-linux-gnu,redhat,
 FileSet:"MBXDBA-FS" 2007-02-20 15:40:01
 Pool:   "MueblexFullTape"
 Storage:"LTO-1"
 Scheduled time: 28-May-2007 04:30:00
 Start time: 28-May-2007 04:30:05
 End time:   28-May-2007 08:07:31
 Elapsed time:   3 hours 37 mins 26 secs
 Priority:   15
 FD Files Written:   73,128
 SD Files Written:   73,128
 FD Bytes Written:   66,939,362,451 (66.93 GB)
 SD Bytes Written:   66,949,907,557 (66.94 GB)
 Rate:   5131.0 KB/s
 Software Compression:   None
 Volume name(s): FullTape-0009
 Volume Session Id:  39
 Volume Session Time:1179787421
 Last Volume Bytes:  1 (1 B)
 Non-fatal FD errors:0
 SD Errors:  0
 FD termination status:  Error
 SD termination status:  Error
 Termination:*** Backup Error ***


 Them, he says that my tape is full, but calculating all clients, is
about 181GB, them why hi say that my tape is full?

 This is the reason i want to test my tape first, to see if the
problem is freebsd or bacula. Hope you could point how to fill my tape
with freebsd and see how much data can i write to my tape.

  Thanks all for your time!!!


 P.S. FreeBSD 6.1-p16
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


HP 2605 printer and FreeBSD.

2007-05-28 Thread FreeBSD User Giacomo
Hello to all, 
I would have to buy one color laser printer. 
Watching those that are "usable" under Unix/Linux (LinuxPrinting.org) and that
they are expensive, I see what the printer 2605 of HP it works perfectly 
unless for some "small" problem. 
Someone has installed it and it knows to me to say if effectively it is 
therefore.. 
Thanks.
-- 
Isaia Luciano
FreeBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6to4 IPv6 problems FreeBSD 6.2 p4

2007-05-28 Thread Kris Kennaway
On Mon, May 28, 2007 at 01:01:49PM -0700, Ofloo wrote:
> 
> 
> 
> Ofloo wrote:
> > 
> > I use 6to4 IPv6 tunnels, when using applications which use a lot of
> > bandwidth (400kb/s), it is not that much but still, the server gets in
> > trouble.
> > 
> > May 28 19:51:21 narf kernel: arpresolve: can't allocate route for
> > 192.88.99.1
> > May 28 19:51:22 narf kernel: arpresolve: can't allocate route for
> > 192.88.99.1
> > May 28 20:06:15 narf kernel: arpresolve: can't allocate route for
> > 192.88.99.1
> > May 28 20:09:02 narf kernel: arpresolve: can't allocate route for
> > 192.88.99.1
> > 
> > The default route does exist though:
> > 
> > narf# netstat -rn -f inet6 | grep default
> > default   2002:c058:6301::  UGS   
> > stf0
> > narf#
> > 
> > when this happens it takes about 10 mins and my ssh IPv6 ssh session is
> > closed, after keeping this up for longer the server crashes, .. any
> > suggestions ?
> > 
> 
> Using a different default gateway solved this for now, though I don't think
> a server should crash if its gateway is in trouble, ..

Submit a bug report with the panic backtrace, etc.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Locked Myself Out - Cannot "su"

2007-05-28 Thread Schiz0

On 5/27/07, Schiz0 <[EMAIL PROTECTED]> wrote:

On 5/27/07, Conrad J. Sabatier <[EMAIL PROTECTED]> wrote:
> On Sun, 27 May 2007 19:17:20 -0400
> Schiz0 <[EMAIL PROTECTED]> wrote:
>
> > This is one of those things where after you realize what you've done,
> > you just want to smack yourself.
> >
> > I've been working on hardening my FreeBSD 6.2-Stable box. I disabled
> > root login from everywhere, including the console (The box isn't
> > physically secure, so I didn't want anyone screwing around). Now, me
> > being stupid, didn't reboot after making all these changes to harden
> > it. So I finally rebooted (With the secure level set to 2) and I found
> > that I can't run "su." I get the following error:
> >
> > $ su -
> > su: not running setuid
> >
> > I can't shutdown since I can't become root, so I pulled the plug and
> > rebooted into single-user mode. I edited /etc/rc.conf and set
> > kern_securelevel_enable="NO"
> >
> > I rebooted again, but for some reason I still get the same error for
> > "su."
> >
> > So basically, I locked myself out of my box completely. I fail :-(
> >
> > su has the following permissions:
> > -r-sr-xr-x   1 root  wheel   schg   12240 May 13 13:15 su
> >
> > And sudo isn't installed, unfortunately. Any ideas of how to get root
> > back?
> >
> > Thanks!
>
> First, you need to make sure that ttyv0 is *not* set to "insecure"
> in /etc/ttys, so no login/password will be needed in single-user mode:
>
> ttyv0   "/usr/libexec/getty Pc" cons25l1on  secure
>
> This *should* allow you to use single-user mode once again as root.
>
> Then, make sure that any user you want to have su capability is listed
> in /etc/group under the "wheel" entry:
>
> wheel:*:0:root,foouser
>
> After that, any other problems you may encounter will have to be dealt
> with as they arise.  Post a followup if you still have trouble.
>
> HTH
>
> --
> Conrad J. Sabatier <[EMAIL PROTECTED]>
>
>

Well I do know the root password, so I can get into single user mode
even though the console is marked insecure. So that's not a problem.

I just checked /etc/group and my username is NOT in the wheel group.
I'm not in front the system right now to reboot it into single user
mode and change /etc/group, but hopefully when I do, it will solve the
problem. It's weird though, because I've been using this box fine for
the past two months. I was able to su to root during that time. It's
very strange that my username's group was changed automatically out of
the wheel group.

Thank you for your help!



Hm, this is odd. /etc/group contains:
wheel:*:0:root,steve
(My username is "steve")

I rebooted (SecureLevel is still disabled) and logged in as "steve."
Then I tried to run "su - root" and I got the same error:
$ su - root
su: not running setuid

But it's weird, because in the permissions for "su" it does have the suid flag:
$ ls -l /usr/bin/ |grep su
-r-sr-xr-x   1 root  wheel 12240 May 13 13:15 su

Also, when I dropped to single-user mode, I edited my
/etc/login.access and enabled root login on the console. But now I
when I try to login as root, I get the error:
login: pam_acct_mgmt(): authentication error

I definitely remember what root's password is. I even changed root's
password in single-user mode, and it still doesn't let me login. I
don't think the box is compromised; this isn't a production server at
all, only a home HTTP/FTP server for personal use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: auto mounting newtork shares

2007-05-28 Thread Paul Fraser

Hi,

Essentially, yes. Fstab is the appropriate place. To get you started,
here's (from memory) a line in my fstab file. (Sorry for the top-post
and vagueness by the way, typing from my mobile while on the train to
work...)

server:/path/to/host/share /mount/path/on/guest nfs
rw,tcp,intr,other_options_here 0 0

Best of luck,

Paul Fraser

On 5/28/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:

Hello,

A couple of days ago someone pointed me to mount_nfs to mount network file
share (thanks!). And now I wonder what I need to do to automatically mount
it at boot time.

Is this done by editing fstab? But how do I save the password that needs
to be given while mounting the share?

Thank you in advance!

--
Zbigniew Szalbot

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




--
Regards,

Paul Fraser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6to4 IPv6 problems FreeBSD 6.2 p4

2007-05-28 Thread Ofloo



Ofloo wrote:
> 
> I use 6to4 IPv6 tunnels, when using applications which use a lot of
> bandwidth (400kb/s), it is not that much but still, the server gets in
> trouble.
> 
> May 28 19:51:21 narf kernel: arpresolve: can't allocate route for
> 192.88.99.1
> May 28 19:51:22 narf kernel: arpresolve: can't allocate route for
> 192.88.99.1
> May 28 20:06:15 narf kernel: arpresolve: can't allocate route for
> 192.88.99.1
> May 28 20:09:02 narf kernel: arpresolve: can't allocate route for
> 192.88.99.1
> 
> The default route does exist though:
> 
> narf# netstat -rn -f inet6 | grep default
> default   2002:c058:6301::  UGS   
> stf0
> narf#
> 
> when this happens it takes about 10 mins and my ssh IPv6 ssh session is
> closed, after keeping this up for longer the server crashes, .. any
> suggestions ?
> 

Using a different default gateway solved this for now, though I don't think
a server should crash if its gateway is in trouble, ..
-- 
View this message in context: 
http://www.nabble.com/6to4-IPv6-problems-FreeBSD-6.2-p4-tf3829352.html#a10841206
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


www/jserv on 6.2

2007-05-28 Thread Mark Messier

On a 6.2 system, I'm trying to get /usr/ports/www/apache-jserv
to build.

It failed the first time, so I updated the ports tree and
it fails again.  It reports:

  checking for httpd.h... no

and the log file shows:

 /usr/local/include/apache22/httpd.h:50:24: apr_tables.h: No such  
file or directory
 /usr/local/include/apache22/httpd.h:51:23: apr_pools.h: No such  
file or directory
 /usr/local/include/apache22/httpd.h:52:22: apr_time.h: No such file  
or directory
 /usr/local/include/apache22/httpd.h:53:28: apr_network_io.h: No  
such file or directory
 /usr/local/include/apache22/httpd.h:54:25: apr_buckets.h: No such  
file or directory
 /usr/local/include/apache22/httpd.h:55:22: apr_poll.h: No such file  
or directory
 /usr/local/include/apache22/httpd.h:745:21: apr_uri.h: No such file  
or directory

Those files are in /usr/local/include/apr-1/
so I soft-linked them from /usr/local/include/apache22

Now it fails here:

 configure:4279: cc -E  -I/usr/local/include/apache22 conftest.c >/ 
dev/null 2>conftest.out

 configure:4275:23: os-inline.c: No such file or directory
 configure: failed program was:
 #line 4274 "configure"
 #include "confdefs.h"
 #include 


Anyone out there have a nice HowTo for getting this done?

Thanks,
-mark

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xorg 7.2 ... install

2007-05-28 Thread RW
On Mon, 28 May 2007 12:09:53 +0200
Albert Shih <[EMAIL PROTECTED]> wrote:

> My problem (that's not really a problem but...) is event we make a
> fresh install (I erase everthing in /usr/local and /usr/X11R6), I
> need export XORG_UPGRADE=yes
> 
> before installing any ports (with X11 of course).
> 
> I think that's very strange because...I don't make a upgrade. 


XORG_UPGRADE is just there to force people who haven't read UPDATING to
do so. Even in your case you still need to run mergebase.sh.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread Garrett Cooper

Garrett Cooper wrote:

Vittorio De Martino wrote:

Il Monday 28 May 2007 14:51:04 John Nielsen ha scritto:

On Monday 28 May 2007 11:18:07 Vittorio De Martino wrote:

On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and
one of the latest portsnap I have an nvidia go 7400 card, *** fully ***
supported by the nvidia driver according to the docs.

I followed the minimal configuration by nvidia-xconfig and just taiored
the language for the keyboardBUT
  startx fails to load X and in the log file I find I find the below
reported errors.

Being a beginner I find myself somewhat disorientated by these errors
that I couldn't find surfing the net.

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
ensure (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
system, and (EE) NVIDIA(0): that the NVIDIA device files have been
created properly. (EE) NVIDIA(0): Please consult the NVIDIA README
for details.
(EE) NVIDIA(0):  *** Aborting ***
Not too cryptic. Make sure that the nvidia kernel module is loaded 
and try
again. To verify, type "kldstat". If nvidia.ko is not listed, type 
"kldload
nvidia". To load it automatically on boot (which is the only way for 
it to

load successfully), add a line like this to /boot/loader.conf:

nvidia_load="YES"

Then reboot.



Actually the nvidia.ko mdule was and is loaded
hpbsd# kldstat
Id Refs AddressSize Name
 1   24 0xc040 5b33d8   kernel
..
 43 0xc0a7e000 1e058linux.ko
 51 0xc0a9d000 435c acpi_video.ko
 63 0xc0aa2000 61ba0acpi.ko
 71 0xc0b04000 6d4de0   nvidia.ko
 81 0xc11d9000 aed4 cpufreq.ko
 91 0xc11e4000 4a2c acpi_ibm.ko
..
151 0xc7245000 2000 rtc.ko

I was able to eliminate the following error

(II) LoadModule: "wfb"
(II) Loading /usr/X11R6/lib/modules/libwfb.so
dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
(EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
--
because the required librpcsvc.so.2 has become  (and is presente as) 
librpcsvc.so.3. Therefore I linked ln -s librpcsvc.so.3 librpcsvc.so.2


That's ok now BUT

NVIDIA: could not open the device /dev/nvidiactl (II) Setting vga for 
screen 0.

(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please 
ensure
(EE) NVIDIA(0): that there is a supported NVIDIA GPU in this 
system, and
(EE) NVIDIA(0): that the NVIDIA device files have been created 
properly. (EE) NVIDIA(0): Please consult the NVIDIA README for 
details.


still something incorrect prevents startx to fire X.
The problems seems to be /dev/nvidiactl!

Please help - Vittorio


Add yourself to the video group and chown/mod the /dev node until you 
have read, write, and executable access.


-Garrett


Vittorio,

Hint: Everything in the Xorg.0.log file with...
...(EE) right before it, generally means that it's a problem ;).
...(WW) sometimes mean you should consider what's being said.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


6to4 IPv6 problems FreeBSD 6.2 p4

2007-05-28 Thread Ofloo

I use 6to4 IPv6 tunnels, when using applications which use a lot of bandwidth
(400kb/s), it is not that much but still, the server gets in trouble.

May 28 19:51:21 narf kernel: arpresolve: can't allocate route for
192.88.99.1
May 28 19:51:22 narf kernel: arpresolve: can't allocate route for
192.88.99.1
May 28 20:06:15 narf kernel: arpresolve: can't allocate route for
192.88.99.1
May 28 20:09:02 narf kernel: arpresolve: can't allocate route for
192.88.99.1

The default route does exist though:

narf# netstat -rn -f inet6 | grep default
default   2002:c058:6301::  UGS   
stf0
narf#

when this happens it takes about 10 mins and my ssh IPv6 ssh session is
closed, after keeping this up for longer the server crashes, .. any
suggestions ?
-- 
View this message in context: 
http://www.nabble.com/6to4-IPv6-problems-FreeBSD-6.2-p4-tf3829352.html#a10840247
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread Garrett Cooper

Vittorio De Martino wrote:

Il Monday 28 May 2007 14:51:04 John Nielsen ha scritto:

On Monday 28 May 2007 11:18:07 Vittorio De Martino wrote:

On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and
one of the latest portsnap I have an nvidia go 7400 card, *** fully ***
supported by the nvidia driver according to the docs.

I followed the minimal configuration by nvidia-xconfig and just taiored
the language for the keyboardBUT
  startx fails to load X and in the log file I find I find the below
reported errors.

Being a beginner I find myself somewhat disorientated by these errors
that I couldn't find surfing the net.

(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
ensure (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
system, and (EE) NVIDIA(0): that the NVIDIA device files have been
created properly. (EE) NVIDIA(0): Please consult the NVIDIA README
for details.
(EE) NVIDIA(0):  *** Aborting ***

Not too cryptic. Make sure that the nvidia kernel module is loaded and try
again. To verify, type "kldstat". If nvidia.ko is not listed, type "kldload
nvidia". To load it automatically on boot (which is the only way for it to
load successfully), add a line like this to /boot/loader.conf:

nvidia_load="YES"

Then reboot.



Actually the nvidia.ko mdule was and is loaded
hpbsd# kldstat
Id Refs AddressSize Name
 1   24 0xc040 5b33d8   kernel
..
 43 0xc0a7e000 1e058linux.ko
 51 0xc0a9d000 435c acpi_video.ko
 63 0xc0aa2000 61ba0acpi.ko
 71 0xc0b04000 6d4de0   nvidia.ko
 81 0xc11d9000 aed4 cpufreq.ko
 91 0xc11e4000 4a2c acpi_ibm.ko
..
151 0xc7245000 2000 rtc.ko

I was able to eliminate the following error

(II) LoadModule: "wfb"
(II) Loading /usr/X11R6/lib/modules/libwfb.so
dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
(EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
--
because the required librpcsvc.so.2 has become  (and is presente as) 
librpcsvc.so.3. Therefore I linked 
ln -s librpcsvc.so.3 librpcsvc.so.2


That's ok now BUT

NVIDIA: could not open the device /dev/nvidiactl 
(II) Setting vga for screen 0.

(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0): that the NVIDIA device files have been created properly. 
(EE) NVIDIA(0): Please consult the NVIDIA README for details.


still something incorrect prevents startx to fire X.
The problems seems to be /dev/nvidiactl!

Please help - Vittorio


Add yourself to the video group and chown/mod the /dev node until you 
have read, write, and executable access.


-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread Vittorio De Martino
Il Monday 28 May 2007 14:51:04 John Nielsen ha scritto:
> On Monday 28 May 2007 11:18:07 Vittorio De Martino wrote:
> > On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and
> > one of the latest portsnap I have an nvidia go 7400 card, *** fully ***
> > supported by the nvidia driver according to the docs.
> >
> > I followed the minimal configuration by nvidia-xconfig and just taiored
> > the language for the keyboardBUT
> >   startx fails to load X and in the log file I find I find the below
> > reported errors.
> >
> > Being a beginner I find myself somewhat disorientated by these errors
> > that I couldn't find surfing the net.
> >
> > (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
> > ensure (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
> > system, and (EE) NVIDIA(0): that the NVIDIA device files have been
> > created properly. (EE) NVIDIA(0): Please consult the NVIDIA README
> > for details.
> > (EE) NVIDIA(0):  *** Aborting ***
>
> Not too cryptic. Make sure that the nvidia kernel module is loaded and try
> again. To verify, type "kldstat". If nvidia.ko is not listed, type "kldload
> nvidia". To load it automatically on boot (which is the only way for it to
> load successfully), add a line like this to /boot/loader.conf:
>
> nvidia_load="YES"
>
> Then reboot.
>

Actually the nvidia.ko mdule was and is loaded
hpbsd# kldstat
Id Refs AddressSize Name
 1   24 0xc040 5b33d8   kernel
..
 43 0xc0a7e000 1e058linux.ko
 51 0xc0a9d000 435c acpi_video.ko
 63 0xc0aa2000 61ba0acpi.ko
 71 0xc0b04000 6d4de0   nvidia.ko
 81 0xc11d9000 aed4 cpufreq.ko
 91 0xc11e4000 4a2c acpi_ibm.ko
..
151 0xc7245000 2000 rtc.ko

I was able to eliminate the following error

(II) LoadModule: "wfb"
(II) Loading /usr/X11R6/lib/modules/libwfb.so
dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
(EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
--
because the required librpcsvc.so.2 has become  (and is presente as) 
librpcsvc.so.3. Therefore I linked 
ln -s librpcsvc.so.3 librpcsvc.so.2

That's ok now BUT

>>
NVIDIA: could not open the device /dev/nvidiactl 
>>
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0): that the NVIDIA device files have been created properly. 
(EE) NVIDIA(0): Please consult the NVIDIA README for details.

still something incorrect prevents startx to fire X.
The problems seems to be /dev/nvidiactl!

Please help - Vittorio
  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make packages

2007-05-28 Thread Giorgos Keramidas
On 2007-05-28 10:50, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> Giorgos Keramidas wrote:
> > ,---
> > | $ pkg_info | fgrep vim-lite
> > | vim-lite-7.0.224_1  Vi "workalike", with many additional features (Lite 
> > package
> > | $ pkg_create -b vim-lite-7.0.224_1
> > | $ ls -ld vim-lite*
> > | -rw-rw-r--  1 keramida  wheel  5347344 May 28 20:14 vim-lite-7.0.224_1.tbz
> > | $
> > `---
> > You don't even have to be root to run pkg_create, as you can see above.
> 
>  Unless root is the only account that has access to the files of course.

You're right.  I picked a port with no set-uid files, and
overgeneralized based on that port's files.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make packages

2007-05-28 Thread Garrett Cooper

Giorgos Keramidas wrote:

On 2007-05-28 12:27, Albert Shih <[EMAIL PROTECTED]> wrote:

Le 28/05/2007 ? 13:16:00+0300, Thanos Rizoulis a ?crit

O/H Albert Shih ??:

Hi All
I would like when a make install in any ports the system make a tbz in
/usr/ports/packages/All every time and WITHOUT any option in command line
(because there many people on the server).
Where can I put some option to do that ?

 Assuming you are using FreeBSD 6.2 Release:

 man ports
 
http://www.freebsd.org/cgi/man.cgi?query=ports&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html

Thanks.


 You are probably interested in *make package*

Wellthe problem is (like I said) there many «admin» in this server and
I known many of them just use «make install» and forget «package». 


What I try to do is event the user just use «make install» the system do
«make package install».


You can create a "package" after the fact with:

pkg_create -b foo

Where "foo" is the name of an installed port, i.e.:

,---
| $ pkg_info | fgrep vim-lite
| vim-lite-7.0.224_1  Vi "workalike", with many additional features (Lite 
package
| $ pkg_create -b vim-lite-7.0.224_1
| $ ls -ld vim-lite*
| -rw-rw-r--  1 keramida  wheel  5347344 May 28 20:14 vim-lite-7.0.224_1.tbz
| $
`---

You don't even have to be root to run pkg_create, as you can see above.


Unless root is the only account that has access to the files of course.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Su newbie question

2007-05-28 Thread Garrett Cooper

Ian Lord wrote:

Hi,

 


A real dumb question today : I’ve always been the only administrator of
servers I installed so I never searched too much on the topic…

 


A new employee has joined the team and he will need to administer the
servers (compile ports, etc)

 


Usually, I do a su when I need to do these tasks, so I wonder if everybody
needs to know that password or if he could have his own password to su ?

 


Thanks


sudo's a better idea.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Computer hangs on reboot

2007-05-28 Thread Andrey Shuvikov

Hi,

I posted this question originally to freebsd-acpi list but without
much luck. Besides I'm not sure it's ACPI problem.

I have a computer with SIS630E-based PCChips motherboard (M787CL+) and
FreeBSD 6.2 (lately I upgraded to RELENG_6, but it didn't help). The
problem is that when I try to reboot it just hangs. The last line I
see on the screen is "Rebooting...", then some vertical lines move
across the screen (maybe video mode switch or something like that),
and that's it.

I tried to add some debug output to cpu_reset_real() code:

printf("cpu_reset_real(): before keyboard reset\n");
outb(IO_KBD + 4, 0xFE);
printf("cpu_reset_real(): after keyboard reset\n");

Then the last two lines I see on the screen when I try to reboot are:

cpu_reset_real(): before keyboard reset
c

Also I tried to set BROKEN_KEYBOARD_RESET option but nothing changed
(except I didn't see these debugging messages, obviously).

The dmesg is at http://mysite.verizon.net/mr_hyro/acpi/dmesg.txt

Booting with ACPI disabled doesn't help, neither does setting
hw.acpi.disable_on_reboot and hw.acpi.handle_reboot to 1 (either one
or both).

Does anybody know how to fix this?

Thank you,
Andrey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Su newbie question

2007-05-28 Thread Ian Lord
Hi,

 

A real dumb question today : I’ve always been the only administrator of
servers I installed so I never searched too much on the topic…

 

A new employee has joined the team and he will need to administer the
servers (compile ports, etc)

 

Usually, I do a su when I need to do these tasks, so I wonder if everybody
needs to know that password or if he could have his own password to su ?

 

Thanks

 

~~

Ian Lord

MSD Informatique

1711 Montée Major Terrebonne (Québec) J7M 1E6

Tél: (514) 776-MSDI  -> (514) 776-6734

Sans Frais: 1(877) 776-MSDI  -> 1(877) 776-6734

http://www.msdi.ca

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make packages

2007-05-28 Thread Giorgos Keramidas
On 2007-05-28 12:27, Albert Shih <[EMAIL PROTECTED]> wrote:
>Le 28/05/2007 ? 13:16:00+0300, Thanos Rizoulis a ?crit
>>O/H Albert Shih ??:
>>> Hi All
>>> I would like when a make install in any ports the system make a tbz in
>>> /usr/ports/packages/All every time and WITHOUT any option in command line
>>> (because there many people on the server).
>>> Where can I put some option to do that ?
>> 
>>  Assuming you are using FreeBSD 6.2 Release:
>> 
>>  man ports
>>  
>> http://www.freebsd.org/cgi/man.cgi?query=ports&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html
> 
> Thanks.
> 
>>  You are probably interested in *make package*
> 
> Wellthe problem is (like I said) there many «admin» in this server and
> I known many of them just use «make install» and forget «package». 
> 
> What I try to do is event the user just use «make install» the system do
> «make package install».

You can create a "package" after the fact with:

pkg_create -b foo

Where "foo" is the name of an installed port, i.e.:

,---
| $ pkg_info | fgrep vim-lite
| vim-lite-7.0.224_1  Vi "workalike", with many additional features (Lite 
package
| $ pkg_create -b vim-lite-7.0.224_1
| $ ls -ld vim-lite*
| -rw-rw-r--  1 keramida  wheel  5347344 May 28 20:14 vim-lite-7.0.224_1.tbz
| $
`---

You don't even have to be root to run pkg_create, as you can see above.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: machine will no longer boot

2007-05-28 Thread Daniel Molina Wegener

Hello,

   Try booting from a FreeBSD Install CD, load the needed modules before
booting the kernel, start the sysinstall. From sysinstall in the Install
CD, start a "Fixit" shell. From the shell set the partitions booteable and
write changes. Do not resize or apply newfs to the partitions, just set
booteable and write the partition info. Mount your / slice, and install
the BTX loader into the MBR using:

boot0cfg -vB -b /boot/boot0 /dev/TheDiskDevice

That works for me on my SATA disks.

Regards
DMW


El Lun, 28 de Mayo de 2007, 12:05, WarrenHead escribió:
> Hi list,
>
> Yesterday I installed a new sata disk into my server, which is connected
> to a highpoint rocket raid card. I plugged in only one disk, so no raid yet.
>
> I ran sysinstall and then fdisk and disklabel. All was fine and I placed
> files onto the disk. Then I realized I had made a mistake, I had made
> only one partition with fdisk, and two slices with disklabel.
> (Mountpoints pointing to /mnt/x  and /mnt/y.)
> Somehow I got another mountpoint automatically which mounted the entire
> disk as one, to /media/z. Weird.
>
> So I ran sysinstall again and used fdisk to erase everything and create
> two partitions. I wrote these changes successfully to the disk.
>
> I then started disklabel (still from within sysinstall) and created the
> two mount points for the two partitions again.
> I tried to write these changes to the disk, but that failed.
>
> Mmm, weird. So, perhaps I needed to reboot first?
> Which I did, and now I cannot boot anymore.
>
> The error messages that show on screen are something like this:
> Can't stat /dev/ad4sd1 No such file or directory
> Can't stat /dev/ad4se1 No such file or directory
> After that I get a bogus shell which can do virtually nothing. I have no
> idea what it is.
> I can cat /etc/fstab though and noticed that the two lines with
> mountpoints for the new disk are indeed the new lines. I guess disklabel
> was partially succesfull?
>
> Perhaps I should simply remove these lines in /etc/fstab?
> Unfortunately, with this ridiculous shell, I don't know how to.
>
> So I tried a livecd (Knoppix 5.1). Since the system disk was formatted
> as ufstype=5xbsd, I have trouble writing to it. Bummer.
>
> But... should I remove these lines in /etc/fstab? Will this matter?
>
> Luckily I can read the disk, so if necessary I can start over, but I
> hope there is something I can do from within that odd shell.
>
> Please advise, this particular problem is not fun.
>
> Cheers, Warren
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>


-- 
 .O. | Daniel Molina Wegener   | C/C++ Developer
 ..O | dmw [at] unete [dot] cl | FOSS Coding Adict
 OOO | BSD & Linux User| Standards Rocks!


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: machine will no longer boot

2007-05-28 Thread Mike Jeays
On Monday 28 May 2007 12:05, WarrenHead wrote:
> Hi list,
>
> Yesterday I installed a new sata disk into my server, which is connected
> to a highpoint rocket raid card. I plugged in only one disk, so no raid
> yet.
>
> I ran sysinstall and then fdisk and disklabel. All was fine and I placed
> files onto the disk. Then I realized I had made a mistake, I had made
> only one partition with fdisk, and two slices with disklabel.
> (Mountpoints pointing to /mnt/x  and /mnt/y.)
> Somehow I got another mountpoint automatically which mounted the entire
> disk as one, to /media/z. Weird.
>
> So I ran sysinstall again and used fdisk to erase everything and create
> two partitions. I wrote these changes successfully to the disk.
>
> I then started disklabel (still from within sysinstall) and created the
> two mount points for the two partitions again.
> I tried to write these changes to the disk, but that failed.
>
> Mmm, weird. So, perhaps I needed to reboot first?
> Which I did, and now I cannot boot anymore.
>
> The error messages that show on screen are something like this:
> Can't stat /dev/ad4sd1 No such file or directory
> Can't stat /dev/ad4se1 No such file or directory
> After that I get a bogus shell which can do virtually nothing. I have no
> idea what it is.
> I can cat /etc/fstab though and noticed that the two lines with
> mountpoints for the new disk are indeed the new lines. I guess disklabel
> was partially succesfull?
>
> Perhaps I should simply remove these lines in /etc/fstab?
> Unfortunately, with this ridiculous shell, I don't know how to.
>
> So I tried a livecd (Knoppix 5.1). Since the system disk was formatted
> as ufstype=5xbsd, I have trouble writing to it. Bummer.
>
> But... should I remove these lines in /etc/fstab? Will this matter?
>
> Luckily I can read the disk, so if necessary I can start over, but I
> hope there is something I can do from within that odd shell.
>
> Please advise, this particular problem is not fun.
>
> Cheers, Warren
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

You should be able to use the antique line-editor 'ed' from the "ridiculous" 
shell.  Use Knoppix or another machine to read or write down the man pages, 
and use it to delete the lines from fstab.

You might also be able to use 'sed' from the command line to change the 
offending lines to comments, or delete them.

-- 
Mike Jeays
http://www.jeays.ca
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to find disk slice layout

2007-05-28 Thread Robert Huff
Roland Smith writes:

>  > > Note you do not back up the swap partition which is normally 'b'
>  > > and don't do anything to the 'c' partition which is there only to
>  > > describe the slice to the system and is not a true partition.
>  > > You can probably skip backing up your /tmp also.
>  > 
>  >  What about /dev and /var?
>  
>  I'd backup /var, because it's usually small. And it also contains
>  important things like your port options, and the database of
>  installed packages.

While everyone needs to e aware of their own circumstances
... most of /var _can_ be rebuilt with varying degrees of effort.
One exception I'm aware of: I believe mysql defaults to /var/mysql.
(On the other hand  - if that data is important, you already have a
separate backup arrangement.  Right?)


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


machine will no longer boot

2007-05-28 Thread WarrenHead

Hi list,

Yesterday I installed a new sata disk into my server, which is connected 
to a highpoint rocket raid card. I plugged in only one disk, so no raid yet.


I ran sysinstall and then fdisk and disklabel. All was fine and I placed 
files onto the disk. Then I realized I had made a mistake, I had made 
only one partition with fdisk, and two slices with disklabel.

(Mountpoints pointing to /mnt/x  and /mnt/y.)
Somehow I got another mountpoint automatically which mounted the entire 
disk as one, to /media/z. Weird.


So I ran sysinstall again and used fdisk to erase everything and create 
two partitions. I wrote these changes successfully to the disk.


I then started disklabel (still from within sysinstall) and created the 
two mount points for the two partitions again.

I tried to write these changes to the disk, but that failed.

Mmm, weird. So, perhaps I needed to reboot first?
Which I did, and now I cannot boot anymore.

The error messages that show on screen are something like this:
Can't stat /dev/ad4sd1 No such file or directory
Can't stat /dev/ad4se1 No such file or directory
After that I get a bogus shell which can do virtually nothing. I have no 
idea what it is.
I can cat /etc/fstab though and noticed that the two lines with 
mountpoints for the new disk are indeed the new lines. I guess disklabel 
was partially succesfull?


Perhaps I should simply remove these lines in /etc/fstab?
Unfortunately, with this ridiculous shell, I don't know how to.

So I tried a livecd (Knoppix 5.1). Since the system disk was formatted 
as ufstype=5xbsd, I have trouble writing to it. Bummer.


But... should I remove these lines in /etc/fstab? Will this matter?

Luckily I can read the disk, so if necessary I can start over, but I 
hope there is something I can do from within that odd shell.


Please advise, this particular problem is not fun.

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Newby with Bother Printer

2007-05-28 Thread David Kelly
On Mon, May 28, 2007 at 03:06:37PM +0100, Ken Williams wrote:
> 
> Hi Has anyone here got a Brother MFC-410CN printer to work with BSD either on 
> the network or usb, I am struggleing, but won't go into the details in case 
> someone already has easy setup details

Why are you replying-to a different thread and changing the subject?

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to find disk slice layout

2007-05-28 Thread Roland Smith
On Mon, May 28, 2007 at 10:38:41AM -0500, Jeffrey Goldberg wrote:
> > Note you do not back up the swap partition which is normally 'b'
> > and don't do anything to the 'c' partition which is there only to
> > describe the slice to the system and is not a true partition.
> > You can probably skip backing up your /tmp also.
> 
>  What about /dev and /var?

I'd backup /var, because it's usually small. And it also contains
important things like your port options, and the database of installed
packages.  

Don't bother with /dev though, because devices are dynamically created
when they become available.

>  I also feel that I should have put /usr/ports/distfiles on another file 
>  system, since I don't particularly care to back up those either.  I guess I 
>  could just put in a symbolic link to something on /var

It depends on how you back up things, but both dump(8) BSD tar(1) can
obey the 'nodump' flag.

So if you do 'chflags nodump /usr/ports/distfiles', dump will skip that
directory (unless you're doing a level 0 dump, in which case you'll need
the '-h 0' option). BSD tar will skip files and directories flagged with
nodump if you give it the --nodump option.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpFZYIUpyoEK.pgp
Description: PGP signature


Re: How to find disk slice layout

2007-05-28 Thread Jeffrey Goldberg

On May 28, 2007, at 9:53 AM, Jerry McAllister wrote:


On Sun, May 27, 2007 at 10:34:52PM -0500, Jeffrey Goldberg wrote:


Is there some
command I can use to remind me of how I sliced that partition?


I am guessing that you have your terminology scrambled,


You guessed correctly.  I should have asked to see how I "partitioned  
that slice" instead of "sliced that partition".   Once I realized my  
error, it became clear that I needed to ask bsdlabel about a slice  
and so


  bsdlabel /dev/ad0s1

would have been the correct command (while I had incorrectly been  
trying it on /dev/ad0)



so lets straighten that first [...]


Thanks for that.


Note you do not back up the swap partition which is normally 'b'
and don't do anything to the 'c' partition which is there only to
describe the slice to the system and is not a true partition.
You can probably skip backing up your /tmp also.


What about /dev and /var?

I'm willing to lose the log files in /var/log if it comes to it, and  
I don't have local mail delivery or much important that would be in  
out-going mail queues.


I also feel that I should have put /usr/ports/distfiles on another  
file system, since I don't particularly care to back up those  
either.  I guess I could just put in a symbolic link to something on / 
var


Again, thank you.

-j



--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: (no subject)

2007-05-28 Thread Jerry McAllister
On Mon, May 28, 2007 at 09:42:59PM +0700, erik freaks wrote:

> please help me,I try to use freebsd 6.2 I got problem  when I try to make
> partitions,I got message "disk not found!..."
> my spsification hardware:
> CPU: intel P4 2.0
> MB: Asus P4P8X
> HDD:Samsung IDE 160 GB
> ..
> please help me to solve my problem, I'm very interest in FreeBSD..

Well, we will need more specific and useful information.

What did you actually do - what steps did you take?
What commands?
Is this a new disk you just added or are you trying to do something
to an existing disk?

jerry

> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: pf BINAT broken

2007-05-28 Thread Ansar Mohammed
Ok so binat is not broken!!

scrub on $ext_if all reassemble tcp
scrub on $int_if all reassemble tcp

fixed it.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to find disk slice layout

2007-05-28 Thread Jerry McAllister
On Sun, May 27, 2007 at 10:34:52PM -0500, Jeffrey Goldberg wrote:

> For backup reasons I would like to get a statement of the slices on a  
> disk.  fdisk only tells me about classic partitions.  Is there some  
> command I can use to remind me of how I sliced that partition?

I am guessing that you have your terminology scrambled, so lets straighten
that first.

The primary divisions that FreeBSD recognizes and fdisk handles are slices.
there can be up to 4 slices (named 1-4) on a disk.   
MS- calls these primary partitions.

Within each slice, FreeBSD can create partitions named a-h, with 'c' 
reserved to give information about the whole slice.  The bsdlabel(8)
utility takes care of this.   Just type  bsdlabel adNsX   replacing
the 'N' and 'X' with appropriate drive and slice identifiers
eg  first drive and first slice would be:   bsdlabel ad0s1
If you are dual-booted and FreeBSD is second (a common occurance
then it might be 'bsdlabel ad0s2'

Note you do not back up the swap partition which is normally 'b'
and don't do anything to the 'c' partition which is there only to
describe the slice to the system and is not a true partition.
You can probably skip backing up your /tmp also.
> 
> The best (and a poor approximation it is) I can come up with is to  
> use df to tell me the sizes of my non-swap slices.  There must be a  
> simple way to do this.

Anyway, using 'df -k' or maybe 'df -m' is a good way to deal with planning 
backups because in almost all cases you will only back up partitions that 
you have mounted.   After all, they are the only ones you are actively 
using and housing data to back up.   In addition, when you do a backup, 
the relevant size is the amount used, or possibly the usable capacity as 
given by df rather than the size as divided.

jerry

> 
> -j
> 
> -- 
> Jeffrey Goldberghttp://www.goldmark.org/jeff/
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread Daniel Molina Wegener
Hello,

   Have you loaded the kernel module for the nvidia driver?

   You must load nvidia from loader.conf.

Regards,
DMW


El Lun, 28 de Mayo de 2007, 11:18, Vittorio De Martino escribió:
> On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and one of
> the latest portsnap I have an nvidia go 7400 card, *** fully *** supported by
> the nvidia driver according to the docs.
>
> I followed the minimal configuration by nvidia-xconfig and just taiored the
> language for the keyboardBUT
>   startx fails to load X and in the log file I find I find the below reported
> errors.
>
> Being a beginner I find myself somewhat disorientated by these errors that I
> couldn't find surfing the net.
>
> Please help
> Ciao
> Vittorio
>
>
> 
> 
>
> (II) LoadModule: "glx"
> (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
> (II) Module glx: vendor="NVIDIA Corporation"
>   compiled for 4.0.2, module version = 1.0.9746
>   Module class: X.Org Server Extension
>   ABI class: X.Org Server Extension, version 0.1
> (II) Loading extension GLX
> (II) LoadModule: "nvidia"
> (II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.so
> (II) Module nvidia: vendor="NVIDIA Corporation"
>   compiled for 4.0.2, module version = 1.0.9746
>   Module class: X.Org Video Driver
> 
> (II) NVIDIA dlloader X Driver  1.0-9746  Tue Dec 19 13:23:45 PST 2006
> (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
> (II) Primary Device is: PCI 01:00:0
> (--) Assigning device section with no busID to primary device
> (--) Chipset NVIDIA GPU found
> (II) Loading sub module "fb"
> (II) LoadModule: "fb"
> (II) Loading /usr/X11R6/lib/modules/libfb.so
> (II) Module fb: vendor="X.Org Foundation"
>   compiled for 6.9.0, module version = 1.0.0
>   ABI class: X.Org ANSI C Emulation, version 0.2
> (II) Loading sub module "wfb"
> (II) LoadModule: "wfb"
> (II) Loading /usr/X11R6/lib/modules/libwfb.so
> dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
> (EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
> (II) UnloadModule: "wfb"
> (EE) Failed to load module "wfb" (loader failed, 7)
> (II) Loading sub module "ramdac"
> (II) LoadModule: "ramdac"
> (II) Loading /usr/X11R6/lib/modules/libramdac.so
> (II) Module ramdac: vendor="X.Org Foundation"
>   compiled for 6.9.0, module version = 0.1.0
>   ABI class: X.Org Video Driver, version 0.8
> (II) resource ranges after xf86ClaimFixedResources() call:
> .
> (II) Setting vga for screen 0.
> (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
> (==) NVIDIA(0): RGB weight 888
> (==) NVIDIA(0): Default visual is TrueColor
> (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
> (**) NVIDIA(0): Enabling RENDER acceleration
> (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
> (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
> (EE) NVIDIA(0): that the NVIDIA device files have been created properly.
> (EE) NVIDIA(0): Please consult the NVIDIA README for details.
> (EE) NVIDIA(0):  *** Aborting ***
> (II) UnloadModule: "nvidia"
> (II) UnloadModule: "ramdac"
> (II) UnloadModule: "fb"
> (EE) Screen(s) found, but none have a usable configuration.
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>


-- 
 .O. | Daniel Molina Wegener   | C/C++ Developer
 ..O | dmw [at] unete [dot] cl | FOSS Coding Adict
 OOO | BSD & Linux User| Standards Rocks!


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nvidia doesn't start on cryptic errors

2007-05-28 Thread John Nielsen
On Monday 28 May 2007 11:18:07 Vittorio De Martino wrote:
> On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and one
> of the latest portsnap I have an nvidia go 7400 card, *** fully ***
> supported by the nvidia driver according to the docs.
>
> I followed the minimal configuration by nvidia-xconfig and just taiored the
> language for the keyboardBUT
>   startx fails to load X and in the log file I find I find the below
> reported errors.
>
> Being a beginner I find myself somewhat disorientated by these errors that
> I couldn't find surfing the net.

> (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please
> ensure (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this
> system, and (EE) NVIDIA(0): that the NVIDIA device files have been
> created properly. (EE) NVIDIA(0): Please consult the NVIDIA README for
> details.
> (EE) NVIDIA(0):  *** Aborting ***

Not too cryptic. Make sure that the nvidia kernel module is loaded and try 
again. To verify, type "kldstat". If nvidia.ko is not listed, type "kldload 
nvidia". To load it automatically on boot (which is the only way for it to 
load successfully), add a line like this to /boot/loader.conf:

nvidia_load="YES"

Then reboot.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(no subject)

2007-05-28 Thread erik freaks

please help me,I try to use freebsd 6.2 I got problem  when I try to make
partitions,I got message "disk not found!..."
my spsification hardware:
CPU: intel P4 2.0
MB: Asus P4P8X
HDD:Samsung IDE 160 GB
..
please help me to solve my problem, I'm very interest in FreeBSD..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Locked Myself Out - Cannot "su"

2007-05-28 Thread Jerry McAllister
On Sun, May 27, 2007 at 07:17:20PM -0400, Schiz0 wrote:

> This is one of those things where after you realize what you've done,
> you just want to smack yourself.
> 
> I've been working on hardening my FreeBSD 6.2-Stable box. I disabled
> root login from everywhere, including the console (The box isn't
> physically secure, so I didn't want anyone screwing around). Now, me
> being stupid, didn't reboot after making all these changes to harden
> it. So I finally rebooted (With the secure level set to 2) and I found
> that I can't run "su." I get the following error:
> 
> $ su -
> su: not running setuid
> 
> I can't shutdown since I can't become root, so I pulled the plug and
> rebooted into single-user mode. I edited /etc/rc.conf and set
> kern_securelevel_enable="NO"
> 
> I rebooted again, but for some reason I still get the same error for "su."
> 
> So basically, I locked myself out of my box completely. I fail :-(
> 
> su has the following permissions:
> -r-sr-xr-x   1 root  wheel   schg   12240 May 13 13:15 su

That looks correct.  It is the same as mine except the size is different.
It is probably a different version.

Is your id in the wheel group in /etc/group?

Are you in some weird shell?  (tcsh[csh] is least weird on FreeBSD, 
followed by sh)

jerry

> 
> And sudo isn't installed, unfortunately. Any ideas of how to get root back?
> 
> Thanks!
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Newby with Bother Printer

2007-05-28 Thread Ken Williams

Hi Has anyone here got a Brother MFC-410CN printer to work with BSD either on 
the network or usb, I am struggleing, but won't go into the details in case 
someone already has easy setup details

-- 

Ken Williams

(Sent using BSD Unix)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: raid or not raid

2007-05-28 Thread Jerry McAllister
On Mon, May 28, 2007 at 12:11:24AM +0200, Gabriel Rossetti wrote:

> Jerry McAllister wrote:
> > On Thu, May 24, 2007 at 06:07:58AM -0500, [EMAIL PROTECTED] wrote:
> >
> >   
> >> On 24/05/07, kalin mintchev <[EMAIL PROTECTED]> wrote:
> >> 
> >>> so nobody on this list knows anything about raid?
> >>> wrong list?
> >>>
> >>>   
>  hi all..
> 
>  i have a box in a remote hosting facility that claims that the machine 
> >>> has
> >>>   
>  two discs raided in it but df and fstab show only one disc with a bunch 
> >>> of
>  slices.
>  under devices there is another name - ad6 - but it's not mounted 
> >>> anywhere.
> >>>   
>  the one i see both in df and the fstab is ad4 with one big slice and
>  different partitions
> 
>  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
>  think at that point the raid drivers were still considered 
> >>> 'experimental'.
> >>>   
>  it makes sense to me that if i don't see a second drive in the fstab 
> >>> there
>  isn;t any mounting which means that there is no raid going on...
> 
>  is there any other way i can make sure if raid is actually on?
>  would there will be any logs somewhere?
>  the machine has been up for about 2 years and the dmesg is long gone...
> 
>  thanks.
> 
> >> Lots of people here know plenty about RAID,
> >> but you don't provide very much information.
> >>
> >> If dmesg itself returns none of the startup info,
> >> you can look in /var/log/dmesg.[today|yesterday].
> >>
> >> /usr/sbin/pciconf can tell you what controller(s)
> >> may be attached.
> >>
> >> A proper RAID will show up as a single device,
> >> just like any hard drive (but different).
> >>
> >> It does seem odd to me that a (supposed) RAID
> >> would show up as /dev/ad4.
> >> 
> >
> > A hardware raid will look like any other drive to the system.
> > If it is SATA raid, it should be adN
> > It is it SAS raid, it should be daN.
> >
> >   
> I have an SATA RAID controller (rocketraid 1640) and the drive shows up
> as daN and not adN

That may be correct.You may need to address the raid as /dev/dann
I have not had a SATA raid to see what it did.  I just know that the
SAS raid showed up as da-something (I don't have it available to check.

jerry

> When I tested the controller without the driver loaded the DRIVES showed
> up ad adN, I put
> drives in caps because this is what I think is happening here, the
> driver isn't loaded and/or no
> RAID devices were created, so the RAID controller's drives just show up
> as drives and the
> controller is just used as a non-RAID controller. I suspect this is why
> he sees a second disk.
> 
> Gabriel
> > Some systems allow you to address the drives as either individual
> > drives or as the raid - maybe until you have configured it or
> > something.   Anyway, on a Dell 2950 I could see both designations
> > but figured out which was the raid and used it and all was fine.
> >
> > jerry
> >
> >   
> >> Possibilities:
> >> Your RAID really is on /dev/ad4 and /dev/ad6 is
> >> something unexplained.
> >> Your RAID controller is unsupported in 5.x and
> >> not Doing The Right Thing but somehow still (kind
> >> of) working as a normal [S]ATA controller.
> >> Your RAID controller is unsupported in 5.x and
> >> your hosting company realised this and wired
> >> the shebang up as a normal [S]ATA controller
> >> because they couldn't get FreeBSD to install
> >> otherwise.
> >> There is a RAID controller and there are two disks
> >> connected to it, but the controller was not set up
> >> correctly.
> >> There is a RAID controller and there are two disks
> >> connected to some other controller which might lead
> >> to some interesting phone calls.
> >> Your remote hosting company put a RAID with two
> >> disks in some random machine and someone else
> >> is complaining on some other list about the inverse
> >> of your problem.
> >>
> >> -- 
> >> --
> >> ___
> >> freebsd-questions@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >> 
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
> >   
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Nvidia doesn't start on cryptic errors

2007-05-28 Thread Vittorio De Martino
On my newly bought HP pavillion 6366 notebook with freebsd 6.2 - p4 and one of 
the latest portsnap I have an nvidia go 7400 card, *** fully *** supported by 
the nvidia driver according to the docs.

I followed the minimal configuration by nvidia-xconfig and just taiored the 
language for the keyboardBUT 
  startx fails to load X and in the log file I find I find the below reported 
errors.

Being a beginner I find myself somewhat disorientated by these errors that I 
couldn't find surfing the net.

Please help
Ciao
Vittorio





(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.9746
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.9746
Module class: X.Org Video Driver

(II) NVIDIA dlloader X Driver  1.0-9746  Tue Dec 19 13:23:45 PST 2006
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/X11R6/lib/modules/libwfb.so
dlopen: Shared object "librpcsvc.so.2" not found, required by "libwfb.so"
(EE) Failed to load /usr/X11R6/lib/modules/libwfb.so
(II) UnloadModule: "wfb"
(EE) Failed to load module "wfb" (loader failed, 7)
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.so
(II) Module ramdac: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 0.1.0
ABI class: X.Org Video Driver, version 0.8
(II) resource ranges after xf86ClaimFixedResources() call:
.
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
(EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
(EE) NVIDIA(0): that the NVIDIA device files have been created properly. 
(EE) NVIDIA(0): Please consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "ramdac"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CUPS on 6.2-RELEASE-p3: USB port busy; will retry in 30 seconds...

2007-05-28 Thread Andreas Scherrer

On 27/05/07, andreas scherrer <[EMAIL PROTECTED]> wrote:

I am trying to get a Samsung ML5000a printer to work on my FreeBSD
6.2-RELEASE-p3 box. The Machine has a EPIA Mini-ITX board which has *no*
parallel port.





The printer is connected to /dev/unlpt0

crw-rw  1 root  cups0,  61 May 26 17:18 /dev/unlpt0

/var/cache/cups is writable by the cups group:

drwxrwxr-x  2 root  cups  512 Apr  3 21:43 cups

If I issue 'echo test > /dev/unlpt0' I get

bash: /dev/unlpt0: Device busy


Update:
Changing the URI of the printer in printers.conf from

usb:/dev/unlpt0 to file:/dev/unlpt0

did not help. The effect is, that cups does not start anymore and i get

Unable to open output file "file:/dev/unlpt0" - Device busy.

in /var/log/cups/error_log

I'm at a loss :(


rgds
andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Locked Myself Out - Cannot "su"

2007-05-28 Thread Bill Moran
Schiz0 <[EMAIL PROTECTED]> wrote:

> This is one of those things where after you realize what you've done,
> you just want to smack yourself.
> 
> I've been working on hardening my FreeBSD 6.2-Stable box. I disabled
> root login from everywhere, including the console (The box isn't
> physically secure, so I didn't want anyone screwing around). Now, me
> being stupid, didn't reboot after making all these changes to harden
> it. So I finally rebooted (With the secure level set to 2) and I found
> that I can't run "su." I get the following error:
> 
> $ su -
> su: not running setuid
> 
> I can't shutdown since I can't become root, so I pulled the plug and
> rebooted into single-user mode. I edited /etc/rc.conf and set
> kern_securelevel_enable="NO"
> 
> I rebooted again, but for some reason I still get the same error for "su."
> 
> So basically, I locked myself out of my box completely. I fail :-(
> 
> su has the following permissions:
> -r-sr-xr-x   1 root  wheel   schg   12240 May 13 13:15 su
> 
> And sudo isn't installed, unfortunately. Any ideas of how to get root back?

What's the output of mount?  Did you maybe mount /usr nosetuid?

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


auto mounting newtork shares

2007-05-28 Thread Zbigniew Szalbot
Hello,

A couple of days ago someone pointed me to mount_nfs to mount network file
share (thanks!). And now I wonder what I need to do to automatically mount
it at boot time.

Is this done by editing fstab? But how do I save the password that needs
to be given while mounting the share?

Thank you in advance!

-- 
Zbigniew Szalbot

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Restore UFS snapshot

2007-05-28 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Roland Smith wrote:
> On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote:
>> I share Roland's concern about the reliability of any new code designed
>> to accomplish the 'full rollback' desired, but of course anything would
>> have to undergo incredibly rigorous testing before it would be allowed
>> anywhere near even -CURRENT I'm sure, same as softupdates/snapshots has. 
>>
>> That said, I think it is worthwhile finding out whether this is even
>> possible with the amount of data and metadata saved in snapshots to
>> accomplish their existing utility (which I still find pretty awesome,
>> and despite re-reading that section again several times, mysterious ..)
> 
> It should be possible. All the data that is needed is there. But I do
> think it will be definitely non-trivial. 
> 
> For one thing, you'll have to block all other changes from userland to
> the target filesystem while restoring the snapshot. And you'll have to
> update other snapshots as well. Seems like a big can of worms to me.

I was thinking this should be done while the fs is umounted. As I
suggested: 1. umount 2. snap_rollback  and 3. mount.



Svein Halvor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)
Comment: mailto:[EMAIL PROTECTED] to get my PGP-key

iD8DBQFGWr5ahQg3vZGYu0ARAh/iAJ0RdOGSuzgALvRNin2Nd2Xtw3hrmgCguxN4
oKBvLazzHSsN62uas1szqRg=
=kOxO
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Restore UFS snapshot

2007-05-28 Thread Roland Smith
On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote:
> 
> I share Roland's concern about the reliability of any new code designed
> to accomplish the 'full rollback' desired, but of course anything would
> have to undergo incredibly rigorous testing before it would be allowed
> anywhere near even -CURRENT I'm sure, same as softupdates/snapshots has. 
> 
> That said, I think it is worthwhile finding out whether this is even
> possible with the amount of data and metadata saved in snapshots to
> accomplish their existing utility (which I still find pretty awesome,
> and despite re-reading that section again several times, mysterious ..)

It should be possible. All the data that is needed is there. But I do
think it will be definitely non-trivial. 

For one thing, you'll have to block all other changes from userland to
the target filesystem while restoring the snapshot. And you'll have to
update other snapshots as well. Seems like a big can of worms to me.

> I guess contacting Marshall McKusick might be the quickest way to find
> out whether there's sufficient metadata available to do that; he'd know
> off the top of his head, I'm sure.  So should several other people, I
> guess, but more likely those frequenting -fs, -hackers, maybe -arch? 

Excellent idea.

> It may even be possible, assuming restoration of a filesystem to its
> state in a snapshot is possible at all, to first save all subsequent
> changes in its present state to another snapshot, or a snapshot-like
> thing, to allow 'rollforward' again, perhaps .. that would be cute.

If you take a snapshot just before you restore the older one, you could
do that.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZGTXEFOArm.pgp
Description: PGP signature


Re: make packages

2007-05-28 Thread Thanos Rizoulis

O/H Albert Shih έγραψε:

Hi All

I would like when a make install in any ports the system make a tbz in
/usr/ports/packages/All every time and WITHOUT any option in command line
(because there many people on the server).

Where can I put some option to do that ?


Assuming you are using FreeBSD 6.2 Release:

man ports
http://www.freebsd.org/cgi/man.cgi?query=ports&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html

You are probably interested in *make package*


--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make packages

2007-05-28 Thread Albert Shih
 Le 28/05/2007 à 13:16:00+0300, Thanos Rizoulis a écrit
>  O/H Albert Shih ??:
> > Hi All
> > I would like when a make install in any ports the system make a tbz in
> > /usr/ports/packages/All every time and WITHOUT any option in command line
> > (because there many people on the server).
> > Where can I put some option to do that ?
> 
>  Assuming you are using FreeBSD 6.2 Release:
> 
>  man ports
>  
> http://www.freebsd.org/cgi/man.cgi?query=ports&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html

Thanks.

> 
>  You are probably interested in *make package*

Wellthe problem is (like I said) there many «admin» in this server and
I known many of them just use «make install» and forget «package». 

What I try to do is event the user just use «make install» the system do
«make package install».

Regards.


--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Lun 28 mai 2007 12:25:15 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xorg 7.2 ... install

2007-05-28 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Albert Shih wrote:
> Hi all
> 
> I'm like Rambo and I don't like make a big upgrade. Now with the big
> upgrade Xorg 6.2 --> Xorg 7.x I erase everthing a make a fresh install.
> 
> My problem (that's not really a problem but...) is event we make a fresh
> install (I erase everthing in /usr/local and /usr/X11R6), I need 
>   export XORG_UPGRADE=yes
> 
> before installing any ports (with X11 of course).
> 
> I think that's very strange because...I don't make a upgrade. 
> 
> I can understand it's not a big problem...just a litte remark.

We were having exactly this discussion over on [EMAIL PROTECTED] just
now.

Actually, for a fresh install on a system without any X ports already
installed, you're better off doing this:

mkdir /usr/X11R6
sh /usr/ports/Tools/scripts/mergebase.sh

and then carry on installing everything.  Or you can do the following
by hand (which just duplicates the effect mergebase.sh ultimately
has):

cd /usr
ln -sf local X11R6
cd /etc
echo local_startup="/usr/local/etc/rc.d" >> rc.conf
echo local_periodic="/usr/local/etc/periodic" >> periodic.conf
sed -i.save -e '/X11R6/s/^/#/' manpath.config

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGWq2I8Mjk52CukIwRCLMoAJ4iCk3Evc4xP+lZ3JcZZNkza0L80gCeLzSN
CWT86BnryY6BeEno22PiV3g=
=MpX0
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Xorg 7.2 ... install

2007-05-28 Thread Albert Shih
Hi all

I'm like Rambo and I don't like make a big upgrade. Now with the big
upgrade Xorg 6.2 --> Xorg 7.x I erase everthing a make a fresh install.

My problem (that's not really a problem but...) is event we make a fresh
install (I erase everthing in /usr/local and /usr/X11R6), I need 
export XORG_UPGRADE=yes

before installing any ports (with X11 of course).

I think that's very strange because...I don't make a upgrade. 

I can understand it's not a big problem...just a litte remark.

Regards.


--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Lun 28 mai 2007 12:06:18 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


make packages

2007-05-28 Thread Albert Shih
Hi All

I would like when a make install in any ports the system make a tbz in
/usr/ports/packages/All every time and WITHOUT any option in command line
(because there many people on the server).

Where can I put some option to do that ?

Regards.


--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Lun 28 mai 2007 11:49:01 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


amvisd-new set up difficulty

2007-05-28 Thread dhaneshk k

Hi ,

this is Dhanesh , by the way of finding a solution for spam controll I
come across one  tutorial  Postfix and SpamAssassin By
Grzegorz , So I followed the foresaid tutorial ..

URL :http://ezine.daemonnews.org/200309/postfix-spamassassin.html.

Hope some of  you may be the right one to help me to controll spams in my 
mail system.If not please introduce me to some experts who knows this 
configuration so I can touch with them.


{
These all are I configured in a test machine (FreeBSD 6.0, POSTFIX running 
fine in this test machine ..I can send test mails between local users in 
this test machine  So if this setup is good then I can install  amavis-new 
in my server and can controll spams effectively) So I want to check whether 
this configuration is correct ya not , for that please give some  inputs( 
imean spam i/ps and how I know this is blocking spams  ..

and I want to ask you what I have to add more for the three line in
amavisd.conf
HERE I AM ATTCHING THE amvisd.conf file


read_hash(\%whitelist_sender, '/var/amavis/whitelist');
read_hash(\%blacklist_sender, '/var/amavis/blacklist');
read_hash(\%spam_lovers, '/var/amavis/spam_lovers');

}



I had a FreeBSD-6.0 box with postfix and mailman working fine .The problem 
is that my mailing list members including

me getting lots of spams daily ..so I  really  got in trouble .
  From the tutorial I uderstood that  by installing   amavisd-new  will 
solve the problem so I went ahead with this ..

SpamAssain &razor also coming with this amavisd-new (they are
integrated with is package ).

So a box with freeebsd6.0 ,with postfix clamav etc installed in it ..

(I have installed clamav before  following the tutorial through
usr/ports in FreeBSD box) SO I thought this AntiVirus  clamav may be
sufficent for using with amavisd-new

and  after this I followed the turorial for  postfix and spamassassin
step by step upto   section IV

Section IV - Notifications/DSN, BOUNCE/REJECT/DROP/PASS
destiny,
quarantine.   You may want to set these variables:

$notify_sender_templ
$notify_virus_sender_templ
$notify_virus_admin_templ
$notify_virus_recips_templ
$notify_spam_sender_templ
$notify_spam_admin_templ

 What valuses to set for this variables ,there is no such variables in
the amavisd.conf file so  I added this in the file and confused of
giving what values to this variables ? so I commented these 6  variables
and follwed the tutorial  upto
section V


read_hash(\%whitelist_sender, '/var/amavis/whitelist');
read_hash(\%blacklist_sender, '/var/amavis/blacklist');
read_hash(\%spam_lovers, '/var/amavis/spam_lovers');


these three lines I just added in amavisd.conf   ( I dont know whether
to add any thing else so I added the following lines from the tutorial
to the amvisd.conf file


map { $whitelist_sender{lc($_)}=1 } (qw(
freebsd-questions@freebsd.org
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

));

and I went to section vii

added these 2 line


$sa_local_tests_only = 0;
$sa_auto_whitelist = 1;

and clamav I installed through ports  so I commented all the  lines
except   the ones related to clamav section.

then have done


# su - vscan
$ touch blacklist whitelist spam_lovers
$ mkdir tmp

 but tmp dir is already here so its not needed to create it
explicitly..

then followd spamassassin local.cf configuration as in the tutorial exactly  
..


But ther is no   .spamassassin  dir in /var/amavis   so i created this
.spamassassin dir here and then given the command below .

$ touch
/var/amavis/.spamassassin/user_prefs

Then  razor and Bayesian learning configured as in the tutorial


then executed the command


/usr/local/sbin/amavisd debug

But the debug output I dont know if it
correct ya not   so I am adding
the debug output here
Please let me know all my configurations correct ya not  ?


and in /usr/ports/security/amavisd-new/work ther is no work directory
and sample spam files , so let me give some sample spam code so I ca
test it ..


NB: can you send a sample copy of amavisd.conf , spamassassin local.cf
, If my configuration is not looking proper one  in  your view .


/usr/local/sbin/amavisd debug  o/p
don# /usr/local/sbin/amavisd
debug
May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]:
starting.  /usr/local/sbin/amavisd at don.localdomain amavisd-new-2.5.0
(20070423), Unicode aware
May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: user=,
EUID: 0 (0);  group=, EGID: 0 5 0 0 (0 5 0 0)
May 25 10:29:53
don.localdomain /usr/local/sbin/amavisd[1599]: Perl
version   5.008008
May 25 10:29:54 don.localdomain /usr/local/sbin/amavisd[1599]: INFO: SA
version: 3.1.8, 3.001008, no optional modules:
Mail::SpamAssassin::SQLBasedAddrList DBD::mysql 
Mail::SpamAssassin::Plugin::DKIM

Mail::SpamAssassin::Plugin::URIDetail IP::Country::Fast Mail::DKIM
Mail::DKIM::Verifier Mail::SPF Mail::SPF::Mech Mail::SPF::Mech::A 
Mail::SPF::Mech::All

Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6
Mail::SPF::Mech::Include Ma

Re: Xorg 7.2 update

2007-05-28 Thread Albert Shih
 Le 27/05/2007 à 10:03:40-0700, Arthur Barlow a écrit
>  All,
> 
>  I just updated my 6.2 box to the new Xorg 7.2 distro.  I followed all the 
>  directions in the UPDATING file.  It appears all the directories have been 
>  properly built.  I also successfully ran the "mergebase.sh" script from the 
>  Tools/scripts directory.  However, when I try to run X, I get the following 
>  error:
> 
>  (EE) Failed to load module "pcidata" (module does not exist), 0)
>  Fatal server error:
>  Unable to load required base modules, Exiting
> 
>  I've looked around and cannot find any references to a "pcidata" module.  
>  Any insights?


run Xorg -configure and merge the new xorg.conf.new created (in /root) with
the old one.

Regards.

--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Lun 28 mai 2007 09:53:21 CEST
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ath0 going haywire

2007-05-28 Thread Gunther Mayer

Ghirai wrote:

Hello Gunther,

Monday, May 28, 2007, 2:45:07 AM, you wrote:

  

Hi there,



  

My ath0 wireless interface is going crazy lately. In my logs the kernel
keeps telling me



  

May 28 01:26:28 greg ath0: link state changed to UP
May 28 01:26:28 greg ath0: link state changed to UP
May 28 01:26:28 greg ath0: link state changed to DOWN
May 28 01:26:28 greg ath0: link state changed to DOWN



  

while the wireless connection becomes completely useless. The first time
this happened was 5 days ago when I got these messages every couple of
minutes. Today it happened again but much worse than before: First 4 
such messages every 3 seconds, then later 15/sec!!! This kept going for

almost 2 hours while I tried to debug things over the wired interface,
but I had no luck until miraculously it stopped its madness and came 
back to normal 15 min ago. No other hints in /var/log/messages...



  

This this a sign of failing hardware? Or some other obscure bug in the
ath driver?



  

My signal is pretty solid at 25-30 S:N btw so it can't be that...




  

Gunther




Maybe someone is performing a deauth attack on your AP,
in hopes of getting your password?
  
Very unlikely since my wireless is actually unencrypted. Unless it's a 
DoS of course. How could I trace that? Tcpdump on the wireless interface 
on the ap shows nothing unusual.


My laptop associates 100% with the same ap btw, also the card is 
completely useless now and I have to string a cable through my whole 
house...


Gunther
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Keyboard problems with xorg 7.2 and Dell Inspiron 5100?

2007-05-28 Thread Ying-Chieh Liao
On Mon, May 28, 2007 at 15:47:39 +0930, Greg 'groggy' Lehey wrote:
> Looking at the log file, nothing obvious reaches out and grabs me.  In
> particular, the keyboard-related information corresponds exactly with
> the Knoppix log file (modulo keyboard layout).
> 
> Has anybody else seen this?  Any ideas?

I've got this problem with my IBM T41 (discussed in -x11 and -mobile)
and my solution is add an ENV VAR
XKEYSYMDB=/usr/local/share/X11/XKeysymDB

hope this helps :)
-- 
self-producing in perl :
$_=q(print"\$_=q($_);eval;");eval;
-- V Vinay


pgpK9DGwveKNm.pgp
Description: PGP signature


Re: Restore UFS snapshot

2007-05-28 Thread Ian Smith
On Sun, 27 May 2007 11:01:53 -0400 Maxim Khitrov <[EMAIL PROTECTED]> wrote:
 > On 5/27/07, Roland Smith <[EMAIL PROTECTED]> wrote:
 > > On Sat, May 26, 2007 at 07:08:31PM -0400, Maxim Khitrov wrote:
 > > >  I don't think he is talking about that. From what I understand about
 > > >  the snapshot system (correct me if I'm wrong) is that a snapshot
 > > >  creates it's own file system by remembering, for example, what the
 > > >  superblock was at the time of the snapshot. After that, the live file
 > > >  system continues on its way keeping track of the snapshot, but
 > > >  modifying its own blocks to account for the changes afterwards.
 > >
 > > More or less. You should read §8.7 of McKusick's book, or the paper he
 > > wrote about it;
 > > http://www.usenix.org/publications/library/proceedings/usenix99/mckusick.html

Interesting thread.  I've only read the PDF referred to there, namely
http://www.usenix.org/publications/library/proceedings/usenix99/full_papers/mckusick/mckusick.pdf
several times, and particularly the snapshot section from p.15 of that,
and I'm almost beginning to get it, but can't claim more than that ..

 > > For instance, every time you change a block on a filesystem that has a
 > > snapshot, the filesystem checks wether that block is in the snapshot
 > > already. If not it writes the old contents of that block to the snapshot
 > > before writing the new contents to the filesystem block.
 > >
 > > >  I think what Svein wants to do is essentially overwrite a few blocks
 > > >  on the live file system, loosing all references to the changes that
 > > >  have been made and in effect returning the file system to the state it
 > > >  was in when the snapshot was taken.
 > >
 > > It's not just a question of references. You'll have to copy all the
 > > changed blocks back, and change the inodes, et cetera.
 > >
 > > >  This is different from simply
 > > >  copying the contents of the snapshot back to the disk via an md
 > > >  device.
 > >
 > > If you are using something like rsync it's not very much different.
 > >
 > > The point is that you're using established and debugged methods and code
 > > to change the filesystem, instead of writing new tools to do the same.

I share Roland's concern about the reliability of any new code designed
to accomplish the 'full rollback' desired, but of course anything would
have to undergo incredibly rigorous testing before it would be allowed
anywhere near even -CURRENT I'm sure, same as softupdates/snapshots has. 

That said, I think it is worthwhile finding out whether this is even
possible with the amount of data and metadata saved in snapshots to
accomplish their existing utility (which I still find pretty awesome,
and despite re-reading that section again several times, mysterious ..)

 > > >  This way he would restore the snapshot and lose it at the same
 > > >  time, but the operation should be O(1) in theory (time and space), as
 > > >  opposed to O(n) which any normal back-up/restore is.
 > >
 > > You don't lose the snapshot untill you delete it. And even then there
 > > are situations where not all the used space can be reclaimed. If a
 > > subsequent snapshot was taken, for instance.
 > >
 > > The process of undoing the snapshot can't be O(1). Because the time
 > > needed to create the shapshot isn't either.
 > 
 > Wait a sec, when you mount a snapshot as a memory disk, does that
 > memory disk contain the snapshot as well? I haven't done this in a
 > while, but since the snapshot didn't exist when it was being created,
 > I don't see how it would. Now when you mount that snapshot, the
 > superblock is read and from there we find out all the necessary
 > information about the file-system. This is an O(1) operation is it
 > not?
 > 
 > I'm not seeing why this process can't be slightly modified to
 > roll-back the live file system. There shouldn't be a need to copy any
 > changed blocks or modify inodes because mounting the snapshot doesn't
 > require this. The data is already there, all the references to it are
 > there, these references are just not in the right place for the live
 > file system to use them. The snapshot superblock contains the same
 > information regarding the size of the file-system and all other
 > parameters, so if we were to overwrite the superblock why wouldn't
 > everything return to the same state you see it in when you mount that
 > same snapshot?

I guess contacting Marshall McKusick might be the quickest way to find
out whether there's sufficient metadata available to do that; he'd know
off the top of his head, I'm sure.  So should several other people, I
guess, but more likely those frequenting -fs, -hackers, maybe -arch? 
 
 > This is why I said that you lose the snapshot itself, because it's not
 > there when it was taken, and you lose the references to all the
 > changed blocks of the live file system. Through the data would still
 > be there on the disk, as far as the snapshot is concerned it's now
 > free space 

wall-clock time profiling

2007-05-28 Thread Akihiro KAYAMA
Hi all.

What is the right way to measure wall-clock time in profiling on FreeBSD?

Standard profiling method in UNIX like 'gprof' measures CPU time, but
it doesn't always offer a good indication for tuning if application is
not CPU bound.

For example, the below simple program spend most of the time for disk
I/O, but gprof doesn't tell me that fsync(2) in output() is the
hot-spot which should be removed at first.


#include 
#include 
#include 
#include 

char calc()
{
int i;
char c;
for (i = 0; i < 1; i++) {
c = c * i;
}
return c;
}

void output(int fd, char c)
{
write(fd, &c, 1);
fsync(fd);  /* XXX time consuming system call */
}

int main()
{
int fd;
int i;
char c;

fd = open("testfile", O_CREAT | O_WRONLY);

for (i = 0; i < 1; i++) {
c = calc(i);
output(fd, c);
}

return 0;
}

gprof's output:

  %   cumulative   self  self total   
 time   seconds   secondscalls  ms/call  ms/call  name
 84.2   0.56 0.561 0.06 0.06  calc [3]
 13.6   0.65 0.091 0.01 0.01  _fsync [5]
  1.4   0.66 0.011 0.00 0.00  write [6]
  0.7   0.66 0.00 .mcount (12)
  0.2   0.66 0.001 0.00 0.01  output [4]


Measuring CPU time has been proper for traditional UNIX as TSS, but I
think wall-clock time is also useful in these days. It is affected by
system load, but it is easy to arrange some dedicated system for
profiling purpose.

Wall-clock time profiling itself could be implemented by simple kernel
hack (i386/i386/trap.c:syscall() and kern/subr_trap.c:userret()), but
if both CPU and wall-clock time profiling are available, I don't know
how users should change the method. sysctl(8) may be inappropriate.

Although I'm not familiar with another analysis tools, like DTrace for
FreeBSD, is there something help for me?

Thanks.

--
Akihiro KAYAMA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: xfce4 + hal can't/won't mount cdrom

2007-05-28 Thread James Butler

On 5/28/07, Joe Marcus Clarke <[EMAIL PROTECTED]> wrote:


On Mon, 2007-05-28 at 14:50 +1200, James Butler wrote:
> Hi Lists
> I've just (Saturday) built a fresh -CURRENT with xorg-7.2, xfce-4.4.1_1and
> HAL support. When I insert any cd in the drive, I get the cd icon
appearing
> on the desktop or in Thunar, but trying to open it gives an error
dialog:
>
> Unable to mount "FreeBSD_Install":
> Mount operation claims to be successfull [sic], but kernel doesn't list
the
> volume as mounted
>
> Any ideas? I have googled around with little luck.
>
> My rc.conf includes:
> dbus_enable="YES"
> hald_enable="YES"
> polkitd_enable="YES"
>
> My user is in group 'operator'. I can manually mount cds without
problems.
>
> I performed the steps suggested for HAL debugging in the freebsd-gnome
FAQ,
> the script session is available at
> http://homepages.ihug.co.nz/~sweetnavelorange/hal_trouble.txt

You need to remove acd0 from /etc/fstab.

Joe

--
PGP Key : http://www.marcuscom.com/pgp.asc

Phew, that was painless. Thanks heaps.


-James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: xfce4 + hal can't/won't mount cdrom

2007-05-28 Thread Joe Marcus Clarke
On Mon, 2007-05-28 at 14:50 +1200, James Butler wrote:
> Hi Lists
> I've just (Saturday) built a fresh -CURRENT with xorg-7.2, xfce-4.4.1_1 and
> HAL support. When I insert any cd in the drive, I get the cd icon appearing
> on the desktop or in Thunar, but trying to open it gives an error dialog:
> 
> Unable to mount "FreeBSD_Install":
> Mount operation claims to be successfull [sic], but kernel doesn't list the
> volume as mounted
> 
> Any ideas? I have googled around with little luck.
> 
> My rc.conf includes:
> dbus_enable="YES"
> hald_enable="YES"
> polkitd_enable="YES"
> 
> My user is in group 'operator'. I can manually mount cds without problems.
> 
> I performed the steps suggested for HAL debugging in the freebsd-gnome FAQ,
> the script session is available at
> http://homepages.ihug.co.nz/~sweetnavelorange/hal_trouble.txt

You need to remove acd0 from /etc/fstab.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part