Re: About Freebsd 7.0 versus 6.3

2007-11-09 Thread Dag-Erling Smørgrav
Aryeh Friedman [EMAIL PROTECTED] writes:
 On Nov 8, 2007 11:55 AM, Expresso Digital ISP [EMAIL PROTECTED] wrote:
  I'd like to know what is the diference between 7.0 and 6.3 and why create a
  newest version and after old version.

 6.X is the last of versions meant primarilly for single processing
 machines (with some after thought payed to multiprocessing).

 7.X is the beginning of the versions specifically designed with
 multiprocessing/cores in mind

Will you please stop spouting nonsense?

DES
-- 
Dag-Erling Smørgrav - [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: TCP/IP questions

2007-11-09 Thread Nikos Vassiliadis
On Thursday 08 November 2007 18:40:58 Bram wrote:
 Nikos Vassiliadis schreef:
  On Wednesday 07 November 2007 18:02:44 Bram wrote:
  Hi all,
 
  Can you change the timeout for a tcp connection ?
  I need to do the following: start a tcp connection , unplug the
  network cable (it's actually wifi but the effect is the same),send
  some data over the connection,wait 20 seconds , reinsert the network
  cable and just keep working.
  When you normally do this the connection will be dead.
  Is there a way in freebsd to change this ? are there parameters wich
  you can set so that the above would work (20 seconds without network
  can happen) ?
 
  TCP using the default FreeBSD settings, can survive
  20 secs of inactivity. It can be an application forced
  timeout. What application/protocol are talking about?
 
  Nikos

 This is the more full explanation:

 I have setup a mobile pc to roam across our building.
 By reducing the dwell time and changing the channel list to only the
 channels I use roaming now works within ten seconds en sometimes within
 one or two seconds.
 The previous configuration was with fedora and there I was unable to get
 roaming time under 25 seconds.

 I do have one very annoying problem however and I have no idea how to
 solve it.
 The software uses psycopg (a python postgresql module) wich uses the
 standard system parameters for connections (At least that is what I
 think). -On fedora if the connection gets lost and it takes 30 seconds
 to remake a new connection operation is not interupted, after the 30
 seconds you get the data you've been waiting for.
 -On freebsd however we get it a lot that the connection is lost, you
 can easily start a new connection wich works fine, but the old
 connection you wore using stops working and the app. hangs (If I had to
 guess I would say that roaming works about 95% of the time and the
 connection is lost about 5% of the time).

 I also get a lot of IFDOWN IFUP messages but this seems normal to me.

 I am now going to program something in twisted using udp to see if this
 works better.

If your app is using SO_KEEPALIVE, you can increase
sysctl net.inet.tcp.keepintvl. You could also trace
the application to see what's going on. Something
like:
ktrace -i $application

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


Re: About Freebsd 7.0 versus 6.3

2007-11-09 Thread Garrett Cooper

Dag-Erling Smørgrav wrote:

Aryeh Friedman [EMAIL PROTECTED] writes:
  

On Nov 8, 2007 11:55 AM, Expresso Digital ISP [EMAIL PROTECTED] wrote:


I'd like to know what is the diference between 7.0 and 6.3 and why create a
newest version and after old version.
  

6.X is the last of versions meant primarilly for single processing
machines (with some after thought payed to multiprocessing).

7.X is the beginning of the versions specifically designed with
multiprocessing/cores in mind



Will you please stop spouting nonsense?

DES
  


WTF? Dude... 7-CURRENT has several improvements to MP systems, but it's 
not meant to be the 'first non-SP designed OS'. Please, get your facts 
straight..


There are several other improvements coming with 7-CURRENT though, 
mainly dealing with Mac support, some security auditing (I believe), and 
other SoC / important developer project work, as well as improved 
hardware support for some items like SATA and HD audio I believe. And 
yes, there's the big [ULE] scheduler / giant lock removal improvement 
which helps MP systems scale better with 7-CURRENT.


But that doesn't mean that the 4BSD scheduler doesn't do MP systems 
well. It just sucks at it compared to ULE =P.


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


Re: install

2007-11-09 Thread Byung-Hee HWANG
On Thu, 2007-11-08 at 11:09 -0500, Leonard Lilla wrote:
 Wow,
 
  
 
 Talk about a horrible install. Install this CD, now that now
 this now that now this now that!!! It goes on and on. Please do think about
 people that are trying your install and are less knowledgeable and install
 using your 2 cd install. It is just horrible how many times I went from CD1
 to CD2 and forth and back and back and forth. Just a killer. If I needed
 exercise I would have called my trainer.
 
  
 
 I hope that I will be able to say better things about the rest of the
 install or the OS. Well, I can. Install sucks. If I click on something there
 is no recourse. Just a next and no back. I did not have the right cd once
 and that port did not install, period. no retry or skip. Just done with it.
 There are simply no error handling or user fault anticipation in your
 install. Not friendly.
 
  
 
 Leo

My niece (now 8 years old age) said, You are naughty boy! ;;

-- 
Perhaps your grandchildren will become the new PEZZONOVANTI.
-- Vito Corleone, Chapter 20, page 290

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


Help:how to install .diff files on FreeBSD 6.2

2007-11-09 Thread 冉俊秀
Hello,
I am a freshman in FreeBSD  OS.
I have downloaded somelibcap_1.10-14.diff.gz
http://download.chinaunix.net/download.php?id=11494ResourceID=5757
and   libcap-1.10.tar.bz2
http://download.chinaunix.net/download.php?id=11495ResourceID=5757
.The
instruction says  it can be installed on FreeBSD. But I don't know how to
install it as it seems different from Fedora Core.Could someone help me,and
give me the entire code?
Many thanks.


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


Re: About Freebsd 7.0 versus 6.3

2007-11-09 Thread Garrett Cooper

Albert Shih wrote:

 Le 08/11/2007 à 19:32:39+0100, Roland Smith a écrit
  

On Thu, Nov 08, 2007 at 02:48:47PM -0300, Mario Lobo wrote:


Concerning this, I've cvsuping to 6-CURRENT on a dual-core desktop. The 
system is running well, but I'd really like to move up to 7. Can it be done 
through cvsup from 6.2-STABLE to 7-CURRENT or is it wiser to install from 
scratch? any upgrade gotchas/procedure ?
  

It _can_ be done. (I've done it).

First, make a list of all your ports (portmaster -L works fine for
that). Then csup to RELENG_7. Then follow the instructions from
/usr/src/Makefile (the bit about 'upgrade their source'). I've outlined
the process below, with my own additions marked with lowercase letters


 a.  Make backups
 b.  Read /usr/src/UPDATING
 1.  `cd /usr/src'   (or to the directory containing your source tree).
 2.  `make buildworld'
 3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC).
 4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is GENERIC).
  [steps 3.  4. can be combined by using the kernel target]
 5.  `reboot'(in single user mode: boot -s from the loader prompt).
 6.  `mergemaster -p'
 7.  `make installworld'
 8.  `make delete-old'
 9.  `mergemaster'
10.  `reboot'
 c. `pkg_delete -a' (delete all your ports)



Be careful if you not using standard shell becauseif you using a shell
come from ports

  

11.  `make delete-old-libs' (in case no 3rd party program uses them anymore)
 d.  Reinstall all root and leaf ports. Dependencies will then be
 installed automatically.



Wellwhat's the difference between what you say and make a new
installation ? 


I've do this sometime ago because I don't have 7.0-Beta CD-rom, and I've
install a 6.2 and make what you say...but for me rebuild all ports it's
same thing to make a new-installation.


Regards.




--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Jeu 8 nov 2007 23:11:56 CET
  


Basically, that's the gist of what you need to do (what Roland said). 
The reason being that all of your software is dynamically linked vs old 
6.x libs and you'll need to upgrade that functionality in order to 
access true 7.x use. Sure, you can run things linked against 6.x (for a 
period of time), but it'll result in really fubar'ed userland and ports 
apps.


Pros of clean install:
- Virgin clean system.
- Don't have to rebuild ports and base system + kernel.

Cons:
- Have to take down the box while the install's going, plus any time 
spent on the upgrade process.

- Have to backup data.

Pros of in-place upgrade:
- Data is kept as-is.
- If planned properly, box downtime is minimized.

Cons:
- Can have orphan files laying around from old [ports/base] installs.
- Time, time, time (assuming your system is slow / heavily loaded)..

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


Re: Help:how to install .diff files on FreeBSD 6.2

2007-11-09 Thread Byung-Hee HWANG
On Fri, 2007-11-09 at 17:48 +0800, 冉俊秀 wrote:
 Hello,
 I am a freshman in FreeBSD  OS.
 I have downloaded somelibcap_1.10-14.diff.gz
 http://download.chinaunix.net/download.php?id=11494ResourceID=5757
 and   libcap-1.10.tar.bz2
 http://download.chinaunix.net/download.php?id=11495ResourceID=5757
 .The
 instruction says  it can be installed on FreeBSD. But I don't know how to
 install it as it seems different from Fedora Core.Could someone help me,and
 give me the entire code?
 Many thanks.

For the diff file, use patch(1).

-- 
You are the only person I felt any affection for, that I care about.
-- Micahel Corleone, Chapter 25, page 361

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


[OT] Rotate logs for openbgpd

2007-11-09 Thread Valerio Daelli
Hi
we use openbgpd-4.0 from ports. We would like to rotate its logs
with newsyslog but if we send the daemon the HUP or USR1 signal
it does not close its old, already-rotated log file.
Does anyone by accident know the correct signal to get openbgpd close
its old log file?
Maybe we should use 'bgpctl reload'?
Many thanks for your help

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


Re: About Freebsd 7.0 versus 6.3

2007-11-09 Thread Albert Shih
 Le 09/11/2007 à 06:12:48+0100, Roland Smith a écrit
 On Thu, Nov 08, 2007 at 11:14:13PM +0100, Albert Shih wrote:
  Be careful if you not using standard shell becauseif you using a shell
  come from ports
 
 Root should _never_ use a shell from ports. You can use the 'toor'
 account for that.

I known but that's never so simple.

I do the other, I active toor account with standard shell.

  Wellwhat's the difference between what you say and make a new
  installation ? 
 
 If you re-install, you're stuck with a GENERIC kernel, unless you
 recompile that afterwards which is extra work. 

Well that's cost is not more than you make buildkernel ...on compilation.

 
 I would go for a new install if I wanted to change the relative sizes of
 my partitions. Otherwise I'd stick with the source upgrade, because it
 is not as much work IMHO.

I agree but, do

cp /usr/local/etc /safe_place
cp /etc/  /safe_place

make a re-install with format disk

is not as much work too ;-)

And with that I can sure I don't have some old thing (event now we have
make delete-olds).

But I agree with you : Every sys-admin have his own habit ;-)

Regards.



--
Albert SHIH
Observatoire de Paris Meudon
SIO batiment 15
Heure local/Local time:
Ven 9 nov 2007 11:49:05 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problems using ls with for_in (SH)

2007-11-09 Thread Vince
Sdävtaker wrote:
 Im trying to get a file with all the md5 hashes of one directory.
 My initial script was this:
 #!/bin/sh
 for file in $(ls)
 do
echo $file
md5 $file
 done
 
 The problem is with the file names who contains whitespaces becouse
 the for_in passed each word as one iteration and not the full filename,
 I'd tried using -B in ls, but doesnt help.
 Any idea what can i do?
 Thanks!
 Sdäv
 

Use Quoting ?
 ([EMAIL PROTECTED])$ls
another file with spaces  file with space   no-spaces-here
[11:08:54:/usr/home/jhary/tmp/spacetmp]
([EMAIL PROTECTED])$for file in * ; do echo $file ; md5 $file ;  done
another file with spaces
MD5 (another file with spaces) = 40393f6dba09f89ef5cf32c3aec61f32
file with space
MD5 (file with space) = 1de1a1be1433df2d7af11d839db3b0c1
no-spaces-here
MD5 (no-spaces-here) = aaac9a687bd4ea9d2fc487e9cfb345f7


works for me.


Vince
 
 ___
 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 can i install gnome2 through console

2007-11-09 Thread Adam J Richardson

James A. Harrison wrote:

On Wed, 2007-10-24 at 23:06 +0900, Byung-Hee HWANG wrote:

On Wed, 2007-10-24 at 12:30 +0200, Ananias Uushona wrote:

I was installing gnome2 through x interface but I realize that its

very hard

especially to beginners but I got it right is that I did n't have the
hardware names and specifications right now I want to do it

automatically so

it can detect the automatically so where do I begin to install it

through

console should I remove xorg packages or what first

