Re: Email problem

2008-04-04 Thread Jonathan Chen
[Please do not remove Cc: freebsd-questions]

On Fri, Apr 04, 2008 at 02:19:32PM +0800, Ruel Luchavez wrote:
 I'm using the Mozilla Thunderbird, same setting i did to the other users
 it always complain :
 
 An error occurred while trying to send email. The mail server responded:
 5.7.1 [EMAIL PROTECTED]
 Sender address rejected.Please check the message..
 
 what should be the problem..I'm pretty sure its not the recipient address..

You still haven't supplied enough details to the list for us to
diagnose the problem. As such, my uninformed guess is that your SMTP
host has been configured to reject the sender address you've supplied from
the client you're on. If you supply us with more information, we might be
able to help you fix this. In particular, we still need:

1. What is the MTA you're using.
2. Show us the configuration file.
3. The MTA mail-logs.

-- 
Jonathan Chen [EMAIL PROTECTED]
--
 Power corrupts, Absolute Power is pretty neat
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Boot menu and USB keyboard

2008-04-04 Thread Gianni Doe
I've got a USB keyboard and I'm unable to select any of the options in  
the boot loader/beastie menu - escape to the loader prompt, single- 
user mode etc..
It is the only keyboard attached and it works fine once the system is  
up.


I've done a bit of Googling and tried setting hint.atkbd.0.flags=0x1  
in loader.conf but it doesn't make any difference.

I'd appreciate some suggestions.
Thanks
Gianni
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Email problem

2008-04-04 Thread Mike Clarke
On Friday 04 April 2008, Jonathan Chen wrote:

 On Fri, Apr 04, 2008 at 01:33:48PM +0800, Ruel Luchavez wrote:
  Hi..
 
  I am having trouble in my email server I spend many hours but i
  cant fix it, hopeu can help me guys
  One of the account i created cant send email in any email address
  like gmail.com I created it the same settings
  with my other account but it doesnt work...is ther a problem on my
  sever on this?

 Of course there's a problem on your server - otherwise it'd be
 working. However, if you want help from us, you have to provide us
 with details:

 1. what mail software are you using
 2. what is your configuration file like.
 3. what your logs are saying.

That's assuming that Thunderbird is sending outgoing mail through a 
local MTA and not through the OPs ISP smarthost, perhaps the clue to 
the problem lies in his Thunderbird config files. A _full_ set of 
headers from a bounced message might help.

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


Re: wpa_supplicant not starting with /etc/rc.d/netif

2008-04-04 Thread Oleg Dolgov

Hello,

I have been following these instructions from the manual:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html#NETWORK-WIRELESS-WPA-WPA-PSK
However, in the step that requires me to run /etc/rc.d/netif start,
instead of it starting wpa_supplicant, I see only ral0: no
link giving up. I've added
ifconfig_ral0=WPA DHCP to /etc/rc.conf, and it works just fine if I
start it manually with wpa_supplicant -B -c /etc/wpa_supplicant.conf
-i ral0. What should I do to get it working? Could it be that there's
some bug in your scripts?

Regards,
Reinis


Hi, try this (work for me):

ifconfig_ral0=DHCP WPA


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


Re: wpa_supplicant not starting with /etc/rc.d/netif

2008-04-04 Thread Peter Boosten

Oleg Dolgov wrote:
ifconfig_ral0=WPA DHCP 

ifconfig_ral0=DHCP WPA


Both worked for me, so that should not be the problem.
I've had my deal of issues with that ral driver though.

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


RAID contrôleur SATA/IDE

2008-04-04 Thread Olivier GARNIER
Hi,

 

I’m looking for a RAID CARD CONTROLEUR (PCI card would be fine).

I wish I could plug in 2 SATA disk (250 Go) and 2 IDE UDMA/133 disk (250 Go)

 

For the first computer, I’ve bought a tiny card with a Sil680 chipset for
the IDE disk, but it’s not recognising as a RAID controller. Just as an IDE
controller.

For the second computer, I wish I could use the motherboard RAID chipset,
but it seems not to be recognise too.

 

In fine, I now wish to have only one computer with a card for all the disks
(2 x 250 Go IDE UDMA.133 and 2 x 250 Go SATA2)

I looked on FreeBSD 7.0 hardware release, but I don’t understand anything …
:-(

Thanks,

 

Olivier

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


Re: Network setup

2008-04-04 Thread Christian Walther
Hi Ruel,

On 04/04/2008, Ruel Luchavez [EMAIL PROTECTED] wrote:
 Hi

  I'm a beginner on this kind of industry I hope you guys will help me because
  i really want to LEARN..and i cant get any support on my fellows...:D

  I have a Linksys wireless-g broadband router model WRT54G here and I tried
  to configure it..but still i could not connect to Internet.
  I don't know if I've configured it wrong..could some one help me how to do
  it step by step?
  I would like to set-up this in our existing network for us to have wireless
  connection in other building...
  We are using DELL Power Connect 2724 here..

if I understand you correctly you need help to generally set up your router.
This can't be handled on this help, but I think we can help you to
configure your FreeBSD box if you want to connect to your WLAN once
its set up.

If you need help with the Linksys-Router you should search for a
linksys based Mailing List, or forum. The people there are Linksys
Users themselves and know how to deal with this stuff. IMO there's a
good forum out there with lots of helpfull people:
http://www.linksysinfo.org

In case I misunderstood you and you have a FreeBSD specific issue,
please provide some details of where your problems are, what Hardware
you're using. And what you tried.
There's an entire chapter in the FreeBSD handbook dealing with this
Wireless Networking, too. Please see
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

You might want to read on basic networking, too.

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


Network setup

2008-04-04 Thread Ruel Luchavez
Hi

I'm a beginner on this kind of industry I hope you guys will help me because
i really want to LEARN..and i cant get any support on my fellows...:D

I have a Linksys wireless-g broadband router model WRT54G here and I tried
to configure it..but still i could not connect to Internet.
I don't know if I've configured it wrong..could some one help me how to do
it step by step?
I would like to set-up this in our existing network for us to have wireless
connection in other building...
We are using DELL Power Connect 2724 here..

Thanks in advance for your HELP

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


Re: Network setup

2008-04-04 Thread Gerard
On Fri, 4 Apr 2008 17:52:22 +0800
Ruel Luchavez [EMAIL PROTECTED] wrote:

 I have a Linksys wireless-g broadband router model WRT54G here and I
 tried to configure it..but still i could not connect to Internet.
 I don't know if I've configured it wrong..could some one help me how
 to do it step by step?

I have the WRT150N myself; however, the setup is virtually the same. By
the way, are you sure that you want to invest the time is using a 'G'
protocol router? The 'N' version is readily available, much faster and
has a greater range.

Anyway, I used a Windows box to do the initial
configuration/installation of the router. Visit the linksys site and get
the latest installer package:

http://www.linksys.com/servlet/Satellite?c=L_CASupport_C1childpagename=US%2FLayoutcid=1166859678292pagename=Linksys%2FCommon%2FVisitorWrapperlid=7829237314L06

Obviously, that should be all one line. After downloading and running
the installed, download and run the updater program. It works on your
router and might very well have an updated firmware for you.

Now that the router is working, you can start configuring it for your
network.


signature.asc
Description: PGP signature


Re: How to instal my NIC Card?

2008-04-04 Thread Steven Friedrich
On Friday 04 April 2008 12:51:59 am berlowin wrote:
 after i have installed freeBSD 5.4, in ifconfig only display fwe0, plip0,
 and lo0...

 Why my NIC which is supposed to be em0 is not seen?

 My Network Adapter is Intel(R) PRO/1000 PM Network Connection

 thx for your help...

I don't know your level of knowledge, so don't be offended by my suggestions 
if you already know this stuff.

First, you need to check that the card was detected during boot.
as root, do dmesg | grep em0

This will show a few lines beginning with em0: if it was detected.
You didn't say what kernel config you are running. If you haven't created a 
custom kernel, then you're running GENERIC, which supports the Intel card 
you're trying to use.

If it was NOT detected, then show us your kernel config.
If you don't know what that is, as any user, do uname -a and copy the output 
here.

If it DID detect it during boot, then grep em0 /etc/rc.conf
Hope this helps
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: trying atausb instead of umass, part 2

2008-04-04 Thread Steven Friedrich
On Thursday 03 April 2008 04:38:27 am Dieter wrote:
 [ no replies from -drivers, so added -questions ]

I looked at http://www.freebsd.org/search/search.html#mailinglists
and couldn't find a freebsd-drivers list.  Perhaps that's why you didn't get 
any replies?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Free 7 and GNOME

2008-04-04 Thread Aguiar Magalhaes
Hi list,

After a reboot (by energy down) the free 7 runs
fsck... Even after fsck finish, the gnome is very very
very slow.

Gnome takes a lot of minutes (at about 10 minutes) to
show the menu options and when i click on terminal
option (for exemple) it takes at about 10 minutes
again to show the  terminal window...

Finally, the terminal window doesn't show the header's
buttons (minimize, maxmize, exit)

How can i fix it ?

Aguiar



  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento!
http://br.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]


Boot menu and USB keyboard

2008-04-04 Thread Robert Huff

Gianni Doe writes:

  I've got a USB keyboard and I'm unable to select any of the
  options in the boot loader/beastie menu - escape to the loader
  prompt, single- user mode etc..
  It is the only keyboard attached and it works fine once the
  system is up.

What version of the OS?  I used to have this problem, but it
disappeared ... sometime between 6.0 and 7.0, I think.
And I'm pretty sure this was discussed on the mailing lists -
try searching under Huff USB keyboard.



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: trying atausb instead of umass, part 2

2008-04-04 Thread Steven Friedrich
I tried to switch from umass to atausb, but I had trouble.

I also noticed that atausb is mentioned in the release notes for 6.2, but it's 
not mentioned in the man page for ata(4) or in the Handbook.

Searching the current and usb mailing lists didn't reveal much.

I commented out umass and added device atausb to my kernel config, rebuilt the 
kernel and when I booted, I get:
Apr  3 20:56:51 laptop kernel: acd1: DEVICE_RESET unsupported
Apr  3 20:56:51 laptop kernel: acd1: CDROM U3 Cruzer Micro/2.16 at 
ata4-master USB2

about every two seconds I get:
Apr  3 20:56:51 laptop kernel: acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST 
asc=0x24 ascq=0x00
Apr  3 20:57:07 laptop kernel: acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST 
asc=0x24 ascq=0x00
Apr  3 20:57:48 laptop kernel: acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST 
asc=0x24 ascq=0x00
Apr  3 21:00:18 laptop kernel: acd1: FAILURE - PREVENT_ALLOW ILLEGAL REQUEST 
asc=0x24 ascq=0x00

Apparently, there's some magic that's not yet documented 8o)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot menu and USB keyboard

