Re: kernel panic

2009-01-11 Thread Peter Jeremy
On 2009-Jan-09 00:05:47 -0800, Kamlesh Patel shilp.ka...@yahoo.com wrote:
How do i recover the system from this error. I can't reload the loader.old

If you press any key during the first spinner, you should get a prompt
similar to the following:
 FreeBSD/i386 BOOT
Default: 0:ad(0,a)/boot/loader
boot:

You can then enter the name of the program you wish to run - eg
/boot/loader.old (or directly load /boot/kernel/kernel)

See the following for a more complete description:
http://www.freebsd.org/cgi/man.cgi?query=bootapropos=0sektion=0manpath=FreeBSD+7.1-RELEASEformat=html
-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.


pgpGuVVF4OejW.pgp
Description: PGP signature


Linux binary execution performance hit

2009-01-11 Thread Mikel Lindsaar
Hi list,

Question, what sort of performance hit does FreeBSD 7.0 have on
running linux binaries?

The program in question is Ruby, I'm looking at putting ruby compiled
on a linux box over onto a FreeBSD system so I can take advantage of
the Oracle Instant client.  But will look at other options if this is
going to be a lot slower.

Mikel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Linux binary execution performance hit

2009-01-11 Thread Wojciech Puchar


Question, what sort of performance hit does FreeBSD 7.0 have on
running linux binaries?

The program in question is Ruby, I'm looking at putting ruby compiled
on a linux box over onto a FreeBSD system so I can take advantage of
the Oracle Instant client.  But will look at other options if this is
going to be a lot slower.


no it won't be much slower.

linux programs's speed under FreeBSD is comparable to same under linux.

it's not emulation in strict sense, rather second ABI.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: does IPI_PREEMPTION in the kernel config do anything

2009-01-11 Thread Paul B. Mahol
On 1/11/09, Aryeh M. Friedman aryeh.fried...@gmail.com wrote:
 For the last year I have been using IPI_PREEMPTION in my kernel config
 and I know back then it helped quite a bit on the performence of my dual
 core... now I am setting a 4 core machine using 7.1pl1 (i386) [on the
 dual core I {and will continue} to use -current] and was just wondering
 if IPI_PREEMPTION actually maeans anything anymore

IPI_PREEMPTION is used only with 4bsd scheduler.

-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Cannot get ethernet off the ground

2009-01-11 Thread Roland Smith
On Sat, Jan 10, 2009 at 08:11:00PM -0500, William Gordon Rutherdale wrote:
 I have to use paper-sneakernet because
 - no network connectivity yet
 - tried plugging in a memory stick; it flashed but nothing showed up 
 with the 'mount' command

It won't mount automatically, unless you have the automounter
configured. If you want to mount USB drives as a normal user, you have
to run the command 'sysctl vfs.usermount=1' as root. To make this change
permanent, put 'vfs.usermount=1' in /etc/sysctl.conf.

Next, you have to make a directory to mount it. I would suggest
/mnt/$USER (where $USER is your username). Make sure that _you_ own that
directory.

Next, you'll need read/write access to the devices. I would suggest to
create a group called usb, and make yourself a member of this group. See
pw(8).  With that done, you chould add a rule to /etc/devfs.rules. See
the EXAMPLES in devfs.rules(5).

If all of that is sorted, you should see one or more /dev/daXsY devices
appear when you plug in the USB drive, X and Y being numbers,
e.g. /dev/da0s1. This means first slice [s1] on the first da(4) device [da0].

To mount this device if it is formatted as FAT partition do:

mount_msdosfs -m 644 -M 755 -l -o noatime -o sync -o noexec -o nosuid \
/dev/da0s1 /mnt/$USER

 no...@pci0:2:0:0: class=0x02 card=0x2abf103c chip=0x816810ec 
 rev=0x02 hdr=0x00
 vendor  = 'Realtek Semiconductor'
 device  = 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC'
 class   = network
 subclass= ethernet

This should be recognized by the re(4) driver. This driver is present in
the generic kernel. Are you running a custom kernel? ('uname -i' can
tell you the name of the kernel you are running) If so, try running
'kldload if_re.ko'. The device should then show up as /dev/net/re0.

If this works, you'll have to load the module on the next boot, by
adding 'if_re_load=YES' to /boot/loader.conf. You will also have to
configure the device in etc/rc.conf. This is covered in the
handbook. You can find the english version at [1]. It is also available
on the FreeBSD site.

If you are running the GENERIC kernel and it does not recognize this
chip, try upgrading to the latest release. If that doesn't work, you
should probably file a problem report with send-pr(1).

Roland