Please use pkg_add/pkg_delete instead of ports. It's very easy. That's
all the way I install/remove gnome2. Of course it works through console.

Ananias,

For install, at the command prompt type this command as root:

pkg_add -v -r gnome2-lite


However! There is a caveat here.

I'd say, sure, use pkg_add at first, because it's simple. However, bear in
mind that ports exist. And also bear in mind that you cannot mix packages
and ports, unless you want an inconsistent system.

Ports are well worth learning. I remember when I started using them, they
were confusing. But after I got used to them, I never, ever used/use
anything other than ports. They start making sense after a while ;)


I agree with James. I use portinstall which makes compiling everything a 
snap. Other people prefer different methods though. Compiling something 
large like Gnome takes a while, though. If you don't have the time go 
with packages.


One thing that does bug me about the compiling process is that just 
occasionally distcc will throw a wobbler about something and I have no 
clue how to fix it. :^) I think perhaps distcc is just a little buggy. 
But that's a thread for another mailing list.


Ananias [hi, by the way!], just to answer your question, do not remove 
Xorg as you will need it to support Gnome.


Regards,
Adam J Richardson

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


Re: install

2007-11-09 Thread Aryeh M. Friedman

 But, do install the ports tree - note, that's the ports tree/skeleton
 not the whole bunch of actual ports.  
With csup being a part of the base systems now don't install even this
because csup will nuke most of it anyway and spew a bunch or warnings.

This might be a little advanced for a complete beginner but the
following procedure seems to work well for me:

1. Install nothing except base and kernels
2. Edit your /usr/share/example/cvsup/ports-supfile and
.../standard-supfile
a. Change the default host
b. Depending on how current you are change RELENG_XXX to . in
standard-supfile
3. Run:
csup /usr/share/example/cvsup/standard-supfile
4. Depending on what version you have and what customizations you want
edit /etc/make.conf and /usr/src/sys/XXX/conf/YYY where XXX is your
arrch and YYY is the name of your custom kernel
5. Run:
make buildworld buildkernel installkernel
6. Reboot in single user mode
7. mount your partitions (read/write)
8. run:
cd /usr/src
make installworld
mergemaster
9. Reboot your machine is now the latest of what ever branch your
making for
...
For a desktop system I install the following in order:

x11/xorg
x11/gnome2
editor/gnome2-office
mail/engimail-thunderbird
multimedia/vlc
audio/rhymbox
print/cups
print/lyx

For development machines (only one):

java/jdk16
java/jdk16-doc
database/mysqlXX-clientwhere XX is what ever version you want
www/apache-22
lang/php5


-- 
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com


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


Re: problems using ls with for_in (SH)

2007-11-09 Thread Frank Shute
On Thu, Nov 08, 2007 at 11:49:24PM -0300, Sdvtaker wrote:

 Im trying to get a file with all the md5 hashes of one directory.
 My initial script was this:
 #!/bin/sh
 for file in $(ls)
 do
echo $file
md5 $file
 done
 
 The problem is with the file names who contains whitespaces becouse 
 the for_in passed each word as one iteration and not the full filename, 
 I'd tried using -B in ls, but doesnt help.
 Any idea what can i do?
 Thanks!
 Sdäv

You could use find which avoids the subdirs:

find . -maxdepth 1 -type f -print -exec md5 {} \;

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

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


Re: What kind of audio device is this?

2007-11-09 Thread Adam J Richardson

P.U.Kruppa wrote:

dmesg says I have got
   ugen0: vendor 0x0d8c PnP Audio Device, class 0/0, rev 1.10/0.10,
   addr 4 on uhub0
on board.
What is this? Do we have a driver for it?

snip

Of course I tried
 # kldload snd_driver
but all I get is
 # cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
 Installed devices:

I am running
   FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #0:
   Sat Nov  3 17:55:42 CET 2007 amd64


Hi Peter,

I also have a USB sound device which wouldn't detect until I loaded 
snd_uaudio. Now I can play my CDs through my 5.1 system, but I had to 
install both OSS and eSound to do it. I think the idea is everything 
goes to eSound, which is piped through the OSS mixer.


My sound device now identifies [on FreeBSD 6.3-PRERELEASE] as:
uaudio0: vendor 0x0c45 USB Audio, rev 1.10/1.00, addr 2
uaudio0: audio rev 1.00
pcm0: USB Audio on uaudio0

which is every bit as dull as yours.

By the way I don't have a /dev/dsp either. It doesn't seem to be required.

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


Re: Should I just go ahead on 7.0?

2007-11-09 Thread Adam J Richardson

Garrett Cooper wrote:
You should be fine now (pending any bugs found in the beta/release 
process), because 7-CURRENT's source has been essentially frozen since 
August I believe..

-Garrett


Hi Garrett,

It should be ok to upgrade straight from 6.3-PRE to 7.0-PRE, right? I 
just need to change my src-supfile from RELENG_6 to RELENG_7 and 
build/install world/kernel as normal, right?


I /need/ that wpi driver... :)

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


Re: thunderbird eats all memory and dies

2007-11-09 Thread Adam J Richardson

Yuri wrote:

Hi,

Beginning from the time I last reinstalled FreeBSD from scratch I have my
thunderbird dying with the following message:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Abort trap (core dumped)

This is after it grows in memory to over 1GB in a few hours of idle existence.

I even forcibly reinstalled all dependent packages so that all shared libs used
by thunderbird are refreshed. But no improvement.

Thunderbird was recently upgraded to 2.0.0.8 but the problem didn't go away.

Anyone has the same issue?

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


Hi Yuri,

Thunderbird has always been a resource hog on my systems whether I'm 
running Windows or FreeBSD. IMO it's something to do with XUL - Firefox 
chugs on my (reasonably) beefy systems too. It's too pretty to delete 
though. :/


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


Re: Dangers of using a non-base shell

2007-11-09 Thread Bill Vermillion
Ang utong ko ay sasabog sa sarap! exclaimed
[EMAIL PROTECTED] while reading this message
on Fri, Nov 09, 2007 at 12:00 and then responded with:

 Date: Thu, 8 Nov 2007 23:42:08 -0500 (EST)
 From: Darren Henderson [EMAIL PROTECTED]
 Subject: Re: Dangers of using a non-base shell

 On Tue, 30 Oct 2007, Roland Smith wrote:

  But if you're starting in single user mode, only / will be
  mounted. So if you have /usr or /usr/local on a separate
  partition, you'd be screwed.

  That is why root should only use a shell that's in the / partition.

And since you control the machine that should be easy to do.  Put
the programs YOU need in a directory on / - even if those are
elsewhere in the standard distribution.  Yoy may find that you 
want something that is not there normally.  Probably a rare
occurance but you won't break anything - particularly if you 'cp'
it and not move 'mv' it.

 You'll be prompted for a shell if your default isn't available.

 I've used bash for the root shell for years. Doesn't mean that
 you will never have a problem but this paticular situation
 just means you'll have to hit enter to accept /bin/sh or enter
 another shell when booting into single user.

 -Darren

I've been using ksh [not the pd verison but the REAL Korn Shell]
for years - even on all the commercial Unix systems I used to
maintain.

But on FreeBSD I always copy it to /bin/ksh [dropping the 93
extension in the default install] and being of the belt 
suspendors mentality I ALWAYS compile it statically - and just
checking /bin I find only pgrep and pkill NOT statically linked.

Old habits die hard but I surely won't be bitten by a corrupt
library.

Bill

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


Re: STILL cannot login as kline!

2007-11-09 Thread Adam J Richardson

Gary Kline wrote:

This is what is in my ~/.xsession-errors file:

(process:1038): Gtk-WARNING **: This process is currently running setuid
or setgid.

snip

file '/var/tmp/gconfd-kline/lock/ior' not opened successfully, no gconfd
located: No such file or directory)
Can't remove file (null): Bad address
gconf-sanity-check-2 did not pass, logging back out
[EMAIL PROTECTED]:/home/kline#   


Clues, people?? I'm plumb out of ideas.

gary


Hi Gary.

Your username is kline and the system's name is also kline? Which 
would make you [EMAIL PROTECTED] Perhaps the system doesn't like this kind of 
thing. Is it possible that kline is some sort of reserved word (eg. 
k-line)?


Does it still fail if you change to another user, perhaps garyk?

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


Using 2M/4M pages

2007-11-09 Thread Richard Andrades

Hello,

Does anyone know if there is support for using the large page sizes with the
x86 CPUs?

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


pkgdb failure

2007-11-09 Thread J. W. Ballantine
After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild
all the packages from portupgrade -af I started getting the following
error messages.  The first once, the second multiple times, even
after I moved the pkgdb.db and did a pkgdb -fu.

[/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument] 
[Updating the portsdb format:bdb_btree in /usr/ports .
.. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file type or 
format -- Invalid argument: Cannot update the portsdb!
(/usr/ports/INDEX-7.db)]


/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument

Any ideas on what is causing this?

Thanks

Jim Ballantine


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


Re: cmos clock to utc time code?

2007-11-09 Thread RW
On Thu, 8 Nov 2007 20:56:44 -0800
jekillen [EMAIL PROTECTED] wrote:

 
 On Nov 8, 2007, at 6:21 PM, Brent Jones wrote:
 
  There's no time zone setting in a cmos clock.  Just set the time to
  whatever UTC is, and you should be good to go.  Ideally though, you
  should have the system do an ntpdate command first, which will take 
  care
  of the clock issue for you.  Just put:
 
  ntpdate_enable=YES
 
  in your rc.conf file, and it will run before ntpd starts.
 I have ntpd_enable=YES
 in /etc/rc.conf already, would there be a conflict?

There's no conflict

 While this machine is being configured with all the
 functional software I want working, hub mail server with
 Cyrus, Apache/php/mysql. while I am getting everything
 set up and tested the machine will not be running 24/7
 so ntpdate would probably be a better choice,

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


Re: Should I just go ahead on 7.0?

2007-11-09 Thread Aryeh M. Friedman
Adam J Richardson wrote:
 Garrett Cooper wrote:
 You should be fine now (pending any bugs found in the
 beta/release process), because 7-CURRENT's source has been
 essentially frozen since August I believe..

Conceptually frozen but there have been some fairly large changes
since then... but your correct from about mid-oct the large
changes almost always where just a matter of tuning or adding hw support.


-- 
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com

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


Re: Ports problem

2007-11-09 Thread Adam J Richardson

Desmond Chapman wrote:

/usr/X11R6 exists, but it is not a symlink. Installation cannot proceed.
This looks like an incompletely removed old version of X.  In the current 
version, /usr/X11R6 must be a symlink if it exists at all.Please read 
/usr/ports/UPDATING (entry of 20070519) for the procedure to upgrade X.org 
related ports.*** Error code 1


Hi Desmond,

When I was faced with this error I did the obvious thing and created a 
symlink, then restarted the install. Of course time will probably prove 
it to be an utterly boneheaded thing to do, but it seems to work for now.


# mv /usr/X11R6 /usr/X11R6-2
# ln -s /usr/X11R6-2 /usr/X11R6
# make install

Regards,
Adam J Richardson

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


Help:Install RPMS on FreeBSD 6.2

2007-11-09 Thread 冉俊秀
Hello,I have just install rpm-3.0.6 via /usr/ports/archivers/rpm.
And I get some ERROR like below when trying to install
libc5compat-1.0-5.i586.rpm  via rpm.

host# /usr/local/bin/rpm -Uvh libc5compat-1.0-5.i586.rpm

error: failed dependencies:
 /bin/sh   is needed by libc5compat-1.0-5
 /sbin/ldconfigis needed by libc5compat-1.0-5

But I can find  /bin/sh  and  /sbin/ldconfig on my FreeBSD 6.2.
How can I solve this problem,could anyone help me.
Many thanks.



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


Re: FreeBSD on a Mac

2007-11-09 Thread Greg Groth

James Jeffery wrote:

Was wondering.

Can i put FreeBSD on a Quicksilver G4?

I know it already has Tiger on it, which is BSD based, but i have no
use for Tiger at the moment.
At college were using Windows, and my old BSD box now has windows on
it so that i can keep
up with college assignments.

I still have BSD on the box, but on another partition, i loved FreeBSD
7, was really getting the
hang of it and testing out its web server capabilities, its a
nightmare switching the PC on and
off just to run a temp web server to test on.

Is it possible or is there a better solution?

Cheers


http://www.freebsd.org/platforms/ppc.html

I haven't tried it out yet, but I plan on installing it on an old G4 I 
have that's currently running Yellow Dog.


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


Re: Ports problem