2008-04-04 Thread matti k
On Fri, 4 Apr 2008 10:22:52 +0200
Gianni Doe [EMAIL PROTECTED] wrote:

 I've got a USB keyboard and I'm unable to select any of the options
 in the boot loader/beastie menu - escape to the loader prompt,
 single- user mode etc..
 It is the only keyboard attached and it works fine once the system
 is up.
 
 I've done a bit of Googling and tried setting
 hint.atkbd.0.flags=0x1 in loader.conf but it doesn't make any
 difference. I'd appreciate some suggestions.
 Thanks
 Gianni

Hi Gianni,

Check the BIOS settings for USB keyboard/mouse.

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


Re: FreeBSD crashes

2008-04-04 Thread Kris Kennaway

n j wrote:

I hope someone can help me. I have started to experience
seemingly random crashes causing FreeBSD to shutdown and
power off the machine. The only trace I can find as far as
the reason for the crash is concerned are the following
excerpts from /var/log/messages:

Mar 23 11:52:36 myhostname kernel: 22NNMIMN NIMIMII IISISSSAAA
A  20,22 200E,0,I, S  EIEEASI ISAAS f Aff ff
Mar 23 11:52:36 myhostname kernel: f
Mar 23 11:52:36 myhostname kernel:
Mar 23 11:52:36 myhostname kernel: f
Mar 23 11:52:36 myhostname kernel: 22
Mar 23 11:52:36 myhostname kernel: f
Mar 23 11:52:36 myhostname kernel:
Mar 23 11:52:47 myhostname syslogd: exiting on signal 15
Mar 23 13:04:32 myhostname syslogd: kernel boot file is
/boot/kernel/kernel


Small update: I have received some feedback that this seemingly random
junk is related to ipfw
(http://www.freebsd.org/cgi/query-pr.cgi?pr=116458).

However, I have also received information that this junk might not be
completely random and could be, in fact, related to NMI (non-maskable
interrupt) which would suggest hardware error. Any thoughts on this?



Yep, it's definitely a NMI (interleaved from several CPUs at once) which 
 most likely means hardware failure.


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


Re: Boot menu and USB keyboard

2008-04-04 Thread Gianni Doe

On 04/apr/08, at 14:23, Robert Huff wrote:

I've got a USB keyboard and I'm unable to select any of the
options in the boot loader/beastie menu - escape to the loader
prompt, single- user mode etc..
It is the only keyboard attached and it works fine once the
system is up.

What version of the OS?  I used to have this problem, but it
disappeared ... sometime between 6.0 and 7.0, I think.
And I'm pretty sure this was discussed on the mailing lists -
try searching under Huff USB keyboard.
Robert Huff


I'm running 7.0-STABLE and legacy USB support is enabled in the BIOS,  
motherboard is ASUS A8V.
I did search but all the stuff I found is a few years old, so should  
the boot menu definitely support usb keyboard?

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


Re: trying atausb instead of umass, part 2

2008-04-04 Thread Da Rock

On Fri, 2008-04-04 at 08:16 -0400, Steven Friedrich wrote:
 On Thursday 03 April 2008 04:38:27 am Dieter wrote:
  [ no replies from -drivers, so added -questions ]
 
 I looked at http://www.freebsd.org/search/search.html#mailinglists
 and couldn't find a freebsd-drivers list.  Perhaps that's why you didn't get 
 any replies?

Then this would be a figment of our imagination? :)
http://lists.freebsd.org/mailman/listinfo/freebsd-drivers

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


Re: [unsure] Re: Problem starting X as user

2008-04-04 Thread Frank Wißmann

herbert langhans wrote:
Also check if you have the /etc/x11/xorg.conf -- root 644. Dont keep another xorg.conf in the /home/user directory so its using the one from /etc/x11 for sure. 

Dont have 
~/.Xresources and
~/.Xmodmap 
in the home directory. 


I must admit I have some xmodmap-commands in my .xinitrc. They worked 
fine in my 7.0-Beta1 installation. I now have upgraded to 7.0. X.org is 
7.3_1. I copied my ~/frank from one computer to another via NFS. May it 
be there went something wrong? (See below)


Check .xinitrc if it is in /root. If it is there and it works copy it over to 
the /home/user, care for permissions or make it 777.


I have only one in ~/frank.



Watch for /usr/local/lib/X11/xinit -- it will use this when you have no 
.xinitrc in the /home/user or permission is set wrong!


The file /usr/local/lib/X11/xinit/xinitrc is set to r--r--r--. It seems 
to me this is somehow wrong. Should I change it, and to which value?




Such troubles I solve best when I look over it the next day. Usually I find it in two minutes then and wonder how I can have not seen such an obvious mistake.. 


Cheers
herbs
 


On Thu, 03 Apr 2008 22:38:04 +0200
Frank Wißmann [EMAIL PROTECTED] wrote:


herbert langhans wrote:

Frank,
can you start twm when you log in as a user. It smells like some permission 
issue from xfce. You could backup the xfce files with the actual permissions 
and then set them all to 777 and try to start it.

Just an idea
herbs
 


On Thu, 03 Apr 2008 21:03:40 +0200
Frank Wißmann [EMAIL PROTECTED] wrote:


Hi all!
Hope there's somebody out there who can help me with the following problem:
When I type startx as root all is coming up as expected, the X-Server 
and twm as WM. When I stop it, log in as a normal user and do the same 
there is only a grey screen with a mouse-cursor coming up and doing 
nothing until I kill the X-Server with Ctrl-Alt-Backspace. On the 
original screen from which I tried to start is shown the following error 
message:


AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost 
(uid 1001)

Auth name: XDM-AUTHORIZATION-1 ID: -1
Xlib: connection to 0:0 refused by server
Xlib: Protocol not supported by server

.xinitrc and .xsession both have the same contens exec startxfce4 and 
the permissions rwxr-xr-x.


Any thoughts please?

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



If I comment out the exec startxfce4 in both files the effect is the 
same: No WM starts, just the X-Server. The interesting effect is that 
the output on the regular user's terminal is the same as above written. 
So it seems it has nothing to do with the WM I want to start.


Frank






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


Re: Problem starting X as user

2008-04-04 Thread Frank Wißmann

Warren Block wrote:

On Thu, 3 Apr 2008, Frank Wi?mann wrote:

Hope there's somebody out there who can help me with the following 
problem:
When I type startx as root all is coming up as expected, the 
X-Server and twm as WM. When I stop it, log in as a normal user and do 
the same there is only a grey screen with a mouse-cursor coming up and 
doing nothing until I kill the X-Server with Ctrl-Alt-Backspace. On 
the original screen from which I tried to start is shown the following 
error message:


AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost 
(uid 1001)

Auth name: XDM-AUTHORIZATION-1 ID: -1
Xlib: connection to 0:0 refused by server
Xlib: Protocol not supported by server

.xinitrc and .xsession both have the same contens exec startxfce4 
and the permissions rwxr-xr-x.


Any thoughts please?


My user .xsession is:

#!/bin/sh

# WB: allow other user to use X on localhost
xhost +localhost

exec /usr/local/bin/startxfce4

-Warren Block * Rapid City, South Dakota USA



There sure must be a problem with permissions. I can start the X-Server 
as root and execute startxfce4 and it works fine, but there is no WM 
as a user. Where do I have to look?


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


Re: Re: Problem starting X as user