[1: file:///usr/share/doc/en_US.ISO8859-1/books/handbook/index.html]  
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpF31yq0aekz.pgp
Description: PGP signature


Re: freebsd-update install

2009-01-11 Thread Toni Schmidbauer
At Sun, 11 Jan 2009 00:16:25 +0100,
Franck Royer wrote:
 Thanks for all this infos. I have another question about the zfs kernel
 module : is it still in the GENERIC kernel in the release 7.1 ? Or do I
 need to include it and recompile the kernel before the first reboot ?

the module is included in the standard kernel, you just have to tell
the boot loader to load it on startup (/boot/loader.conf):

zfs_load=YES

and if your root filesystem is zfs

vfs.root.mountfrom=zfs:rpool/root

toni
-- 
Don't forget, there is no security | toni at stderror dot at 
-- Wulfgar | Toni Schmidbauer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale
Is there an easy way to tell whether the new 7.1 release will officially 
support my hardware?  I looked at this url:  
http://www.freebsd.org/releases/7.1R/relnotes.html#PROC


and cannot easily tell from there.  There must be something in the boot 
code (or drivers) that looks at the signature (maybe device name and 
manufacturer) and decides whether it knows the card. 

If I could find either documentation or some configuration or source 
code file to look at, then I could have an idea before actually trying 
it whether freebsd 7.1 actually will recognise this driver on its own.


By the way, two other cards were not recognised.  That's why it labelled 
it 'none2'.  There was also a none0 and a none1.  However those cards 
are lower priority for my application.


-Will


Michael Powell wrote:

William Gordon Rutherdale wrote:

  

I have to use paper-sneakernet because
- no network connectivity yet
- tried plugging in a memory stick; it flashed but nothing showed up
with the 'mount' command

Here are the last two entries from the 'pciconf -lv' command, which look
relevant to the problem.  I had to write them down on paper and walk
over to this room to type them.  Please pardon any typos:

no...@pci0:2:0:0: class=0x02 card=0x2abf103c chip=0x816810ec
rev=0x02 hdr=0x00
vendor  = 'Realtek Semiconductor'
device  = 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC'
class   = network
subclass= ethernet




This may be supported by the re driver. Run your ifconfig setup
commands against re0 and see what happens. This should be present
in the GENERIC kernel, if you have a custom kernel with it removed
just kldload the module. You should also be able to grep re out
from your dmesg.

[snip]
  

Question 1.  Is it possible that FreeBSD 7.1 would do a better job?



Sometimes with these adapters not every chipID makes it into the driver
code. Usually this takes care of itself as time goes on, eg newer is 
better.


If you are just starting out with a new machine and a fresh install
you might want to consider 7.1-RELEASE. 
[snip]
  

fwe is ethernet emulation driver for firewire.
post output of pciconf -lv.

  
  

[snip]

-Mike



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

  


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


Re: FIXED: vpnc connects, but does not work

2009-01-11 Thread Stacey Roberts
Hi perryh!
   Glad to hear that you managed to get your problem fixed..,

I also have this problem, the difference being that mine **USED to** work, but 
now it
suddenly stoped working.

I tried adding the line to my conf file as you did, but for me, the problem 
remains:

Appears to connect and authenticate successfully to my office's VPN concentrator
Once (apparently) connected, I can't access any resources on the company 
network (mail /
servers, etc), nor can I ping anything..,

Wondering if you can point me to where you found the info on the various 
options I can try
to continue debugging this problem, please. The FW guys at the office aren't 
exactly
forthcoming where non-MS windows is concerned, you see..,

Thanks.

Regards,

S Roberts


On Sun, 04 Jan 2009, per...@pluto.rain.com wrote:

  I have installed vpnc to connect to an employer's Cisco VPN
  system, and it seems to make the connection, but after connecting
  I can't ping the gateway nor anything beyond it ...
  
 It turned out the only problem was the absence of 
  
   NAT Traversal Mode cisco-udp
 
 in vpnc.conf.  (Presumably not all configurations of the Cisco 3000
 will need that, else it would be the default, but it seems to be
 correct for the one involved here.)
  
 I never did figure out why that kept the interface from responding
 to a ping of its own address :(
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Cannot get ethernet off the ground

2009-01-11 Thread Roland Smith
On Sun, Jan 11, 2009 at 07:39:05AM -0500, William Gordon Rutherdale wrote:
 Is there an easy way to tell whether the new 7.1 release will officially 
 support my hardware?  I looked at this url:  
 http://www.freebsd.org/releases/7.1R/relnotes.html#PROC

Look at this manual page for the re(4) driver: 
[http://www.freebsd.org/cgi/man.cgi?query=reapropos=0sektion=4manpath=FreeBSD+7.1-RELEASEformat=html]

This seems to match what you see with pciconf:
  no...@pci0:2:0:0: class=0x02 card=0x2abf103c chip=0x816810ec
  rev=0x02 hdr=0x00
  vendor  = 'Realtek Semiconductor'
  device  = 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC'
  class   = network
  subclass= ethernet

This driver is part of the GENERIC kernel. So it should be recognized by
7.1-RELEASE. Try downloading the bootonly CD-image and booting from it.

I've used realtek devices in the past (cheap rl(4) based cards) but
wasn't really impressed. One one of those cards, download speed was OK,
but upload maxed out @ 200 kB/s. :-(

Better get a card based on an Intel PRO/100 chip [fxp(4) driver] or 3COM
3c905 [xl(4) driver]. If you need gigabit, try Intel PRO/1000 [em(4)].

 and cannot easily tell from there.  There must be something in the boot 
 code (or drivers) that looks at the signature (maybe device name and 
 manufacturer) and decides whether it knows the card. 

Drivers try to probe for the card. If they get a good reaction, the
device is enabled.
 
 If I could find either documentation or some configuration or source 
 code file to look at, then I could have an idea before actually trying 
 it whether freebsd 7.1 actually will recognise this driver on its own.

Look at /usr/src/sys/dev/re/if_re.c.

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


pgpOhk4NC1bj6.pgp
Description: PGP signature


Re: PHP setup question

2009-01-11 Thread stan
On Sat, Jan 10, 2009 at 09:22:36AM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine.
 
 Just wondering if you've resolved the problems you had with this.
 

I installed amapche on an Ubuntu mahcine, and folowed the same procedure
(except for quoting the rss variables). Once again when I went to write the
config file, I had to download it to the machine that I was running the web
browser on. Once I did that, and located the appropriate place on the
Ubuntu machine, everything worked as expected. I am building a music
catalog as we speak on that machine. This leads me to suspect that there is
something wrong with the way I am seting it up on the FreeBSD machine.

Going through the _exact_ same procdure as on the Ubuntu machine results in
the following when I try to procedd to step 3 in the web installer.

Error: Config file detected, Ampache is already installed (displayed in the
browser).

Can we idntify exactly what causes this error message? If so, maybe I cna
check that on the FreeBSD machine.

I really need this to work on the FreeBSD machine, as it is where the music
is stored, and it's the web serer accessible from outside.

Thanks,


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 7.1 : watchdog bge0 timeout ?

2009-01-11 Thread Jos Chrispijn

[Lowell Gilbert] Uit een eerder bericht van 10-1-2009 15:51 ::

Could be hardware trouble, I suppose.
  
I know FreeBSD can detect hardware probs better than other OS'es; but 
why didn't 6.x detect this malfunction then?
I believe Murphy and his law, but for mee it seems a little bit too 
accidentally L-)


regards,
Jos Chrispijn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Cannot get ethernet off the ground

2009-01-11 Thread Roland Smith
On Sat, Jan 10, 2009 at 08:11:00PM -0500, William Gordon Rutherdale wrote:
 I have to use paper-sneakernet because
 - no network connectivity yet
 - tried plugging in a memory stick; it flashed but nothing showed up 
 with the 'mount' command
 
 Here are the last two entries from the 'pciconf -lv' command, which look 
 relevant to the problem.  I had to write them down on paper and walk 
 over to this room to type them.  Please pardon any typos:
 
 no...@pci0:2:0:0: class=0x02 card=0x2abf103c chip=0x816810ec 
 rev=0x02 hdr=0x00
 vendor  = 'Realtek Semiconductor'
 device  = 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC'
 class   = network
 subclass= ethernet

There seems to have been some breakage of the re(4) and rl(4) drivers in
the 7.1 release cycle. See [http://www.freebsd.org/cgi/query-pr.cgi?pr=130011]

You should try to get the files mentioned in the abovementioned link on
your machine, and rebuild your kernel.

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


pgp6Wtvn4gccI.pgp
Description: PGP signature


Re: gname

2009-01-11 Thread Frank Staals

Grant Peel wrote:

Wow,

After a fresh install of FreeBSD 6.4, (with Xorg) I tried installing Gnome, and I get a 
stop during build, Filesystem Full!

Is Gname really that big? or did I miss doing something?

  
Well it is big, but since you are installing from a clean system all the 
gnome dependencies will also have to install their dependencies and so 
on. So basically you have to install a *lot* of ports which may take 
quite some space/time if you do not clean up nicely. Use 'make install 
clean' or 'make install distclean' to install your ports (if you didn't 
allready) that will order the make process to remove the files it uses 
during it's build (and distclean also cleans the downloaded distfiles in 
the distfiles dir )

 Doing a du -h -d1 on /usr shows

...
7.0G ports.
1.8G local

  
Check inside ports what is taking up the most space, most likely your 
distfiles dir is huge as well as the build directories inside a lot of 
ports itself. You can manually remove the distfiles for ports you 
allready installed from /usr/ports/distfiles. If that does not help 
enough also remove some of the work directories for the ports you 
installed allready but are not cleaned by make yet and resume your 
build. (so if for example you see gnome-session is allready installed ( 
pkg_info -Ex gnome ) remove /usr/ports/x11/gnome-session/work/ )


Regards,

--

- Frank

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


Mounting a partition from freebsd 6.2?

2009-01-11 Thread mojo fms
I was working on an upgrade to 6.3 from 6.2 and I lost power during the
install which hosed most of my system.  Instead of trying to really recover
it I decided to just rebuild.  I have a backup of my /etc and /usr/local/etc
on a different drive that should be fine, it was just mounted under /mnt
normally and used for backups.  My problem is that I installed 7.1 and was
careful not to erase any data on that drive, but my only options for a
partition to mount is /dev/ad2s1.  When  I try to mount that it gives me
mount: /dev/ad2s1 : Operation not permitted, what can I do to get the data
off of it?  I only really care about my /etc information  but it would be
nice to get all of the information off of it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


creating own CVSup server

2009-01-11 Thread Stefan Miklosovic
Hi all,

I decided to set up my own CVSup server just for my local
network. After reading all related stuff I should find, I have
solid knowledge about this issue but one thing disturbed my mind.

My pc, server which I will mirroring from, is also downloading
source tree from another server (cvsup.at.freebsd.org) to /usr/src
directory. I will download my src tree once a week.
When I am going to set up cvsup server on my own, cvsup-mirror
asks me, where I want to download files I just purchased. Default
directory is /home/ncvs.

My question is, can be downloading directory /usr/src ?
Which reason should I place downloading files to /home/ncvs for?
Does it matter ? Can I serve my own src tree for other computers?
Does it have to be stored twice?

thank you
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: creating own CVSup server

2009-01-11 Thread Stefan Miklosovic
Hi, me again,

I also havent noticed, that there is a choice
among -current or -stable. If I want to
mirror just -stable (this is possible with cvsup stable-supfile),
can I?

thank you again

On Sun, Jan 11, 2009 at 8:37 PM, Stefan Miklosovic 
miklosovic.free...@gmail.com wrote:

 Hi all,

 I decided to set up my own CVSup server just for my local
 network. After reading all related stuff I should find, I have
 solid knowledge about this issue but one thing disturbed my mind.

 My pc, server which I will mirroring from, is also downloading
 source tree from another server (cvsup.at.freebsd.org) to /usr/src
 directory. I will download my src tree once a week.
 When I am going to set up cvsup server on my own, cvsup-mirror
 asks me, where I want to download files I just purchased. Default
 directory is /home/ncvs.

 My question is, can be downloading directory /usr/src ?
 Which reason should I place downloading files to /home/ncvs for?
 Does it matter ? Can I serve my own src tree for other computers?
 Does it have to be stored twice?

 thank you

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


Re: setfib+pf

2009-01-11 Thread Dimitar Vasilev
2009/1/7 Dimitar Vasilev dimitar.vassi...@gmail.com

 Hello,

 I'd like to ask on the best options for using setfib and pf in a non-BGP
 environment. I will run 2 uplinks, with VLANs for internal networks and want
 to fail over external links if one of them fails.
 Currently pf supports to the best of my knowledge:

 a) rtable - this means i can create the routing tables with setfib and then
 use pass from   rtable N( N 1 16) or give out directly network ranges
 b) route-to - pass in/out on X from ... route-to
 c) packet tagging - i can tag networks and use standalone or through
 routing tags. Anyone aware if is it ok to use /etc/gateways without running
 routed or how can i label routes alternatively?
 d) pass in from route N(192.168.1.1 from example) to... - saw this on
 http://www.mail-archive.com/p...@benzedrine.cx/msg07220.html and requires
 BGP to make tags speak anything but network numbers.
 e) use the vlan id's

 I'd much appreciate if someone thinks with me for the best options of using
 the setfib features along with pf.
 Thanks!
 Best regards,
 Dimitar Vassilev

 Hi, could someone confirm which of the features above are working with