2007-11-09 Thread RW
On Fri, 09 Nov 2007 13:39:28 +
Adam J Richardson [EMAIL PROTECTED] wrote:

 Desmond Chapman wrote:
  /usr/X11R6 exists, but it is not a symlink. Installation cannot
  proceed. This looks like an incompletely removed old version of X.
  In the current version, /usr/X11R6 must be a symlink if it exists
  at all.Please read /usr/ports/UPDATING (entry of 20070519) for the
  procedure to upgrade X.org related ports.*** Error code 1
 
 Hi Desmond,
 
 When I was faced with this error I did the obvious thing and created
 a symlink, then restarted the install. 

Surely the *obvious* thing was to follow the instructions and read
UPDATING.

 Of course time will probably
 prove it to be an utterly boneheaded thing to do, but it seems to
 work for now.
 
 # mv /usr/X11R6 /usr/X11R6-2
 # ln -s /usr/X11R6-2 /usr/X11R6
 # make install

You should put it back and run the mergebase script.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Botched X.org upgrade, need help

2007-11-09 Thread Adam J Richardson

Andrew Falanga wrote:

Well, at last I think it's botched.  I really was following the directions
(I have the script file as UPDATING suggests to prove it :-), but the
upgrade didn't work as the X server failed to start after I rebooted.  I'm
hoping some kind person here will know the answer before I e-mail the list
mentioned in that section of UPDATING.  Anyway, that's basically, what
happened.  I have kdm set to start on bootup and it complained that X failed
to start.

When I got to the point of portupgrade -aP in the UPDATING section for
X.org 6.9 - 7.2; I decided to go with that command instead of portupgrade
-a thinking that by now, even for amd64, the packages would be available.
Perhaps a bad assumption.  Anyway, once that completed, the stats reported
by portupgrade were disconcerting but I thought that it was ok and
continued.  portupgrade reported that only 2 packages were porcessed, most
were ignored with 50 some skipped and 1 failed.

I then proceeded to the mergebase.sh script, ran that and when I was
satisfied that all was done as expected, I rebooted my machine.  Well,
that's when X failed to start.  So, how would I go about correcting this
problem?

Andy


Hi Andy,

I botched my 6.9-7.2 upgrade too. It's easy to do even if you follow the 
instructions. Can't remember what the problem was now, certainly it was 
something no one else had, typical. :^) Ah well, all fixed now anyway.


It's easy to botch even a simple install of X. Took me a while to learn 
that you have to install 1) Xorg, 2) mesa-demos, 3) nVidia driver, in 
that order (assuming you want mesa-demos, of course).


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


Re: Ports problem

2007-11-09 Thread Adam J Richardson

RW wrote:

On Fri, 09 Nov 2007 13:39:28 +
Adam J Richardson [EMAIL PROTECTED] wrote:

Desmond Chapman wrote:

/usr/X11R6 exists, but it is not a symlink. Installation cannot
proceed. This looks like an incompletely removed old version of X.
In the current version, /usr/X11R6 must be a symlink if it exists
at all.Please read /usr/ports/UPDATING (entry of 20070519) for the
procedure to upgrade X.org related ports.*** Error code 1

Hi Desmond,

When I was faced with this error I did the obvious thing and created
a symlink, then restarted the install. 


Surely the *obvious* thing was to follow the instructions and read
UPDATING.


I didn't read it that way. You're right though. I'll check out 
mergebase.sh, see if it does anything I need.


Regards,
Adam J Richardson

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


Re: Congratulations

2007-11-09 Thread Adam J Richardson

Chris wrote:

... Does that mean I have to share the winnings with everyone on the
list?!


Yes. Hurry up, I'm broke. :P

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


clocks and dualboot

2007-11-09 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a dual boot vista and freebsd machine I use ntpdate on the FB
machine but then when I go into vista it reports for a different time
zone (sometimes UTC other times PST)... ntpdate always corrects this
on reboot but how do I keep the date correct on the vista side?

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNG/YJ9+1V27SttsRAp/5AJ9P8Q4xscQVGAr7qfWBbwJfXpPdfwCffoCJ
mBuXWNQK4JlOW2mO+3BWmEo=
=V4Xx
-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]


Fetch error for Port upgrade

2007-11-09 Thread Donovan R. Palmer
I am trying to do a port upgrade and get the following error.  


   ! x11-servers/xorg-server (xorg-server-6.9.0_5) (fetch error)

How do I fix this? I have this problem on other packages as well.

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


strange error when building cups

2007-11-09 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Can some tell me what this means and how to fix it:

===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
not found
===Verifying install for cups.2 in /usr/ports/print/cups-base
===  cups-base-1.3.3 is forbidden: remote execution of arbitrary code.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups-base.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups-pstoraster.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups.

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNHICJ9+1V27SttsRAiXyAJoCWlDpO6DEtpxQbtOMGUfXrDOqsQCfatHn
MOPolbRjOxQttSox4ZAsq00=
=66aR
-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: clocks and dualboot

2007-11-09 Thread Mihai Donțu
On Friday 09 November 2007, Aryeh M. Friedman wrote:
 I have a dual boot vista and freebsd machine I use ntpdate on the FB
 machine but then when I go into vista it reports for a different time
 zone (sometimes UTC other times PST)... ntpdate always corrects this
 on reboot but how do I keep the date correct on the vista side?

You must configure FreeBSD to keep the hardware clock to Local Time.
However, I lack the knowledge on how to do that. I'm sorry.

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


Re: strange error when building cups

2007-11-09 Thread Adam J Richardson

Aryeh M. Friedman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Can some tell me what this means and how to fix it:

===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
not found
===Verifying install for cups.2 in /usr/ports/print/cups-base
===  cups-base-1.3.3 is forbidden: remote execution of arbitrary code.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups-base.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups-pstoraster.
*** Error code 1

Stop in /FreeBSD/FreeBSD-current/ports/print/cups.



Hi Aryeh,

I can't tell you about the error, but:

%pkg_info | grep cups
cups-base-1.3.3 Common UNIX Printing System
cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to 
non-PS printers


Looks like the same versions. They do build ok. Perhaps a make clean 
distclean will shake out the bugs?


'Remote execution' is interesting. Do you use some sort of load balancer?

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


Re: Help:Install RPMS on FreeBSD 6.2

2007-11-09 Thread Byung-Hee HWANG
Hi,

On Fri, 2007-11-09 at 21:52 +0800, 冉俊秀 wrote:
 Hello,I have just install rpm-3.0.6 via /usr/ports/archivers/rpm.
 And I get some ERROR like below when trying to install
 libc5compat-1.0-5.i586.rpm  via rpm.
 
 host# /usr/local/bin/rpm -Uvh libc5compat-1.0-5.i586.rpm
 
 error: failed dependencies:
  /bin/sh   is needed by libc5compat-1.0-5
  /sbin/ldconfigis needed by libc5compat-1.0-5
 
 But I can find  /bin/sh  and  /sbin/ldconfig on my FreeBSD 6.2.
 How can I solve this problem,could anyone help me.
 Many thanks.

Personally i don't know about GNU/Linux well ;;
However, this section of FreeBSD Handbook can give you some helps ;;

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html

Sincerely,

ps. ah... by the way.. what is your name? may i know your name with
romanized? only i know Chinese a little bit ;;

-- 
I love your daughter with all respect.
-- Enzo, Chapter 1, page 13

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


Re: clocks and dualboot

2007-11-09 Thread Mark Tinguely

  I have a dual boot vista and freebsd machine I use ntpdate on the FB
  machine but then when I go into vista it reports for a different time
  zone (sometimes UTC other times PST)... ntpdate always corrects this
  on reboot but how do I keep the date correct on the vista side?

As Mihai Don\xc8\x9bu mentioned to tell the time routines that the
computer clock is in localtime and not in universal tim, perform the
following as root:

# touch /etc/wall_cmos_clock

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


Re: FreeBSD on a Mac

2007-11-09 Thread Jerry McAllister
On Fri, Nov 09, 2007 at 12:03:30AM +, James Jeffery wrote:

 Was wondering.
 
 Can i put FreeBSD on a Quicksilver G4?
 
 I know it already has Tiger on it, which is BSD based, but i have no
 use for Tiger at the moment.
 At college were using Windows, and my old BSD box now has windows on
 it so that i can keep
 up with college assignments.
 
 I still have BSD on the box, but on another partition, i loved FreeBSD
 7, was really getting the
 hang of it and testing out its web server capabilities, its a
 nightmare switching the PC on and
 off just to run a temp web server to test on.
 
 Is it possible or is there a better solution?

If you have enough disk space, you could either dual boot
with MS-Win and FreeBSD, or you could run vmware and then
install both FreeBSD and ms-win virtual machines on it.

jerry

 
 Cheers
 ___
 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: Dangers of using a non-base shell

2007-11-09 Thread Andrew Pantyukhin
On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote:
 On 2007-10-29 20:50, Stephen Allen [EMAIL PROTECTED] wrote:
  It's been drawn to my attention not to use bash from the ports
  collection, because if one of it's dependencies (gettext or libiconv)
  fails or is updated significantly, it could break, and prevent
  login. The suggested solution was to use a base shell (such as sh) and
  append 'bash -l' to .shrc to automatically enter bash.
 
  The quite annoying side-effect is having to type 'exit' twice to get
  out of a su shell or screen.
 
  Would it be a better idea to use the pre-compiled binary for bash?
  And if I did so, could I be alerted to updates as easy as using
  'pkg_version -v' when checking if any ports need updating?
 
 I've been using the following for some time:
 
 keramida su -
 Password: 
 root# exec env SHELL=/usr/local/bin/bash bash -l

I know it doesn't work on slolaris^W some Unix flavors, but I've
been quite happy with su -m. It changes workflow in many ways,
but once you get a handle of it, it can really be useful. E.g. my
zsh history is shared between root and the user who su'd into
him. And if anything goes wrong, I just drop the -m key.

It's another story when it comes to remote login (non-root)...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: how can i install gnome2 through console

2007-11-09 Thread Ananias Uushona
Ohhh yah that was usefull and I re-installed freebsd desktop wich is very
easy I don thing this BSD desktop is for the administration by the way, u
guys does anyone have UNIX exercise that one can use to practice  coz I ran
out of exercises on wht else to do am willing to learn am use to CCNA so I
real need focusing areas on UNIX and what is the best EXAM to write about
UNIX for the beginners?

Yah thanks,\

ananias 

-Original Message-
From: Adam J Richardson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 09, 2007 1:37 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: how can i install gnome2 through console

James A. Harrison wrote:
 On Wed, 2007-10-24 at 23:06 +0900, Byung-Hee HWANG wrote:
 On Wed, 2007-10-24 at 12:30 +0200, Ananias Uushona wrote:
 I was installing gnome2 through x interface but I realize that its
 very hard
 especially to beginners but I got it right is that I did n't have the
 hardware names and specifications right now I want to do it
 automatically so
 it can detect the automatically so where do I begin to install it
 through
 console should I remove xorg packages or what first
 Please use pkg_add/pkg_delete instead of ports. It's very easy. That's
 all the way I install/remove gnome2. Of course it works through console.
 Ananias,

 For install, at the command prompt type this command as root:

 pkg_add -v -r gnome2-lite
 
 However! There is a caveat here.
 
 I'd say, sure, use pkg_add at first, because it's simple. However, bear in
 mind that ports exist. And also bear in mind that you cannot mix packages
 and ports, unless you want an inconsistent system.
 
 Ports are well worth learning. I remember when I started using them, they
 were confusing. But after I got used to them, I never, ever used/use
 anything other than ports. They start making sense after a while ;)

I agree with James. I use portinstall which makes compiling everything a 
snap. Other people prefer different methods though. Compiling something 
large like Gnome takes a while, though. If you don't have the time go 
with packages.

One thing that does bug me about the compiling process is that just 
occasionally distcc will throw a wobbler about something and I have no 
clue how to fix it. :^) I think perhaps distcc is just a little buggy. 
But that's a thread for another mailing list.

Ananias [hi, by the way!], just to answer your question, do not remove 
Xorg as you will need it to support Gnome.

Regards,
Adam J Richardson



__ NOD32 2648 (20071109) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com


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


Re: Dangers of using a non-base shell

2007-11-09 Thread Giorgos Keramidas
On 2007-11-09 18:55, Andrew Pantyukhin [EMAIL PROTECTED] wrote:
 On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote:
  I've been using the following for some time:
 
  keramida su -
  Password: 
  root# exec env SHELL=/usr/local/bin/bash bash -l

 I know it doesn't work on slolaris^W some Unix flavors, but I've
 been quite happy with su -m.