2008-04-04 Thread herbert langhans
Maybe rename /home/frank/.xinitrc to /home/frank/.xinit.rc.backup

Then copy /usr/local/lib/X11/xinit/xinitrc to /home/frank and rename xinitrc to 
.xinitrc (and chown it to frank while youre at it).

As you have it now and you start as root it currently uses 
/usr/local/lib/X11/xinit/xinitrc. When you start as user it might use 
/home/frank/.xinitrc. 

Working?
herbs


On Fri, 04 Apr 2008 15:25:50 +0200
Frank Wißmann [EMAIL PROTECTED] wrote:

 herbert langhans wrote:
  Also check if you have the /etc/x11/xorg.conf -- root 644. Dont keep 
  another xorg.conf in the /home/user directory so its using the one from 
  /etc/x11 for sure. 
  
  Dont have 
  ~/.Xresources and
  ~/.Xmodmap 
  in the home directory. 
 
 I must admit I have some xmodmap-commands in my .xinitrc. They worked 
 fine in my 7.0-Beta1 installation. I now have upgraded to 7.0. X.org is 
 7.3_1. I copied my ~/frank from one computer to another via NFS. May it 
 be there went something wrong? (See below)
  
  Check .xinitrc if it is in /root. If it is there and it works copy it over 
  to the /home/user, care for permissions or make it 777.
 
 I have only one in ~/frank.
 
  
  Watch for /usr/local/lib/X11/xinit -- it will use this when you have no 
  .xinitrc in the /home/user or permission is set wrong!
 
 The file /usr/local/lib/X11/xinit/xinitrc is set to r--r--r--. It seems 
 to me this is somehow wrong. Should I change it, and to which value?
 
  
  Such troubles I solve best when I look over it the next day. Usually I find 
  it in two minutes then and wonder how I can have not seen such an obvious 
  mistake.. 
  
  Cheers
  herbs
   
  
  On Thu, 03 Apr 2008 22:38:04 +0200
  Frank Wißmann [EMAIL PROTECTED] wrote:
  
  herbert langhans wrote:
  Frank,
  can you start twm when you log in as a user. It smells like some 
  permission issue from xfce. You could backup the xfce files with the 
  actual permissions and then set them all to 777 and try to start it.
 
  Just an idea
  herbs
   
 
  On Thu, 03 Apr 2008 21:03:40 +0200
  Frank Wißmann [EMAIL PROTECTED] wrote:
 
  Hi all!
  Hope there's somebody out there who can help me with the following 
  problem:
  When I type startx as root all is coming up as expected, the X-Server 
  and twm as WM. When I stop it, log in as a normal user and do the same 
  there is only a grey screen with a mouse-cursor coming up and doing 
  nothing until I kill the X-Server with Ctrl-Alt-Backspace. On the 
  original screen from which I tried to start is shown the following error 
  message:
 
  AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost 
  (uid 1001)
  Auth name: XDM-AUTHORIZATION-1 ID: -1
  Xlib: connection to 0:0 refused by server
  Xlib: Protocol not supported by server
 
  .xinitrc and .xsession both have the same contens exec startxfce4 and 
  the permissions rwxr-xr-x.
 
  Any thoughts please?
 
  TIA Frank
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
  If I comment out the exec startxfce4 in both files the effect is the 
  same: No WM starts, just the X-Server. The interesting effect is that 
  the output on the regular user's terminal is the same as above written. 
  So it seems it has nothing to do with the WM I want to start.
 
  Frank
 
  
  
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 


-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** [EMAIL PROTECTED]
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Email problem

2008-04-04 Thread Pollywog
On Friday 04 April 2008 05:33:48 Ruel Luchavez wrote:
 Hi..

 I am having trouble in my email server I spend many hours but i cant fix
 it, hopeu can help me guys
 One of the account i created cant send email in any email address like
 gmail.com I created it the same settings
 with my other account but it doesnt work...is ther a problem on my sever on
 this?

 Your help is greatly needed...THANKS

If you are running Postfix as your MTA, I recommend the Book of Postfix by 
Hildebrandt and Koetter.  It also has a section on getting Courier IMAP 
working and how to get TLS working.  I refer to the book every time I need to 
configure a new Postfix setup.

See Also:

http://www.phparchitecture.com/howto_show.php?id=2

Those won't help much if you are not using Postfix or Courier IMAP.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to instal my NIC Card?

2008-04-04 Thread David Kelly
On Fri, Apr 04, 2008 at 08:01:20AM -0400, Steven Friedrich wrote:
 
 First, you need to check that the card was detected during boot.
 as root, do dmesg | grep em0

As root? That is really necessary?

In my experience dmesg only works a short time after boot. A day or so
later the dmesg buffer gets cleared. The safest thing is to read
/var/run/dmesg.boot, a file stashed away for exactly this sort of future
reference.

 This will show a few lines beginning with em0: if it was detected.
 You didn't say what kernel config you are running. If you haven't
 created a custom kernel, then you're running GENERIC, which supports
 the Intel card you're trying to use.
 
 If it was NOT detected, then show us your kernel config.
 If you don't know what that is, as any user, do uname -a and copy
 the output here.

As root, kldload if_em should load and initialize the driver if its
not built into the kernel. If this works then rather than build a new
kernel one can add if_em_load=YES to /boot/loader.conf

 If it DID detect it during boot, then grep em0 /etc/rc.conf
 Hope this helps

/etc/rc.conf is where one puts the startup parameters for em0 but there
is no point trying to configure em0 until em0 is listed by ifconfig. If
sysinstall didn't see em0 then there wouldn't be anything for em0 in
rc.conf.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

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


Re: Network setup

2008-04-04 Thread Gerard
On Fri, 4 Apr 2008 12:48:08 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  I have the WRT150N myself; however, the setup is virtually the
  same. By the way, are you sure that you want to invest the time is
  using a 'G' protocol router? The 'N' version is readily available,
  much faster and has a greater range.  
 
 even better - use cables. cheapest and fastest;)

The OP stated, or at least I assumed that he meant that the network was
rather extensive. Using cables, while it might provide a faster data
transfer, could easily cost more to implement. If the OP can get the
wireless network up and running easily enough, he might very well save
a considerable amount of time. Since he did not provide a schematic of
his network, that is just a guess.

-- 
Gerard
[EMAIL PROTECTED]

Wasn't there something about a PASCAL programmer
knowing the value of everything and the Wirth of nothing?


signature.asc
Description: PGP signature


Re: need confirmation of documentation problem for times(3)

2008-04-04 Thread Lowell Gilbert
Viktor Štujber [EMAIL PROTECTED] writes:

 I have been forwarded to this list from a docs bugreport
 * http://www.freebsd.org/cgi/query-pr.cgi?pr=122359
 and I am looking for confirmation of this issue.

 Transscript:
 The freebsd manpages for 'clock_t times(struct tms *tp)' say the following:

 The times() function returns the value of time in CLK_TCK's of a second since
 0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal Time.
 But after letting a sample C program print the returned value, it matches
 the system's uptime (in clock ticks).

 I would like to ask the bsd devs to clarify whether this is
 a documentation problem, or an implementation problem.

According to /usr/src/lib/libc/gen/times.c (and my understanding of
the way it uses clock_gettime()), it looks like the documentation
matches what the code is intended to do.  If there is a problem, it is
probably in clock_gettime().  

Note that times(2) is a deprecated function, and *either* behaviour is
acceptable according to the standards which applied before it was
deprecated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: laptop won't boot w/o ac adapter plugged in

2008-04-04 Thread Lowell Gilbert
std [EMAIL PROTECTED] writes:

 I have a newish laptop hp tx1320us with FreeBSD rel. 70 build.  If I don't 
 have the power cord plugged in, the system hangs at 

 Entropy harvesting: ethernet point_to_point

 If tap the power/reset slider on the case, it prints the following:

 load: 2.40 cmd: dd 71 [running] 0.00u 0.00s 0% 744k

 Is this a power management issue (apm OR acpi)?  Plugged in, it boots fine.  
 Is there, hopefully some toggle to tell it what to do when its plugged in or 
 not?

It looks like it's actually the entropy process copying from
somewhere.  You might try disabling the serial port (which might not
be powered on battery?) to see what effect that has.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: trying atausb instead of umass, part 2

2008-04-04 Thread Steven Friedrich
On Friday 04 April 2008 09:03:33 am Da Rock wrote:
 On Fri, 2008-04-04 at 08:16 -0400, Steven Friedrich wrote:
  On Thursday 03 April 2008 04:38:27 am Dieter wrote:
   [ no replies from -drivers, so added -questions ]
 
  I looked at http://www.freebsd.org/search/search.html#mailinglists
  and couldn't find a freebsd-drivers list.  Perhaps that's why you didn't
  get any replies?

 Then this would be a figment of our imagination? :)
 http://lists.freebsd.org/mailman/listinfo/freebsd-drivers

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

I think the link I provided before was just the search the list 
archives.  -drivers should be added to it...

I went back and looked at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL
and it IS listed there.

A small task for the webmaster 8o)

I was searching the archives because I wanted to see his previous posts, since 
this one was labeled part 2.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem with lid on Dell D400