setfib? Seeking for the laziest and most efficient ways.
If no answer received, I will try all of them 2-3 weeks later when my gear
arrives.
Thanks.
Best regards,
Dimitar Vassilev
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: issue with extra top level domain appened to mail

2009-01-11 Thread Matthew Davidson [DATACOM]
Yes it does have the feel of a wayward '.' but... get this...

If I rename my box to 'matdav.datacom.com',  email comes thru from
r...@matdav.datacom.com
If I rename my box to 'matdav.datacom.nz',  email comes thru from
r...@matdav.datacom.nz
If I rename my box to 'matdav.datacom.com.au',  email comes thru from
r...@matdav.datacom.com.au
If I rename my box to 'matdav.datacom.govt.nz',  email comes thru from
r...@matdav.datacom.govt.nz
BUT..
If I rename my box to 'matdav.datacom.co.nz',  email comes thru from
r...@matdav.datacom.co.nz.co.nz
If I rename my box to 'matdav.datacom.org.nz',  email comes thru from
r...@matdav.datacom.org.nz.org.nz
If I rename my box to 'matdav.telecom.co.nz',  email comes thru from
r...@matdav.telecom.co.nz.co.nz

I see the same issue with 6.3/6.4.  I've not tested 6.2,  but 6.1 I
don't see this issue.