Heh, putting the Solaris bashing (sic) aside, I can see how the -m
option can be useful some times.  After all, it was implemented because
*someone* thought it would be neat to have around :-)


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


Re: strange error when building cups

2007-11-09 Thread Lowell Gilbert
Aryeh M. Friedman [EMAIL PROTECTED] writes:

 Can some tell me what this means and how to fix it:

 ===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
 not found
 ===Verifying install for cups.2 in /usr/ports/print/cups-base
 ===  cups-base-1.3.3 is forbidden: remote execution of arbitrary code.
 *** Error code 1

It means that installing cups-base-1.3.3 is forbidden, and that the
reason is a security problem allowing for remote execution of
arbitrary code.

To fix it, you can wait for the update to cups-base-1.3.4 to hit the
tree, or update the port yourself, or (if you're willing to leave your
system vulnerable to a remotely-exploitable bug; e.g., if the machine
isn't on the Internet) comment the FORBIDDEN line out of the Makefile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: strange error when building cups

2007-11-09 Thread Daniel Bye
On Fri, Nov 09, 2007 at 03:18:20PM +, Adam J Richardson wrote:
 Aryeh M. Friedman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Can some tell me what this means and how to fix it:
 
 ===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
 not found
 ===Verifying install for cups.2 in /usr/ports/print/cups-base
 ===  cups-base-1.3.3 is forbidden: remote execution of arbitrary code.
 *** Error code 1
 
 Stop in /FreeBSD/FreeBSD-current/ports/print/cups-base.
 *** Error code 1
 
 Stop in /FreeBSD/FreeBSD-current/ports/print/cups-pstoraster.
 *** Error code 1
 
 Stop in /FreeBSD/FreeBSD-current/ports/print/cups.
 
 
 Hi Aryeh,
 
 I can't tell you about the error, but:
 
 %pkg_info | grep cups
 cups-base-1.3.3 Common UNIX Printing System
 cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to 
 non-PS printers
 
 Looks like the same versions. They do build ok. Perhaps a make clean 
 distclean will shake out the bugs?
 
 'Remote execution' is interesting. Do you use some sort of load balancer?

This means that there is a security flaw outstanding with the print/cups-base
package. It could potentially be exploited by an attacker to run arbitrary
code on your print server. 

The warning is being emitted by the following line in the print/cups-base 
Makefile:

FORBIDDEN=  remote execution of arbitrary code

The fix would be to find the vulnerability and patch it, or failing that,
contact the maintainer and see what he says. As a workaround, if you don't
care about the vulnerability, you can set NO_IGNORE in the make environment
and try again. ports(7) has more detail.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpi7uPpLhiOQ.pgp
Description: PGP signature


Re: strange error when building cups

2007-11-09 Thread Randy Pratt
On Fri, 09 Nov 2007 15:18:20 +
Adam J Richardson [EMAIL PROTECTED] wrote:

 Aryeh M. Friedman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Can some tell me what this means and how to fix it:
  
  ===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
  not found
  ===Verifying install for cups.2 in /usr/ports/print/cups-base
  ===  cups-base-1.3.3 is forbidden: remote execution of arbitrary code.
  *** Error code 1
  
  Stop in /FreeBSD/FreeBSD-current/ports/print/cups-base.
  *** Error code 1
  
  Stop in /FreeBSD/FreeBSD-current/ports/print/cups-pstoraster.
  *** Error code 1
  
  Stop in /FreeBSD/FreeBSD-current/ports/print/cups.
  
 
 Hi Aryeh,
 
 I can't tell you about the error, but:
 
 %pkg_info | grep cups
 cups-base-1.3.3 Common UNIX Printing System
 cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to 
 non-PS printers
 
 Looks like the same versions. They do build ok. Perhaps a make clean 
 distclean will shake out the bugs?
 
 'Remote execution' is interesting. Do you use some sort of load balancer?

The print/cups-base was marked FORBIDDEN due remote execution of
arbitrary code on 2007-11-08, see:

  http://docs.freebsd.org/cgi/mid.cgi?200711081832.lA8IWv3T075088

You can read more about the vulnerability at:

  
http://www.freebsd.org/ports/portaudit/8dd9722c-8e97-11dc-b8f6-001c2514716c.html

If you decide that your risk is acceptable you still wish to
install/update at this time, you can comment ( # ) the particular line
in the ports/print/cups-base/Makefile:

  #FORBIDDEN=  remote execution of arbitrary code

I would presume that cups-base-1.3.4 is going to be committed shortly
since there are quite a few ports that depend on it.

HTH,

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


Re: Should I just go ahead on 7.0?

2007-11-09 Thread Garrett Cooper

Adam J Richardson wrote:

Garrett Cooper wrote:
You should be fine now (pending any bugs found in the beta/release 
process), because 7-CURRENT's source has been essentially frozen 
since August I believe..

-Garrett


Hi Garrett,

It should be ok to upgrade straight from 6.3-PRE to 7.0-PRE, right? I 
just need to change my src-supfile from RELENG_6 to RELENG_7 and 
build/install world/kernel as normal, right?


I /need/ that wpi driver... :)

Nervously,
Adam J Richardson

Adam,
   I would consult archives (as of late) the list for the exact steps 
necessary to upgrade from 6.x to 7-PRE. It's a fairly painless process 
if done correctly, but it will take a while to complete, depending on 
what all you have installed on your laptop ports wise.

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


Re: pkgdb failure

2007-11-09 Thread Garrett Cooper

J. W. Ballantine wrote:

After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild
all the packages from portupgrade -af I started getting the following
error messages.  The first once, the second multiple times, even
after I moved the pkgdb.db and did a pkgdb -fu.

[/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument] 
[Updating the portsdb format:bdb_btree in /usr/ports .
.. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file type or 
format -- Invalid argument: Cannot update the portsdb!

(/usr/ports/INDEX-7.db)]


/var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument

Any ideas on what is causing this?

Thanks

Jim Ballantine

  


   That generally means that for whatever reason the pkgdb couldn't be 
read, which may mean that you need to rebuild ruby and all affected 
libraries to call up 7.x libs (at least based on experience that's 
what's happened with me).

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


Re: Fetch error for Port upgrade

2007-11-09 Thread Garrett Cooper

Donovan R. Palmer wrote:
I am trying to do a port upgrade and get the following error. 
   ! x11-servers/xorg-server (xorg-server-6.9.0_5) (fetch error)


How do I fix this? I have this problem on other packages as well.

T.I.A.
Most likely you just updated your ports (which are severely out of date 
based on that error message). I highly suggest reading 
/usr/ports/UPDATING around April of 2007, in particular about the X.org 
6.x - 7.x  migration notes.


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


Re: Dangers of using a non-base shell

2007-11-09 Thread Alex Zbyslaw

Giorgos Keramidas wrote:


On 2007-11-09 18:55, Andrew Pantyukhin [EMAIL PROTECTED] wrote:
 


On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote:
   


I've been using the following for some time:

   keramida su -
   Password: 
   root# exec env SHELL=/usr/local/bin/bash bash -l
 


I know it doesn't work on slolaris^W some Unix flavors, but I've
been quite happy with su -m.
   



Heh, putting the Solaris bashing (sic) aside, I can see how the -m
option can be useful some times.  After all, it was implemented because
*someone* thought it would be neat to have around :-)
 

Also the only way I know on FreeBSD to interactively become a user with 
no real shell (true, nologin etc).


--Alex

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


OT: Looking for some inpiration with UPS setup

2007-11-09 Thread Christopher Key

Hello,

Apolgies for the slightly OT post, but I'm hoping that some of the 
ammased expertise might be able to suggest a solution.


I've a FreeBSD fileserver, a solid state router (Linksys box running 
OpenWRT) and a couple of gigabit switches that I'd like to move onto a 
UPS (I'm primarily looking at the APC Smart-UPS line).


The requirements for the FreeBSD system are pretty simple, it's not 
likely to be of any use if the power's out, so after a few minutes to 
allow any files open over the network to be saved, it should perform an 
orderly shutdown and remain off until the power returns.  However, the 
router is a little different.  It maintains some state information in 
RAM (dhcp leases etc) that I'd prefer not to lose during a short power 
outage, and it would also be useful to retain internet access, so 
ideally I'd like the router and switches to stay up for as long as the 
battery lasts in the UPS.


Space and budget are limited, so ideally I'd like to achieve all this 
with a single UPS, which is where the problems arise.  As I understant 
it, when the UPS wants to wake the attached machines up, it power cycles 
its output.  This however will reset the router, which was what I was 
hoping to avoid.



I've thought around the problem for some time, but not come up with any 
convincing solutions:


1) Use some sort of WOL command from the router to the FreeBSD system 
rather than having the UPS power cycle its output.  How does the router 
know the power's returned?  Can the UPS be set not to power cycle its 
power output when the power returns?


2) Use a second cheap UPS to 'protect' the router whilst the primary UPS 
cycles its power output.  This seems rather crude, and would presumably 
reduce the battery life of the primary UPS due the losses in the second UPS.


3) Have the UPS wake the PC via some other means.  USB would seem to 
ideal choice, but the motherboard won't do a wake on USB from S5, and 
I'm can't find a UPS with an ethernet interface.


4) KISS.  Buy two smaller, cheapers UPS units.


Does anyone have any clever ideas for a solution?  Any thoughts much 
appreciated.


--
Regards,

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


Re: strange error when building cups

2007-11-09 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Adam J Richardson wrote:
 Aryeh M. Friedman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Can some tell me what this means and how to fix it:

 ===   cups-pstoraster-8.15.4_1 depends on shared library: cups.2 -
 not found
 ===Verifying install for cups.2 in /usr/ports/print/cups-base
 ===  cups-base-1.3.3 is forbidden: remote execution of arbitrary
 code.
 *** Error code 1

 Stop in /FreeBSD/FreeBSD-current/ports/print/cups-base.
 *** Error code 1

 Stop in /FreeBSD/FreeBSD-current/ports/print/cups-pstoraster.
 *** Error code 1

 Stop in /FreeBSD/FreeBSD-current/ports/print/cups.


 Hi Aryeh,

 I can't tell you about the error, but:

 %pkg_info | grep cups
 cups-base-1.3.3 Common UNIX Printing System
 cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to
 non-PS printers

 Looks like the same versions. They do build ok. Perhaps a make
 clean distclean will shake out the bugs?

attempted that before I posted (just distclean and I have no idea what
the clean would do that distclean doesn't)


 'Remote execution' is interesting. Do you use some sort of load
 balancer?

No it is a single machine via a router to a cable modem

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNIwWJ9+1V27SttsRAi5/AJ9OGeSoLqdgOHKpxDfmUANdiaOLiwCffWS3
i/+DtnajgDuSDNsomdoMgI8=
=H9v9
-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]


How to get best results from FreeBSD-questions

2007-11-09 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

The Complete FreeBSD: errata and addenda

2007-11-09 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: install

2007-11-09 Thread Reid Linnemann
Written by Leonard Lilla on 11/08/07 10:09
 Wow,
 
  
 
 Talk about a horrible install. Install this CD, now that now
 this now that now this now that!!! It goes on and on. Please do think about
 people that are trying your install and are less knowledgeable and install
 using your 2 cd install. It is just horrible how many times I went from CD1
 to CD2 and forth and back and back and forth. Just a killer. If I needed
 exercise I would have called my trainer.
 
  
 
 I hope that I will be able to say better things about the rest of the
 install or the OS. Well, I can. Install sucks. If I click on something there
 is no recourse. Just a next and no back. I did not have the right cd once
 and that port did not install, period. no retry or skip. Just done with it.
 There are simply no error handling or user fault anticipation in your
 install. Not friendly.
 
  
 
 Leo

I know this thread has had many responses already, but it would seem to
me that you were installing packages from the CDs. Packages are
installed in dependency order, not necessarily in alphabetical or CD
location order. It is apparent to me that the CD distribution design
has been done in such a way that as many of the most common packages
that can be squeezed into the first CD have been, followed by CD2, CD3,
and CD4. The more packages you want to install from CD, the more often
you will be playing disc jockey as the dependency chains weave between
discs ;) As others have said, if you want to avoid the CD changing
dilemma, it's a good idea to install software using the ports
collection, or through packages fetched over the network connection from
a distribution mirror on the web.

I've been using FreeBSD for about 8 years now, and I can give you one
piece of advice that will help you avoid massive amounts of frustration,
should you choose to stick with it: the community will not abide
complainers. This is especially true when complaints are abusive,
derogatory, or condescending in tone and even more so when such
complaints are not accompanied by solutions. The installer has been a
bikeshed for many years; everyone seems to know what color it should be,
how many windows it should have, how many doors to install, what type of
lighting it needs, how many penguins should be accommodated in the
rafters, and what relative orientation it should have to the earth's
magnetic field; yet the most vocal of these people naturally have no
contributions to make towards the installer's actual codebase.

