Re: Moving to RAID1

2010-10-30 Thread Jerrin
Hi,

I get this error now when trying to insert the disk

# gmirror insert gm0 /dev/ad14
gmirror: Provider ad14 too small.

found this error is being mentioned before on the mailing lists.
hard disks are of the same size.couldn't find a solution for this one.
Any way to fix this?

Thank you
Rihaz





On Fri, Oct 29, 2010 at 8:49 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Fri, Oct 29, 2010 at 3:35 PM, Jerrin slackma...@gmail.com wrote:

 i have a freebsd(7.3) dedicated server with one hard disk.It have
 partitions
 for root and swap only.I want to setup RAID1 by adding one more hard
 disk.i
 found in freebsd handbook about setting up RAID1
 http://www.freebsd.org/doc/handbook/geom-mirror.html .I only have remote
 access to the server.Will i lose data by doing it?


 If you do it correct way you will not.  It's possible if you make a mistake
 and do something like mirror the wrong way you would.


 Anyways to make  sure in
 the procedure of setting up raid1 that i shouldn't have to go single user
 mode or change something at the boot prompt when rebooting after this is
 setup.


 Again if you do it incorrectly you may need to resort to these procedures.
 However if you follow the handbook accurately you should be fine.

 --
 Adam Vande More

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


Re: Moving to RAID1

2010-10-30 Thread krad
On 30 October 2010 08:40, Jerrin slackma...@gmail.com wrote:

 Hi,

 I get this error now when trying to insert the disk

 # gmirror insert gm0 /dev/ad14
 gmirror: Provider ad14 too small.

 found this error is being mentioned before on the mailing lists.
 hard disks are of the same size.couldn't find a solution for this one.
 Any way to fix this?

 Thank you
 Rihaz





 On Fri, Oct 29, 2010 at 8:49 PM, Adam Vande More amvandem...@gmail.com
 wrote:

  On Fri, Oct 29, 2010 at 3:35 PM, Jerrin slackma...@gmail.com wrote:
 
  i have a freebsd(7.3) dedicated server with one hard disk.It have
  partitions
  for root and swap only.I want to setup RAID1 by adding one more hard
  disk.i
  found in freebsd handbook about setting up RAID1
  http://www.freebsd.org/doc/handbook/geom-mirror.html .I only have
 remote
  access to the server.Will i lose data by doing it?
 
 
  If you do it correct way you will not.  It's possible if you make a
 mistake
  and do something like mirror the wrong way you would.
 
 
  Anyways to make  sure in
  the procedure of setting up raid1 that i shouldn't have to go single
 user
  mode or change something at the boot prompt when rebooting after this is
  setup.
 
 
  Again if you do it incorrectly you may need to resort to these
 procedures.
  However if you follow the handbook accurately you should be fine.
 
  --
  Adam Vande More
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



not all disks are equal unfortunately, even if they say they are. One of the
drives may be a few blocks smaller but thats enough.

What I would do is slice up the smaller disk as you see fit.
Create the  mirror with only one disk/slice in it.
newfs and mount the new mirror up
Copy all the data from the bigger disk to the smaller one (rsync -aP /big/
/small/ would do the job nicely).
Sanitize what you have done 8)
umount the bigger disk
slice up the same as the 1st disk
add to the mirror (should add as its bigger)