I'm hoping someone may have the seen the same issue,  or take the time
to build a box and replicate this to confirm it's not just me being a
plonka.

For now I'll just have to rename my 6.3+ boxes to hostname.datacom.com
to work around it.

Matt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gname

2009-01-11 Thread RW
On Sun, 11 Jan 2009 02:49:37 -0500
Grant Peel gp...@thenetnow.com wrote:

 Wow,
 
 After a fresh install of FreeBSD 6.4, (with Xorg) I tried installing
 Gnome, and I get a stop during build, Filesystem Full!
 
 Is Gname really that big? or did I miss doing something?
 
  Doing a du -h -d1 on /usr shows
 
 ...
 7.0G ports.
 1.8G local
 

The problem is that when you install something for the first time you
end up with a lot of cruft in the ports tree because all the work
directories for the dependencies get left-behind.  When you later
update Gnome with portupgrade (or whatever) the tool cleans as it
goes.  If you have portupgrade installed I would run portsclean -CD,
and start again. 

If /usr is on a separate partition, and you have a lot of space
elsewhere then I would suggest you either symlink /usr/ports there or
set WRKDIRPREFIX. Some desktop ports need huge amounts of temporary
space to build - it doesn't make much sense to allocate it  under /usr.

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


Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale

Well isn't that just great.