In the grand scheme of things, you'll probably also find the attitude
towards the installer is that it works well enough for our needs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD on a Mac

2007-11-09 Thread Arend P. van der Veen
Hi,

Has anybody had success using Parallels on the Mac?  I have been using
it to support windows but had GUI problems with FreeBSD (with X and
xfce4).  They do not support FreeBSD 6.2 (according to their documentation).

Thanks,
Arend

Jerry McAllister wrote:
 On Fri, Nov 09, 2007 at 12:03:30AM +, James Jeffery wrote:
 
 Was wondering.

 Can i put FreeBSD on a Quicksilver G4?

 I know it already has Tiger on it, which is BSD based, but i have no
 use for Tiger at the moment.
 At college were using Windows, and my old BSD box now has windows on
 it so that i can keep
 up with college assignments.

 I still have BSD on the box, but on another partition, i loved FreeBSD
 7, was really getting the
 hang of it and testing out its web server capabilities, its a
 nightmare switching the PC on and
 off just to run a temp web server to test on.

 Is it possible or is there a better solution?
 
 If you have enough disk space, you could either dual boot
 with MS-Win and FreeBSD, or you could run vmware and then
 install both FreeBSD and ms-win virtual machines on it.
 
 jerry
 
 Cheers
 ___
 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]


Re: Dangers of using a non-base shell

2007-11-09 Thread Giorgos Keramidas
On 2007-11-09 16:34, Alex Zbyslaw [EMAIL PROTECTED] wrote:

 [ discussing `su -m' option ]

 Also the only way I know on FreeBSD to interactively become a user
 with no real shell (true, nologin etc).

It should be possible to type:

su username

i.e. here's an ftp session on my laptop:

[EMAIL PROTECTED]:/root# fgrep ftp: /etc/passwd
ftp:*:1003:1003: user:/home/ftp:/usr/sbin/nologin
[EMAIL PROTECTED]:/root# su ftp
[EMAIL PROTECTED]:/root$ id
uid=1003(ftp) gid=1003 groups=1003
[EMAIL PROTECTED]:/root$

Good idea, though :)

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


recurring kernel panic

2007-11-09 Thread Kelly Martin
I'm getting daily kernel panics. The server was running fine for about
a month, the only changes I've made recently have been to update all
my ports. It's running on older i386 hardware, no special devices
attached. Here's the console message I'm getting (copied by hand):

-
Fatal trap 30: reserved (unknown) fault while in kernel mode
cupid = 0; apic id = 00
instruction pointer  = 0x20:0xc0b41129
stack pointer = 0x28:0xd0225cd8
frame pointer= 0x28:0xd0225cd8
code segment   = base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags   = interrupt enabled, IOPL = 0
current process = 10 (idle: cpu0)
trap number  = 30
panic: reserved (unknown) fault
cupid = 0
Uptime 19h28m38s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds – press a key on the console to abort
Rebooting…
Keyboard reset did not work, attempting CPU shutdown
-

A few questions to help diagnose:
(1) how do I use my hard disk as a dump device for these kernel panics?
(2) why does the keyboard reset not work, leaving the panic'ed
machine hanging indefinitely? (I've tried two different PS/2
keyboards... no luck)
(3) any other information I can provide, such as ports I have installed?

I am running FreeBSD my.server.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0:
Fri Jan 12 11:05:30 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386
(with all security patches except FreeBSD-SA-07:03.ipv6)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkgdb failure

2007-11-09 Thread J. W. Ballantine

Thanks,

I thought it was something like that, that's why i rebuilt th pkgdb.


--  In Response to your message -

  Date:  Fri, 09 Nov 2007 08:30:47 -0800
  To:  J. W. Ballantine [EMAIL PROTECTED], [EMAIL PROTECTED]
  From:  Garrett Cooper [EMAIL PROTECTED]
  Subject:  Re: pkgdb failure

  J. W. Ballantine wrote:
   After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild
   all the packages from portupgrade -af I started getting the following
   error messages.  The first once, the second multiple times, even
   after I moved the pkgdb.db and did a pkgdb -fu.
  
   [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument
] 
   [Updating the portsdb format:bdb_btree in /usr/ports .
   .. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file type 
or 
   format -- Invalid argument: Cannot update the portsdb!
   (/usr/ports/INDEX-7.db)]
  
  
   /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument
  
   Any ideas on what is causing this?
  
   Thanks
  
   Jim Ballantine
  
 
  
  That generally means that for whatever reason the pkgdb couldn't be 
  read, which may mean that you need to rebuild ruby and all affected 
  libraries to call up 7.x libs (at least based on experience that's 
  what's happened with me).
  Cheers,
  -Garrett
  


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


Re: IPFW show format question...

2007-11-09 Thread Ian Smith
On Tue, 6 Nov 2007 Eric F Crist [EMAIL PROTECTED] wrote:
  So, everything I've read says that ipfw show displays rule number,  
  packets caught, bytes matched, and rule.  The problem I'm having is  
  that it seems that the bytes, at least on some rules, is way out of  
  whack.  I'm capturing this data for cacti, and trying to display  
  accumulated ipfw traffic.
  
  If I zero my counters and download a file via FTP, the downloaded  
  sizes don't even compare.  61MB into the download, if I convert the  
  ipfw show from the supposed bytes into MB, it says I've downloaded  
  155MB.

Catching up on a few days' digests, and seeing noone else having a go:

It helps to show rather than tell about your rules, but I'll guess that
you're not distinguishing between inbound and outbound traffic, ie your
rules are counting packets both on the way in (pass 1) and out (pass 2)

Eg allowing traffic using 'via' (qualified neither by 'in' nor 'out') 
allows (so, counts) a packet on both passes .. as may stateful rules.

Separate counts before allowing traffic can be best for accounting, eg

 add $n1 count ip from $outthere to $inhere in recv $some_if
 add $n2 count ip from $inhere to $outthere out xmit $some_if
 [..]
 add allow $whatever ..

HTH, Ian

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


Re: Should I just go ahead on 7.0?

2007-11-09 Thread Adam J Richardson

Garrett Cooper wrote:

Adam J Richardson wrote:

Garrett Cooper wrote:
You should be fine now (pending any bugs found in the beta/release 
process), because 7-CURRENT's source has been essentially frozen 
since August I believe..

-Garrett


Hi Garrett,

It should be ok to upgrade straight from 6.3-PRE to 7.0-PRE, right? I 
just need to change my src-supfile from RELENG_6 to RELENG_7 and 
build/install world/kernel as normal, right?


I /need/ that wpi driver... :)

Nervously,
Adam J Richardson



Adam,
   I would consult archives (as of late) the list for the exact steps 
necessary to upgrade from 6.x to 7-PRE. It's a fairly painless process 
if done correctly, but it will take a while to complete, depending on 
what all you have installed on your laptop ports wise.

   Best of luck,
-Garrett


Thanks. I'll check the archives.

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


Re: install

2007-11-09 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



 complaints are not accompanied by solutions. The installer has been
 a bikeshed for many years; everyone seems to know what color it
 should be, how many windows it should have, how many doors to
 install, what type of lighting it needs, how many penguins should
 be accommodated in the rafters, and what relative orientation it
 should have to the earth's magnetic field; yet the most vocal of
 these people naturally have no contributions to make towards the
 installer's actual codebase.

I think the only change needed for the time being (immediate fix) is
to move to DVD being the prefered medium (the rest can wait)

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNJ3DJ9+1V27SttsRAsRCAJ4tY5yMJEk5kNLfQfMW9sOL+WS/fQCfURmx
iPrcJgnGbHL88I1uGwIyOxE=
=lwpN
-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: shell programming

2007-11-09 Thread Eric Crist

On Nov 9, 2007, at 11:46 AM, Bill Banks wrote:

I'm  writing a backup script. I need to get the day of the week into  
a variable. How can I do it?


Well, it depends on what you're using.  If you're using sh, see `man  
date`.  If you're using perl, it's quite complicated.


In short, with sh, simply use the built-in date command:

#!/bin/sh
weekday=`date +%A

See also man 3 strftime


-
Eric F Crist
Secure Computing Networks


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


shell programming

2007-11-09 Thread Bill Banks
I'm  writing a backup script. I need to get the day of the week into a 
variable. How can I do it?


--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
 



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


Re: recurring kernel panic

2007-11-09 Thread Kris Kennaway

Kelly Martin wrote:

I'm getting daily kernel panics. The server was running fine for about
a month, the only changes I've made recently have been to update all
my ports. It's running on older i386 hardware, no special devices
attached. Here's the console message I'm getting (copied by hand):

-
Fatal trap 30: reserved (unknown) fault while in kernel mode
cupid = 0; apic id = 00
instruction pointer  = 0x20:0xc0b41129
stack pointer = 0x28:0xd0225cd8
frame pointer= 0x28:0xd0225cd8
code segment   = base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags   = interrupt enabled, IOPL = 0
current process = 10 (idle: cpu0)
trap number  = 30
panic: reserved (unknown) fault
cupid = 0
Uptime 19h28m38s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds – press a key on the console to abort
Rebooting…
Keyboard reset did not work, attempting CPU shutdown
-


This looks pretty suspicious to me, I'd guess your hardware has failed.


A few questions to help diagnose:
(1) how do I use my hard disk as a dump device for these kernel panics?
(2) why does the keyboard reset not work, leaving the panic'ed
machine hanging indefinitely? (I've tried two different PS/2
keyboards... no luck)
(3) any other information I can provide, such as ports I have installed?


http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html

Kris

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


Re: shell programming

2007-11-09 Thread Derek Ragona

At 11:46 AM 11/9/2007, Bill Banks wrote:
I'm  writing a backup script. I need to get the day of the week into a 
variable. How can I do it?


I do this in ksh, but it should work in sh too:

DATE=/bin/date

TODAY=`$DATE +%m-%d-%Y`
TIME=`$DATE +%H:%M:%S`
echo Backups started $TODAY at $TIME

-Derek




--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com



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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: shell programming

2007-11-09 Thread Bill Banks

thanks

Eric Crist wrote:

On Nov 9, 2007, at 11:46 AM, Bill Banks wrote:

I'm  writing a backup script. I need to get the day of the week into 
a variable. How can I do it?


Well, it depends on what you're using.  If you're using sh, see `man 
date`.  If you're using perl, it's quite complicated.


In short, with sh, simply use the built-in date command:

#!/bin/sh
weekday=`date +%A

See also man 3 strftime


-
Eric F Crist
Secure Computing Networks


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





--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
 



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


Re: Dangers of using a non-base shell

2007-11-09 Thread Alex Zbyslaw

Giorgos Keramidas wrote:


On 2007-11-09 16:34, Alex Zbyslaw [EMAIL PROTECTED] wrote:
 


[ discussing `su -m' option ]

Also the only way I know on FreeBSD to interactively become a user
with no real shell (true, nologin etc).
   



It should be possible to type:

su username

i.e. here's an ftp session on my laptop:

[EMAIL PROTECTED]:/root# fgrep ftp: /etc/passwd
ftp:*:1003:1003: user:/home/ftp:/usr/sbin/nologin
[EMAIL PROTECTED]:/root# su ftp
[EMAIL PROTECTED]:/root$ id
uid=1003(ftp) gid=1003 groups=1003
[EMAIL PROTECTED]:/root$

Good idea, though :)
 


Must be new, because in 5.4 I get:

100 {root @ cartman} # fgrep ftp: /etc/passwd
ftp:*:6000:6000:Anon FTP:/home/ftp:/usr/sbin/nologin
101 {root @ cartman} # su ftp
This account is currently not available.
102 {root @ cartman} # id
uid=0(root) gid=0(wheel) groups=0(wheel)
103 {root @ cartman} # su -m ftp
([EMAIL PROTECTED])1% id
uid=6000(ftp) gid=6000(ftp) groups=6000(ftp)
([EMAIL PROTECTED])2% exit
104 {root @ cartman} # /usr/sbin/nologin
This account is currently not available.
105 {root @ cartman} # alias su
106 {root @ cartman} # which su
/usr/bin/su

I find the behaviour you get definitely undesirable.  There are 
occasionally accounts have special purpose shells which do work in some 
restricted fashion which you *might* want to use (in which case you can 
su) or which you might not (so you su -m).  I don't know off hand of any 
PD examples, but I maintain some proprietary software which has an 
account which uses a shell which understands various keywords and 
commands, which restricts what you can do over ssh, for example.  But 
for maintenance you sometimes just want to be that user with a regular 
shell.  I can't see how to achieve that given the behaviour you seem to 
get with su.