This is all assuming the filesystem(s) you are doing isnt the root fs. If it
is you are going to have to make a trip with some kind of live cd/usb stick.
If you are lucky you might be able to use any remote management card on the
system eg dell drac. However whichever way you do it it will involve
downtime 8(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


lang/gcc44: Error: Invalid character in name at (1),Fatal Error: Error count reached limit of 25., gmake[3]: *** [_abs_c4.lo] Error 1, gmake[3]: *** Waiting for unfinished jobs....

2010-10-30 Thread O. Hartmann
Since three days now I get on several FreeBSD 8.1/amd64-STABLE machines 
this error, on two of them this error vanished after two days and I do 
not know why (I thought it might could be a bug in the updated port that 
gets updated/corrected immediately).


Can anybody explain what's going wrong?

I did 'make distclean and tried to install again, but I get still this 
error.


Thanks in advance,
Oliver
---
\xD4\x8A\x01\x08\x04\x1E\xD7\xD9\x8A\x01\x08\x05\xA7\xEE\x7F\xF2
 1
Error: Invalid character in name at (1)
../.././../gcc-4.4-20101026/libgfortran/generated/_abs_c4.F90:1.1:

\xD4\x8A\x01\x08\x04\x1E\xD7\xD9\x8A\x01\x08\x05\xA7\xEE\x7F\xF2
 1
Error: Invalid character in name at (1)
../.././../gcc-4.4-20101026/libgfortran/generated/_abs_c4.F90:1.1:

\xD4\x8A\x01\x08\x04\x1E\xD7\xD9\x8A\x01\x08\x05\xA7\xEE\x7F\xF2
 1
Error: Invalid character in name at (1)
Fatal Error: Error count reached limit of 25.
gmake[3]: *** [_abs_c4.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs
libtool: compile:  /usr/ports/lang/gcc44/work/build/./gcc/xgcc 
-B/usr/ports/lang/gcc44/work/build/./gcc/ 
-B/usr/local/x86_64-portbld-freebsd8.1/bin/ 
-B/usr/local/x86_64-portbld-freebsd8.1/lib/ -isystem 
/usr/local/x86_64-portbld-freebsd8.1/include -isystem 
/usr/local/x86_64-portbld-freebsd8.1/sys-include -DHAVE_CONFIG_H -I. 
-I../.././../gcc-4.4-20101026/libgfortran -I. 
-iquote../.././../gcc-4.4-20101026/libgfortran/io 
-I../.././../gcc-4.4-20101026/libgfortran/../gcc 
-I../.././../gcc-4.4-20101026/libgfortran/../gcc/config -I../.././gcc 
-D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 
-pipe -march=native -I/usr/local/include -fno-strict-aliasing -MT 
in_unpack_generic.lo -MD -MP -MF .deps/in_unpack_generic.Tpo -c 
../.././../gcc-4.4-20101026/libgfortran/runtime/in_unpack_generic.c -o 
in_unpack_generic.o /dev/null 21
gmake[3]: Leaving directory 
`/usr/ports/lang/gcc44/work/build/x86_64-portbld-freebsd8.1/libgfortran'

gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/usr/ports/lang/gcc44/work/build/x86_64-portbld-freebsd8.1/libgfortran'

gmake[1]: *** [all-target-libgfortran] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc44/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 1

Stop in /usr/ports/lang/gcc44.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mount_smbfs hostname resolution

2010-10-30 Thread Dominic Fandrey
I'm trying to mount a share on the ADS of my university. I have,
after many hours of tinkering, managed to find out why it doesn't
work and even managed to access the share with smbclient.
Though I now know (or at least suspect) the cause of the problem,
I do not know how to apply the solution.

I can reach the ADS server via the -I parameter, which circumvents
the local address resolution. However the ads just returns the name
of another server to connect to (output excerpts from smbclient -d3):
...
got principal=hs-ad-...@ads.hs-karlsruhe.de
...

As you can see hs-ad-01 is a local name again. It cannot be resolved
and the connection fails. However this can be circumvented by adding
a search entry in /etc/resolv.conf:
search hs-karlsruhe.de

Et voilà:
# ping hs-ad-01
PING hs-ad-01.hs-karlsruhe.de (193.196.64.10): 56 data bytes
...

And suddenly the smbclient connection works:
...
resolve_lmhosts: Attempting lmhosts lookup for name IZ-AD-280x20
resolve_wins: Attempting wins lookup for name IZ-AD-280x20
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name IZ-AD-280x20
Connecting to 193.196.65.128 at port 445
Connecting to 193.196.65.128 at port 139
...

Another side effect is that I don't have to use the -I parameter any
more the smbclient command gets conveniently short:
smbclient -U user%pass //ADS/DFS
smb: \


Unfortunately this mount_smbfs appears not to use hostname
resolution, all that I get from it:
# mount_smbfs //user@ads/dfs /mnt/tmp
mount_smbfs: can't get server address: syserr = Operation timed out

Of course I can use the -I parameter:
# mount_smbfs -Iads.hs-karlsruhe.de //user@ads/dfs /mnt/tmp
mount_smbfs: unable to open connection: syserr = Connection reset by peer

My guess is that moung_smbfs receives the principal (hs-ad-01 is
only one of many available candidates among which the load is
balanced) and cannot resolve it or even doesn't handle redirection
at all.

Directly connecting to one of the providers also does not work:
# mount_smbfs -Ihs-ad-01 //user@ads/dfs /mnt/tmp
mount_smbfs: unable to open connection: syserr = Connection reset by peer

With this meagre output I don't really have a way of determining
the true nature of the issue. All that I can say is that smbclient
works and mount_smbfs does not. Unfortunately the net/samba34 does
not install the smbmount utility of the samba suit.


Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount_msdosfs -L ... [odd behaviour ?]

2010-10-30 Thread Lowell Gilbert
dan gl...@live.com writes:

 On 10/29/10 01:00, Chuck Swiger wrote:
 Hi, Dan--

 On Oct 28, 2010, at 3:45 PM, dan wrote:
 'mount_msdosfs -L en_US.UTF-8 /dev/da0 local/mnt/'

 executed by a non root-user prints out the following

 mount_msdosfs: msdosfs_iconv: Operation not permitted

 and then stops with error 71 on console.

 Later, the same command, executed by the same user, completes correctly if 
 some time before the root user has succesfully issued it and unmounted the 
 device.

 Any clues ? Things I am probably missing ? Does Anyone else notice this 
 (odd) behaviour (if it is odd) ?

 It's probably coming from /usr/src/sbin/mount_msdosfs/mount_msdosfs.c:

if (set_charset(iov,iovlen, cs_local, cs_dos) == -1)
  err(EX_OSERR, msdosfs_iconv);

 ...since set_charset() tries to load the msdosfs_iconv  libiconv kernel 
 modules:

  if (modfind(msdosfs_iconv)  0)
  if (kldload(msdosfs_iconv)  0 || modfind(msdosfs_iconv)  0) {
  warnx(cannot find or load \msdosfs_iconv\ kernel module);
  return (-1);
  }

 kldload() fails with EPERM if you are not root:

   [EPERM]You do not have access to read the file or link it
  with the kernel.  You should be the root user to be
  able to use the kld system calls.

 Once root has loaded these modules, you can invoke mount_msdosfs as a normal 
 user because they are already available.  You can put kldload 
 msdosfs_iconv into /etc/rc.local, or maybe tweak /boot/loader.conf to load 
 these at boot if you prefer.

 Regards,
 Hello :-)

 Thank you for your research and prompt response. The module was
 available. I tried both: kldload in command line and adding it in
 loader.conf.

 Note. In case the module has not been been loaded,as a user, here, one
 gets 2 messages
 mount_msdosfs: cannot find or load msdosfs_iconv kernel module
 AND
 mount_msdosfs: msdosfs_iconv: Operation not permitted

 I wonder what Operation is not permitted as a user and what rights the
 user needs.

The missing operation is the loading of kernel modules, and there is no
way to do it without root privileges. Just do it at boot time (from
loader.conf), and you'll be fine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount_msdosfs -L ... [odd behaviour ?]

2010-10-30 Thread dan

On 10/29/2010 20:05, David DEMELIER wrote:

2010/10/29 Adam Vande Moreamvandem...@gmail.com:

On Fri, Oct 29, 2010 at 7:53 AM, dangl...@live.com  wrote:


On 10/29/10 13:22, Adam Vande More wrote:


On Fri, Oct 29, 2010 at 6:13 AM, dangl...@live.comwrote:

  Thank you for your research and prompt response. The module was

available.
I tried both: kldload in command line and adding it in loader.conf.

Note. In case the module has not been been loaded,as a user, here, one
gets
2 messages
mount_msdosfs: cannot find or load msdosfs_iconv kernel module
AND

mount_msdosfs: msdosfs_iconv: Operation not permitted

I wonder what Operation is not permitted as a user and what rights the
user
needs.




sysctl vfs.usermount=1

Although it doesn't seem correct that you can mount that FS if it's
already
been mounted previously by root when that sysctl is at 0.



Hello

vfs.usermount is already set. In fact, I can readily mount the filesystem
if I do not specify -L 

I did mount and then soon unmount the filesystem as root with -L 



I see now.  The loading of the kernel module is not permitted as I think the
mount command attempts to load it if necessary.  I'm not aware of any method
of granting access to user which would allow them to load/unload kernel
modules.  Only root level privs can do that.


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



I have the same trouble, I usually mount device by user with
vfs.usermount=1 but for libiconv I need root...

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



Hello again,

I took a deeper look at the code. And later I found some work on the 
topic. Standard users receive error when mounting the file system -even 
if they have rights to mount it- because :


character set conversion tables need to be loaded into kernel and  
that's not allowed to plain users, because charset tables are large 
enough to initiate a denial of service by filling kernel memory with 
many tables


As I lernt while searching, one solution to the problem (if one wants to 
avoid mounting as root) is to preload some conversion tables when the 
system starts up. Some software has been developed to reach this goal: 
kiconvtool, that one can find in the ports tree [1] and that has been 
developed by Dmitry Marakasov [2] (thanks !!!).


By the way, even if this software solved a big part of the problem and 
gave me a huge hand, to let it completely work I needed to slightly 
modify it because something was missing.


Everything is explained in the following bug report :

http://www.freebsd.org/cgi/query-pr.cgi?pr=151833

Thanks, Gentlemen, for the pointers ;)

d

[1] http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/kiconvtool/
[2] http://wiki.freebsd.org/DmitryMarakasov/kiconvtool




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


Re: ssh key authentication problem...

2010-10-30 Thread Peter Harrison
On Thu, Oct 28, 2010 at 10:13:12PM +0100, krad wrote:
 On 28 October 2010 20:39, Peter Harrison peter.piggy...@virgin.net wrote:
 
  Can anyone help me debug an ssh key-based authentication problem?
 
  I have an 8.1-R server running sshd, with one user account. On the server,
  I've used ssh-keygen to generate id_rsa  and id_rsa.pub.
 
  On my laptop I then pulled the id_rsa.pub file over and:
 
  % cat id_rsa.pub  .ssh/authorized_keys
 
  Now I try to login from the laptop (also 8.1-R) to the server. It pauses
  for a second and presents me with a 'Password:' prompt, so obviously the key
  authentication isn't working.
 
  He's a debugging chunk from sshd run with '-ddd' flags:
 
  debug1: PAM: initializing for peter
  debug1: userauth-request for user peter service ssh-connection method
  publickey
  debug1: attempt 1 failures 0
  debug2: input_userauth_request: try method publickey
  debug1: test whether pkalg/pkblob are acceptable
  debug3: mm_key_allowed entering
  debug3: mm_request_send entering: type 20
  debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
  debug3: mm_request_receive_expect entering: type 21
  debug3: mm_request_receive entering
  debug1: PAM: setting PAM_RHOST to 192.168.1.4
  debug2: monitor_read: 45 used once, disabling now
  debug3: mm_request_receive entering
  debug3: monitor_read: checking request 3
  debug3: mm_answer_authserv: service=ssh-connection, style=
  debug2: monitor_read: 3 used once, disabling now
  debug3: mm_request_receive entering
  debug3: monitor_read: checking request 20
  debug3: mm_answer_keyallowed entering
  debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0
  debug1: trying public key file /home/peter/.ssh/authorized_keys
  debug1: fd 4 clearing O_NONBLOCK
  debug3: secure_filename: checking '/usr/home/peter/.ssh'
  debug3: secure_filename: checking '/usr/home/peter'
  debug3: secure_filename: terminating check at '/usr/home/peter'
  debug2: key not found
  debug1: trying public key file /home/peter/.ssh/authorized_keys2
  Failed publickey for peter from 192.168.1.4 port 43046 ssh2
  debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed
  debug3: mm_request_send entering: type 21
  debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
  debug3: mm_request_receive entering
  debug1: userauth-request for user peter service ssh-connection method
  keyboard-interactive
  debug1: attempt 2 failures 1
  debug2: input_userauth_request: try method keyboard-interactive
  debug1: keyboard-interactive devs
 
  Anyone suggest what I'm doing wrong?
 
  TIA.
 
 
  Peter Harrison.
 
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 
 
 you have the setup the keys the wrong way around by the sound of it. The ssh
 server should have the public keys only in the authorized_keys files, and
 your client/desktop should have the private keys in your ~/.ssh

Now I feel like a right berk. Thanks for putting me on the right track, I have 
it working now.

Regards,



Peter Harrison.
C
C
B
D
Now I feel like a right berk. Thanks I have it sorted and working now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ssh key authentication problem...

2010-10-30 Thread Peter Harrison
On Thu, Oct 28, 2010 at 02:17:14PM -0700, Chuck Swiger wrote:
 Hi--
 
 On Oct 28, 2010, at 12:39 PM, Peter Harrison wrote:
  debug1: trying public key file /home/peter/.ssh/authorized_keys
  debug1: fd 4 clearing O_NONBLOCK
  debug3: secure_filename: checking '/usr/home/peter/.ssh'
  debug3: secure_filename: checking '/usr/home/peter'
  debug3: secure_filename: terminating check at '/usr/home/peter'
  debug2: key not found
 
 It's likely that the permissions to the private key are wrong somewhere in 
 the path.  Something like chmod go-w / /usr /usr/home /usr/home/peter 
 /usr/home/peter/.ssh /usr/home/peter/.ssh/id_rsa is likely to help
 
 Regards,
 -- 
 -Chuck
 

You were right that there was a permissions problem in there too. It's sorted 
now, thanks for the assist.



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


Re: ssh key authentication problem...

2010-10-30 Thread Peter Harrison
On Thu, Oct 28, 2010 at 10:18:41PM -0400, Mikel King wrote:
 Peter,
 
 Have you verified permissions of 700 on .ssh and 640 on authorized_keys and 
 authorized_keys2? If you do not have an authorized_keys2 simply copy the 
 former to that name and give it a go.
 
 Cheers,
 Mikel King

Mikel - you were right I didn't have the permission correct, but it doesn't 
work if I have it set to anything other than 0600 for authorized_keys? Thanks 
for the help.


Peter Harrison.

 
   _  
 
 From: Peter Harrison [mailto:peter.piggy...@virgin.net]
 To: questi...@freebsd.org
 Sent: Thu, 28 Oct 2010 15:39:53 -0400
 Subject: ssh key authentication problem...
 
 Can anyone help me debug an ssh key-based authentication problem?
   
   I have an 8.1-R server running sshd, with one user account. On the server, 
 I've used ssh-keygen to generate id_rsa  and id_rsa.pub.
   
   On my laptop I then pulled the id_rsa.pub file over and:
   
   % cat id_rsa.pub  .ssh/authorized_keys
   
   Now I try to login from the laptop (also 8.1-R) to the server. It pauses 
 for a second and presents me with a 'Password:' prompt, so obviously the key 
 authentication isn't working.
   
   He's a debugging chunk from sshd run with '-ddd' flags:
   
   debug1: PAM: initializing for peter
   debug1: userauth-request for user peter service ssh-connection method 
 publickey
   debug1: attempt 1 failures 0
   debug2: input_userauth_request: try method publickey
   debug1: test whether pkalg/pkblob are acceptable
   debug3: mm_key_allowed entering
   debug3: mm_request_send entering: type 20
   debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
   debug3: mm_request_receive_expect entering: type 21
   debug3: mm_request_receive entering
   debug1: PAM: setting PAM_RHOST to 192.168.1.4
   debug2: monitor_read: 45 used once, disabling now
   debug3: mm_request_receive entering
   debug3: monitor_read: checking request 3
   debug3: mm_answer_authserv: service=ssh-connection, style=
   debug2: monitor_read: 3 used once, disabling now
   debug3: mm_request_receive entering
   debug3: monitor_read: checking request 20
   debug3: mm_answer_keyallowed entering
   debug3: mm_answer_keyallowed: key_from_blob: 0x286067c0
   debug1: trying public key file /home/peter/.ssh/authorized_keys
   debug1: fd 4 clearing O_NONBLOCK
   debug3: secure_filename: checking '/usr/home/peter/.ssh'
   debug3: secure_filename: checking '/usr/home/peter'
   debug3: secure_filename: terminating check at '/usr/home/peter'
   debug2: key not found
   debug1: trying public key file /home/peter/.ssh/authorized_keys2
   Failed publickey for peter from 192.168.1.4 port 43046 ssh2
   debug3: mm_answer_keyallowed: key 0x286067c0 is not allowed
   debug3: mm_request_send entering: type 21
   debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
   debug3: mm_request_receive entering
   debug1: userauth-request for user peter service ssh-connection method 
 keyboard-interactive
   debug1: attempt 2 failures 1
   debug2: input_userauth_request: try method keyboard-interactive
   debug1: keyboard-interactive devs 
   
   Anyone suggest what I'm doing wrong?
   
   TIA.
   
   
   Peter Harrison.
   
   
   
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


hostname

2010-10-30 Thread Tim Dunphy
how can I set the hostname so that it persists through reboots? I have
set the hostname I want in /etc/hosts but rebooting the change does
not show up. In CentOS you have /etc/hostname which serves this
purpose but in FreeBSD I don't know how to do this.


thanks

-- 
Here's my RSA Public key:
gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9

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


Re: hostname

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 16:00:39 -0400, Tim Dunphy bluethu...@gmail.com wrote:
 how can I set the hostname so that it persists through reboots? I have
 set the hostname I want in /etc/hosts but rebooting the change does
 not show up. In CentOS you have /etc/hostname which serves this
 purpose but in FreeBSD I don't know how to do this.

Put this setting into /etc/rc.conf:

hostname=blah.foo.bar

Of course with your desired hostname. :-)

See man rc.conf and man hosts for details about the function
of those files; see also /etc/defaults/rc.conf for other options
that may be interesting in this concern.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hostname

2010-10-30 Thread Tim Kellers

 On 10/30/10 4:00 PM, Tim Dunphy wrote:

how can I set the hostname so that it persists through reboots? I have
set the hostname I want in /etc/hosts but rebooting the change does
not show up. In CentOS you have /etc/hostname which serves this
purpose but in FreeBSD I don't know how to do this.


thanks


edit /etc/rc.conf and enter:

hostname=[put your hostname here]

change the [put your hostname here] to your actual hostname.

And it will load the name on (re)boot.

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


Re: hostname

2010-10-30 Thread Chris Hill

On Sat, 30 Oct 2010, Tim Kellers wrote:


On 10/30/10 4:00 PM, Tim Dunphy wrote:

how can I set the hostname so that it persists through reboots? I have
set the hostname I want in /etc/hosts but rebooting the change does
not show up. In CentOS you have /etc/hostname which serves this
purpose but in FreeBSD I don't know how to do this.


thanks


edit /etc/rc.conf and enter:

hostname=[put your hostname here]

change the [put your hostname here] to your actual hostname.

And it will load the name on (re)boot.


If you don't want to wait for reboot, you can set it immediately by typing

  hostname putyourhostnamehere

as root, substituting your desired host name for putyourhostnamehere. Also 
see `man hostname`. Note, this is *in addition to* editing rc.conf. The 
hostname command sets the hostname right now, and rc.conf makes it happen 
on each boot.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hostname

2010-10-30 Thread Sabine Baer
On Sat, Oct 30, 2010 at 04:00:39PM -0400, Tim Dunphy wrote:
 how can I set the hostname so that it persists through reboots? I have
 set the hostname I want in /etc/hosts but rebooting the change does
 not show up. In CentOS you have /etc/hostname which serves this
 purpose but in FreeBSD I don't know how to do this.

I think, /etc/rc.conf could be the best place.

Sabine

-- 
Der Gefraessige, wenn er Vorsicht nicht kennt, isst sich Uebelkeit an.
Dem toerichten Mann wird sein Magen zum Spott, wenn er zu Klugen
kommt.(Hávamál 13)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


can't add entries to fsab

2010-10-30 Thread Tim Dunphy
Hello,

 I am having some trouble adding entries to /etc/fstab.. what happens
to work under CentOS does not under FreeBSD!! no surprise there, I
suppose.. heh


 I have nfs_client_enable=YES in my /etc/rc.conf

 Yet if I add even one line such as

 nas2.summitnhome.com:/mnt/home   /homenfs rw  0   0

the system refuses to boot normally and I have to add the path to
/bin//sh manually each time


why on Earth can I not add entries to fstab as I do to CentOS??

thanks!!



-- 
Here's my RSA Public key:
gpg --keyserver pgp.mit.edu --recv-keys 5A4873A9

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


Re: can't add entries to fsab

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 18:47:58 -0400, Tim Dunphy bluethu...@gmail.com wrote:
 Hello,
 
  I am having some trouble adding entries to /etc/fstab.. what happens
 to work under CentOS does not under FreeBSD!! no surprise there, I
 suppose.. heh
 
 
  I have nfs_client_enable=YES in my /etc/rc.conf
 
  Yet if I add even one line such as
 
  nas2.summitnhome.com:/mnt/home   /homenfs rw  0   0
 
 the system refuses to boot normally and I have to add the path to
 /bin//sh manually each time

That is normal and intended. Instead of just proceeding,
maybe causing filesystem is full or any kind of access
errors, the system stops when a mandatory mount from fstab
cannot be performed.



 why on Earth can I not add entries to fstab as I do to CentOS??

First, check the mount command itself. If it works, put it into
/etc/fstab. Make sure all requirements are met when the fstab
is being parsed and executed - e. g. network has to be up
and running to access files per NFS. See man fstab for
details about this file.

If the pure mount_nfs (or mount -t nfs) command works, you
can put it into /etc/fstab with the noauto option first and
then see if everything works when you do mount /home manually.

Then, finally, make the change of noauto and let the system
perform the mount at the proper time.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't add entries to fsab

2010-10-30 Thread Warren Block

On Sat, 30 Oct 2010, Tim Dunphy wrote:


I am having some trouble adding entries to /etc/fstab.. what happens
to work under CentOS does not under FreeBSD!! no surprise there, I
suppose.. heh


I have nfs_client_enable=YES in my /etc/rc.conf

Yet if I add even one line such as

nas2.summitnhome.com:/mnt/home   /homenfs rw  0   0

the system refuses to boot normally and I have to add the path to
/bin//sh manually each time


Add the late option ('man mount | less +3/late') to the rw option in 
that line:


nas2.summitnhome.com:/mnt/home   /homenfs rw,late  0   0


why on Earth can I not add entries to fstab as I do to CentOS??


Beyond knowing that they're different, dunno.  Maybe the async DHCP in 
FreeBSD is different.

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


Re: man(1) output error

2010-10-30 Thread Warren Block

On Fri, 29 Oct 2010, Chip Camden wrote:


% man csh | less +/rehash

   rehash  Causes the internal hash table of the contents of the  directo-
   ries  in the path variable to be recomputed.  This is needed if
[...]
Error executing formatting or display command.
system command exited with status 36096
Error executing formatting or display command.
system command exited with status 36096
No manual entry for csh
%



(meant to reply to list)

I can confirm that the very latest 8.1-STABLE (csup and build this
morning) reproduces the problem.  uname -a:

FreeBSD libertas.local.camdensoftware.com 8.1-STABLE FreeBSD 8.1-STABLE #85: 
Fri Oct 29 10:27:19 PDT 2010 
sterl...@libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS  amd64


This seems to be a problem with the csh man page.  Other pages work 
fine, like 'man hosts | less +/named' or 'man devfs | less +/ruleset'.

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


ACPI Warning: 32/64X FACS address mismatch in FADT

2010-10-30 Thread J.D. Bronson

I have an INTEL DP43TF motherboad with an Intel Core 2 Quad. (non-HTT)
When I boot up Freebsd 8.1 I see a message like this:

ACPI Warning: 32/64X FACS address mismatch in FADT..(blah)..using 32

I cant determine if this is OK and a cosmetic type of message or 
something more serious to question.


Google turned up several hits but nothing explains what this is and/or 
the importance of it.


Thanks,


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


Re: man(1) output error

2010-10-30 Thread Warren Block

On Sat, 30 Oct 2010, Warren Block wrote:


On Fri, 29 Oct 2010, Chip Camden wrote:


% man csh | less +/rehash

   rehash  Causes the internal hash table of the contents of the 
directo-
   ries  in the path variable to be recomputed.  This is 
needed if

[...]
Error executing formatting or display command.
system command exited with status 36096
Error executing formatting or display command.
system command exited with status 36096
No manual entry for csh
%



(meant to reply to list)

I can confirm that the very latest 8.1-STABLE (csup and build this
morning) reproduces the problem.  uname -a:

FreeBSD libertas.local.camdensoftware.com 8.1-STABLE FreeBSD 8.1-STABLE 
#85: Fri Oct 29 10:27:19 PDT 2010 
sterl...@libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS 
amd64


This seems to be a problem with the csh man page.  Other pages work fine, 
like 'man hosts | less +/named' or 'man devfs | less +/ruleset'.


Actually, it appears to be a problem with long manual pages, including 
csh, bash, or perlfunc.

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


Re: man(1) output error

2010-10-30 Thread parv
in message alpine.bsf.2.00.1010302050110.7...@wonkity.com,
wrote Warren Block thusly...

 On Sat, 30 Oct 2010, Warren Block wrote:

  On Fri, 29 Oct 2010, Chip Camden wrote:
 
  % man csh | less +/rehash
 
 rehash  Causes the internal hash table of the contents of the
  directo-
 ries  in the path variable to be recomputed.  This is
  needed if
[...]
  Error executing formatting or display command.
  system command exited with status 36096
  Error executing formatting or display command.
  system command exited with status 36096
  No manual entry for csh
...
  I can confirm that the very latest 8.1-STABLE (csup and build
  this morning) reproduces the problem.  uname -a:
 
  FreeBSD libertas.local.camdensoftware.com 8.1-STABLE FreeBSD 8.1-STABLE
  #85: Fri Oct 29 10:27:19 PDT 2010
  sterl...@libertas.local.camdensoftware.com:/usr/obj/usr/src/sys/LIBERTAS
  amd64
 
  This seems to be a problem with the csh man page.  Other pages
  work fine, like 'man hosts | less +/named' or 'man devfs | less
  +/ruleset'.

 Actually, it appears to be a problem with long manual pages,
 including csh, bash, or perlfunc.

I tried with man perlfunc | less '+/y' (also repeated the above
with csh) which did not result in any error messages in zsh 4 on
FreeBSD 8-STABLE (c. Sep 9 2010).


  - parv

-- 

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


Re: man(1) output error

2010-10-30 Thread Adam Vande More
On Sat, Oct 30, 2010 at 10:13 PM, p...@pair.com wrote:

 I tried with man perlfunc | less '+/y' (also repeated the above
 with csh) which did not result in any error messages in zsh 4 on
 FreeBSD 8-STABLE (c. Sep 9 2010).


Perhaps it's not directly related to the shell since your config is similar
to except my stable is from Oct 4 and the error happens here.

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


kwik one...

2010-10-30 Thread Gary Kline

Main reason I have linux as my desktop is to watch motion pix; A/V,
but this stuff usually requires that crappy animation add-on.  So:
can anybody give me a menu to add/build linux-firefox and that
plug-in.  I already have ad-blockers on my Ubuntu;  hulu flips me
off at that

tx

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

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


Re: man(1) output error

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 22:27:49 -0500, Adam Vande More amvandem...@gmail.com 
wrote:
 On Sat, Oct 30, 2010 at 10:13 PM, p...@pair.com wrote:
 
  I tried with man perlfunc | less '+/y' (also repeated the above
  with csh) which did not result in any error messages in zsh 4 on
  FreeBSD 8-STABLE (c. Sep 9 2010).
 
 
 Perhaps it's not directly related to the shell since your config is similar
 to except my stable is from Oct 4 and the error happens here.

zsh 4 on FreeBSD 7:
% man perlfunc | less '+/y'
Error executing formatting or display command.
system command exited with status 36096
No manual entry for perlfunc

bash 4 on FreeBSD 7:
$ man perlfunc | less '+/y'
Error executing formatting or display command.
system command exited with status 36096
No manual entry for perlfunc

Maybe some buffer issue as the length of the man page seems to
have an influence?



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kwik one...

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 20:52:51 -0700, Gary Kline kl...@thought.org wrote:
 
 Main reason I have linux as my desktop is to watch motion pix; A/V,
 but this stuff usually requires that crappy animation add-on.  So:
 can anybody give me a menu to add/build linux-firefox and that
 plug-in.  I already have ad-blockers on my Ubuntu;  hulu flips me
 off at that

I would think something like 6.2.3, to be found here:

http://www.freebsd.org/doc/handbook/desktop-browsers.html

I know this worked in the past, but I'm not sure if this is still
the standard way of getting it working. I assume the handbook is
not fully complete in this regards, as

http://forums.freebsd.org/showthread.php?t=18449

mentiones some more things to keep an eye on.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: man(1) output error

2010-10-30 Thread Warren Block

On Sat, 30 Oct 2010, Adam Vande More wrote:


On Sat, Oct 30, 2010 at 10:13 PM, p...@pair.com wrote:
  I tried with man perlfunc | less '+/y' (also repeated the above
  with csh) which did not result in any error messages in zsh 4 on
  FreeBSD 8-STABLE (c. Sep 9 2010).


Perhaps it's not directly related to the shell since your config is similar to 
except my stable is from Oct 4 and the error happens here.


Sounds right.  The initial search command for less (+/whatever) is not 
always needed; after the error appears with it, just 'man perlfunc | 
less' will give the errors.


The errors appear here when 'man perlfunc | less +/y' is run on csh, 
bash, or zsh and q is pressed before the EOF has been reached:


  % man perlfunc | less +/y
  Error executing formatting or display command.
  system command exited with status 36096
  No manual entry for perlfunc

The status is always 36096, or 0x8d00.  Haven't yet found a short man 
page which does this.  Interestingly, longer man pages may do it twice:


  % man ifconfig | less +/following
  Error executing formatting or display command.
  system command exited with status 36096
  Error executing formatting or display command.
  system command exited with status 36096
  No manual entry for ifconfig

Go to the EOF with G first, then press q, and there are no errors.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: man(1) output error

2010-10-30 Thread Polytropon
On Sat, 30 Oct 2010 22:21:02 -0600 (MDT), Warren Block wbl...@wonkity.com 
wrote:
 Sounds right.  The initial search command for less (+/whatever) is not 
 always needed; after the error appears with it, just 'man perlfunc | 
 less' will give the errors.
 
 The errors appear here when 'man perlfunc | less +/y' is run on csh, 
 bash, or zsh and q is pressed before the EOF has been reached:
 
% man perlfunc | less +/y
Error executing formatting or display command.
system command exited with status 36096
No manual entry for perlfunc
 
 The status is always 36096, or 0x8d00.  Haven't yet found a short man 
 page which does this.  Interestingly, longer man pages may do it twice:
 
% man ifconfig | less +/following
Error executing formatting or display command.
system command exited with status 36096
Error executing formatting or display command.
system command exited with status 36096
No manual entry for ifconfig
 
 Go to the EOF with G first, then press q, and there are no errors.

True - and just confirmed on 5.4-p14, so it must have been
waiting inside the machine for many years now...



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: man(1) output error

2010-10-30 Thread Adam Vande More
On Sat, Oct 30, 2010 at 11:44 PM, Polytropon free...@edvax.de wrote:

 True - and just confirmed on 5.4-p14, so it must have been
 waiting inside the machine for many years now...


Looks like the Norwiegans got to the the south pole first:

http://lists.freebsd.org/pipermail/freebsd-stable/2006-November/030705.html

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