2008-04-04 Thread Spil Oss
On a Dell D400 notebook (Pentium-M 1.4GHz, Intel 855GM, ICH4M) running
FreeBSD 7.0 #0

Closing the lid switches off the display, opening the lid does not
switch the display back on. Very annoying. The machine is fully
functional otherwise (accessed via ssh).

Noticed this first on a vanilla FreeBSD-7.0 #0 install, the optimized
kernel seems to behave the same.

In sysctl I noticed after closing and opening the lid
   hw.acpi.lid_switch_state: NONE
but I have not checked the status of this sysctl before I closed the lid.

dmesg output is not of boot -v, but of regular boot

I wouldn't care if the lid doesn't have acpi features (e.g. suspend on
lid close), but I'd like the screen to switch off for additional
battery-life.

Hope someone can help me!

Kind regards,

Spil
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Fri Apr  4 07:22:22 CEST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/BEASTIE70
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1400MHz (1398.82-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x695  Stepping = 5
  
Features=0xa7e9f9bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE
  Features2=0x180EST,TM2
real memory  = 535453696 (510 MB)
avail memory = 514461696 (490 MB)
acpi0: DELL CPi R   on motherboard
acpi0: [ITHREAD]
acpi0: reservation of 0, 9fc00 (3) failed
acpi0: reservation of 10, 1fdf (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
est0: Enhanced SpeedStep Frequency Control on cpu0
p4tcc0: CPU Frequency Thermal Control on cpu0
acpi_acad0: AC Adapter on acpi0
battery0: ACPI Control Method Battery on acpi0
acpi_lid0: Control Method Lid Switch on acpi0
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci_link1: BIOS IRQ 11 for 0.31.INTB is invalid
pci0: ACPI PCI bus on pcib0
pci0: base peripheral at device 0.1 (no driver attached)
pci0: base peripheral at device 0.3 (no driver attached)
vgapci0: VGA-compatible display port 0xc000-0xc007 mem 
0xf000-0xf7ff,0xfaf8-0xfaff irq 11 at device 2.0 on pci0
agp0: Intel 8285xM (85xGM GMCH) SVGA controller on vgapci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
vgapci1: VGA-compatible display mem 
0xe800-0xefff,0xfaf0-0xfaf7 at device 2.1 on pci0
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xbf80-0xbf9f irq 11 at 
device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0xbf40-0xbf5f irq 11 at 
device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0xbf20-0xbf3f irq 11 at 
device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: Intel 82801DB/L/M (ICH4) USB 2.0 controller mem 0xfaeffc00-0xfaef 
irq 11 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI versIon 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: Intel 82801DB/L/M (ICH4) USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3
uhub3: 6 ports with 6 removable, self powered
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci1: ACPI PCI bus on pcib1
bge0: Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x3001 mem 
0xfcff-0xfcff irq 11 at device 0.0 on pci1
miibus0: MII bus on bge0
brgphy0: BCM5705 10/100/1000baseTX PHY PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
bge0: Ethernet address: 00:0d:56:6d:9a:9b
bge0: [ITHREAD]
cbb0: TI7510 PCI-CardBus Bridge at device 1.0 on pci1
cardbus0: CardBus bus on cbb0
pccard0: 16-bit PCCard bus on cbb0
cbb0: [ITHREAD]
cbb1: TI7610 PCI-CardBus Bridge irq 11 at device 1.1 on pci1
cardbus1: CardBus bus on cbb1
pccard1: 16-bit PCCard bus on cbb1
cbb1: [ITHREAD]
fwohci0: 1394 Open Host Controller Interface mem 
0xfcfef800-0xfcfe,0xfcfe8000-0xfcfebfff irq 11 at device 1.2 on pci1
fwohci0: [FILTER]
fwohci0: 

How to get best results from FreeBSD-questions

2008-04-04 Thread Greg Lehey

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

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

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

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

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

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

=

Contents:

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

I: Introduction
===

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

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

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

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

II:  How to unsubscribe from FreeBSD-questions
==

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

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

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

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

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

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

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

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

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

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

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

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

The Complete FreeBSD: errata and addenda

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

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

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

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

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


Re: Email problem

2008-04-04 Thread Giorgos Keramidas
On Fri, 4 Apr 2008 13:33:48 +0800, Ruel Luchavez [EMAIL PROTECTED] wrote:
 Hi..
 I am having trouble in my email server I spend many hours but i cant fix it,
 hopeu can help me guys

We can probably help you, but there isn't sufficient information in your
description to do that :(

 One of the account i created cant send email in any email address like
 gmail.com I created it the same settings

 with my other account but it doesnt work...is ther a problem on my sever on
 this?

What sort of `accounts' are these?  How are you posting email messages
using each account?

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


FreeBSD 7.0 compact flash, HP Proliant ML115

2008-04-04 Thread Andrew Cid
Hello everybody,

I'm having trouble booting FreeBSD 7.0 on an HP Proliant ML115 server
using a compact flash stick.  Here is my dmesg:

ums0: ServerEngines SE USB Device, class 0/0, rev 1.10/0.01, addr 2 on
uhub0
ums0: 8 buttons and Z dir.
umass0: vendor 0x55aa UnoPlus CF, class 0/0, rev 1.10/1.03, addr 3 on
uhub0
umass0: Get Max Lun not supported (IOERROR)
Timecounters tick every 1.000 msec
hptrr: no controller detected.
acd0: CDRW TSSTcorp CDW/DVD TS-H492C/TB01 at ata0-master UDMA33
ad4: 152627MB GB0160CAABV HPG1 at ata2-master SATA150
SMP: AP CPU #1 Launched!
da0 at umass-sim0 bus 0 target 0 lun 0
da0: OEI-USB CompactFlash 1.03 Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 967MB (1981728 512 byte sectors: 64H 32S/T 967C)
GEOM_LABEL: Label for provider da0s1a is ufs/freebsd.
Trying to mount root from ufs:/dev/ufs/freebsd
Lookup of /dev for devfs, error: 20
exec /sbin/init: error 20
exec /sbin/oinit: error 20
exec /sbin/init.bak: error 20
exec /rescue/init: error 20
exec /stand/sysinstall: error 20
init: not found in path
/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall
panic: no init
cpuid = 1
Uptime: 6s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort

It boots fine on other boxes and in qemu.  I tried both i386 and amd64
releases with the same result.  What can be wrong with this particular
machine?  Can this be a hardware thing?  

Also, Can someone tell me what umass0: Get Max Lun not supported (IOERROR)
means?  Can this be the problem?

Many thanks,


Andrew
-- 
[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: Solved partly (was: Problem starting X as user)

2008-04-04 Thread Frank Wißmann

Frank Wißmann wrote:

Hi all!
Hope there's somebody out there who can help me with the following problem:
When I type startx as root all is coming up as expected, the X-Server 
and twm as WM. When I stop it, log in as a normal user and do the same 
there is only a grey screen with a mouse-cursor coming up and doing 
nothing until I kill the X-Server with Ctrl-Alt-Backspace. On the 
original screen from which I tried to start is shown the following error 
message:


AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost 
(uid 1001)

Auth name: XDM-AUTHORIZATION-1 ID: -1
Xlib: connection to 0:0 refused by server
Xlib: Protocol not supported by server

.xinitrc and .xsession both have the same contens exec startxfce4 and 
the permissions rwxr-xr-x.


Any thoughts please?

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




To your information:

I just tried out of despair something weird and started my X-Server by 
the /etc/ttys-file and a reboot. Logging iin as root worked as it did 
before but to my astonishment it worked logging in as a user too. So I 
now have a working Xfce environment on my other machine too. There is no 
need to think about it anymore. I'm just curious why it didn't work the 
other way round.
So, happy weekend for all of you and a big Thank you to all who let 
work their mind to help me.


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


Remote backups using ssh and dump

2008-04-04 Thread Paul Schmehl

Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be better if it will 
work.  I've been reading the man page, but I'm wondering if anyone is doing 
this successfully and would like to share their cmdline.


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

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


restore various level dump files

2008-04-04 Thread C Thala
If i have 3 dump(1)-files from a filesystem and restore them via
restore -i -f dump-file, how do I layer them together?

That is, how do I tell restore that I want to restore a level 0, 1, and 2?

Do I run restore -i -f dump-0 and then restore -i -f dump-1 and
then restore -i -f dump-2 in that order?

Is there some way I can tell restore that more than one level is available?

restore -i -f dump-0 -f dump-1 -f dump-2 doesn't work.

If I restore a level 0 and then a level 1, will the level 1 delete
files that were removed when the level 1 was taking (like rsync -a
--delete) or do I get a bunch of stale files lying around?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Solved partly

2008-04-04 Thread Matthew Seaman

Frank Wißmann wrote:

Frank Wißmann wrote:

Hi all!
Hope there's somebody out there who can help me with the following 
problem:
When I type startx as root all is coming up as expected, the 
X-Server and twm as WM. When I stop it, log in as a normal user and do 
the same there is only a grey screen with a mouse-cursor coming up and 
doing nothing until I kill the X-Server with Ctrl-Alt-Backspace. On 
the original screen from which I tried to start is shown the following 
error message:


AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost 
(uid 1001)

Auth name: XDM-AUTHORIZATION-1 ID: -1
Xlib: connection to 0:0 refused by server
Xlib: Protocol not supported by server

.xinitrc and .xsession both have the same contens exec startxfce4 
and the permissions rwxr-xr-x.


Any thoughts please?

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




To your information:

I just tried out of despair something weird and started my X-Server by 
the /etc/ttys-file and a reboot. Logging iin as root worked as it did 
before but to my astonishment it worked logging in as a user too. So I 
now have a working Xfce environment on my other machine too. There is no 
need to think about it anymore. I'm just curious why it didn't work the 
other way round.
So, happy weekend for all of you and a big Thank you to all who let 
work their mind to help me.


Did you install X setuid root?  If you're using xdm(1) or one of the other
similar display managers that are started out of ttys(5) then X is started
by a root process anyhow, and doesn't need to be setuid.  If you intend to
use startx(1) then X needs to be setuid for mortal users to be able to start
it.

To change the setting:

   make config

in /usr/ports/x11-servers/xorg-server and then reinstall the xorg-server
port.

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


Re: Remote backups using ssh and dump

2008-04-04 Thread John Almberg

On Apr 4, 2008, at 1:59 PM, Paul Schmehl wrote:


Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be  
better if it will work.  I've been reading the man page, but I'm  
wondering if anyone is doing this successfully and would like to  
share their cmdline.




I do, but I'm not sure I'm doing it the optimal way. I'd love some  
feedback that might improve my simple script.


Basically, I back up each partition separately. I don't think it is  
possible to just dump from the root, although if it is possible, I'd  
like to know how.


This script assumes root can log into the backup server without a  
password. It 'rotates' the backups by including the day of the week  
in the file name, this gives me 7 days of complete backups.


I also take a snapshot of the home directory, in case I need to fetch  
one file from backup. These dumps are really intended for  
catastrophic failure (which, knock on wood, I've never actually needed.)


BTW, the primary and secondary servers both have dual nic cards. The  
backup server is directly connected to the primary server, using a  
crossover cable, so the nightly gigabyte transfer doesn't clog the  
office lan switch.


-- John

#!/usr/bin/perl
my $day_of_week = (localtime)[6];
my $file_prefix = '/backup/ON-'.$day_of_week.'-';
system('dump -0Laun -f - /tmp   | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'tmp.gz\'');
system('dump -0Laun -f - /  | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'root.gz\'');
system('dump -0Laun -f - /usr   | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'usr.gz\'');
system('dump -0Laun -f - /usr/local | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'usr-local.gz\'');
system('dump -0Laun -f - /var   | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'var.gz\'');
system('dump -0Laun -f - /home  | gzip -2 | ssh  
[EMAIL PROTECTED] \'dd of='.$file_prefix.'home.gz\'');



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


Re: Remote backups using ssh and dump

2008-04-04 Thread John Webster
We use the following in a script to backup our servers.

/bin/ssh -q -o 'BatchMode yes' -l user host  '/sbin/dump -h 0 -0uf - /home \
| /usr/bin/gzip --fast' 2 /path/to/logs/host/home_full.dump.log
 /backups/host_home_full.dump.gz


--On April 4, 2008 12:59:27 PM -0500 Paul Schmehl [EMAIL PROTECTED] wrote:

 Has anyone done this?
 
 I'm presently using rsync over ssh, but I think dump would be better if it 
 will work.  I've been reading the man page, but I'm wondering if anyone is 
 doing this successfully and would like to share their cmdline.
 
 -- 
 Paul Schmehl ([EMAIL PROTECTED])
 Senior Information Security Analyst
 The University of Texas at Dallas
 http://www.utdallas.edu/ir/security/
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 





pgp99xnQhq6vQ.pgp
Description: PGP signature


Re: Solved partly

2008-04-04 Thread Frank Wißmann

Matthew Seaman wrote:

Frank Wißmann wrote:

Frank Wißmann wrote:

Hi all!
Hope there's somebody out there who can help me with the following 
problem:
When I type startx as root all is coming up as expected, the 
X-Server and twm as WM. When I stop it, log in as a normal user and 
do the same there is only a grey screen with a mouse-cursor coming up 
and doing nothing until I kill the X-Server with Ctrl-Alt-Backspace. 
On the original screen from which I tried to start is shown the 
following error message:


AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from 
localhost (uid 1001)

Auth name: XDM-AUTHORIZATION-1 ID: -1
Xlib: connection to 0:0 refused by server
Xlib: Protocol not supported by server

.xinitrc and .xsession both have the same contens exec startxfce4 
and the permissions rwxr-xr-x.


Any thoughts please?

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




To your information:

I just tried out of despair something weird and started my X-Server by 
the /etc/ttys-file and a reboot. Logging iin as root worked as it did 
before but to my astonishment it worked logging in as a user too. So I 
now have a working Xfce environment on my other machine too. There is 
no need to think about it anymore. I'm just curious why it didn't work 
the other way round.
So, happy weekend for all of you and a big Thank you to all who let 
work their mind to help me.


Did you install X setuid root?  If you're using xdm(1) or one of the other
similar display managers that are started out of ttys(5) then X is started
by a root process anyhow, and doesn't need to be setuid.  If you intend to
use startx(1) then X needs to be setuid for mortal users to be able to 
start

it.

To change the setting:

   make config

in /usr/ports/x11-servers/xorg-server and then reinstall the xorg-server
port.

Cheers,

Matthew



I don't know for sure. In /etc/make.conf is nothing written that X 
should be setuid root and that must be the place, or not? Anyway, I want 
  X to be started through a tty like it worked, so I have no intention 
to change it now that it functions.


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


Re: Problem with lid on Dell D400

2008-04-04 Thread Christian Laursen
Spil Oss [EMAIL PROTECTED] writes:

 On a Dell D400 notebook (Pentium-M 1.4GHz, Intel 855GM, ICH4M) running
 FreeBSD 7.0 #0

 Closing the lid switches off the display, opening the lid does not
 switch the display back on. Very annoying. The machine is fully
 functional otherwise (accessed via ssh).

It sounds like the behaviour I experienced on the Dell Latitude D610.

I wrote about my solution here:
http://borderworlds.dk/blog/20071027-00.html

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


Re: Remote backups using ssh and dump

2008-04-04 Thread Andrew Cid
Hey,

 I'm presently using rsync over ssh, but I think dump would be better if it 
 will work.  I've been reading the man page, but I'm wondering if anyone is 
 doing this successfully and would like to share their cmdline.

Are doing backups to disk?  I find rsync combined with hard links to be
quite efficient and easy to manage/restore.  Checkout Mike Rubel's
article [1] if you haven't seen it already, he explains it well.  I
find Rsnapshot [2] quite useful/easy for small installations.  There is
also Dirvish [3] which might be worth looking at.  Both use the same
concept.

Hope this helps,


Andrew. 

[1] http://www.mikerubel.org/computers/rsync_snapshots/
[2] http://rsnapshot.org/
[3] http://www.dirvish.org/
-- 
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread David Robillard
 Has anyone done this?

 I'm presently using rsync over ssh, but I think dump would be better if it 
 will
 work.  I've been reading the man page, but I'm wondering if anyone is doing
 this successfully and would like to share their cmdline.

Hi Paul,

We're not using dump over ssh but I was curious to know why you'd
prefer dump over rsync?

We're using rsync and it's been good to us. So, I'd like to share with
you our backup strategy. Just in case it can help you or anyone
running various UNIX flavors. We use FreeBSD, RedHat Enterprise Linux,
Ubuntu Linux and IBM AIX in this setup.

This is a disk to disk to tape scenario.

All clients are configured with a user called backup with a UID of
zero (so that he can read everything). It's shell is set to rssh which
in turn is configured to allow rsync only to the backup user. We limit
who can connect to each clients via sshd_conf's AllowUsers config.
Each client has the central backup server's special ssh key file
installed in ~backup/.ssh/authorized_keys edited to have
from=backup.domain.com, in it to restrict which machine can use this
key.

The central FreeBSD backup server has ssh access to every clients and
has rsnapshot installed. We have an rsnapshot configuration for each
client. Each backup run is scheduled via the server's crontab. Backup
data is stored on the server's encrypted backup volume. The nice thing
about rsnapshot is that it uses efficient links to save disk space. In
the first run of a new client it takes the entire data set. But each
subsequent run only takes the changes. But the backup data is kept
online so you can actually browse it live and use scp/tar/rsync to
perform a restore. Be it a single file or the entire file system.
Using rsnapshot enables us to save a week's worth of data of all our
100+ machines without using more than 300Gb of disk space on the
backup server (lots of machines, but not much data, we're quite lucky
:)

Each day, the backup data is passed with dd into OpenPGP before being
sent to tape with tar. This way our tapes are encrypted and impossible
to read without the appropriate password. That password is kept on an
encrypted file. We can therefore send our tapes off site with any
company knowing our data is safe.  All the admins keep a detailed
howto and the important encrypted password files on a USB stick in
case the data center fails and we loose our wiki and the file server.

If anyone is interested in the exact configuration of this backup
setup, we have it all in a wiki, so it's easy to share it.

Hope that can help anyone,

Cheers,

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread Warren Block

On Fri, 4 Apr 2008, Paul Schmehl wrote:


Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be better if it 
will work.  I've been reading the man page, but I'm wondering if anyone is 
doing this successfully and would like to share their cmdline.


There's an example in the Handbook:

http://www.freebsd.org/doc/en/books/handbook/backup-basics.html

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cfg-update equivalent?

2008-04-04 Thread Andy Christianson
In Gentoo, there is a program called cfg-update that will help to merge
new configuration options that come with a new version of software when
you do a system update from portage.

 

Does FreeBSD have any equivalent to this that ensures that configuration
files work after updating software with portupgrade?

 

Andrew Christianson
Orases Consulting Corporation
Interactive Business and Technology Solutions
phone/ 301.694.8991 ext. 100
fax/ 301.694.8993
email/ [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
http://www.orases.com http://www.orases.com/ 

 

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


Re: FreeBSD on IBM Blade Servers

2008-04-04 Thread David Robillard
 Somebody using FreeBSD  IBM Blade hardware in production?

Hello Maximillian,

I'm not using it myself, but a friend of mine is running FreeBSD
6.1-STABLE on IBM BladeCenter LS20, AMD Opteron 2.4GHz/800 MHz. He
says the big problems are getting the BladeCenter's USB console
working across reboots and multipathing the HBAs. His FreeBSD blades
boot of the SAN and they all have dual HBAs. Since FreeBSD 6.1 has
zero multipath support, he has to disable one of the HBA for the boot
process to work.

I think FreeBSD 7.0 is a *lot* better with respect to the USB console.
But I have no idea about the HBA multipath support?

Anyway, if you do have more specific questions, please feel free to
send them to me. I'd forward them to my friend or hook you two
together.

HTH,

David
-- 
David Robillard
UNIX systems administrator  Oracle DBA
CISSP, RHCE  Sun Certified Security Administrator
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread Stuart Mackie
Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be better if it 
will 
work.  I've been reading the man page, but I'm wondering if anyone is doing 
this successfully and would like to share their cmdline.

Hi,

[ from gopher://sdf-eu.org/00/users/mackie/Unix-Notes/_sdf-user-stuff.txt ]

Backup home dir (from sdf)
--
$ ssh [EMAIL PROTECTED] 'tar cvf - html/* | gzip -  html.tgz'
$ ssh [EMAIL PROTECTED] 'tar cvf - gopher/* | gzip -  gopher.tgz'
$ rsync -avz -e ssh [EMAIL PROTECTED]:/arpa/m/mackie /home/mackie/SDF

Backup home dir (to sdf)

(dump)
# dump -0f - /home | ssh -o 'EscapeChar none' [EMAIL PROTECTED] cat  home.fs

(restore)
# cd /home  rcp [EMAIL PROTECTED]:home.fs home.fs  cat home.fs | restore 
-rf -


HTH,

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


Re: Remote backups using ssh and dump

2008-04-04 Thread dex
On Fri, Apr 4, 2008 at 1:59 PM, Paul Schmehl [EMAIL PROTECTED] wrote:

 Has anyone done this?
  I'm presently using rsync over ssh, but I think dump would be better if
 it will work.  I've been reading the man page, but I'm wondering if anyone
 is doing this successfully and would like to share their cmdline.


This is an older restore document I wrote but at the beginning you can see
how the backup is done:

http://lists.freebsd.org/pipermail/freebsd-doc/2007-February/012190.html

The backup method writes everything to a file, so it only works for
filesystems of smaller sizes (50G) depending on your backup and restore
windows.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread Peter Boosten



Paul Schmehl wrote:

Has anyone done this?

I'm presently using rsync over ssh, but I think dump would be better if 
it will work.  I've been reading the man page, but I'm wondering if 
anyone is doing this successfully and would like to share their cmdline.




I did this once: http://www.boosten.org/content/view/50/50/

But nowadays I prefer dirvish. That really works like charm.

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


How to recover a tape device?

2008-04-04 Thread perikillo
Hi people.

 I have 1 tape device attached to a FreeBSD 6.2-Release box for
bacula, sometimes i lost the connection with the device, doesn't
answer me, this happend not to often, but nothing is perfect, my doubt
is:
Once my console say:

Apr  4 12:25:46 bacula kernel:  Dump Card State Ends

Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): SCB 0x10 - timed out
Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): no longer in timeout,
status = 24b
Apr  4 12:25:46 bacula kernel: ahc0: target 3 using 8bit transfers
Apr  4 12:25:46 bacula kernel: ahc0: target 3 using asynchronous transfers
Apr  4 12:25:46 bacula kernel: ahc0: Issued Channel A Bus Reset. 1 SCBs aborted
Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): Command timed out
Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): error 5
Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): Retries Exausted
Apr  4 12:25:46 bacula kernel: (sa0:ahc0:0:3:0): tape is now frozen-
use an OFFLINE, REWIND or MTEOM command to clear this state.
Apr  4 12:25:46 bacula kernel: ahc0: Timedout SCBs already complete.
Interrupts may not be functioning.

What is the procedure to bring my device back? camcontrol or mt
command and what flags a have to use to return the control to my
hands?

Device Ultruim-1 HP Storageworks 232, thanks for your time.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread Paul Schmehl
--On Friday, April 04, 2008 22:21:52 +0200 Peter Boosten [EMAIL PROTECTED] 
wrote:





Paul Schmehl wrote:

Has anyone done this?



Little did I know, when I posted this question, that I would receive such a 
wealth of information.  I'm deeply appreciative of the community's willingness 
to share information and thank each and every one of your for your 
contributions.


Now I have some reading to do.  :-)

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

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


Tinydns configuration... works, but no reverse dns

2008-04-04 Thread John Almberg
I am using tinydns on my FreeBSD server. Normal DNS lookups work  
fine, but I can't get reverse DNS to work.


My colocation provider says they have delegated DNS to my name  
servers. If there is a way to independently verify this, I don't know  
how to do it, so I am taking their word for it.


My data file looks like this:

# DNS
.identry.com:66.111.0.195:ns0.identry.com
.identry.com:66.111.0.252:ns1.identry.com
.0.111.66.in-adr.arpa::ns0.identry.com:259200
.0.111.66.in-adr.arpa::ns1.identry.com:259200
#
# Server Addresses
#
=on.identry.com:66.111.0.194:3600
=www.identry.com:66.111.0.206:3600
+identry.com:66.111.0.206
@identry.com::mx1.identry.com.:10:3600
=mx1.identry.com:66.111.0.196

When I run tinydns-get on the mx record, I get this:

[EMAIL PROTECTED] /usr/local/etc/tinydns/root]# tinydns-get a mx1.identry.com
1 mx1.identry.com:
149 bytes, 1+1+2+4 records, response, authoritative, noerror
query: 1 mx1.identry.com
answer: mx1.identry.com 86400 A 66.111.0.196
authority: identry.com 259200 NS ns0.identry.com
authority: identry.com 259200 NS ns1.identry.com
additional: ns0.identry.com 259200 A 66.111.0.195
additional: ns1.identry.com 259200 A 66.111.0.252

However, when I try to do a reverse look up, I get nada:

[EMAIL PROTECTED] /usr/local/etc/tinydns/root]# tinydns-get ptr  
196.0.111.66.in-addr.arpa

12 196.0.111.66.in-addr.arpa:

This set up worked at my previous colocation provider, so I suspect  
there is something different about they way they are delegating, but  
I'm far from a DNS expert. Any advice, much appreciated.


Thanks: John



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


need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-04 Thread Rance Hall
I have a sh script im working on that is going to be able to run by
the init/rc process.  That same script can also be run after the
system is started.

I need a way to have the sh script detect WHERE in the boot process
the server is when it is being executed.

for example, once a login prompt appears there should be a getty running.

prior to that time there shouldnt be a getty running, and if there
isnt a gettty running, then the script must be called from the rc
process and therefore I can do X instead of Y which I do when the
system is fully operational.

This is my thought process but I dont understand how to carry it out,
or if the thought process actually makes sense.

is there a better way for me to do what Im trying to do, and if there
isnt and Im on the right track, how do I do what Im asking?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: Remote backups using ssh and dump

2008-04-04 Thread John Almberg


Little did I know, when I posted this question, that I would  
receive such a wealth of information.  I'm deeply appreciative of  
the community's willingness to share information and thank each and  
every one of your for your contributions.


Now I have some reading to do.  :-)




I think there is a difference between what dump does and what tar/ 
rsync do... I like the idea of doing a bit level backup, rather than  
a file level backup.


If you've never done a dump, try it locally, and then try restore,  
particularly interactive restore (restore -i). It's pretty cool and I  
don't think tar or rsync have anything like it.


-- John

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


Re: Tinydns configuration... works, but no reverse dns

2008-04-04 Thread John Almberg

freesparky# dig +trace -x 66.111.0.194


That *is* handy.



which does bring up the issue of why you refer to ns0 and ns1 in your
question and your provider delegates to ns1, ns2, and ns3, the last of
which doesn't appear to have an A record anywhere useful.



Ah, ha... I gave my provider ns0-ns2, but they typed ns1-ns3. I'll  
let them know.


Very handy, indeed!

Thanks: John

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


Re: DHCP Question

2008-04-04 Thread Preston Hagar
On Wed, Mar 19, 2008 at 9:36 PM,  [EMAIL PROTECTED] wrote:
 I am in the process of moving my phone system DHCP from my Mitel 3300 to a
  FreeBSD so I can parse the DHCP file.  In order to make Mitel's option 125
  work correctly, I have to specify some vendor specific options.  I believe
  this is option 124 if I understand the Mitel documentation correctly.


We have a Mitel 3300 and use OpenBSD servers with the ISC DHCP server.
 We have 5212 and 5224 IP phones and 5550 IP consoles.  The consoles
are the trickiest  of all to get working with DHCP.  Below are the
sections from our DHCP config that relate to the Mitel. A few things
to note about it.  10.1.254.254 is our name server and dhcp server.
10.1.5.1 is the IP of our Mitel 3300 controller/server.  the
/sysro/e2t8260 is the path of our e2t. The two most key components to
get it to work are the option-128 and option-129.  You need to set
these as the hex representation of the IP address of your Mitel
controller, so in our case, 10.1.5.1 became 0A:01:05:01.  It won't
work otherwise.  10.1.254.255 is our VPN gateway to our other office.
The vendor-class-identifier for mitel phones is always null (at least
for the 5212, 5224, and 5550 consoles).  We use this to separate the
Mitel phones into a separate class so they are in their own IP block.
We originally just used the vendor-class-identifier thing, but then
started to find NICs that had vendor-class-identifier = null, so I
noticed that all of our Mitel device MAC addresses start with
1:08:00:0f., so we use that to separate them as well.  It is a bad
hack, but it works for us.  Anyway, with this config, we have 5212,
5224, and 5550 consoles getting their addresses with DHCP. Feel free
to contact me if you have any questions.

# MITEL E2T TFTP boot
host mitele2t {
   hardware ethernet 08:00:0f:1d:7e:e7;
   fixed-address 10.1.5.2;
   next-server 10.1.5.1;
   filename /sysro/E2T8260;
}
# 
# 
# 
# THESE DEFINITIONS MUST BE PRESERVED AS IS. The 5550 Mitel
# consoles will not work unless these options are EXACTLY
# as below.
# 
# 
# 
option option-128 code 128 = string;
option option-129 code 129 = string;
option option-130 code 130 = text;
option option-66 code 66 = string;
option option-67 code 67 = string;

subnet 10.1.0.0 netmask 255.255.0.0 {

  class mitel-phone {
match if option vendor-class-identifier = null
and substring(pick-first-value(option
dhcp-client-identifier,hardware), 0, 4) = 1:08:00:0f;
  }

  pool {
allow members of mitel-phone;
range 10.1.6.1 10.1.7.254;
option routers 10.1.254.254;
option option-66  10.1.5.1;
option option-67  /sysro/e2t8260;
option option-128 0A:01:05:01;
option option-129 0A:01:05:01;
#option tftp-server-name 10.1.1.1;
option option-130 MITEL IP PHONE;
  }

  pool {
deny members of mitel-phone;
range 10.1.3.100 10.1.4.255;
option routers 10.1.254.254;
  }

  option broadcast-address 10.1.255.255;
  option subnet-mask 255.255.0.0;

  option netbios-name-servers 10.1.254.254;
  option netbios-dd-server 10.1.254.254;
  option netbios-node-type 8;
  option netbios-scope ;

}

Hope this helps.

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


Strange behavior with zfs

2008-04-04 Thread Fred C


I have a FreeBSD box configured as a nfs server and a Mac with MacOS  
10.5 as client.


On my FBSD box I have a zfs pool exported as you can seen in the  
examples bellow. This filesystem is mounted on my Mac with the  
following command mount_nfs -P ... When I copy some files from the  
shell prompt everything works as expected. But when I use the Finder  
and drop files into this mounted directory I got the following errors:


First message:
You may need to enter the name and password for an administrator on  
this computer to change the item named xxx.html


Second message:
The item xxx.html contains on or more items you do not have  
permission to read. Do you want to copy the items you are allowed to  
read?


Third message:
The operation cannot ve copleted because you do not have sufficient  
privileges for some of the items.


An empty file is created on the destination directory as shown bellow.
509:0- ls -ltr /mnt2
total 265
-rw-r--r--@ 1 fred  wheel  135662 Apr  4 13:33 background.jpg
--  1 fred  wheel   0 Apr  4 14:01 xxx.html

When I do the exact same operations on /export which is an UFS file  
system everything works as expected. I have to permissions errors.


I am sorry for asking this long question on this group. Maybe the  
problem is Mac related, but since this happen only with zfs on a  
FreeBSD box, and a lot of people in this list use Macs, I thought you  
may have an answer to that problem.



Here is somt information about FreeBSD Box:
#mount
/dev/ad3a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
space on /space (zfs, local)
space/home on /space/home (zfs, NFS exported, local)
/dev/md0 on /var (ufs, local)
/dev/md1 on /tmp (ufs, local)
/dev/da3a on /export (ufs, NFS exported, local)

# showmount -e
Exports list on localhost:
/space/homeEveryone
/exportEveryone

# zpool status
  pool: space
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
space   ONLINE   0 0 0
  da0   ONLINE   0 0 0
  da1   ONLINE   0 0 0
  da2   ONLINE   0 0 0

errors: No known data errors

# zfs list -o name,type,sharenfs,mountpoint
NAME  TYPE  SHARENFS  MOUNTPOINT
space   filesystem  off   /space
space/home  filesystem  on/space/home


--
Fred C!
PGP-KeyID: E7EA02EC3B487EE9
PGP-FingerPrint: A906101E2CCDBB18D7BD09AEE7EA02EC3B487EE9



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


Re: Tinydns configuration... works, but no reverse dns

2008-04-04 Thread Jon Radel
John Almberg wrote:
 
 I am using tinydns on my FreeBSD server. Normal DNS lookups work fine,
 but I can't get reverse DNS to work.
 
 My colocation provider says they have delegated DNS to my name servers.
 If there is a way to independently verify this, I don't know how to do
 it, so I am taking their word for it.

I'm a bind guy myself, so I can't answer to your tinydns configuration,
but as to how to independently verify delegation, I find the following
handy:

freesparky# dig +trace -x 66.111.0.194

;  DiG 9.4.2  +trace -x 66.111.0.194
;; global options:  printcmd
.   112878  IN  NS  A.ROOT-SERVERS.NET.
.   112878  IN  NS  B.ROOT-SERVERS.NET.
.   112878  IN  NS  C.ROOT-SERVERS.NET.
.   112878  IN  NS  D.ROOT-SERVERS.NET.
.   112878  IN  NS  E.ROOT-SERVERS.NET.
.   112878  IN  NS  F.ROOT-SERVERS.NET.
.   112878  IN  NS  G.ROOT-SERVERS.NET.
.   112878  IN  NS  H.ROOT-SERVERS.NET.
.   112878  IN  NS  I.ROOT-SERVERS.NET.
.   112878  IN  NS  J.ROOT-SERVERS.NET.
.   112878  IN  NS  K.ROOT-SERVERS.NET.
.   112878  IN  NS  L.ROOT-SERVERS.NET.
.   112878  IN  NS  M.ROOT-SERVERS.NET.
;; Received 272 bytes from 216.143.151.3#53(216.143.151.3) in 13 ms

66.in-addr.arpa.86400   IN  NS  indigo.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  BASIL.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  henna.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  dill.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  figwort.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  chia.ARIN.NET.
66.in-addr.arpa.86400   IN  NS  epazote.ARIN.NET.
;; Received 194 bytes from 2001:dc3::35#53(M.ROOT-SERVERS.NET) in 107 ms

0.111.66.in-addr.arpa.  86400   IN  NS  auth1.ns.nyi.net.
0.111.66.in-addr.arpa.  86400   IN  NS  auth2.ns.nyi.net.
;; Received 93 bytes from 192.42.93.32#53(figwort.ARIN.NET) in 94 ms

194.0.111.66.in-addr.arpa. 86400 IN NS  ns1.identry.com.
194.0.111.66.in-addr.arpa. 86400 IN NS  ns2.identry.com.
194.0.111.66.in-addr.arpa. 86400 IN NS  ns3.identry.com.
;; Received 140 bytes from 64.90.175.14#53(auth1.ns.nyi.net) in 16 ms

dig: couldn't get address for 'ns3.identry.com': not found



which does bring up the issue of why you refer to ns0 and ns1 in your
question and your provider delegates to ns1, ns2, and ns3, the last of
which doesn't appear to have an A record anywhere useful.

A retry, using a different NS record this time:

.trimmed
194.0.111.66.in-addr.arpa. 86400 IN NS  ns1.identry.com.
194.0.111.66.in-addr.arpa. 86400 IN NS  ns2.identry.com.
194.0.111.66.in-addr.arpa. 86400 IN NS  ns3.identry.com.
;; Received 140 bytes from 64.90.175.14#53(auth1.ns.nyi.net) in 23 ms

194.0.111.66.in-addr.arpa. 3600 IN  PTR on.identry.com.
0.111.66.in-addr.arpa.  259200  IN  NS  ns0.0.111.66.in-addr.arpa.
0.111.66.in-addr.arpa.  259200  IN  NS  ns1.0.111.66.in-addr.arpa.
;; Received 107 bytes from 66.111.0.253#53(ns1.identry.com) in 17 ms

The PTR record looks reasonable, but those NS records...well.  ;-)

--Jon Radel


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Fwd: Remote backups using ssh and dump

2008-04-04 Thread Jerry McAllister
On Fri, Apr 04, 2008 at 05:00:01PM -0400, John Almberg wrote:

 
 Little did I know, when I posted this question, that I would  
 receive such a wealth of information.  I'm deeply appreciative of  
 the community's willingness to share information and thank each and  
 every one of your for your contributions.
 
 Now I have some reading to do.  :-)
 
 
 
 I think there is a difference between what dump does and what tar/ 
 rsync do... I like the idea of doing a bit level backup, rather than  
 a file level backup.
 
 If you've never done a dump, try it locally, and then try restore,  
 particularly interactive restore (restore -i). It's pretty cool and I  
 don't think tar or rsync have anything like it.

Although some of the aspects of using dump/restore are a little clunky,
it is still superior to any other method of backing up whole file systems.
One of its weaknesses is that it will only back up a file system and
not a subset of one such as one directory tree.  You can, though, restore
individual files and directory trees easily.

What dump gets you is a system that knows how to handle every type
of file condition correctly.   None of the other quite do that.

Its other weakness is that it is filesystem/OS specific.   Geneally,
you cannot take a dump on one OS and restore it under a different on - 
like you cannot dump SunOS and restore on FreeBSD or whatever.

It will work over networks, though that can be slow and it doesn't
recover well from network errors/failures.

jerry

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


Bootloader not working on Compaq Proliant ML330 G2

2008-04-04 Thread Ján Šebošík

Hi all

I`ve tried to install FreeBSD 7 on Compaq Proliant ML330 G2 server, but 
it won`t boot. FreeBSD boot0 beeps after pressing F1, or F2 (got 2 
partitions) key. So i`ve installed grub on another machine, but than it 
says Error 5 only in Proliant, I don`t even get grub command prompt.


HDD`s (2 x 250G) are connected to Parallel ATA on ServerWorks CSB5 
controller (it`s not onboard controller). When I connected drives to 
onboad controller they got some problem with DMA TIMEOUT.


Any tip/hint/idea will be great.

PS: Is there any way how to debug Bootloader?

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


cronjob - email messages sent

2008-04-04 Thread D Hill


I have several cronjob's set up on a server we have under the user root. I
need to specify specific email addresses results are sent to.

Using documentation from:

  man 5 crontab

I thought I could surround the jobs:

  ...
  MAILTO=root,someoneelse
  @hourly /usr/local/bin/mysqladmin -u internalonly status
  30 8 * * * /usr/local/bin/mysql -u internalonly  /root/mysql.optimize
  */15 * * * * mysql -u internalonly  /root/delete_rad_usersonline
  0 */4 * * * mysql -u internalonly  /root/delete_rad_authlog_failed
  MAILTO=root
  ...

It works for @hourly, but not for the other three.

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


Re: need a shell script that can be executed manually or as part of the rc process. How can the script detect WHERE it is being called from to know how to handle various options.

2008-04-04 Thread Andrew Cid
Hi Rance,

 I have a sh script im working on that is going to be able to run by
 the init/rc process.  That same script can also be run after the
 system is started.
 
 I need a way to have the sh script detect WHERE in the boot process
 the server is when it is being executed.

You can control when your rc script runs with #REQUIRE: and #BEFORE:

Checkout the practical rc.d scripting article [1], chapter 7 has an
example.  Use rcorder(8) to see what runs when:

$ rcorder /etc/rc.d/*

Hope this helps,


Andrew 

[1] http://www.freebsd.org/doc/en/articles/rc-scripting/index.html
-- 
[EMAIL PROTECTED]

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


FreeBSD 7, network dies, console shows: nfe0: tx v2 error 0x6004

2008-04-04 Thread Jim Stapleton
I got this on a bootup after a power blink.

I had added aio_load=YES and kqemu=YES to my loader.conf
beforehand. Removing them + reboot didn't fix the issue.
I switched to the nve driver - no luck, but even fewer useful
diagnostic error messages
I swaped the network cable with a known good, no luck.

Is it safe to assume my onboard nic is toast?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


openoffice.org-2.4.0_2 hanging

2008-04-04 Thread Volker Glatz
Hi there,

I compiled openoffice with

WITHOUT_MOZILLA=yes WITH_KDE=yes LOCALIZED_LANG=de WITH_CUPS=yes 
WITHOUT_GNOMEVFS=yes WITH_TTF_BYTECODE_ENABLED=yes

Openoffice is hanging while opening or saving a document.

I tried the following posted earlier here in the list:

 There have been comments about problems with
 openoffice freezing when saving or opening files.  It
 appears to involve language/locale stuff.  For me, the
 following seems to work with the 2.4 package (perhaps
 not with 2.3.1_1) on 6.3-RELEASE.

 1.  As root, edit /etc/login.conf to set your system
 language.  Mine is now:

 # diff /etc/login.conf.0 /etc/login.conf
 45c45,46
:umask=022:
 ---

:umask=022:\
:lang=en_US.UTF-8:

 2. As root, update the login.conf.db:

 # cap_mkdb /etc/login.conf

 3. Log out and log in again.

 # echo $LANG
 en_US.UTF-8

 4. As root, force openoffice to use your language (the
 -f seems critical):

 # openoffice.org-SRC680_m242-setofficelang -a -f en-US

 (Note that's en-US, not en_US.)

 (The user who's going to run openoffice might need to
 do the same thing.  It also might help, if problems
 persist, to remove/rename your ~/.openoffice.org2
 directory and start fresh.)

It doesn't worked for me. Instead of en-US I use de-DE.

Thanks!
Volker

box# pkg_info | grep openoffice
de-openoffice.org-2.4.0_2 Office-Suite mit Textverarbeitung, 
Tabellenkalkulation, Dat

box# uname -a
FreeBSD box.here 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 
2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

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


building a distribution server

2008-04-04 Thread Steel City Phantom
i have about 10 production servers that i want to upgrade to bsd 7 and
update all their ports in one shot.  the problem is the down time.  im
wrapping up upgrading a 6.3 to 7 and its taken over 7 hours so far.  thats
way too long for our machines to be down.

the biggest slow down is the downloading of files.  just sitting watching
things i would say 70% of the time is downloading files.  is there a way
where i can build a distribution server that has everything i could possibly
need to upgrade a machine from any 6.x to 7.0 and redo all the ports on that
machine and have a cron job keep everything up to date on that server and
when i upgrade a new machine, it simply goes to my internal distribution
server to get the files.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote backups using ssh and dump

2008-04-04 Thread mike
On Fri, 04 Apr 2008 12:59:27 -0500, in sentex.lists.freebsd.questions
you wrote:

Has anyone done this?

Hi,
Yes, we use something like the following



#!/bin/sh


if [ -z $1 ] ; then
echo 
echo Usage: $0 backup level
echoSee 'man dump' for more information.
echo 
exit 255
fi

BACKUP_LEVEL=0
BACKUP_LEVEL=$1


/sbin/dump -C24 -${BACKUP_LEVEL}anuf - / | /usr/bin/gzip -7 |
/usr/bin/ssh -2 -c 3des [EMAIL PROTECTED] dd
of=/path/to/dump/dump-myfifle-root-l${BACKUP_LEVEL}.gz


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


Re: building a distribution server

2008-04-04 Thread Dan Nelson
In the last episode (Apr 04), Steel City Phantom said:
 i have about 10 production servers that i want to upgrade to bsd 7
 and update all their ports in one shot.  the problem is the down
 time.  im wrapping up upgrading a 6.3 to 7 and its taken over 7 hours
 so far.  thats way too long for our machines to be down.
 
 the biggest slow down is the downloading of files.  just sitting
 watching things i would say 70% of the time is downloading files.  is
 there a way where i can build a distribution server that has
 everything i could possibly need to upgrade a machine from any 6.x to
 7.0 and redo all the ports on that machine and have a cron job keep
 everything up to date on that server and when i upgrade a new
 machine, it simply goes to my internal distribution server to get the
 files.

Just make a symlink that points /usr/ports/distfiles to a common
directory over NFS.  To save space you can symlink all of /usr/ports. 
This also makes it much easer to maintain local modifications.  One way
to speed up the build process itself is with ccache.  Symlink
~root/.ccache on each server to a common location, so only the first
machine has to compile anything.  If you wanted to get fancy, you could
even build packages on one server, then use portupgrade -P to install
them on the rest of the machines.

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