I seem to recall mharc being a bit like this - certainly needed the 
Linux equivalent su -s /bin/csh when doing stuff with it.


There's no indication in the online man pages that su should behave the 
way you've shown it, unless I'm missing something (a distinct 
possibility :-)).  Even the page from FreeBSD-7 says The invoked shell 
is the one belonging to the target login.  Your /usr/sbin/nologin isn't 
a real shell, is it?  Or you have some alias for su?  Who knows, maybe 
it's because I run csh - there does seem to be special case code for it 
in su.c but I can't see how it would have this effect!


Confused.

--Alex

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


sata gives: taskqueue timeout, followed by reboot

2007-11-09 Thread Dieter
FreeBSD 6.2 running on AMD64
ad6 is sata disk connected to nforce4-ultra

Moving a filesystem via dump|restore pipeline,
source is ad6 (mounted read-only), dest is a sata-via-usb disk.
ad6 also has root and var, so there could have been other
disk activity, but dump would have been the lion's share
of i/o.  After grinding away for a few hours, I get:

kernel: ad6: WARNING - SETFEATURES SET TRANSFER MODE taskqueue timeout - 
completing request directly

1 hour 4 minutes later it rebooted, and did not cleanly unmount
the filesystems. (any of them, not just the ones on ad6)
No panic message found anywhere.

I haven't seen this message before, this disk has been running
fine for about 7 months.

What exactly does this warning message mean?

Shouldn't I have gotten a panic message?

Assuming that the kernel decided to reboot without unmounting
the ad6 filesystems, why didn't it at least sync/unmount the
filesystems on other disks?  Did it decide to not trust the
controller, or perhaps itself?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: recurring kernel panic

2007-11-09 Thread Kelly Martin
On Nov 9, 2007 10:41 AM, Kris Kennaway [EMAIL PROTECTED] wrote:

 This looks pretty suspicious to me, I'd guess your hardware has failed.

This same hardware has run OpenBSD for years. Not sure how to track
down a hardware failure, unfortunately.

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html

Thanks, I've setup a dump directory now for the next kernel panic...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: recurring kernel panic

2007-11-09 Thread Kris Kennaway

Kelly Martin wrote:

On Nov 9, 2007 10:41 AM, Kris Kennaway [EMAIL PROTECTED] wrote:

This looks pretty suspicious to me, I'd guess your hardware has failed.


This same hardware has run OpenBSD for years.


Not really relevant.  When something makes the transition from working 
to broken there will be a first time when it fails.  No-one wants to 
believe it is happening to them, but hardware fails *all the time*.


 Not sure how to track

down a hardware failure, unfortunately.


There is plenty of documentation online about this (also hundreds of 
discussions in the archives), but it basically involves making use of 
the modularity of your PC to swap out components and attempt to isolate 
the fault.


Kris

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


Re: What kind of audio device is this?

2007-11-09 Thread P.U.Kruppa

On Fri, 9 Nov 2007, Adam J Richardson wrote:


P.U.Kruppa wrote:

dmesg says I have got
   ugen0: vendor 0x0d8c PnP Audio Device, class 0/0, rev 1.10/0.10,
   addr 4 on uhub0
on board.
What is this? Do we have a driver for it?

snip

Of course I tried
 # kldload snd_driver
but all I get is
 # cat /dev/sndstat
 FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
 Installed devices:

I am running
   FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #0:
   Sat Nov  3 17:55:42 CET 2007 amd64


Hi Peter,

I also have a USB sound device which wouldn't detect until I loaded 
snd_uaudio. Now I can play my CDs through my 5.1 system, but I had to install 
both OSS and eSound to do it. I think the idea is everything goes to eSound, 
which is piped through the OSS mixer.


My sound device now identifies [on FreeBSD 6.3-PRERELEASE] as:
uaudio0: vendor 0x0c45 USB Audio, rev 1.10/1.00, addr 2
uaudio0: audio rev 1.00
pcm0: USB Audio on uaudio0

Yes, great thanks Adam!

For the records:
As you said I have installed audio/oss and audio/esound.
I couldn't start snd_uaudio at runtime, so I put
 snd_uaudio_load=YES
into /boot/loader.conf and rebooted.
After that everything worked fine.

On my FreeBSD 7.0 I can even see /dev/dsp and when I do a
# cat /dev/sndstat
I get
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: USB Audio at ? kld snd_uaudio [GIANT] (1p:1v/1r:1v
channels duplex default)
 mode 1:(output) 8ch, 16/16bit, pcm, 44100,48000Hz
 mode 2:(output) 2ch, 16/16bit, pcm, 44100,48000Hz
 mode 3:(output) 4ch, 16/16bit, pcm, 44100,48000Hz
 mode 4:(output) 6ch, 16/16bit, pcm, 44100,48000Hz
 mode 5:(output) 2ch, 16/16bit, pcm, 48000Hz
 mode 1:(input) 2ch, 16/16bit, pcm, 44100,48000Hz

That's it!

Thanks again,

Uli.


which is every bit as dull as yours.

By the way I don't have a /dev/dsp either. It doesn't seem to be required.

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





Peter Ulrich Kruppa
Wuppertal
Germany

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


Re: Autoattach geli device but not at startup

2007-11-09 Thread Matthias Fechner
Hi RW,

RW wrote:
 I think it would just be easier to write a script to handle the
 attach, fsck, and mount. 

yeah, seems to be the best solution, thx for the tip.

Bye
Matthias

-- 

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning. --
Rich Cook
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: install

2007-11-09 Thread Alex Zbyslaw

Aryeh M. Friedman wrote:


complaints are not accompanied by solutions. The installer has been
a bikeshed for many years; everyone seems to know what color it
should be, how many windows it should have, how many doors to
install, what type of lighting it needs, how many penguins should
be accommodated in the rafters, and what relative orientation it
should have to the earth's magnetic field; yet the most vocal of
these people naturally have no contributions to make towards the
installer's actual codebase.
   



I think the only change needed for the time being (immediate fix) is
to move to DVD being the prefered medium (the rest can wait)
 

This is *not* a fix for most FreeBSD users; rather it would be a 
retrograde step.  If you have a decent enough internet connection to 
download a DVD, then you will use less bandwidth by downloading CD 1 and 
installing all your software from packages or ports.


If you install more than a week after the medium was created, then 
you'll also get up-to-date versions of that software rather that 
whatever version happened to be current when the CD was made (or the 
port freeze went into effect).


DVDs might be the norm for Linux distributions like Fedora where the 
versions of all the software you get are defined by the particular 
release, but with FreeBSD and ports/packages that has never been the case.


For users with poor internet, then yes, I can see the advantage of a DVD 
over 4 CDs, but is that a majority requiring an immediate fix and a 
change of preferred medium?  I think not.


Me, even with several reasonably fancy PCs, have no DVD burning 
capability whatsoever, and I doubt I'm alone in that.


--Alex

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


Re: install

2007-11-09 Thread Alex Zbyslaw

Reid Linnemann wrote:


The installer has been a
bikeshed for many years; everyone seems to know what color it should be,
how many windows it should have, how many doors to install, what type of
lighting it needs, how many penguins should be accommodated in the
rafters, and what relative orientation it should have to the earth's
magnetic field; yet the most vocal of these people naturally have no
contributions to make towards the installer's actual codebase.
 

You didn't mention that everyone has different answers to each of those 
questions, and different ideas about which questions are the most 
important (but sill no code to contribute).


I'm strongly in favour of 3.5 finely sliced (but not diced) penguins and 
a relative angle of 23 degrees, but I don't expect many people to agree :-)


Like many people I'm happy to see experienced developer time go on 
features I might actually use often, as opposed to an installer that 
gets used almost never, especially when the current one does appear to 
work and do what I want.


--Alex



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


Re: Help:Install RPMS on FreeBSD 6.2

2007-11-09 Thread P.U.Kruppa

On Fri, 9 Nov 2007, Ƚ¿¡Ðã wrote:


Hello,I have just install rpm-3.0.6 via /usr/ports/archivers/rpm.
And I get some ERROR like below when trying to install
libc5compat-1.0-5.i586.rpm  via rpm.

host# /usr/local/bin/rpm -Uvh libc5compat-1.0-5.i586.rpm

error: failed dependencies:
/bin/sh   is needed by libc5compat-1.0-5
/sbin/ldconfigis needed by libc5compat-1.0-5

But I can find  /bin/sh  and  /sbin/ldconfig on my FreeBSD 6.2.
How can I solve this problem,could anyone help me.
Many thanks.

They are hidden behind /compat/linux/...

Sometimes it might help to use --nodeps option with rpm .
(also often needed: --ignoreos and --ignorearch .

Good luck,

Uli.




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





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

OT: disk clone app

2007-11-09 Thread Jean-Paul Natola
Hi everyone, sorry for the off-topic, but im ready to pull the last hairs off
my head- a few months I downloaded an open source disk clone program for a
friend of mine but it was like 3 am,  it worked great booted from floppy and
cloned the drive-

Now that I really need I can find it for the life of me- I've been scouring
through sourceforge and can seem to find it-

Anyone out there can shed some light for me?


thx









Jean-Paul 

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


Re: recurring kernel panic

2007-11-09 Thread Rob

Kelly Martin wrote:

I'm getting daily kernel panics. The server was running fine for about
a month, the only changes I've made recently have been to update all
my ports. It's running on older i386 hardware, no special devices


Like the others said -- I'd seriously suspect hardware problems.  Memory is a 
good place to start.  Try MemTest:  http://www.memtest86.com/

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


Re: OT: disk clone app

2007-11-09 Thread Steve Bertrand
Jean-Paul Natola wrote:
 Hi everyone, sorry for the off-topic, but im ready to pull the last hairs off
 my head- a few months I downloaded an open source disk clone program for a
 friend of mine but it was like 3 am,  it worked great booted from floppy and
 cloned the drive-

g4u?

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


Re: OT: disk clone app

2007-11-09 Thread Bart Silverstrim

Jean-Paul Natola wrote:

Hi everyone, sorry for the off-topic, but im ready to pull the last hairs off
my head- a few months I downloaded an open source disk clone program for a
friend of mine but it was like 3 am,  it worked great booted from floppy and
cloned the drive-

Now that I really need I can find it for the life of me- I've been scouring
through sourceforge and can seem to find it-

Anyone out there can shed some light for me?


There's RIPLinux and another bootable disk that utilize 
Partimage...that's what we use for making images of partitions.

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


About make release

2007-11-09 Thread Victor M. Blood
Hi, All.

release can be build by calling commands:
make release.1 ...
...
make release.7 ...
etc.

Why need to chroot and build world again ?, may be I do not understand
all cobweb of release making process... May be exist any target-name
that starts release build stages without chroot?

-- 
With all regards, Victor M. Blood. mailto: [EMAIL PROTECTED]
FTN: 2:5024/[EMAIL PROTECTED], ICQ#3567656




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


Re: Help:Install RPMS on FreeBSD 6.2

2007-11-09 Thread Boris Samorodov
Hello Beyondran,


On Fri, 9 Nov 2007 21:52:57 +0800 冉俊秀 wrote:

 Hello,I have just install rpm-3.0.6 via /usr/ports/archivers/rpm.
 And I get some ERROR like below when trying to install
 libc5compat-1.0-5.i586.rpm  via rpm.

 host# /usr/local/bin/rpm -Uvh libc5compat-1.0-5.i586.rpm

 error: failed dependencies:
  /bin/sh   is needed by libc5compat-1.0-5
  /sbin/ldconfigis needed by libc5compat-1.0-5

 But I can find  /bin/sh  and  /sbin/ldconfig on my FreeBSD 6.2.
 How can I solve this problem,could anyone help me.
 Many thanks.

The main idea is routher simple:
# rpm2cpio  the_package.rpm | cpio -id --quiet

That's it. Mind some tips though:
. better to use /compat/linux as a directory prefix;
. linux binaries (not libraries!) should be branded (man(1) brandelf);
. we use only i386.rpm packages (not i586.rpm);
. it's always better to create a port, submit and use it. ;-)

For some references you may look at /usr/ports/Mk/bsd.linux-rpm.mk
and linux ports (ex. /usr/ports/audio/linux-*,
/usr/ports/graphics/linux-*).


HTH and WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports problem

2007-11-09 Thread Chuck Robey

Adam J Richardson wrote:

RW wrote:

On Fri, 09 Nov 2007 13:39:28 +
Adam J Richardson [EMAIL PROTECTED] wrote:

Desmond Chapman wrote:

/usr/X11R6 exists, but it is not a symlink. Installation cannot
proceed. This looks like an incompletely removed old version of X.
In the current version, /usr/X11R6 must be a symlink if it exists
at all.Please read /usr/ports/UPDATING (entry of 20070519) for the
procedure to upgrade X.org related ports.*** Error code 1

Hi Desmond,

When I was faced with this error I did the obvious thing and created
a symlink, then restarted the install. 


Surely the *obvious* thing was to follow the instructions and read
UPDATING.


I didn't read it that way. You're right though. I'll check out 
mergebase.sh, see if it does anything I need.


From what I can see, ports used to respect the settings of X11BASE and 
LOCALBASE, but even though they are still supposed to do that, well, I 
can see from my own attempts here on my box, that they don't do that.  I 
found a bunch of stuff that either assumed /usr/local, or got the 
install path by reading the pkgconfig .pc files.


LONG time back, I showed folks that it was a fairly trivial (two code 
lines) thing that was needed to make the X11 stuff go wherever you 
wanted it to go, but those two lines were in the 'imake' shell wrapper, 
and folks felt that the imake wrapper was holy writ for some reason, and 
would not let me make any changes to it.  Pity.

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


Re: Dangers of using a non-base shell

2007-11-09 Thread Chuck Robey

Giorgos Keramidas wrote:

On 2007-11-09 18:55, Andrew Pantyukhin [EMAIL PROTECTED] wrote:

On Tue, Oct 30, 2007 at 01:39:12PM +0200, Giorgos Keramidas wrote:

I've been using the following for some time:

keramida su -
Password: 
root# exec env SHELL=/usr/local/bin/bash bash -l

I know it doesn't work on slolaris^W some Unix flavors, but I've
been quite happy with su -m.


Heh, putting the Solaris bashing (sic) aside, I can see how the -m
option can be useful some times.  After all, it was implemented because
*someone* thought it would be neat to have around :-)


