The FreeBSD Diary: 2006-11-26 - 2006-12-16

2006-12-17 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: var out of space

2006-12-17 Thread Anders Gulden Olstad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bradley Giesbrecht wrote:
 Hello,
 
 
 I inherited a freebsd installation with a var slice/mount that is to
 small and filling up all the time.
 
 What type of info should I provide to allow someone to help me with a
 solution?
 
 I would very much prefer to not install another drive just for /var.
 
 /usr has plenty of space. Can I mount var off of /usr?

Given that I don't know what version of FreeBSD you're running, I would
first try to move and symlink /var into /usr

Got to single user mode first. Then copy /var with cpio

# find /var -print | cpio -pvdmu /usr

Remove the old /var and make a symlink to /usr/var

# rm -rf /var
# ln -s /usr/var var

Reboot to normal operations.

Second - if all seems like to work well - I would perhaps prefer to
expand the g partition into the old e partition and do a growfs on /usr
to make use of the extra space left over from old /var, IF these two
partitions are close neighbours on the disk.

As I understand it's only possible to growfs within a partition, so we
need to merge the old e partition with the existing g.

Go to single user mode again

# bsdlabel -e /dev/ad0s1

Add the size of the g partition to the f partition in the editor. Delete
the g partition line and save.

Run a growfs on the new g

# growfs /dev/ad0s1g

Reboot. You will probably run into some fsck problems, but that will
hopefully be a one timer.

I have only done the last approach one time myself on a 6.2-RC1 install
- - so any second opinions from some more seasoned users would be grateful.

Don't forget to study the man pages for bsdlabel and growfs - and do
your backups. But it would give you a general idea of how your problems
may be solved.

/Anders
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Grunbacher Altweizen Dunkel
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhP1UMVyOPWVstbURAgYRAKCikpLatgEUq5L1bDOccUOf21wrfACfT/YJ
gu41y+tiHOnNyn4yJk2/9pc=
=alP4
-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: var out of space

2006-12-17 Thread Anders Gulden Olstad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anders Gulden Olstad wrote:

 Add the size of the g partition to the f partition in the editor. Delete
 ^^^^^^
 the g partition line and save.

I mean of course partition 'e' and 'g'!

Sorry!

/Anders
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Grunbacher Altweizen Dunkel
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhP6TMVyOPWVstbURAhzvAJ47AkzDjvgbCvdnRAA2OtFFsYhycgCg+PJX
Cu1AvBtZJxonzKBQL912rNA=
=Q/YR
-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: var out of space

2006-12-17 Thread Anders Gulden Olstad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Add the size of the g partition to the f partition in the editor. Delete
 ^^^^^^
 the g partition line and save.
 ^^^

I mean of course partition 'e' and 'g'!

Sorry!

/Anders

dev/ad0s1a128990  119970-1298   101%/
/dev/ad0s1f257998  1852465211478%/tmp
/dev/ad0s1g 112755734 4533434 99201842 4%/usr
/dev/ad0s1e257998  2069563040487%/var
procfs  4   40   100%/proc



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Grunbacher Altweizen Dunkel
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhQIUMVyOPWVstbURApa4AKCzXGTSvab8ctegIpT7QHUIbLcvcwCgvQ02
T3UghfNK4xNLNIP2fPqCgHI=
=xs1t
-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: Unicode support on FreeBSD

2006-12-17 Thread a
CONSOLE

As we know, the console drivers atkbd and sc do not support unicode
(in contrast to linux console drivers, for example).
So we have to use programs able to translate unicode to a single byte
code table. I use my PC successfully in such a manner.

X

You should set LC_CTYPE to ru_RU.UTF-8 (for russian) before running
X programs, and you should have correct unicode support.
I have the next line in .xinitrc:
env LC_CTYPE=ru_RU.UTF-8 twm
And I have no problem with X programs for years.

Elisej Babenko


On Sat, Dec 16, 2006 at 10:10:08PM -0200, Henry Lenzi wrote:
 On 12/16/06, ?$BJ8D; [EMAIL PROTECTED] wrote:
It's worth noting that while this solution may work, it's an
  add-on.
The question of Unicode is complex; you should check for
  relevant threads in the questions@ and i18n@ archives.
 I am using FreeBSD 6.1. with locale set to ja_JP.UTF-8
 
 I'm sorry, I'm not following this discussion. To get Unicode support,
 I should set my system to ja_JP.UTF8?!
 My problem is cyrillic fonts; any help is aprreciated.
 
 Henry
 
 PS: Oh, and don't write back to me in Russian, please. I'm not there yet :-))
 ___
 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: var out of space

2006-12-17 Thread Anders Gulden Olstad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anders Gulden Olstad wrote:

 Given that I don't know what version of FreeBSD you're running, I would
 first try to move and symlink /var into /usr
 
 Got to single user mode first. Then copy /var with cpio
 
 # find /var -print | cpio -pvdmu /usr
 
 Remove the old /var and make a symlink to /usr/var
 
 # rm -rf /var
 # ln -s /usr/var var

I forgot: Edit your /etc/fstab and comment out the /var line

 Reboot to normal operations.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Grunbacher Altweizen Dunkel
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhRJkMVyOPWVstbURAoOlAKC86TOaYYl6fpbMW41/3bvM7Yc/LACglfih
fF3dS+0oNwW2DtdWp7Oe/Wc=
=usf8
-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: i finally got wireless working

2006-12-17 Thread Nick Withers
On Sun, 17 Dec 2006 01:07:05 -0600
Jonathan Horne [EMAIL PROTECTED] wrote:

 On Sunday 17 December 2006 00:40, Bill-Schoolcraft wrote:
  Good work Jonathan,
 
  As usual with fellow FreeBSD users, any information about how you
  got past your problem is stuff Unix folks like me love to hear.
  I actually save success stories like yours to help me out with
  wireless issues.
 
  I can only speak for myself but I'd love to hear how ya did it.
 
 thanks!  i was quite proud of my efforts myself!  its a pretty good
 feeling to complete a project in an area where i have  little
 expertise (especially when (good) internet docs are few and far
 between).  after all the docs i read, and bad advice i followed,
 bad decisions i made, it all boiled down to a pretty simple recipe:

(snip)

 one big mistake i made, was building world up to 6.2-RC1.  there
 was one good article about installing freebsd on an ibm t42 (found
 it on google), but it didnt have any info on getting wireless to
 auto start.  after i had wireless manually up and running
 initially, i then built world, and updated.  next boot, firmware
 and modules would not load.  i had tweaked some other things, so i
 backed those changes off, and worked round and round until i
 decided to just do a quick reinstall.  this time, i didnt use
 6.1-RELEASE, but i did 6.2-RC1.  same behavior, and this is when i
 figured out that the only time it really worked like the web page
 depicted, was when i was on 6.1-RELEASE.  so i tried cvsuping to
 -p11, and things still worked fine.  this is the only laptop i have
 (thus, my only wireless computer), so when 6.2 comes out, ill be
 pretty nervous about upgrading until i read that everything i
 kosher with iwi- support.

It works fine.

Please see the UPDATING entry from the 2006-07-11, i.e.:


20060711:
The iwi(4) was updated to use the firmware(9) framework.  In order
for it to work you need a port change from net/iwi-firmware to
net/iwi-firmware-kmod.


 cheers,
 jonathan
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [kde-freebsd] gamin/fam issues with KDE

2006-12-17 Thread Bastiaan Welmers
On Fri, Dec 15, 2006 at 12:35:05PM +0100, dick hoogendijk wrote:
 On 14 Dec Bastiaan Welmers wrote:

  One nasty thing is that when afterwards installing a package
  requiring
  gamin, it will fail with errors. To prevent this you could just
  fake
  the pkg db that gamin is installed however actually fam libraries
  are
  installed.

 And how exactly is this faking done? I'm no fan of gamin too and if

Just replace the gamin libraries by the fam ones, for example by
manually
extracting the libraries from the tarball and place them in
/usr/local/lib without actually updating the package database.
It should work fine with KDE, openoffice, I don't know it works well
with programs like courier...

 possible I compiled my programs for fam. But this sounds nice ;-)

If you want to recompile all stuff just put WITH_FAM_SYSTEM=fam in
/etc/make.conf and rebuild all packages using gamin. You have to rebuild
all ports because fam and gamin can't be installed together.

/Bastiaan

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


Re: xorg on a headless, mouseless, keyboardless box

2006-12-17 Thread Matthew Seaman
Lane wrote:

 I can, in fact, run a gui root process on the remote machine, now.
 
 Unfortunately I still can't run qemu so that I can get the console.  I get:
 
 X Error of failed request:  BadWindow (invalid Window parameter)
   Major opcode of failed request:  25 (X_SendEvent)
   Resource id in failed request:  0x3e
   Serial number of failed request:  18
   Current serial number in output stream:  21
 
 
 Any advice on how to setup the remote (headless, mouseless, and keyboardless) 
 server to run X?  My brain is fried trying to track down a HOWTO, and the 
 wiki is just a half millimeter left of useless.

The quickest and easiest method would be to run this on your desktop
*before* SSH'ing to the other machine:

xhost +LOCAL:

That means that any user on the same machine (technically, any user
accessing your display via the local domain socket /tmp/.X11-unix/X0)
can pop up windows on your X display.  Because of the way SSH X-
forwarding works, all the processes on your remote machine appear to
the local X server as if they were running on your local desktop, so
that command will work for them too.

Obviously this has security implications on machines where you do not
trust all of the users -- for instance it would be fairly trivial for
anyone else with access to either of those machines to be able to capture
all of your keyboard input including any passwords you needed to type.
You need to be able to trust implicitly both your local desktop and the
remote server you're logging into.

You can have more fine-grained control by using xauth to copy the access
tokens for your display into the .Xauthority file in another users' home
directory:

   xauth nextract - $DISPLAY | su - otheruser -c xauth nmerge -

You should only need to do that one time per $DISPLAY, but if you're
doing X forwarding over SSH, you may need to do that at least once
for each desktop machine you log in from, even if you get the same
$DISPLAY setting each time.  ssh, when doing X forwarding, does pretty
much that internally to forward your credentials so commands on the
remote machine can display on the desktop in front of you.