I'm using the amd64 version, don't know if this makes a difference.

The link says the poster expects it will be fixed before 7.1-RELEASE is 
out.  (Posting date was in late December.)


I just tried the FreeBSD 7.1 bootonly and the configure window at least 
listed the device, which is an improvement over before.  Now if it only 
lists it but the driver doesn't work, then I still will have a 
communication problem where I can't easily get the correct file to the 
machine.


I'll just try installing 7.1 for now and see how it looks.

Thanks for the heads up anyway.

-Will

Roland Smith wrote:

On Sat, Jan 10, 2009 at 08:11:00PM -0500, William Gordon Rutherdale wrote:
  

I have to use paper-sneakernet because
- no network connectivity yet
- tried plugging in a memory stick; it flashed but nothing showed up 
with the 'mount' command


Here are the last two entries from the 'pciconf -lv' command, which look 
relevant to the problem.  I had to write them down on paper and walk 
over to this room to type them.  Please pardon any typos:


no...@pci0:2:0:0: class=0x02 card=0x2abf103c chip=0x816810ec 
rev=0x02 hdr=0x00

vendor  = 'Realtek Semiconductor'
device  = 'RTL 8168/8111 PCI-E Gigabit Ethernet NIC'
class   = network
subclass= ethernet



There seems to have been some breakage of the re(4) and rl(4) drivers in
the 7.1 release cycle. See [http://www.freebsd.org/cgi/query-pr.cgi?pr=130011]

You should try to get the files mentioned in the abovementioned link on
your machine, and rebuild your kernel.

Roland
  


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


Re: Cannot get ethernet off the ground

2009-01-11 Thread Roland Smith
On Sun, Jan 11, 2009 at 06:17:35PM -0500, William Gordon Rutherdale wrote:
 Well isn't that just great.
 
 I'm using the amd64 version, don't know if this makes a difference.

It shouldn't really. AFAIK the code for the network interface drivers is
architecture independant. On amd64 I also had some troubles with re(4)
based cards, but I had an old xl(4) based card lying around, and with
the upgrade to 7.1 the age(4) chip on my mobo also became usable. So I
ditched the re(4) based card.

snip
 I just tried the FreeBSD 7.1 bootonly and the configure window at least 
 listed the device, which is an improvement over before.  Now if it only 
 lists it but the driver doesn't work, then I still will have a 
 communication problem where I can't easily get the correct file to the 
 machine.

The network configuration of sysinstall only shows devices that actually
show up in /dev/net. That means that the driver was at least able to
initialize the hardware. So chances are that it works. As I've mentioned
before I had upload speed troubles with re(4) based cards, but I don't
know if rl(4) based cards have/had the same problems. Copying large
files with nc(1) over a cross-cable link between two machines will
rapidly show you if you can max out the link.

 I'll just try installing 7.1 for now and see how it looks.

That's probably the best solution. It is always best to upgrade to the
latest released version before asking questions about hardware support,
because updating is probably the first advice you'd get.
 
 Thanks for the heads up anyway.

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


pgp6qTsVLIgB0.pgp
Description: PGP signature


Re: PHP setup question

2009-01-11 Thread stan
On Sat, Jan 10, 2009 at 09:22:36AM -0600, Kelly D. Grills wrote:
 On Sat, Jan 03, 2009 at 08:03:32PM -0500, stan wrote:
  
  I am trying to get the ampcache port working on a 7.1 machine.
 
 Just wondering if you've resolved the problems you had with this.

I played witht his a bit more this weekend, and had a friend of mine look
at it. he points out that after you put the config file in place, and you
get the File Not Found error from the web browser that teh URL that it is
pointing at is http://beachcave.net/update.php. This is wrong, if you
manually enter http://beachcave/net/ampache/update.php you get to a pahe
that shows some diagnostices. The first item on that page that _does not_
show OK is Ampache.cfg.php Configured?  [ ERROR ] I am wondiering if I
ahve somethinf set up incorectly here. What should I look for?

BTW, I did install amapche on an Ubuntu system, and get it configured and
working, so my problem must have something to do witht eh configuration on
the FreeBSD system, right?


-- 
One of the main causes of the fall of the roman empire was that, lacking
zero, they had no way to indicate successful termination of their C
programs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale

I'm afraid it's gone from bad to worse.

The 7.1 system may have recognised the ethernet adapter, but it seemed 
to fail writing to the hard drive.


I got this during installation:

  Progress
Extracting GENERIC into /boot directory...

  Message
Write failure on transfer! (wrote -1 bytes of 1425408 bytes)

/mtrt: write failed, filesystem is full.

-

I think I allocated decent size partitions for /, /var, swap, /tmp, 
/usr.  I made multiple attempts.  Kept getting errors.


I may just have to fall back on Ubuntu, just to get something running on 
this machine.


-Will

Roland Smith wrote:

On Sun, Jan 11, 2009 at 06:17:35PM -0500, William Gordon Rutherdale wrote:
  

Well isn't that just great.

I'm using the amd64 version, don't know if this makes a difference.



It shouldn't really. AFAIK the code for the network interface drivers is
architecture independant. On amd64 I also had some troubles with re(4)
based cards, but I had an old xl(4) based card lying around, and with
the upgrade to 7.1 the age(4) chip on my mobo also became usable. So I
ditched the re(4) based card.

snip
  
I just tried the FreeBSD 7.1 bootonly and the configure window at least 
listed the device, which is an improvement over before.  Now if it only 
lists it but the driver doesn't work, then I still will have a 
communication problem where I can't easily get the correct file to the 
machine.



The network configuration of sysinstall only shows devices that actually
show up in /dev/net. That means that the driver was at least able to
initialize the hardware. So chances are that it works. As I've mentioned
before I had upload speed troubles with re(4) based cards, but I don't
know if rl(4) based cards have/had the same problems. Copying large
files with nc(1) over a cross-cable link between two machines will
rapidly show you if you can max out the link.

  

I'll just try installing 7.1 for now and see how it looks.



That's probably the best solution. It is always best to upgrade to the
latest released version before asking questions about hardware support,
because updating is probably the first advice you'd get.
 
  

Thanks for the heads up anyway.



You're welcome. :-)
 
Roland
  


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


bash versus sh test builtin

2009-01-11 Thread Jeffrey Goldberg
The -ne operator for [ in /bin/sh doesn't seem to work as in bash.   
Also the bash behavior here is what matches /bin/[ most closely.



$ /bin/sh
$ if [ $UID -ne 0 ] ; then
 echo not root
 fi
[: -ne: unexpected operator
$ exit
$ echo $SHELL
/usr/local/bin/bash
[jeff...@dobby ~/src/mount-rsnap]$ if [ $UID -ne 0 ] ; then
 echo not root
 fi
not root

Does anyone have a recommendation of how to run this simple test in / 
bin/sh and how to write tests reasonably portably?


-j

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

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


Re: bash versus sh test builtin

2009-01-11 Thread Dan Nelson
In the last episode (Jan 11), Jeffrey Goldberg said:
 The -ne operator for [ in /bin/sh doesn't seem to work as in bash.   
 Also the bash behavior here is what matches /bin/[ most closely.
 
 $ /bin/sh
 $ if [ $UID -ne 0 ] ; then
   echo not root
   fi
 [: -ne: unexpected operator
 $ exit
 $ echo $SHELL
 /usr/local/bin/bash
 [jeff...@dobby ~/src/mount-rsnap]$ if [ $UID -ne 0 ] ; then
   echo not root
   fi
 not root
 
 Does anyone have a recommendation of how to run this simple test in / 
 bin/sh and how to write tests reasonably portably?

UID=$(id -u)
if [ $UID -ne 0 ] ; then
 echo not root
fi

UID is not a variable set by /bin/sh, which is why the test fails.

http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FIXED: vpnc connects, but does not work

2009-01-11 Thread perryh
 I also have this problem, the difference being that mine
 **USED to** work, but now it suddenly stoped working.
 I tried adding the line to my conf file as you did, but
 for me, the problem remains:

 Appears to connect and authenticate successfully to my office's
 VPN concentrator Once (apparently) connected, I can't access any
 resources on the company network (mail / servers, etc), nor can
 I ping anything..,

Including the IP address of your tun0 interface?  (If you can ping
that, but nothing beyond, you have a different problem than I had.)

 Wondering if you can point me to where you found the info on the
 various options I can try to continue debugging this problem,
 please.

That line came from the output of vpnc --long-help.
Other things to look at are the vpnc(8) manpage, the
/usr/local/share/doc/vpnc/README file, and the TODO
file in /usr/ports/security/vpnc/work/vpnc-0.4.0.

There's more detail of what I think is going on in this thread:
http://lists.freebsd.org/pipermail/freebsd-net/2009-January/020638.html
By the time you get it working again, you will probably have learned
more about the workings of vpnc than you really cared to know :)

 The FW guys at the office aren't exactly forthcoming where non-MS
 windows is concerned, you see..,

Not surprising :(  Too many security types act as if obscurity
helped security, not realizing that it inconveniences only their
customers and not their enemies.

Any chance they would be willing to say what config change they made
on their end about the time it stopped working, without reference to
what is running on your end?  Another thing to check is whether your
ISP changed something.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mounting a partition from freebsd 6.2?

2009-01-11 Thread perryh
mojo fms fbsdli...@gmail.com wrote:

 I was working on an upgrade to 6.3 from 6.2 and I lost power
 during the install which hosed most of my system.  Instead of
 trying to really recover it I decided to just rebuild.  I have a
 backup of my /etc and /usr/local/etc on a different drive that
 should be fine, it was just mounted under /mnt normally and used
 for backups.  My problem is that I installed 7.1 and was careful
 not to erase any data on that drive, but my only options for a
 partition to mount is /dev/ad2s1.  When  I try to mount that it
 gives me mount: /dev/ad2s1 : Operation not permitted, what can
 I do to get the data off of it?  I only really care about my /etc
 information  but it would be nice to get all of the information
 off of it.

Supposing ad2s1 is in fact the slice containing the filesystem in
question, and the filesystem was originally made directly on that
slice without partitioning it, it should be possible to run dump(8)
against it and pipe the output to restore(8).  This should work if
the slice is readable, even if it cannot be mounted.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to grow partition size on RAID volume?

2009-01-11 Thread Darren David

Hi all-

I need some help figuring out how to expand the existing partition on my 
RAID volume to take advantage of a new disk I just added -- without 
newfs'ing the volume and starting from scratch.


I added a 4th 750GB disk to my existing 1.5TB 3ware RAID5 volume, in an 
attempt to bring my total capacity up to ~2.25TB (4x750GB RAID5). I 
successfully used the 3ware 'tw-cli' utility to perform Online Capacity 
Expansion. The controller migrated the existing data across all 4 
disks, and it now reports a total volume capacity of 2095.44GB.


Now, I'm not quite sure how to get FreeBSD to recognize the extra space. 
I know that in order to use growfs, I first have to use disklabel to 
increase the partition size. However, disklabel doesn't like this big 
RAID volume:


  # disklabel /dev/da0
  disklabel: disks with more than 2^32-1 sectors are not supported

and the existing partition doesn't seem to have a label:

  # disklabel /dev/da0s1
  disklabel: /dev/da0s1: no valid label found

I'm unsure how to proceed here. CAn anyone shed some light as to how I 
might proceed?


Thanks in advance for any and all help,
Darren David


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


Re: bash versus sh test builtin

2009-01-11 Thread Jeffrey Goldberg

On Jan 11, 2009, at 9:07 PM, Dan Nelson wrote:


UID=$(id -u)
if [ $UID -ne 0 ] ; then
echo not root
fi

UID is not a variable set by /bin/sh, which is why the test fails.


Ah.  Thank you.  I was, as you see, barking up the wrong tree.  Thank  
you for setting me strait on this.


Cheers,

-j

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


Re: bash versus sh test builtin

2009-01-11 Thread George Davidovich
On Sun, Jan 11, 2009 at 08:08:18PM -0600, Jeffrey Goldberg wrote:
 The -ne operator for [ in /bin/sh doesn't seem to work as in bash.   
 Also the bash behavior here is what matches /bin/[ most closely.
 
 $ /bin/sh
 $ if [ $UID -ne 0 ] ; then
   echo not root
   fi
 [: -ne: unexpected operator
 $ exit
 $ echo $SHELL
 /usr/local/bin/bash
 [jeff...@dobby ~/src/mount-rsnap]$ if [ $UID -ne 0 ] ; then
   echo not root
   fi
 not root
 
 Does anyone have a recommendation of how to run this simple test in / 
 bin/sh 

if [ $(id -u) -ne 0 ]; then ...

As to why your test isn't working as expected, rewrite your script to
read:

#!/bin/sh
echo $UID

and you'll discover that UID is a bash environmental variable.

 and how to write tests reasonably portably?

That's a different question, and merits a much longer discussion
probably better had elsewhere.  I'd suggest comp.unix.shell.

-- 
George
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


In Brief: idea summary

2009-01-11 Thread Gary Kline

hEy guys,

Here's my idea,

And since I'm publishing on the most open of the open-source
list, it'll be hard for anybody to ``steal'', assuming it is
_worth_ stealing.

People seem to be reading less; fact.  Listening more.  I'm
sure there are a slew onlist who still plop down before the
TV after a long day of coding, and so forth.  My idea isn't
intended for this group.  It is for those of us who do read
news of the web, sci-tech journals, and even forums.  

Of course, if you use konq or have firefox set up to read
whatever you mouse-swipe, you can listen to the TTS reader
while you sort your paper, or other miscellany.  If you miss
something--at least with festival, you can always back up and
re-listen.

There are at least two problems with this model as it stands.
The first is  _if_ the story/article is continued on pages
2,3,4, and 5.  Also, when you swipe the text to be read and
there is an IMG=foo.jpghttp://bar.com with a series of 
vertical-bar, vertical-bar.  Or more annoying things read.

When things get too far off-story, I kill the reader, stop
and focus on the page, blow it up so it is easy to read, then
read it.

It cost major bux to have a professional reader record
articles and be stored online.  What I have in mind would let
the tts software read the story, no | or .  

Shouldn't be that difficult for online site to implement.
Am I on to something??

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
First update of http://transfinite.thought.org/ab/ in seven months.

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


Re: FIXED: vpnc connects, but does not work

2009-01-11 Thread Stacey Roberts
Hi perryh!
   Thanks for the reply..,


On Sun, 11 Jan 2009, per...@pluto.rain.com wrote:

  I also have this problem, the difference being that mine
  **USED to** work, but now it suddenly stoped working.
  I tried adding the line to my conf file as you did, but
  for me, the problem remains:
 
  Appears to connect and authenticate successfully to my office's
  VPN concentrator Once (apparently) connected, I can't access any
  resources on the company network (mail / servers, etc), nor can
  I ping anything..,
 
 Including the IP address of your tun0 interface?  (If you can ping
 that, but nothing beyond, you have a different problem than I had.)
 

Nope - same as yours.., 

  Wondering if you can point me to where you found the info on the
  various options I can try to continue debugging this problem,
  please.
 
 That line came from the output of vpnc --long-help.
 Other things to look at are the vpnc(8) manpage, the
 /usr/local/share/doc/vpnc/README file, and the TODO
 file in /usr/ports/security/vpnc/work/vpnc-0.4.0.
 
 There's more detail of what I think is going on in this thread:
 http://lists.freebsd.org/pipermail/freebsd-net/2009-January/020638.html
 By the time you get it working again, you will probably have learned
 more about the workings of vpnc than you really cared to know :)
 
  The FW guys at the office aren't exactly forthcoming where non-MS
  windows is concerned, you see..,
 


This is great - I had a peek, so will pour over these and see how I get on with 
further
debugging.., Its not TOO bad on my side, as I do have a Linux OS that I have 
access to that
strangely does use vpnc successfully.

Will press on with the pointers you've provided here. Thanks for the help!

Regards,

S Roberts


 Not surprising :(  Too many security types act as if obscurity
 helped security, not realizing that it inconveniences only their
 customers and not their enemies.
 
 Any chance they would be willing to say what config change they made
 on their end about the time it stopped working, without reference to
 what is running on your end?  Another thing to check is whether your
 ISP changed something.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org