Actually, there's another reason that root should just stay with sh.  On 
a lot of systems, ones I have seen (and Linux is one of those), poor 
programming practices mean that many things will break if the root user 
isn't running sh (or in Linux's case, bash).  Ask folks, they'll claim 
it's untrue, but that's because they themselves run bash, and never saw 
the breakage.  I myself like tcsh, and the breakage is quite real, I 
finally had to give up using tcsh on those systems.  It's not a really 
strong reason for a FreeBSD user, but for those of us who work among a 
lot of OSes, it's better to get used to it, because you just can't fight 
city hall.  Trying to fix every single utility on those systems (which I 
did before I gave up trying) just means nightmares when you have to 
update stuff.

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


flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread John
I've been struggling to get a handle on the FreeBSD system.  Making good
progress, but then I ran into the fact that Firefox on FreeBSD can't do
flash.  Definite showstopper, for me.  Ok, then I tried to use the
linuxpluginwrapper approach, and it didn't work.

It made me recall, in reading up on FreeBSD, I did see where somebody
installed both Firefox and Linx-firefox.

So before I do battle with this Linux wrapper approach, I wondered if I
would be better off simply installing the Linux-firefox?

Is that easier?  More likely to work?

Does it perform almost as well as the native FreeBSD version?

Any input would be appreciated.

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


where did the peak mbuf stat go ?

2007-11-09 Thread Juri Mianovich
FreeBSD 4.x, netstat -m:

70/4336/26624 mbufs in use (current/peak/max)

Never any doubt - if peak=max, I hit the limit.  Super
useful.  Furthermore, by watching the peak I can see
when I am getting close, rather than waiting for
denied requests to pile up after the fact.

FreeBSD 6.x, netstat -m:

524/826/1350 mbufs in use (current/cache/total)

So ... how do I see peak mbufs in FreeBSD 6.x ?

Thanks.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread Philip M. Gollucci
John wrote:
 I've been struggling to get a handle on the FreeBSD system.  Making good
 progress, but then I ran into the fact that Firefox on FreeBSD can't do
 flash.  Definite showstopper, for me.  Ok, then I tried to use the
 linuxpluginwrapper approach, and it didn't work.
 
 It made me recall, in reading up on FreeBSD, I did see where somebody
 installed both Firefox and Linx-firefox.
 
 So before I do battle with this Linux wrapper approach, I wondered if I
 would be better off simply installing the Linux-firefox?
 
 Is that easier?  More likely to work?
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-07/msg01919.html

That will work just fine using flash7.  When you need flash9, thats a
different story.

works on 6.2, 6.3, 7.0-current, 7.0-betaX, and 8.0-current.


-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread Philip M. Gollucci
Philip M. Gollucci wrote:
 John wrote:
 I've been struggling to get a handle on the FreeBSD system.  Making good
 progress, but then I ran into the fact that Firefox on FreeBSD can't do
 flash.  Definite showstopper, for me.  Ok, then I tried to use the
 linuxpluginwrapper approach, and it didn't work.

 It made me recall, in reading up on FreeBSD, I did see where somebody
 installed both Firefox and Linx-firefox.

 So before I do battle with this Linux wrapper approach, I wondered if I
 would be better off simply installing the Linux-firefox?

 Is that easier?  More likely to work?
 http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-07/msg01919.html
 cd /usr/ports/emulators/linux_base-fc6 ; make install clean

There is now:
cd /usr/ports/emulators/linux_base-f7 ; make install clean
which you should use instead -- its newer :)


-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Install problems on Dell Vostro

2007-11-09 Thread Jerahmy Pocott

Hello,

I'm having difficulties getting 6.2 installed on these new Dell  
'Vostro' systems.


The BIOS is a Phoenix - AwardBIOS and it reports the version as 1.0.3.

With the SATA controller set to IDE mode (default) in the BIOS  
booting FreeBSD
will hang just before entering sysinstall, booting with ACPI disabled  
stops this
but then no disk drives are found! I got around this by setting the  
SATA mode to
RAID in the BIOS (this seems to make the disk appear as SCSI), then  
it doesn't
crash with ACPI enabled (with ACPI disabled no disks are found still)  
and the

disk is found.

The system only has USB inputs (8 of them) and with the USB  
Controller set
to 'High Speed' in the BIOS, the keyboard stops working once  
sysinstall starts
(though it works in the boot menu), however setting it to 'Full/Low  
Speed' makes
it work in sysinstall. I probably don't care about using High Speed  
USB devices
any way, but it would be nice if they could work, but this isn't the  
major issue.


Now finally I can get into sysinstall and partition the disk, but the  
network interface
is not detected. It says it is an 'Intel 82562V-2' (on board), but I  
see no probes about
it on booting FreeBSD. Is this interface supported? Any ideas on  
getting it detected?


I feel the ACPI might be a problem? On booting it is reported as  
'ACPI: Dell FX 09'


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


Re: Dangers of using a non-base shell

2007-11-09 Thread Giorgos Keramidas
On 2007-11-09 18:10, Alex Zbyslaw [EMAIL PROTECTED] wrote:
 Giorgos Keramidas wrote:
 i.e. here's an ftp session on my laptop:

  [EMAIL PROTECTED]:/root# fgrep ftp: /etc/passwd
  ftp:*:1003:1003: user:/home/ftp:/usr/sbin/nologin
  [EMAIL PROTECTED]:/root# su ftp
  [EMAIL PROTECTED]:/root$ id
  uid=1003(ftp) gid=1003 groups=1003
  [EMAIL PROTECTED]:/root$

 Must be new, because in 5.4 I get:
 [...]
 I find the behaviour you get definitely undesirable.  There are
 occasionally accounts have special purpose shells which do work in
 some restricted fashion which you *might* want to use (in which case
 you can su) or which you might not (so you su -m). [...]

False alarm.  I had a desynced /etc/pwd.db when this happened.

The correct behavior with nologin as the shell is:

  [EMAIL PROTECTED]:/root# su ftp
  This account is currently not available.
  [EMAIL PROTECTED]:/root#

 Confused.

I apologize for the confusion :/


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


Install problems on Dell 'Vostro'

2007-11-09 Thread Jerahmy Pocott

Hello,

I'm having difficulties getting 6.2 installed on these new Dell  
'Vostro' systems.


The BIOS is a Phoenix - AwardBIOS and it reports the version as 1.0.3.

With the SATA controller set to IDE mode (default) in the BIOS  
booting FreeBSD
will hang just before entering sysinstall, booting with ACPI disabled  
stops this
but then no disk drives are found! I got around this by setting the  
SATA mode to
RAID in the BIOS (this seems to make the disk appear as SCSI), then  
it doesn't
crash with ACPI enabled (with ACPI disabled no disks are found still)  
and the

disk is found.

The system only has USB inputs (8 of them) and with the USB  
Controller set
to 'High Speed' in the BIOS, the keyboard stops working once  
sysinstall starts
(though it works in the boot menu), however setting it to 'Full/Low  
Speed' makes
it work in sysinstall. I probably don't care about using High Speed  
USB devices
any way, but it would be nice if they could work, but this isn't the  
major issue.


Now finally I can get into sysinstall and partition the disk, but the  
network interface
is not detected. It says it is an 'Intel 82562V-2' (on board), but I  
see no probes about
it on booting FreeBSD. Is this interface supported? Any ideas on  
getting it detected?


I feel the ACPI might be a problem? On booting it is reported as  
'ACPI: Dell FX 09'


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


nanobsd, picobsd, tinybsd

2007-11-09 Thread John Smith
Can anybody please explain to my what the differences are between
nanobsd, picobsd and tinybsd.

They all seem to be doing the same (creating a minimal FreeBSD image
that can be used in embedded systems), or is this not right?

I've searched the internet but can't really find a page that clearly
explains the differences and similarities.

Many thanks in advance,

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


USB Console?

2007-11-09 Thread Jerahmy Pocott

Hello,

Firstly sorry for my recent double post mx1.freebsd.org was rejecting
my mail for some reason..

I was wondering if there is any way to put the console on a USB port?
Since serial and parallel ports are becoming things of the past and
many systems don't come with them any more..

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


Re: flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread icantthinkofone

Philip M. Gollucci wrote:

Philip M. Gollucci wrote:
  

John wrote:


I've been struggling to get a handle on the FreeBSD system.  Making good
progress, but then I ran into the fact that Firefox on FreeBSD can't do
flash.  Definite showstopper, for me.  Ok, then I tried to use the
linuxpluginwrapper approach, and it didn't work.

It made me recall, in reading up on FreeBSD, I did see where somebody
installed both Firefox and Linx-firefox.

So before I do battle with this Linux wrapper approach, I wondered if I
would be better off simply installing the Linux-firefox?

Is that easier?  More likely to work?
  

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-07/msg01919.html


 cd /usr/ports/emulators/linux_base-fc6 ; make install clean

There is now:
cd /usr/ports/emulators/linux_base-f7 ; make install clean
which you should use instead -- its newer :)


  

And all that works fine with Firefox and FreeBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread icantthinkofone

Philip M. Gollucci wrote:

Philip M. Gollucci wrote:
  

John wrote:


I've been struggling to get a handle on the FreeBSD system.  Making good
progress, but then I ran into the fact that Firefox on FreeBSD can't do
flash.  Definite showstopper, for me.  Ok, then I tried to use the
linuxpluginwrapper approach, and it didn't work.

It made me recall, in reading up on FreeBSD, I did see where somebody
installed both Firefox and Linx-firefox.

So before I do battle with this Linux wrapper approach, I wondered if I
would be better off simply installing the Linux-firefox?

Is that easier?  More likely to work?
  

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-07/msg01919.html


 cd /usr/ports/emulators/linux_base-fc6 ; make install clean

There is now:
cd /usr/ports/emulators/linux_base-f7 ; make install clean
which you should use instead -- its newer :)


  
btw, you don't need both native and Linux Firefox.  Native Firefox an do 
flash just fine.

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


Re: problem of install 7.0 on notebook

2007-11-09 Thread Zhang hw
7.0-beta2-amd64's boot stop at the same place as beta1.5.