Note: $DISPLAY is set automatically for you when you enable X forwarding
and SSH in.  You may need to quietly eliminate misguided attempts to set
$DISPLAY in the shell startup scripts of otheruser --- it should inherit
the value from your environment if you become that user by su(1) or sudo(1).

See xauth(1) for more information about what you can do with it -- quite
a lot more really.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


What decision junction leads to SELECT DEFAULT DESKTOP in 6.1 install?

2006-12-17 Thread Hugh Cook

freebsd-questions@freebsd.org
2006 December 17 Sunday

What decision junction leads to SELECT DEFAULT DESKTOP in 6.1 install?

I cannot find what decision junction leads to the SELECT DEFAULT DESKTOP
screen as featured in the installation documents and portrayed in

Figure 2-51. Select Default Desktop

I have installed from scratch three times looking for this but have failed
to find it. Naturally, my subsequent efforts with

% echo exec startkde  ~/.xinitrc

followed by

startx

have lead to failure.

I appreciate that from your point of view this probably comes under the
heaing of one more for the idiots of the year list, but I have racked my
brains over this one and have come to a total dead end.

I have done a basic installation okay, and can log in and can see a
three-pane display which I presume to be the default tmw desktop.

I can su okay and can shutdown okay with shutdown -h now.

So I figure my equipment is compatible and that my basic understanding of
the installation fundamentals is correct.

If you could favor me by pointing me in the direction of the decision
junction which I am failing to spot, then I would be very grateful.

Sincerely
Hugh Cook

[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: Local DNS Caching not caching on external interface

2006-12-17 Thread Tek Bahadur Limbu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 15 Dec 2006 08:25:41 -0500
Chad Gross [EMAIL PROTECTED] wrote:

 On 12/15/06, Tek Bahadur Limbu [EMAIL PROTECTED] wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  On Thu, 14 Dec 2006 08:34:11 -0500
  Chad Gross [EMAIL PROTECTED] wrote:
 
   On 12/14/06, Tek Bahadur Limbu [EMAIL PROTECTED] wrote:
   
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
   
On Thu, 14 Dec 2006 01:08:11 -0800
Christopher Cowart [EMAIL PROTECTED] wrote:
   
 On 14:57 Thu 14 Dec , Tek Bahadur Limbu wrote:
  Dear All,
 
  I am very new to Bind and FreeBSD.
 
  I have just configured a Local DNS server using the built-in
  Bind 9.3.1 on a FreeBSD 5.4 machine.
 
  My problem is that the machine can cache queries on the
  localhost and loop back (127.0.0.1) interface only.
 
  I have a public static IP on this machine too and I can't
  seem to query the caching name server from my local network.
 
  In Linux, this is no problem. I just can't seem to get Bind
  to work as in my local network. It works only on the
  loopback interface.

 The default /etc/namedb/named.conf configuration file for BIND
 says:

 | // If named is being used only as a local resolver, this is
 | a safe default. // For named to be accessible to the
 | network, comment this option, specify // the proper IP
 | address, or delete this option. listen-on   { 127.0.0.1; };

 It looks like if you comment out that option, it will listen
 on * by default. You could also add the other IP address on
 which you want named to listen.

 --
 Chris Cowart
 Network and Infrastructure Systems Administrator
 RSSP-IT, UC Berkeley
 May all your pushes be popped

   
Dear Chris,
   
Thank you for your help. I did comment and added my public
static IP like the following:
   
   
listen-on   { 202.x.x.x; }; # My Static IP
   
Now when I do from my local PC:
   
dig yahoo.com @202.x.x.x , I can do DNS lookups.
   
But when I try doing that from another computer on my network, I
can't do any DNS lookups.
   
   
Is that anything that I miss?
   
   
- --
   
   
With best regards and good wishes,
   
Yours sincerely,
   
Tek Bahadur Limbu
   
(TAG/TDG Group)
Jwl Systems Department
   
Worldlink Communications Pvt. Ltd.
   
Jawalakhel, Nepal
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)
   
iD8DBQFFgT8ZVrOl+eVhOvYRAn8OAJwOOC6+C8mnY+YBP+1GxG2uDTfWpgCfTFr1
168ArGMkI0+9Qj/MpzFbmUo=
=p9RV
-END PGP SIGNATURE-
___
  
  
  
   You have to tell the other machines on your network to use the IP
   of the local DNS server for domain name resolution. If you are
   using DHCP you can configure your DHCP server to give this
   information with the IP. Otherwise you must manually do it, which
   will be different between operating systems.
  
   HINT: In FreeBSD add the IP of the DNS server to /etc/resolve.conf
  
   Chad
  
 
 
  Dear Chad,
 
  I just get the following logs while troubleshooting with tcpdump.
 
  local nameserver IP: 202.102.5.100
  network PC IP: 202.102.5.50
 
  When I do a nslookup of yahoo and google from network PC using the
  local caching nameserver, I only get this on the caching nameserver.
 
  13:23:58.707604 IP 202.102.5.50.44778  202.102.5.100.53:  56955+ A?
  google.com. (28)
  13:23:32.899379 IP 202.102.5.50.40229  202.102.5.100.53:  47636+ A?
  yahoo.com. (27)
 
 
  Note: Please note that the above Static IPs are just arbitrary
  values.
 
  Can you please shed some light on this issue?
 
  - --
 
 
  With best regards and good wishes,
 
  Yours sincerely,
 
  Tek Bahadur Limbu
 
  (TAG/TDG Group)
  Jwl Systems Department
 
  Worldlink Communications Pvt. Ltd.
 
  Jawalakhel, Nepal
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.2.2 (FreeBSD)
 
  iD8DBQFFglUsVrOl+eVhOvYRAsmMAJ9sb0fGdKiPp89CszMg5dXkvteojQCfdk0e
  fW0ofW8HJYq4RZXuROX7zPw=
  =5Ieg
  -END PGP SIGNATURE-
 
 
 Tek,
 
 Can you please post your Bind configuration files?
 
 Have you done a tcpdump or wireshark capture on both machines while
 issuing the resolution request? Could you please do that as well and
 post the results?
 
 Chad
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 

Hi Chad,

I have pasted my named.conf file below:


options {
directory   /etc/namedb;
pid-file/var/run/named/pid;
dump-file   /var/dump/named_dump.db;
statistics-file /var/stats/named.stats;

// If named is being used only as a local resolver, this is a safe
default. // For named to be accessible to the network, comment 

ruby-gnomecanvas2

2006-12-17 Thread eoghan

Hi
Im getting the following error when trying to install ruby- 
gnomecanvas2...


===  Vulnerability check disabled, database not found
===  Extracting for ruby18-gnomecanvas2-0.15.0.20061130
= MD5 Checksum mismatch for ruby/ruby-gnome2-all-0.15.0.tar.gz.
= SHA256 Checksum mismatch for ruby/ruby-gnome2-all-0.15.0.tar.gz.
===  Refetch for 1 more times files: ruby/ruby-gnome2- 
all-0.15.0.tar.gz ruby/ruby-gnome2-all-0.15.0.tar.gz

===  Vulnerability check disabled, database not found
= ruby-gnome2-all-0.15.0.tar.gz doesn't seem to exist in /usr/ports/ 
distfiles/ruby.

= Attempting to fetch from http://mbsd.msk.ru/dist/.
fetch: ruby-gnome2-all-0.15.0.tar.gz: local modification time does  
not match remote
= Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/ 
distfiles/ruby/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ruby/ruby- 
gnome2-all-0.15.0.tar.gz: size mismatch: expected 1317766, actual  
1273856

= Couldn't fetch it - please try to retrieve this
= port manually into /usr/ports/distfiles/ruby and try again.
*** Error code 1

Stop in /usr/ports/graphics/ruby-gnomecanvas2.
*** Error code 1

Stop in /usr/ports/graphics/ruby-gnomecanvas2.
*** Error code 1

Stop in /usr/ports/graphics/ruby-gnomecanvas2.

Is there somewhere i can fetch this from?
Thanks
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portupgrade -a skips packages: WHY?

2006-12-17 Thread Karl Sinn
Hi,

I just did portupgrade -a and at the end I see a list with 79 skipped ports.

Why did he skip them, and how can I update them?

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


How can I install libopensync version 0.20?

2006-12-17 Thread Karl Sinn
Hi,

in the ports collection I can only find the 0.17 version of libopensync.

How can I install the 0.20?

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


amule in different languages?

2006-12-17 Thread Karl Sinn
Hi,

I compiled amule2 from the port collection but there is no choice for the 
languages. How do I add the other languages?

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


Re: xorg on a headless, mouseless, keyboardless box

2006-12-17 Thread Lane
On Sunday 17 December 2006 04:52, Matthew Seaman wrote:
 Lane wrote:
  I can, in fact, run a gui root process on the remote machine, now.
 
  Unfortunately I still can't run qemu so that I can get the console.  I
  get:
 
  X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  25 (X_SendEvent)
Resource id in failed request:  0x3e
Serial number of failed request:  18
Current serial number in output stream:  21
 
 
  Any advice on how to setup the remote (headless, mouseless, and
  keyboardless) server to run X?  My brain is fried trying to track down a
  HOWTO, and the wiki is just a half millimeter left of useless.

 The quickest and easiest method would be to run this on your desktop
 *before* SSH'ing to the other machine:

 xhost +LOCAL:

 That means that any user on the same machine (technically, any user
 accessing your display via the local domain socket /tmp/.X11-unix/X0)
 can pop up windows on your X display.  Because of the way SSH X-
 forwarding works, all the processes on your remote machine appear to
 the local X server as if they were running on your local desktop, so
 that command will work for them too.

 Obviously this has security implications on machines where you do not
 trust all of the users -- for instance it would be fairly trivial for
 anyone else with access to either of those machines to be able to capture
 all of your keyboard input including any passwords you needed to type.
 You need to be able to trust implicitly both your local desktop and the
 remote server you're logging into.

 You can have more fine-grained control by using xauth to copy the access
 tokens for your display into the .Xauthority file in another users' home
 directory:

xauth nextract - $DISPLAY | su - otheruser -c xauth nmerge -

 You should only need to do that one time per $DISPLAY, but if you're
 doing X forwarding over SSH, you may need to do that at least once
 for each desktop machine you log in from, even if you get the same
 $DISPLAY setting each time.  ssh, when doing X forwarding, does pretty
 much that internally to forward your credentials so commands on the
 remote machine can display on the desktop in front of you.

 Note: $DISPLAY is set automatically for you when you enable X forwarding
 and SSH in.  You may need to quietly eliminate misguided attempts to set
 $DISPLAY in the shell startup scripts of otheruser --- it should inherit
 the value from your environment if you become that user by su(1) or
 sudo(1).

 See xauth(1) for more information about what you can do with it -- quite
 a lot more really.

   Cheers,

   Matthew
Matthew,

Thanks for the details on $DISPLAY and all of the other information.

This certainly opens up a number of possibilities in remote system use and/or 
management.

Unfortunately it does not provide me the ability to get the console from 
qemu ... which is very odd, I think.

There was one instant yesterday after Chris recommended the use of

su -m

when my konsole was presented with an ASCII representation of the 
Windows loading screen.  But I cannot seem to repeat the event.  Each 
attempt fails with:

X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  25 (X_SendEvent)
 Resource id in failed request:  0x3e
 Serial number of failed request:  18
 Current serial number in output stream:  21

Thanks for all the input - But I think I'm just gonna bite the bullet and copy 
the img file, do the repair, and copy it back out.

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


Re: portupgrade -a skips packages: WHY?

2006-12-17 Thread Beech Rintoul
On Sunday 17 December 2006 04:57, Karl Sinn wrote:
 Hi,

 I just did portupgrade -a and at the end I see a list with 79 skipped
 ports.

 Why did he skip them, and how can I update them?

Skipped means they were up to date and didn't need updating. You can force an 
update by using the f flag. Read man portupgrade for more.

Beech
-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpkK22bmAbRH.pgp
Description: PGP signature


firefox 2 and kpdf ?

2006-12-17 Thread Beni
Hi,

I'm having a problem with Firefox 2 and opening pdf files with kpdf. 

When clicking on a pdf doc in firefox, the window to Open with or Save 
pops up. But when I want to select Open with..., there is no way to select 
kpdf because i can't get into the proper directory (/usr/local/bin/kpdf) : it 
is not visible so i can't get in it. All i can do is save the file, start up 
kpdf manually and open the file.

And in firefox, Edit - Preferences - Content
Click the Manage button below where it says Configure how Firefox handles 
certain types of files. But the window is completely empty and there is no 
way to change or insert something.

So how do i get firefox to find kpdf and open directly a pdf-file in firefox ?

Thanks for any help,

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


Re: firefox 2 and kpdf ? [solved]

2006-12-17 Thread Beni
On Sunday 17 December 2006 15:41, Beni wrote:
 Hi,

 I'm having a problem with Firefox 2 and opening pdf files with kpdf.

 When clicking on a pdf doc in firefox, the window to Open with or Save
 pops up. But when I want to select Open with..., there is no way to select
 kpdf because i can't get into the proper directory (/usr/local/bin/kpdf) :
 it is not visible so i can't get in it. All i can do is save the file,
 start up kpdf manually and open the file.

 And in firefox, Edit - Preferences - Content
 Click the Manage button below where it says Configure how Firefox handles
 certain types of files. But the window is completely empty and there is no
 way to change or insert something.

 So how do i get firefox to find kpdf and open directly a pdf-file in
 firefox ?

 Thanks for any help,

 Beni.

Ok, it is solved. I didn't have a mailcap file yet so i copied the mailcap 
file from /usr/ports/mail/mulberry/files to /etc and modified 
the application/pdf; acroread %s to application/pdf; kpdf %s, restarted 
firefox and now when i click on a pdf file, the Open with-dialog states 
directly kpdf (default).

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


Re: i finally got wireless working

2006-12-17 Thread Jonathan Horne
On Sunday 17 December 2006 03:53, Nick Withers wrote:
 On Sun, 17 Dec 2006 01:07:05 -0600

 Jonathan Horne [EMAIL PROTECTED] wrote:
 (snip)

  one big mistake i made, was building world up to 6.2-RC1.  there
  was one good article about installing freebsd on an ibm t42 (found
  it on google), but it didnt have any info on getting wireless to
  auto start.  after i had wireless manually up and running
  initially, i then built world, and updated.  next boot, firmware
  and modules would not load.  i had tweaked some other things, so i
  backed those changes off, and worked round and round until i
  decided to just do a quick reinstall.  this time, i didnt use
  6.1-RELEASE, but i did 6.2-RC1.  same behavior, and this is when i
  figured out that the only time it really worked like the web page
  depicted, was when i was on 6.1-RELEASE.  so i tried cvsuping to
  -p11, and things still worked fine.  this is the only laptop i have
  (thus, my only wireless computer), so when 6.2 comes out, ill be
  pretty nervous about upgrading until i read that everything i
  kosher with iwi- support.

 It works fine.

 Please see the UPDATING entry from the 2006-07-11, i.e.:
 

 20060711:
 The iwi(4) was updated to use the firmware(9) framework.  In order
 for it to work you need a port change from net/iwi-firmware to
 net/iwi-firmware-kmod.
 

ah, thanks nick, i didnt remember to check that.  i wonder how safe it would 
be to switch the port out before i make the change to 6.2?  maybe ill play 
with that later today.

also, is there a gui app to help manage wireless networks?

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


Re: i finally got wireless working

2006-12-17 Thread Tsu-Fan Cheng

hi...
 I would like to ask a wireless problem but has little to do with the
article here...
i want to setup my desktop to use wireless, but there doesn't seem to have a
lot of wireless PCI card supported available, and the supported ones are
quite expensive... I wonder if there is a more updated hardware list about
the supported PCI card?? thank you!!

TFC

On 12/17/06, Jonathan Horne [EMAIL PROTECTED] wrote:


On Sunday 17 December 2006 03:53, Nick Withers wrote:
 On Sun, 17 Dec 2006 01:07:05 -0600

 Jonathan Horne [EMAIL PROTECTED] wrote:
 (snip)

  one big mistake i made, was building world up to 6.2-RC1.  there
  was one good article about installing freebsd on an ibm t42 (found
  it on google), but it didnt have any info on getting wireless to
  auto start.  after i had wireless manually up and running
  initially, i then built world, and updated.  next boot, firmware
  and modules would not load.  i had tweaked some other things, so i
  backed those changes off, and worked round and round until i
  decided to just do a quick reinstall.  this time, i didnt use
  6.1-RELEASE, but i did 6.2-RC1.  same behavior, and this is when i
  figured out that the only time it really worked like the web page
  depicted, was when i was on 6.1-RELEASE.  so i tried cvsuping to
  -p11, and things still worked fine.  this is the only laptop i have
  (thus, my only wireless computer), so when 6.2 comes out, ill be
  pretty nervous about upgrading until i read that everything i
  kosher with iwi- support.

 It works fine.

 Please see the UPDATING entry from the 2006-07-11, i.e.:
 

 20060711:
 The iwi(4) was updated to use the firmware(9) framework.  In
order
 for it to work you need a port change from net/iwi-firmware to
 net/iwi-firmware-kmod.
 

ah, thanks nick, i didnt remember to check that.  i wonder how safe it
would
be to switch the port out before i make the change to 6.2?  maybe ill play
with that later today.

also, is there a gui app to help manage wireless networks?

cheers,
jonathan
___
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: upgrade of portupgrade fails

2006-12-17 Thread Michael P. Soulier
On 16/12/06 Michael P. Soulier said:

 Stop in /usr/ports/lang/ruby18.
 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade12405.0
 make PORT_UPGRADE=yes reinstall
 egrep: /var/db/pkg/ruby-1.8.4_9,1/+CONTENTS: No such file or directory
 ---  Restoring the old version
 
 Any ideas why?

So, the logs tell me why.

 swap_pager_getswapspace(9): failed
 swap_pager_getswapspace(9): failed
 swap_pager_getswapspace(2): failed
 swap_pager_getswapspace(3): failed
 swap_pager_getswapspace(2): failed
 swap_pager_getswapspace(2): failed
 pid 24321 (ruby18), uid 0, was killed: out of swap space

I guess ruby used too much memory for my system.

Mike
-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpxEO55HHPWE.pgp
Description: PGP signature


Issues updating Audacious.

2006-12-17 Thread Greg Groth
I'm attempting to update Audacious without much luck.  Last time I ran 
into this issue, I simply had to do a make deinstall / make install, and 
it worked fine.  This time, I'm unable to deinstall the old version. 
When running make deinstall from the ports directory I get:


===  Deinstalling for multimedia/audacious
===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping

Any ideas on how I can deinstall this port?  I checked 
/usr/ports/UPDATING, but didn't seem to find anything (unless I made a 
typo in my text search).


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: Issues updating Audacious.

2006-12-17 Thread Beech Rintoul
On Sunday 17 December 2006 07:31, Greg Groth wrote:
 I'm attempting to update Audacious without much luck.  Last time I ran
 into this issue, I simply had to do a make deinstall / make install, and
 it worked fine.  This time, I'm unable to deinstall the old version.
 When running make deinstall from the ports directory I get:

 ===  Deinstalling for multimedia/audacious
 ===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping

 Any ideas on how I can deinstall this port?  I checked
 /usr/ports/UPDATING, but didn't seem to find anything (unless I made a
 typo in my text search).

Portupgrade or portmaster are your friends.

Beech

-- 
---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpdeoBv8UAcN.pgp
Description: PGP signature


GEOM Gate: sparc64/i386 compatibility issues?

2006-12-17 Thread Andrea Montemaggio

Hi there,
I've two machines with a 6.1-RELEASE installed on: one is a sparc64 and 
the another is an i386 machine

with a little (and I think not relevant) kernel configuration differences.
If I run ggated on the i386 and I try to connect through ggatec from the 
sparc, ggated exits telling me
it has created ggate0 device but the device does not exist in /dev con 
the sparc machine; moreover,
when I run ggatec list (or ggatel list) the machine freezes (not an hard 
freeze, but there is inability to do anything).

Conversely, if I try to export from the sparc and connect from the i386,
i get this error from 'ggatec -v':
- error: ggatec: ioctl(/dev/ggctl): Invalid argument.
From another i386 machine running a 6.1-RELEAS too, everything is ok.
All this seems to be a little strange.. Has anybody any ideas?
Thanks a lot,
Andrea Montemaggio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: amule in different languages?

2006-12-17 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karl Sinn wrote:
 Hi,
 
 I compiled amule2 from the port collection but there is no choice for the 
 languages. How do I add the other languages?
 
 Thanks
 Karl

If there aren't localized versions in your particular language (see
/usr/ports/[language]), you should possibly contact the maintainer about
adding the language.

In general though, I don't think that there's really an easy way for
installing multi-language binaries in FreeBSD at this time though, but I
could be wrong..

- -Garrett

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhXrrEnKyINQw/HARApq1AJ9VbGHl8LJw/uVJE9h0+1s5gwvv7wCgp40o
AvOp08JlhBmB3kHe7AOBMeA=
=yy0o
-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: Issues updating Audacious.

2006-12-17 Thread José G . Juanino
El domingo 17 de diciembre a las 17:47:13 CET, Beech Rintoul escribió:
 On Sunday 17 December 2006 07:31, Greg Groth wrote:
  I'm attempting to update Audacious without much luck.  Last time I ran
  into this issue, I simply had to do a make deinstall / make install, and
  it worked fine.  This time, I'm unable to deinstall the old version.
  When running make deinstall from the ports directory I get:
 
  ===  Deinstalling for multimedia/audacious
  ===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping
 
  Any ideas on how I can deinstall this port?  I checked
  /usr/ports/UPDATING, but didn't seem to find anything (unless I made a
  typo in my text search).
 
 Portupgrade or portmaster are your friends.

In this case does not work, as audacious must be deinstalling before
install the new version. Greg, try pkg_delete or pkg_deinstall audacious
before upgrade.

Regards


pgpoTtz3RtxPC.pgp
Description: PGP signature


How did the /etc/resolv.conf appear?

2006-12-17 Thread a
The automatically installed /etc/resolv.conf
contains the next:

nameserver 82.207.67.2
nameserver 213.179.244.18

Today I discovered that this servers is not servers of FreeBSD.org 
or InterNIC, but of my ISP.

I wonder how the system found these IP addresses?

Are these entries created during installation?

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


PHP 5 with Apache 1.3

2006-12-17 Thread Ian Smith
Hi all,

bit of a long saga, and a (by now) humble question ..

I reinstalled php5-5.2.0 from its package, after having to deinstall
php 4 and reinstall 5 after the only major glitch on a portupgrade -aPP
on a 5.5-STABLE system upgrading old ports, mostly from 5.4-R days.

[FWIW, portupgrading phpMyAdmin from packages forces php5, as does its
dependency pecl-pdflib-2.1.2, neither of which require later than php
4.1 according to their docs.  Anyway, having decided to go with php5 ..]

Despite being listed as PHP Scripting Language (Apache Module and CLI) 
the php5-5.2.0 package is not built with mod_php5, which seems kinda odd
as that's what most folks want to install php for, I'd have thought? 

So I've made php5 from ports (make config; #add 'build Apache module';
make deinstall; make reinstall) and now have a shiny new mod_php5.so and
the install added that to httpd.conf, looking good: 

LoadModule php5_module libexec/apache/libphp5.so
..
AddModule mod_php5.c

However despite also adding to httpd.conf, hopefully in the right place,

DirectoryIndex index.php index.html
..
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

and after an apachectl restart (even apachectl stop; apachectl start),
with things looking ok according to /localhost/server-info and -status,

apache still wants to send raw .php pages to Mozilla, which whinges 'the
file   is of type application/x-httpd-php ..', offering to save it.

I'm trying this with phpmyadmin, all this was working before on php4,
and I've tried both -dist and -recommended as php.ini

What do I need to do to get Apache to execute mod_php5 on .php files?

Cheers, Ian

(Please cc me, I'm subscribed to the -digest which can take a while)

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


Re: openssh security issues

2006-12-17 Thread Eric

Michael P. Soulier wrote:

So, portaudit keeps complaining about openssh, but when I try to upgrade...

[EMAIL PROTECTED] ~]$ sudo portupgrade -R openssh
[Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 207 packages
found (-1 +1) (...). done]
---  Upgrading 'openssh-3.6.1_5' to 'openssh-3.6.1_6' (security/openssh)
---  Building '/usr/ports/security/openssh'
===  Cleaning for openssh-3.6.1_6
===  openssh-3.6.1_6 has known vulnerabilities:
= openssh -- multiple vulnerabilities.
   Reference:
http://www.FreeBSD.org/ports/portaudit/32db37a5-50c3-11db-acf3-000c6ec775d9.html
= Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/security/openssh.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.20685.0
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=openssh-3.6.1_5
UPGRADE_PORT_VER=3.6.1_5 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! security/openssh (openssh-3.6.1_5)(unknown build error)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

So, before bothering the port maintainer, is there a standard place to look
for a status update on this kind of thing?

Thanks,
Mike
  

why not install the portable version? its much newer than the one you have.

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


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread Eric

[EMAIL PROTECTED] wrote:

The automatically installed /etc/resolv.conf
contains the next:

nameserver 82.207.67.2
nameserver 213.179.244.18

Today I discovered that this servers is not servers of FreeBSD.org 
or InterNIC, but of my ISP.


I wonder how the system found these IP addresses?

Are these entries created during installation?

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

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


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread Peter Matulis

--- [EMAIL PROTECTED] wrote:

 The automatically installed /etc/resolv.conf
 contains the next:
 
 nameserver 82.207.67.2
 nameserver 213.179.244.18
 
 Today I discovered that this servers is not servers of FreeBSD.org 
 or InterNIC, but of my ISP.
 
 I wonder how the system found these IP addresses?
 
 Are these entries created during installation?

They were probably put there by your internet access mechanism (PPP /
PPPOE).

Peter

__
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: How did the /etc/resolv.conf appear?

2006-12-17 Thread Dan Nelson
In the last episode (Dec 17), [EMAIL PROTECTED] said:
 The automatically installed /etc/resolv.conf
 contains the next:
 
 nameserver 82.207.67.2
 nameserver 213.179.244.18
 
 Today I discovered that this servers is not servers of FreeBSD.org 
 or InterNIC, but of my ISP.
 
 I wonder how the system found these IP addresses?
 
 Are these entries created during installation?

They could have been, if you selected DHCP configuration.  In addition
to your IP address, the server can also hand out DNS server addresses,
which dhcpd will use to create a resolv.conf file.

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


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread Javier Henderson


On Dec 17, 2006, at 12:17 PM, [EMAIL PROTECTED] wrote:


The automatically installed /etc/resolv.conf
contains the next:

nameserver 82.207.67.2
nameserver 213.179.244.18

Today I discovered that this servers is not servers of FreeBSD.org
or InterNIC, but of my ISP.

I wonder how the system found these IP addresses?

Are these entries created during installation?


You must be using DHCP to obtain an address for your network interface 
(s)...


-jav


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


How did the /etc/resolv.conf appear?

2006-12-17 Thread Robert Huff

[EMAIL PROTECTED] writes:

  The automatically installed /etc/resolv.conf
  contains the next:
  
  nameserver 82.207.67.2
  nameserver 213.179.244.18
  
  Today I discovered that this servers is not servers of FreeBSD.org 
  or InterNIC, but of my ISP.
  
  I wonder how the system found these IP addresses?
  
  Are these entries created during installation?

Are you running DHCP(-client)?  If so, consider the prepend
and supercede directives.


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


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread [LoN]Kamikaze
[EMAIL PROTECTED] wrote:
 The automatically installed /etc/resolv.conf
 contains the next:
 
 nameserver 82.207.67.2
 nameserver 213.179.244.18
 
 Today I discovered that this servers is not servers of FreeBSD.org 
 or InterNIC, but of my ISP.
 
 I wonder how the system found these IP addresses?

The entries are created by dhclient or whichever different program establishes 
the connection, when it receives the necessary information (your IP, gateway 
and the nameservers to use) from your ISP.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ggate sparc64/i386 compatibility issues?

2006-12-17 Thread Andrea Montemaggio

Hi there,
I've two machines with a 6.1-RELEASE installed on: one is a sparc64 and 
the another is an i386 machine

with a little (and I think not relevant) kernel configuration differences.
If I run ggated on the i386 and I try to connect through ggatec from the 
sparc, ggated exits telling me
it has created ggate0 device but the device does not exist in /dev con 
the sparc machine; moreover,
when I run ggatec list (or ggatel list) the machine freezes (not an hard 
freeze, but there is inability to do anything).

Conversely, if I try to export from the sparc and connect from the i386,
i get this error from 'ggatec -v':
- error: ggatec: ioctl(/dev/ggctl): Invalid argument.
From another i386 machine running a 6.1-RELEAS too, everything is ok.
All this seems to be a little strange.. Has anybody any ideas?
Thanks a lot,
Andrea Montemaggio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GEOM Gate: sparc64/i386 compatibility issues?

2006-12-17 Thread Ivan Voras
You should probably report this in the freebsd-geom list.

Andrea Montemaggio wrote:
 Hi there,
 I've two machines with a 6.1-RELEASE installed on: one is a sparc64 and
 the another is an i386 machine
 with a little (and I think not relevant) kernel configuration differences.
 If I run ggated on the i386 and I try to connect through ggatec from the
 sparc, ggated exits telling me
 it has created ggate0 device but the device does not exist in /dev con
 the sparc machine; moreover,
 when I run ggatec list (or ggatel list) the machine freezes (not an hard
 freeze, but there is inability to do anything).
 Conversely, if I try to export from the sparc and connect from the i386,
 i get this error from 'ggatec -v':
 - error: ggatec: ioctl(/dev/ggctl): Invalid argument.
 From another i386 machine running a 6.1-RELEAS too, everything is ok.
 All this seems to be a little strange.. Has anybody any ideas?
 Thanks a lot,
 Andrea Montemaggio
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 




signature.asc
Description: OpenPGP digital signature


libmap.conf file????

2006-12-17 Thread VeeJay

Hi,

I am running a FreeBSD6.1 Webserver with mysql but having problems

I found below mentioned quote on the net? But I don't know where to find
this libmap.conf file?

-quote from the NET
For FreeBSD 6 tests show that using libthr gives the best performance
(search on the net for some benchmarks).
To use libthr, just download the precompiled mysql for FreeBSD 6, and add
the following lines to your /etc/libmap.conf :

[mysqld]
libpthread.so.2 libthr.so.2
libpthread.so libthr.so
After that restart your mysqld, and from then on it should be using libthr.
--end of quote...

While, it says that one has to download precompiled mysql. But I installed
the mysql50-server from the FreeBSD ports collection.

1. I wonder, that would I have to create /etc/libmap.conf file by myself? Or
2. Do I need to install another port to have it work?
3. If I make the file by myself and restart the server, how could I know
that mySQL is using now libthr library?

Thanks for your help
--
Thanks!

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


Re: upgrade of portupgrade fails

2006-12-17 Thread Chuck Swiger

Michael P. Soulier wrote:
[ ... ]

So, the logs tell me why.


swap_pager_getswapspace(9): failed
swap_pager_getswapspace(9): failed
swap_pager_getswapspace(2): failed
swap_pager_getswapspace(3): failed
swap_pager_getswapspace(2): failed
swap_pager_getswapspace(2): failed
pid 24321 (ruby18), uid 0, was killed: out of swap space


I guess ruby used too much memory for my system.


Yes, for some reason generating the Ruby documentation takes a great deal of 
RAM, and may run very slowly on machines without enough of it.  There is 
probably an option in the ports' Makefile to disable building the docs; check 
pkg-mesg...?


You might also consider adding more RAM to the system in question; it will 
help performance for other tasks.


--
-Chuck

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


On-the-fly auto charset conversion or something

2006-12-17 Thread Andrew Pantyukhin

Hi!

I now have to work with several charsets simultaneously.
Naturally, I use UTF-8 in xterm, but whenever I need to
work with some exotic (8-bit mostly) charset, I have to
resort to iconv(1), which is not very comfortable.

Does anyone have any idea of how to solve this problem?
I'm thinking on-the-fly charset conversion, but I am
prepared to reconsider my workflow habits and adopt some
policies.

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


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 The automatically installed /etc/resolv.conf
 contains the next:
 
 nameserver 82.207.67.2
 nameserver 213.179.244.18
 
 Today I discovered that this servers is not servers of FreeBSD.org 
 or InterNIC, but of my ISP.
 
 I wonder how the system found these IP addresses?
 
 Are these entries created during installation?
 
 Elisey Babenko

By default dhcpcd does this.
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhZFTEnKyINQw/HARAuXQAKCONJaEPSalX0X/U9/4EZ05oq6hAACfU05j
j0F7JiZYCXBKijnRiY1Q9gU=
=FfRr
-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: upgrade of portupgrade fails

2006-12-17 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck Swiger wrote:
 Michael P. Soulier wrote:
 [ ... ]
 So, the logs tell me why.

 swap_pager_getswapspace(9): failed
 swap_pager_getswapspace(9): failed
 swap_pager_getswapspace(2): failed
 swap_pager_getswapspace(3): failed
 swap_pager_getswapspace(2): failed
 swap_pager_getswapspace(2): failed
 pid 24321 (ruby18), uid 0, was killed: out of swap space

 I guess ruby used too much memory for my system.
 
 Yes, for some reason generating the Ruby documentation takes a great
 deal of RAM, and may run very slowly on machines without enough of it. 
 There is probably an option in the ports' Makefile to disable building
 the docs; check pkg-mesg...?
 
 You might also consider adding more RAM to the system in question; it
 will help performance for other tasks.
 

cd /usr/ports/lang/ruby18/  make config ;)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhZG1EnKyINQw/HARAgyBAJ9GsOl3MwVcyXG3sUP79yMWe/0wwgCffRIq
Ab0yV8XihGVTdSvs68CAeqE=
=8nvF
-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: devd usage

2006-12-17 Thread Patrick Lamaizière
Maxim Vetrov :
 Hi,

Hello,

   I'm running 6.1 on Toshiba notebook SAtellite L100. Get stuck with
 auto config of wireless cardbus adapter (D-Link DWL-G650). I want to
 load kernel module (if_ath.ko) automatically when I insert it into the
 slot. I found that I need /etc/devd.conf to be configured properly.
 There is a Deqna example that is quite self-explaining excluding those
 magic numbers assigned to manufacturer and product. Where I can get
 these?

I think with the devd's socket : 
By sample i insert my usb mouse :

# cat /var/run/devd.pipe
? at port=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum= on uhub1
+ums0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum= intclass=0x03 intsubclass=0x01 at port=0 
interface=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum= intclass=0x03 intsubclass=0x01 on uhub1

There are two events here, first an unknown device is detected '?' and then 
a new device is inserted '+ums0'.
  
See man devctl

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


Re: Unicode support on FreeBSD

2006-12-17 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 CONSOLE
 
 As we know, the console drivers atkbd and sc do not support unicode
 (in contrast to linux console drivers, for example).
 So we have to use programs able to translate unicode to a single byte
 code table. I use my PC successfully in such a manner.
 
 X
 
 You should set LC_CTYPE to ru_RU.UTF-8 (for russian) before running
 X programs, and you should have correct unicode support.
 I have the next line in .xinitrc:
 env LC_CTYPE=ru_RU.UTF-8 twm
 And I have no problem with X programs for years.
 
 Elisej Babenko
 
 
 On Sat, Dec 16, 2006 at 10:10:08PM -0200, Henry Lenzi wrote:
 On 12/16/06, ?$BJ8D; [EMAIL PROTECTED] wrote:
   It's worth noting that while this solution may work, it's an
 add-on.
   The question of Unicode is complex; you should check for
 relevant threads in the questions@ and i18n@ archives.
 I am using FreeBSD 6.1. with locale set to ja_JP.UTF-8
 I'm sorry, I'm not following this discussion. To get Unicode support,
 I should set my system to ja_JP.UTF8?!
 My problem is cyrillic fonts; any help is aprreciated.

 Henry

 PS: Oh, and don't write back to me in Russian, please. I'm not there yet :-))

Funny how my thread sort of got hijacked.. hehe.

Anyhow, X11 apps are working perfectly fine, but rendering Japanese text
in xterm isn't working like it was under Gentoo. Time to install some
fonts I suppose or look into adding Japanese support for xterm.
uim/anthy isn't working 100% yet, but I'll force it to work sometime
soon :).

As for setting locales, you have to do it in whatever file you use to
pull in for starting X11, ~/.xinitrc, ~/.Xsession, etc. My .xinitrc:

export GTK_IM_MODULE=uim;
export [EMAIL PROTECTED];
export UIM_CANDWIN_PROG=uim-candwin-gtk;

xmodmap -e pointer = 1 2 3 4 5 6 7 8 9 
imwheel -f -k -p -b 67 

uim-toolbar-gtk-systray 
exec xfce4-session
xscreensaver -no-splash 

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhZL0EnKyINQw/HARAoUdAJwN22ltxoHHK1aS96+tClnzlH09vQCglIW6
vZdo8c7M7GuqVNN7R/mTILQ=
=QZBS
-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: How did the /etc/resolv.conf appear?

2006-12-17 Thread a
On Sun, Dec 17, 2006 at 06:42:46PM +0100, [LoN]Kamikaze wrote:
 [EMAIL PROTECTED] wrote:
  The automatically installed /etc/resolv.conf
  contains the next:
  
  nameserver 82.207.67.2
  nameserver 213.179.244.18
  
  Today I discovered that this servers is not servers of FreeBSD.org 
  or InterNIC, but of my ISP.
  
  I wonder how the system found these IP addresses?
 
 The entries are created by dhclient or whichever different program 
 establishes the connection, when it receives the necessary information (your 
 IP, gateway and the nameservers to use) from your ISP.

I do not use any special DHCP client, but I use mpd(8) to connect via ADSL.

I thought, mpd has created these entries.
But when I temporary moved resolv.conf and restarted the computer, no 
resolv.conf appeared.
So I steel don't know, who created resolv.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread a
On Sun, Dec 17, 2006 at 06:42:46PM +0100, [LoN]Kamikaze wrote:
 [EMAIL PROTECTED] wrote:
  The automatically installed /etc/resolv.conf
  contains the next:
  
  nameserver 82.207.67.2
  nameserver 213.179.244.18
  
  Today I discovered that this servers is not servers of FreeBSD.org 
  or InterNIC, but of my ISP.
  
  I wonder how the system found these IP addresses?
 
 The entries are created by dhclient or whichever different program 
 establishes the connection, when it receives the necessary information (your 
 IP, gateway and the nameservers to use) from your ISP.

I do not use any special DHCP client, but I use mpd(8) to connect via ADSL.

I thought, mpd has created these entries.
But when I temporary moved resolv.conf and restarted the computer, no 
resolv.conf appeared.
So I steel don't know, who created resolv.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How did the /etc/resolv.conf appear?

2006-12-17 Thread a
On Sun, Dec 17, 2006 at 06:42:46PM +0100, [LoN]Kamikaze wrote:
 [EMAIL PROTECTED] wrote:
  The automatically installed /etc/resolv.conf
  contains the next:
  
  nameserver 82.207.67.2
  nameserver 213.179.244.18
  
  Today I discovered that this servers is not servers of FreeBSD.org 
  or InterNIC, but of my ISP.
  
  I wonder how the system found these IP addresses?
 
 The entries are created by dhclient or whichever different program 
 establishes the connection, when it receives the necessary information (your 
 IP, gateway and the nameservers to use) from your ISP.

I do not use any special DHCP client, but I use mpd(8) to connect via ADSL.

I thought, mpd has created these entries.
But when I temporary moved resolv.conf and restarted the computer, no 
resolv.conf appeared.
So I steel don't know, who created resolv.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: var out of space

2006-12-17 Thread [EMAIL PROTECTED]

On 17/12/06, Bradley Giesbrecht [EMAIL PROTECTED] wrote:

Hello,


I inherited a freebsd installation with a var slice/mount that is to
small and filling up all the time.

What type of info should I provide to allow someone to help me with a
solution?

I would very much prefer to not install another drive just for /var.

/usr has plenty of space. Can I mount var off of /usr?



You could do that.


/dev/ad0s1e257998  2069563040487%/var


More to the point, you might want to find out what is
filling your /var as that is quite a lot of space being used
if you are not running a mailserver.
du -d1 -h /var (as root) should give you some clues.
The usual suspects are /var/tmp and /var/log, though
on occasion I have had logfile rotation not do its thing
correctly and leave a program writing to a nonexistant
file, filling up /var.


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


Re: [kde-freebsd] gamin/fam issues with KDE

2006-12-17 Thread Michael Nottebrock
On Thursday 14 December 2006 00:17, Bastiaan Welmers wrote:

 - sometimes I still can't unmount the media even if all KDE windows (and
   other programs) are closed. I think some instance of gamin or KDE
   keeps running although all windows have been closed. This also
   indicates sometimes not all processes are terminated well.

 Now I'm using fam instead of gamin again. I think it should be nice if
 this would become standard or the gamin issue wil be resolved, because
 it's quite annoying not being able to unmount removable media all the
 time. 

I haven't really seen that sort of trouble, but then I don't use writable 
removable media much at all (cdroms never gave me problems). FWIW, I think I 
already tried everything I could to reverse the fam-gamin switch, but it's 
not going to happen. Your best bet is probably to take your problems up with 
the gamin maintainer (gnome@).


-- 
   ,_,   | Michael Nottebrock   | [EMAIL PROTECTED]
 (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org


pgpGOLlqSKxXB.pgp
Description: PGP signature


Re: var out of space

2006-12-17 Thread Robert Huff

[EMAIL PROTECTED] writes:

  More to the point, you might want to find out what is
  filling your /var as that is quite a lot of space being used
  if you are not running a mailserver.
  du -d1 -h /var (as root) should give you some clues.

Allow me to suggest instead:

du /var | sort -nr | head -n 25

Run daily (or even weekly), you can become familiar with what's
using space and have a chance to notice when things change.


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


Re: libmap.conf file????

2006-12-17 Thread Alex de Kruijff
On Sun, Dec 17, 2006 at 06:47:15PM +0100, VeeJay wrote:
 I am running a FreeBSD6.1 Webserver with mysql but having problems
 I found below mentioned quote on the net? But I don't know where to find
 this libmap.conf file?

You should be able to find it in /etc/. If it doesn't exist then you
could create it your self. You can also find examples with:
find / --name *libmap.com*.

-- 
Alex

Please copy the original recipients, otherwise I may not read your reply.

Howtos based on my personal use, including information about 
setting up a firewall and creating traffic graphs with MRTG
http://alex.kruijff.org/FreeBSD/

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


Re: mailman upgrade problem

2006-12-17 Thread Paul Schmehl
--On December 16, 2006 10:07:27 PM -0500 Michael P. Soulier 
[EMAIL PROTECTED] wrote:



I just did a portupgrade on mailman, and now it's doing this.

Dec 16 22:05:27 kanga Mailman mail-wrapper: Group mismatch error.
Mailman expected the mail wrapper script to be executed as group
nobody, but the system's mail server executed the mail script as group
mailman.  Try tweaking the mail server to run the script as group
nobody, or re-run configure,  providing the command line option
`--with-mail-gid=mailman'. Dec 16 22:05:27 kanga postfix/local[87645]:
830DE6E: to=[EMAIL PROTECTED], relay=local, delay=0, status=bounced
(Command died with status 2: /usr/local/mailman/mail/mailman post
opag. Command output: Group mismatch error.  Mailman expected the mail
wrapper script to be executed as group nobody, but the system's mail
server executed the mail script as group mailman.  Try tweaking the
mail server to run the script as group nobody, or re-run configure,
providing the command line option
`--with-mail-gid=mailman'. )


Apparently you're running Postfix.

Put this in /usr/local/etc/pkgtools.conf, and you will never have this 
problem again:

MAKE_ARGS = {
   # Preset mailman so it will compile with the right group
   'mail/mailman' = 'MAIL_GID=mailman'
 }

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: i finally got wireless working

2006-12-17 Thread Nick Withers
On Sun, 17 Dec 2006 09:24:04 -0600
Jonathan Horne [EMAIL PROTECTED] wrote:

 On Sunday 17 December 2006 03:53, Nick Withers wrote:
  On Sun, 17 Dec 2006 01:07:05 -0600
 
  Jonathan Horne [EMAIL PROTECTED] wrote:
  (snip)
 
   one big mistake i made, was building world up to 6.2-RC1.  there
   was one good article about installing freebsd on an ibm t42
   (found it on google), but it didnt have any info on getting
   wireless to auto start.  after i had wireless manually up and
   running initially, i then built world, and updated.  next boot,
   firmware and modules would not load.  i had tweaked some other
   things, so i backed those changes off, and worked round and
   round until i decided to just do a quick reinstall.  this time,
   i didnt use 6.1-RELEASE, but i did 6.2-RC1.  same behavior, and
   this is when i figured out that the only time it really worked
   like the web page depicted, was when i was on 6.1-RELEASE.  so
   i tried cvsuping to -p11, and things still worked fine.  this
   is the only laptop i have (thus, my only wireless computer), so
   when 6.2 comes out, ill be pretty nervous about upgrading until
   i read that everything i kosher with iwi- support.
 
  It works fine.
 
  Please see the UPDATING entry from the 2006-07-11, i.e.:
  
 
  20060711:
  The iwi(4) was updated to use the firmware(9) framework.
  In order for it to work you need a port change from
  net/iwi-firmware to net/iwi-firmware-kmod.
  
 
 ah, thanks nick, i didnt remember to check that.  i wonder how safe
 it would be to switch the port out before i make the change to
 6.2?  maybe ill play with that later today.

As I recall, I just built the new port, removed the old, upgraded to
6.2-PRERELEASE and installed the already compiled new port.

 also, is there a gui app to help manage wireless networks?

NetworkManager (http://www.gnome.org/projects/NetworkManager/) is one
I'm aware of, but it doesn't appear to be available in the ports
collection (perhaps, as seems to happen more often than I'd like
with GNOME projects, it's written with only Linux systems in mind?).

 cheers,
 jonathan
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rm -f doesn't delete symlink

2006-12-17 Thread Jeppe Bundsgaard


Hi,
I am trying to upgrade to FreeBSD 6.1. But when I run installworld it 
halts when trying to create a symlink: /sys. Just before the error 
the script tries to delete the old symlink with: rm -f /sys. But this 
doesn't delete the symlink.

No flags are set on /sys.
Anybody got any idea what is wrong?
Thanks.
Jeppe

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


Re: var out of space

2006-12-17 Thread James Long
 Date: Sat, 16 Dec 2006 23:31:58 -0800
 From: Bradley Giesbrecht [EMAIL PROTECTED]
 Subject: var out of space
 To: freebsd-questions@freebsd.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
 
 Hello,
 
 
 I inherited a freebsd installation with a var slice/mount that is to  
 small and filling up all the time.
 
 What type of info should I provide to allow someone to help me with a  
 solution?
 
 I would very much prefer to not install another drive just for /var.
 
 /usr has plenty of space. Can I mount var off of /usr?

Here is a slightly simpler solution than what Anders proposed that 
may work for you.

Find out which sub-directories of /var are the disk space consumers:

du -d1 /var | sort -rn | head

That will list the top ten.  This method assumes you have only one
or two large directories, and that moving them would yield
a substantial reduction in /var disk space usage.

Let's assume that /var/log and /var/db are the top two directories.

Shutdown to single-user mode.  Stop any daemons like syslog, sendmail,
etc. that might write to /var/log or /var/db, since you will be working
with those two directories.

cd into /var and move the log sub-directory onto the /usr mount point,
and then create a symlink to make /var/log redirect to the new location
on /usr:

cd /var
mv log /usr/var-log
ln -s /usr/var-log log

Repeat for /var/db:

mv db /usr/var-db
ln -s /usr/var-db db

Reboot.

This procedure eliminates the need to mess with your disklabel or your 
fstab.

BTW, it looks like your / partition is a bit crowded, also. :)


Jim

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


Re: amule in different languages?

2006-12-17 Thread Karl Sinn
Hi,

Am Sonntag, 17. Dezember 2006 18:14 schrieb Garrett Cooper:
 In general though, I don't think that there's really an easy way for
 installing multi-language binaries in FreeBSD at this time though, but I
 could be wrong..

Your answer surprises me, because all the amule versions that I saw until 
today (Linux) had all the languages included. You could just choose the one 
you want.

If I cannot have all the languages, then how can I build it in another 
language than in English?

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


Re: rm -f doesn't delete symlink

2006-12-17 Thread Garrett Cooper

Jeppe Bundsgaard wrote:


Hi,
I am trying to upgrade to FreeBSD 6.1. But when I run installworld it 
halts when trying to create a symlink: /sys. Just before the error the 
script tries to delete the old symlink with: rm -f /sys. But this 
doesn't delete the symlink.

No flags are set on /sys.
Anybody got any idea what is wrong?
Thanks.
Jeppe

Jeppe,
   Try without the -f and see what the error is. -f (in my book at 
least) usually evaluates to (yes, quiet) in regular files / symlinks at 
least.

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


Re: Issues updating Audacious.

2006-12-17 Thread Greg Groth

Beech Rintoul wrote:

On Sunday 17 December 2006 07:31, Greg Groth wrote:

I'm attempting to update Audacious without much luck.  Last time I ran
into this issue, I simply had to do a make deinstall / make install, and
it worked fine.  This time, I'm unable to deinstall the old version.
When running make deinstall from the ports directory I get:

===  Deinstalling for multimedia/audacious
===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping

Any ideas on how I can deinstall this port?  I checked
/usr/ports/UPDATING, but didn't seem to find anything (unless I made a
typo in my text search).


Portupgrade or portmaster are your friends.

Beech



It failed with portmanager, so I tried portupgrade to see what the 
problem was.  When I ran portupgrade, I got the following:


Note: Configure has discovered that you already have Audacious installed
and it does not match with the given --prefix. You have Audacious 
installed in /usr/X11R6/bin and you chose /usr/local/bin.


If you don't want two copies of Audacious installed, rerun configure 
with the --prefix option set to the location of the old Audacious, or 
uninstall the old Audacious.


After compiling for a bit, it exited with the following error:

playlist.c: In function `playlist_entry_get_info':
playlist.c:181: error: structure has no member named `mtime'
playlist.c:181: error: structure has no member named `mtime'
playlist.c:191: error: structure has no member named `mtime'
playlist.c:208: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_songtitle':
playlist.c:1558: error: structure has no member named `mtime'
playlist.c:1558: error: structure has no member named `mtime'
playlist.c:1558: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_tuple':
playlist.c:1602: error: structure has no member named `mtime'
playlist.c:1602: error: structure has no member named `mtime'
playlist.c:1602: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_songtime':
playlist.c:1634: error: structure has no member named `mtime'
playlist.c:1634: error: structure has no member named `mtime'
playlist.c:1634: error: structure has no member named `mtime'
playlist.c: In function `playlist_fileinfo':
playlist.c:2092: error: structure has no member named `mtime'
playlist.c:2093: error: structure has no member named `mtime'
playlist.c:2093: error: structure has no member named `mtime'
playlist.c: In function `playlist_read_info_selection':
playlist.c:2635: error: structure has no member named `mtime'
gmake[2]: *** [playlist.o] Error 1
gmake[1]: *** [build] Error 2
gmake: *** [build] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/audacious.
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade.81965.0 env UPGRADE_TOOL=portupgrade 
UPGRADE_PORT=audacious-1.1.2 UPGRADE_PORT_VER=1.1.2 make

** Fix the problem and try again.


I think I had similar issues in the past when I tried to update 
Audacious, and a make deinstall / make install clean fixed the problem. 
 This is when I attempted to deinstall Audacious, and was unable to. 
I've never tried portmaster, but I'm thinking it only works if you 
install from packages (please correct me if I'm wrong), and I have 
everything compiled from source.  Any ideas?


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: var out of space

2006-12-17 Thread Garrett Cooper

James Long wrote:

Date: Sat, 16 Dec 2006 23:31:58 -0800
From: Bradley Giesbrecht [EMAIL PROTECTED]
Subject: var out of space
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello,


I inherited a freebsd installation with a var slice/mount that is to  
small and filling up all the time.


What type of info should I provide to allow someone to help me with a  
solution?


I would very much prefer to not install another drive just for /var.

/usr has plenty of space. Can I mount var off of /usr?



Here is a slightly simpler solution than what Anders proposed that 
may work for you.


Find out which sub-directories of /var are the disk space consumers:

du -d1 /var | sort -rn | head

That will list the top ten.  This method assumes you have only one
or two large directories, and that moving them would yield
a substantial reduction in /var disk space usage.

Let's assume that /var/log and /var/db are the top two directories.

Shutdown to single-user mode.  Stop any daemons like syslog, sendmail,
etc. that might write to /var/log or /var/db, since you will be working
with those two directories.

cd into /var and move the log sub-directory onto the /usr mount point,
and then create a symlink to make /var/log redirect to the new location
on /usr:

cd /var
mv log /usr/var-log
ln -s /usr/var-log log

Repeat for /var/db:

mv db /usr/var-db
ln -s /usr/var-db db

Reboot.

This procedure eliminates the need to mess with your disklabel or your 
fstab.


BTW, it looks like your / partition is a bit crowded, also. :)


Jim
Depends on what your cluster size is too for the slice. I created a 3.9 
GB partition for /usr recently with 16kB clusters (not thinking), and 
installed ports-which ate up almost all the free space. After I started 
installing stuff I ran out of space.


Solution (in my case):
-Delete files (otherwise tunefs has no effect).
-Reboot into single-user mode.
-Run tunefs on slice setting the average filesize (-f flag) to something 
a lot lower.

-Boot into multiuser mode.

Voila! Problem fixed.

In your case though, you may want to just backup and redo the system if 
stuff fills up far too quickly, or look into circular buffer logging 
with syslog. I don't remember how to accomplish it but it has been done.

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


Re: Issues updating Audacious.

2006-12-17 Thread Greg Groth

José G. Juanino wrote:

El domingo 17 de diciembre a las 17:47:13 CET, Beech Rintoul escribió:

On Sunday 17 December 2006 07:31, Greg Groth wrote:

I'm attempting to update Audacious without much luck.  Last time I ran
into this issue, I simply had to do a make deinstall / make install, and
it worked fine.  This time, I'm unable to deinstall the old version.
When running make deinstall from the ports directory I get:

===  Deinstalling for multimedia/audacious
===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping

Any ideas on how I can deinstall this port?  I checked
/usr/ports/UPDATING, but didn't seem to find anything (unless I made a
typo in my text search).

Portupgrade or portmaster are your friends.


In this case does not work, as audacious must be deinstalling before
install the new version. Greg, try pkg_delete or pkg_deinstall audacious
before upgrade.

Regards


Should have been more careful reading through my InBox before sending my 
last reply.  pkg_deinstall worked perfectly.  Thanks for the help.


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: Issues updating Audacious.

2006-12-17 Thread Garrett Cooper

Greg Groth wrote:

Beech Rintoul wrote:

On Sunday 17 December 2006 07:31, Greg Groth wrote:

I'm attempting to update Audacious without much luck.  Last time I ran
into this issue, I simply had to do a make deinstall / make install, 
and

it worked fine.  This time, I'm unable to deinstall the old version.
When running make deinstall from the ports directory I get:

===  Deinstalling for multimedia/audacious
===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping

Any ideas on how I can deinstall this port?  I checked
/usr/ports/UPDATING, but didn't seem to find anything (unless I made a
typo in my text search).


Portupgrade or portmaster are your friends.

Beech



It failed with portmanager, so I tried portupgrade to see what the 
problem was.  When I ran portupgrade, I got the following:


Note: Configure has discovered that you already have Audacious installed
and it does not match with the given --prefix. You have Audacious 
installed in /usr/X11R6/bin and you chose /usr/local/bin.


If you don't want two copies of Audacious installed, rerun configure 
with the --prefix option set to the location of the old Audacious, or 
uninstall the old Audacious.


After compiling for a bit, it exited with the following error:

playlist.c: In function `playlist_entry_get_info':
playlist.c:181: error: structure has no member named `mtime'
playlist.c:181: error: structure has no member named `mtime'
playlist.c:191: error: structure has no member named `mtime'
playlist.c:208: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_songtitle':
playlist.c:1558: error: structure has no member named `mtime'
playlist.c:1558: error: structure has no member named `mtime'
playlist.c:1558: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_tuple':
playlist.c:1602: error: structure has no member named `mtime'
playlist.c:1602: error: structure has no member named `mtime'
playlist.c:1602: error: structure has no member named `mtime'
playlist.c: In function `playlist_get_songtime':
playlist.c:1634: error: structure has no member named `mtime'
playlist.c:1634: error: structure has no member named `mtime'
playlist.c:1634: error: structure has no member named `mtime'
playlist.c: In function `playlist_fileinfo':
playlist.c:2092: error: structure has no member named `mtime'
playlist.c:2093: error: structure has no member named `mtime'
playlist.c:2093: error: structure has no member named `mtime'
playlist.c: In function `playlist_read_info_selection':
playlist.c:2635: error: structure has no member named `mtime'
gmake[2]: *** [playlist.o] Error 1
gmake[1]: *** [build] Error 2
gmake: *** [build] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/audacious.
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade.81965.0 env UPGRADE_TOOL=portupgrade 
UPGRADE_PORT=audacious-1.1.2 UPGRADE_PORT_VER=1.1.2 make

** Fix the problem and try again.


I think I had similar issues in the past when I tried to update 
Audacious, and a make deinstall / make install clean fixed the 
problem.  This is when I attempted to deinstall Audacious, and was 
unable to. I've never tried portmaster, but I'm thinking it only works 
if you install from packages (please correct me if I'm wrong), and I 
have everything compiled from source.  Any ideas?


Best regards,
Greg Groth
pkg_delete audacious  portinstall audacious? I was having similar 
issues with a lot of packages installing from ports just recently and 
zapping the packages (using pkg_delete) and installing from ports did 
the trick all the time IIRC.

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


write(2) takes 17 seconds even with O_NONBLOCK

2006-12-17 Thread Dieter
I've always thought that writing to a file descriptor with O_NONBLOCK
set was supposed to return quickly.  Isn't that the whole point of
O_NONBLOCK ?

I have a C program writing to stdout, which is set to O_NONBLOCK,
and the shell redirects stdout to a regular disk file.  Dispite
O_NONBLOCK, my program reports that a write call took 17.701340
seconds.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


trouble installing 6.1 on virtual PC 2004 - Cannot parse information file

2006-12-17 Thread l Burnerheimerton
I choose minial installation, NAT, uncheck Attach CD. 
I have the ISO on my desktop and throw it on the CD
picture of the virtual pc which is where I've 
read it to install to this point so I know that is
working.

It writes holographic and then I get this error
message:

Cannot parse information file for the base
distribution: I/O error
Please verify that your media is valid and try again.

Any ideas or experience installing it on virtual PC
2004?  Thanks for any help.


__
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: On-the-fly auto charset conversion or something

2006-12-17 Thread Dan Nelson
In the last episode (Dec 17), Andrew Pantyukhin said:
 I now have to work with several charsets simultaneously. Naturally, I
 use UTF-8 in xterm, but whenever I need to work with some exotic
 (8-bit mostly) charset, I have to resort to iconv(1), which is not
 very comfortable.
 
 Does anyone have any idea of how to solve this problem? I'm thinking
 on-the-fly charset conversion, but I am prepared to reconsider my
 workflow habits and adopt some policies.

I think you can use the luit command to translate between other
character sets on a utf-8 terminal.

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


Re: Issues updating Audacious.

2006-12-17 Thread José G . Juanino
El domingo 17 de diciembre a las 21:53:00 CET, Greg Groth escribió:
 Beech Rintoul wrote:
 On Sunday 17 December 2006 07:31, Greg Groth wrote:
 I'm attempting to update Audacious without much luck.  Last time I ran
 into this issue, I simply had to do a make deinstall / make install, and
 it worked fine.  This time, I'm unable to deinstall the old version.
 When running make deinstall from the ports directory I get:
 
 ===  Deinstalling for multimedia/audacious
 ===   audacious-1.1.2 has a different PREFIX: /usr/X11R6, skipping
 
 Any ideas on how I can deinstall this port?  I checked
 /usr/ports/UPDATING, but didn't seem to find anything (unless I made a
 typo in my text search).
 
 Portupgrade or portmaster are your friends.
 
 It failed with portmanager, so I tried portupgrade to see what the 
 problem was.  When I ran portupgrade, I got the following:
 
 Note: Configure has discovered that you already have Audacious installed
 and it does not match with the given --prefix. You have Audacious 
 installed in /usr/X11R6/bin and you chose /usr/local/bin.
 
 If you don't want two copies of Audacious installed, rerun configure 
 with the --prefix option set to the location of the old Audacious, or 
 uninstall the old Audacious.
 
 After compiling for a bit, it exited with the following error:
 
 playlist.c: In function `playlist_entry_get_info':
 playlist.c:181: error: structure has no member named `mtime'

 [ ... ]
 
 Stop in /usr/ports/multimedia/audacious.
 ** Command failed [exit code 1]: /usr/bin/script -qa 
 /tmp/portupgrade.81965.0 env UPGRADE_TOOL=portupgrade 
 UPGRADE_PORT=audacious-1.1.2 UPGRADE_PORT_VER=1.1.2 make
 ** Fix the problem and try again.
 
 
 I think I had similar issues in the past when I tried to update 
 Audacious, and a make deinstall / make install clean fixed the problem. 
  This is when I attempted to deinstall Audacious, and was unable to. 
 I've never tried portmaster, but I'm thinking it only works if you 
 install from packages (please correct me if I'm wrong), and I have 
 everything compiled from source.  Any ideas?

I had exactly the same problem as you. IMHO, it should be reported to
the mantainer as a problem report.

Look at the thread:

http://lists.freebsd.org/pipermail/freebsd-ports/2006-August/034600.html

Regards


pgplV8PA9cmpN.pgp
Description: PGP signature


Re: write(2) takes 17 seconds even with O_NONBLOCK

2006-12-17 Thread Dan Nelson
In the last episode (Dec 17), Dieter said:
 I've always thought that writing to a file descriptor with O_NONBLOCK
 set was supposed to return quickly.  Isn't that the whole point of
 O_NONBLOCK ?
 
 I have a C program writing to stdout, which is set to O_NONBLOCK, and
 the shell redirects stdout to a regular disk file.  Dispite
 O_NONBLOCK, my program reports that a write call took 17.701340
 seconds.

non-blocking really only applies to sockets or pipes, and means I
have at least one free byte in my outbound buffer.  Files don't have
buffers and are always writable.  There is no guarantee on how long the
write will take, however.

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


Re: rm -f doesn't delete symlink

2006-12-17 Thread Garrett Cooper

Jeppe Bundsgaard wrote:

At 22:01 17-12-2006, you wrote:

Jeppe Bundsgaard wrote:


Hi,
I am trying to upgrade to FreeBSD 6.1. But when I run installworld 
it halts when trying to create a symlink: /sys. Just before the 
error the script tries to delete the old symlink with: rm -f /sys. 
But this doesn't delete the symlink.

No flags are set on /sys.
Anybody got any idea what is wrong?
Thanks.
Jeppe

Jeppe,
   Try without the -f and see what the error is. -f (in my book at 
least) usually evaluates to (yes, quiet) in regular files / symlinks 
at least.

-Garrett
_


Garrett, thanks for your answer.

-f Attempt to remove the files without prompting for confirmation, 
regardless of the file's permissions (cf. man rm)


even rm -v says nothing. But /sys still exist...
Jeppe
Tried unlink(1)? Shouldn't really have to use it at all, but it could 
solve your problem faster..

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


The moving-your-system FAQ: Anything else I should know?

2006-12-17 Thread Oliver Iberien
I'm about to move my system, I've read the FAQ, I don't want to rearrange 
anything. I want to make sure I have the process down correctly before I try, 
so I am asking here. I am using 6.0 #2. 

First, I hook up both drives. I partition the new hard drive and label it the 
same way as the previous drive. 

Then, I would reboot to single-user mode. I would use newfs to create new file 
systems form each new partition. I mount each partition in turn to a 
temporary mount point and change directory to the newly mounted partition. 
Then the FAQ gives the following command for the dump-copy process:

dump 0af - / | restore xf -

This is to be used without modification for each partition.

It this really it? It seems... easy.

Thanks,

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


Re: The moving-your-system FAQ: Anything else I should know?

2006-12-17 Thread John Nielsen
On Sunday 17 December 2006 18:16, Oliver Iberien wrote:
 I'm about to move my system, I've read the FAQ, I don't want to rearrange
 anything. I want to make sure I have the process down correctly before I
 try, so I am asking here. I am using 6.0 #2.

 First, I hook up both drives. I partition the new hard drive and label it
 the same way as the previous drive.

 Then, I would reboot to single-user mode. I would use newfs to create new
 file systems form each new partition. I mount each partition in turn to a
 temporary mount point and change directory to the newly mounted
 partition. Then the FAQ gives the following command for the dump-copy
 process:

 dump 0af - / | restore xf -

 This is to be used without modification for each partition.

 It this really it? It seems... easy.

Yep, it's really that easy. I've been experimenting with different RAID 
configurations on my main work PC and I've done this procedure at least 
twice in the last few months. (I'll be doing it again in a couple weeks 
when some new drives come in).

If you are changing additional hardware (besides just the hard drive), here 
are some things to keep in mind:

If you have CPUTYPE set in /etc/make.conf you should be sure that the 
setting you had for the old computer is compatible with the new computer. 
If it's not, you should un-set it or set it to the lowest common 
denominator between the two systems the rebuild world, kernel, and all your 
ports (preferrably before you make the switch).

If you use a custom kernel be sure that it has support for the disk and 
network devices on your new system. If it doesn't, add the drivers back in 
or switch back to GENERIC.

It's entirely possible that your hard drive will come up as a different 
device on your new system. This is especially true if you are moving from 
e.g. IDE to SATA or something similar. The easiest way to deal with this is 
after you make the switch. The kernel will boot but then fail to mount the 
root filesystem and prompt for the name of the root device to use. Use the 
kernel's boot output and your knowledge of how you laid out the disk to 
supply the correct device name. After that, you'll probably get other mount 
failures forcing the system to come up in single-user mode. Manually 
mount /usr and re-mount / r/w so you can edit /etc/fstab with the right 
values. Save and reboot.

You might need to do other things like reconfigure X, etc. but that can all 
be handled after you make the switch.

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


off-topic: video web hosting questions

2006-12-17 Thread Malcolm Fitzgerald

Where can I ask questions about the web hosting?

I am being asked to set-up a web site that will deliver video, a 
youTube wannabe :-) So I'd like visit a forum that discusses such 
things



malcolm

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


Re: off-topic: video web hosting questions

2006-12-17 Thread Jeff Mohler

Firstl..how much Netapp can you afford?:)

Id start here:

http://www.sitepoint.com/

On 12/17/06, Malcolm Fitzgerald [EMAIL PROTECTED] wrote:

Where can I ask questions about the web hosting?

I am being asked to set-up a web site that will deliver video, a
youTube wannabe :-) So I'd like visit a forum that discusses such
things


malcolm

___
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]


geli load key before rootfs is mounted

2006-12-17 Thread Alin-Adrian Anton

Hi,

	I've been playing around with geli and I was wondering if anyone 
managed to actually use the feature which loads the keyfile before the 
root filesystem is mounted.


Specifically, to use something similar in /boot/loader.conf:

geli_da1s3a_keyfile0_load=YES
geli_da1s3a_keyfile0_type=da1s3a:geli_keyfile0
geli_da1s3a_keyfile0_name=/boot/keys/da1s3a.key

	If it worked, please let me know. I couldn't do it on a 6.1-REL0. 
(keeps saying password is wrong, probably because it doesn't see the 
keyfile). Of course, the .key file is on unencrypted media.


I appreciate your time and suggestions.

Thanks,
--
Alin-Adrian Anton
GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785  2F7C 5823 ABA0 1830 87BA)
gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA

It is dangerous to be right when the government is wrong. - Voltaire
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fatal trap 30: reserved (unknown) fault while in kernel mode

2006-12-17 Thread Ma

I'm using the newest FreeBSD 6.2-PRERELEASE on our web server (compiled at
last friday, 06-12-15). But it always crashes these days.
The following information displayed on the screen with system crashed.

Fatal trap 30: reserved (unknown) fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer = 0x20:0xc0b9bed1
stack pointer   = 0x28:0xdc95fcd8
frame pointer   = 0x28:0xdc95fcd8
code segment= base 0x0, limit oxf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflag = interrupt enabled, IOPL = 0
current process = 10 (idle: cpu1)
trap number = 30
panic: reserved (unknown) fault
cpuid = 1
uptime: 3m52s
ahc0: WARNING no command for scb 79 (cmdcmplt)
QOUTPOS = 235

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


Re: i finally got wireless working

2006-12-17 Thread Eric Schuele

On 12/17/2006 00:02, Jonathan Horne wrote:
well, a day well spent, i finally sat down to get the intel 2200 wireless on 
my ibm t42 working.  i have sucessfully configured it to attach to my WPA 
encrypted wifi on bootup.  everything is otherwise working to my 
satisfaction.


now, my questions are:

1) how can i set up to access more than just my wireless network?  can this be 
done at the command line, without rewriting my if_iwi line(s) in rc.conf?
2) can wireless configuration be set to automatically attach to preferred 
networks first, then possibly any available open if preferred not available?




Both of these are accomplished with wpa_supplicant magic.
  man wpa_supplicant.conf

HTH.


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




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


PC-BSD 1.2: /dev/agpgart missing on i810 chipset

2006-12-17 Thread Amarendra Godbole

Hi All,

I installed PC-BSD 1.2 (FreeBSD 6.1-RELEASE-p2) on a PC with i810
chipset. Well, as you might have guessed from the subject, X did not
start, with an error indicating the /dev/agpgart was not present.

AFAIK, agp, drm support is built-in for FreeBSD 6.1 - so I am not sure
why /dev/agpgart was not created. Other similar threads did not help
much, as the solutions involved creating the node by hand (which I
think won't work), or adding some patch to the kernel (not sure if
this will work either, as the support is built-in). As a sidenote,
Ubuntu 6.06 on the same machine properly created /dev/agpgart, and
things are fine.

I tried doing X -config, which gave me a crude 640x480 resolution.
In the Device section, giving module to be i810 or vesa did not help
either. The same error persists.

Any pointers to get X working shall be appreciated. I do not have an
access to this machine, so cannot really post the errors or log files.
Also, since PC-BSD uses FreeBSD 6.1, I thought of posting here. Thanks
in advance.

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