2007/11/3, Zhang hw [EMAIL PROTECTED]:
 Thank you, David!
 The verbose logging messages:
 ---
 pcib2: ACPI PCI-PCI bridge at device 4.0 on pci0
 pcib2: domain 0
 pcib2: secondary bus 16
 pcib2: subordinate bus 16
 pcib2: I/O decode 0xf000-0xfff
 pcib2: memory decode 0xcc00-0xcc0f
 pcib2: no prefetched decode
 pcib2: could not get PCI interrupt routing table for \_SB_.C08B.C24F -
 AE_NOT_FOUND
 pci16: ACPI PCI bus on pcib2
 pci16: domain=0, physical bus=16
 found- vendor=0x14e4, dev=0x1693, revid=0x02
 domain=0, bus=16, slot=0, func=0
 class=02-00-00, hdrtype=0x00, mfdev=0
 cmdreg=0x0006, statreg=0x0010, cachelnsz=16, (dwords)
 lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
 intpin=a, irq=10
 powerspec 3 supports D0 D3 current D0
 MSI supports 1 message, 64 bit
 map[10]: type Memory, range 64, base 0xcc00, size
 16, enabled
 pcib2: requested memory range 0xcc00-0xcc00: good
 pcib0: matched entry for 0.4.INTA
 pcib0: slot 4 INTA hardwired to IRQ16
 pcib2: slot 0 INTA is routed to irq 16
 --
 This is the last screen shown, and I write it here handy.

 2007/11/2, David Yeske [EMAIL PROTECTED]:
  On 11/2/07, Zhang hw [EMAIL PROTECTED] wrote:
   I have now could work on my notebook with freebsd 6.2-release and
   6.3-prerelease, but there are still some problems such as acpi. So I
   want to have a try of freebsd 7.0-beta-1.5, but I can't install it,
   the boot process stop at pci probing:
   pcib2:PCI-PCI brige at device 4.0 on pci0
   pci16:PCI-PCI bus on pcib2
   if acpi enable, it maybe show as:
   pcib2:ACPI PCI-PCI brige...
   pci16:ACPI...
   my cpu is athlon 64x2, I've tried both amd64 and i386 versions.
   Help!
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to [EMAIL PROTECTED]
  
 
  What happens if you boot verbose?  That might better indicate where
  the kernel is hanging.
 

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


Re: Install problems on Dell Vostro

2007-11-09 Thread McCy Ron



Jerahmy Pocott wrote:


Hello,

I'm having difficulties getting 6.2 installed on these new Dell  
'Vostro' systems.


The BIOS is a Phoenix - AwardBIOS and it reports the version as 1.0.3.

With the SATA controller set to IDE mode (default) in the BIOS  
booting FreeBSD
will hang just before entering sysinstall, booting with ACPI disabled  
stops this
but then no disk drives are found! I got around this by setting the  
SATA mode to
RAID in the BIOS (this seems to make the disk appear as SCSI), then  
it doesn't
crash with ACPI enabled (with ACPI disabled no disks are found still)  
and the

disk is found.

The system only has USB inputs (8 of them) and with the USB  
Controller set
to 'High Speed' in the BIOS, the keyboard stops working once  
sysinstall starts
(though it works in the boot menu), however setting it to 'Full/Low  
Speed' makes
it work in sysinstall. I probably don't care about using High Speed  
USB devices
any way, but it would be nice if they could work, but this isn't the  
major issue.


Now finally I can get into sysinstall and partition the disk, but the  
network interface
is not detected. It says it is an 'Intel 82562V-2' (on board), but I  
see no probes about
it on booting FreeBSD. Is this interface supported? Any ideas on  
getting it detected?


I feel the ACPI might be a problem? On booting it is reported as  
'ACPI: Dell FX 09'


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




I was able to get 6.2 to install on a Vostro with stock BIOS settings 
but couldn't get the system to recognize the network card. network.  
Just for reference - Knoppix, Ubuntu, FreesBie live CDs, and a straight 
install of Ubuntu 7.04 didn't work either. There is something strange 
about this computer.Windows XP, ofcourse, works.

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


Re: pkgdb failure

2007-11-09 Thread matti k
On Fri, 09 Nov 2007 08:06:54 -0500
J. W. Ballantine [EMAIL PROTECTED] wrote:

 After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild
 all the packages from portupgrade -af I started getting the following
 error messages.  The first once, the second multiple times, even
 after I moved the pkgdb.db and did a pkgdb -fu.
 
 [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid
 argument] [Updating the portsdb format:bdb_btree in /usr/ports .
 .. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file
 type or format -- Invalid argument: Cannot update the portsdb!
 (/usr/ports/INDEX-7.db)]
 
 
 /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid
 argument
 
 Any ideas on what is causing this?

I got this as well, after portupgrade tried to register installation of
new ruby version. A pkgdb -F seemed to correct it and i continued on
with portupgrade with no more errors.

Regards,
Matti

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


Can someone please help me get gdmchooser running, again?

2007-11-09 Thread Lane Holcombe
I'm running FreeBSD 6.2-STABLE #1, compiled locally on Tue May  8
16:39:25 CDT 2007 

I was able to use gdmchooser on X.org 7.2, but after upgrade to 7.3 (and
GDM 2.20.1) she says no serving hosts were found after scanning the
local network

When I first started this email, I got this from 

sockstat -l46  | grep 177


lholcombessh-agent  30601 8  udp4   *:177 *:*
lholcombegnome-sess 30587 8  udp4   *:177 *:*
root Xorg   30570 8  udp4   *:177 *:*
root gdm-binary 30569 8  udp4   *:177 *:*
root gdm-binary 29955 8  udp4   *:177 *:*

Now, after monkeying with it (including a few reboots), I get

root gdm-binary 33486 8  udp4   *:177 *:*

so it seems that gdm is listening on 177, but the chooser doesn't list
the local system as an X server.  Instead the chooser reports no
serving hosts were found

I can log in using the greeter, but I'd really like to use the chooser,
as I've got several machines running X, and I'm too cheap to buy extra
keyboards, and too lazy to move around the office to do my work :)

gdm was compiled WITHOUT IPv6 support, and I've got

ipv6_enable=NO 

in /etc/rc.conf

It's gotta be something simple, 'cause I didn't spend much time setting
up the chooser originally.  But I think I need an extra set of eyes to
see what I'm not seeing :)

Here is the uncommented part of /usr/local/etc/gdm/custom.conf:

[daemon]
Greeter=/usr/local/libexec/gdmgreeter
RemoteGreeter=/usr/local/libexec/gdmgreeter

[security]
AllowRemoteRoot=true
DisallowTCP=false
NeverPlaceCookiesOnNFS=false
CheckDirOwner=false

[xdmcp]
Enable=true

[gui]

[greeter]
IncludeAll=true
GraphicalTheme=happygnome-list
GraphicalThemeRand=true
GraphicalThemes=circles/:happygnome-list/:happygnome

[chooser]

[debug]
Enable=true

[servers]
0=Standard

[server-Standard]
name=Standard server
command=/usr/local/bin/X -audit 0
chooser=false
handled=true
flexible=true
priority=0


Thanks for being an extra set of eyes!

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


Re: Can someone please help me get gdmchooser running, again?

2007-11-09 Thread Yuri Pankov
On Fri, Nov 09, 2007 at 11:12:20PM -0600, Lane Holcombe wrote:
 I'm running FreeBSD 6.2-STABLE #1, compiled locally on Tue May  8
 16:39:25 CDT 2007 
 
 I was able to use gdmchooser on X.org 7.2, but after upgrade to 7.3 (and
 GDM 2.20.1) she says no serving hosts were found after scanning the
 local network
 
 When I first started this email, I got this from 
 
 sockstat -l46  | grep 177
 
 
 lholcombessh-agent  30601 8  udp4   *:177 *:*
 lholcombegnome-sess 30587 8  udp4   *:177 *:*
 root Xorg   30570 8  udp4   *:177 *:*
 root gdm-binary 30569 8  udp4   *:177 *:*
 root gdm-binary 29955 8  udp4   *:177 *:*
 
 Now, after monkeying with it (including a few reboots), I get
 
 root gdm-binary 33486 8  udp4   *:177 *:*
 
 so it seems that gdm is listening on 177, but the chooser doesn't list
 the local system as an X server.  Instead the chooser reports no
 serving hosts were found
 
 I can log in using the greeter, but I'd really like to use the chooser,
 as I've got several machines running X, and I'm too cheap to buy extra
 keyboards, and too lazy to move around the office to do my work :)
 
 gdm was compiled WITHOUT IPv6 support, and I've got
 
 ipv6_enable=NO 
 
 in /etc/rc.conf
 
 It's gotta be something simple, 'cause I didn't spend much time setting
 up the chooser originally.  But I think I need an extra set of eyes to
 see what I'm not seeing :)
 
 Here is the uncommented part of /usr/local/etc/gdm/custom.conf:
 
 [daemon]
 Greeter=/usr/local/libexec/gdmgreeter
 RemoteGreeter=/usr/local/libexec/gdmgreeter
 
 [security]
 AllowRemoteRoot=true
 DisallowTCP=false
 NeverPlaceCookiesOnNFS=false
 CheckDirOwner=false
 
 [xdmcp]
 Enable=true
 
 [gui]
 
 [greeter]
 IncludeAll=true
 GraphicalTheme=happygnome-list
 GraphicalThemeRand=true
 GraphicalThemes=circles/:happygnome-list/:happygnome
 
 [chooser]
 
 [debug]
 Enable=true
 
 [servers]
 0=Standard
 
 [server-Standard]
 name=Standard server
 command=/usr/local/bin/X -audit 0
 chooser=false
 handled=true
 flexible=true
 priority=0
 
 
 Thanks for being an extra set of eyes!
 
 lane

Hi,

Lane, please check gdm related issues (IPv6 only) at
http://www.nabble.com/remaining-issues-with-gnome-2.20-t4721430.html
(taken from thread on gnome@). And sorry if it's not related to your
problem.


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


Re: shell programming

2007-11-09 Thread Jonathan McKeown
On Friday 09 November 2007 20:02, Eric Crist wrote:
 On Nov 9, 2007, at 11:46 AM, Bill Banks wrote:
  I'm  writing a backup script. I need to get the day of the week into
  a variable. How can I do it?

 Well, it depends on what you're using.  If you're using sh, see `man
 date`.  If you're using perl, it's quite complicated.

Not really:

use POSIX 'strftime';
my $day_of_week = strftime '%A', localtime;

POSIX has always been a core module. To see this in action from a commandline,

perl -MPOSIX=strftime -le 'print strftime q/%A/, localtime'

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


Re: Can someone please help me get gdmchooser running, again?

2007-11-09 Thread Lane Holcombe
On Sat, 2007-11-10 at 08:28 +0300, Yuri Pankov wrote:
 On Fri, Nov 09, 2007 at 11:12:20PM -0600, Lane Holcombe wrote:
  I'm running FreeBSD 6.2-STABLE #1, compiled locally on Tue May  8
  16:39:25 CDT 2007 
  
  snip

  gdm was compiled WITHOUT IPv6 support, and I've got
  
  ipv6_enable=NO 
  
  in /etc/rc.conf
  
  snip
  
  Thanks for being an extra set of eyes!
  
  lane
 
 Hi,
 
 Lane, please check gdm related issues (IPv6 only) at
 http://www.nabble.com/remaining-issues-with-gnome-2.20-t4721430.html
 (taken from thread on gnome@). And sorry if it's not related to your
 problem.
 
 
 Yuri
Yuri,

Thanks for your response.

I've suspected this was an issue with IPV6, but poking around sysctl
oids is like spelunking without a rope or a partner.

As soon as the current CD finishes (Janet Jackson - Rhythm Nation [cause
I'm retro, like that]) I'm gonna reboot with these additions
to /etc/sysctl.conf:

net.inet6.ip6.v6only=0
net.inet6.ip6.forwarding=1

I thought there was a map sysctl oid that explicitly maps ipv6 to
ipv4, but I can't find it now.

Anyway, if I get anywhere with this I'll post the results.
Otherwise ... I'll just whine some more :)

lane

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


Re: flash: linux firefox vs linuxpluginwrapper

2007-11-09 Thread Boris Samorodov
On Fri, 9 Nov 2007 17:08:12 -0500 Philip M. Gollucci wrote:
 Philip M. Gollucci wrote:
  John wrote:
  I've been struggling to get a handle on the FreeBSD system.  Making good
  progress, but then I ran into the fact that Firefox on FreeBSD can't do
  flash.  Definite showstopper, for me.  Ok, then I tried to use the
  linuxpluginwrapper approach, and it didn't work.
 
  It made me recall, in reading up on FreeBSD, I did see where somebody
  installed both Firefox and Linx-firefox.
 
  So before I do battle with this Linux wrapper approach, I wondered if I
  would be better off simply installing the Linux-firefox?
 
  Is that easier?  More likely to work?
  http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2007-07/msg01919.html
  cd /usr/ports/emulators/linux_base-fc6 ; make install clean

 There is now:
 cd /usr/ports/emulators/linux_base-f7 ; make install clean
 which you should use instead -- its newer :)

And please keep an eye at /usr/ports/UPDATING (about linux_base
port).


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >