Re: Trying to revive a server... AIC-7896 freezes pre-POST completion

2006-06-14 Thread Andrew Reitz


On Jun 13, 2006, at 10:11 PM, Garrett Cooper wrote:


Hello again all,
	I know this isn't a FreeBSD question really, but I just started up  
a motherboard with onboard SCSI (Adaptec AIC-7896), and for some  
odd reason it freezes pre-POST before it attempts to boot and there  
isn't any way where I can get into the BIOS to change the settings  
it seems. Does anyone know how I can maybe disable the onboard SCSI  
controller since it appears to hang while detecting disks?


Hi Garrett,

I've been having a lot of PC fails to POST problems recently, so I  
feel your pain.


Basically, my guess is that after your BIOS does its self check, it  
tries to load all of the option BIOSes into memory. This will include  
a BIOS from your SCSI adapter, as well as network-bootable NICs, etc.  
Basically, the BIOS has to do this so that you can boot off whatever  
option card that you have in the system.


Since your SCSI adapter is built-in to the motherboard, it should be  
pretty compatible with the BIOS -- unless you changed that recently.  
In order to troubleshoot this, however, I would start by unplugging  
everything possible from your server. Just keep the ram, MB, CPU, and  
graphics card. See if you can get the machine to POST in this state  
(it really should, barring some sort of bad hardware or bad CMOS  
state). If it posts, start adding things back (disks, PCI cards,  
etc.), until you find the source of the problem.


Usually, onboard devices can only be disabled from the BIOS, which  
you can't get to. But, I would check for a jumper on the motherboard,  
to see if there is a way to disable things that way.


If you get really desperate, you could try resetting your BIOS  
configuration (CMOS).


Good luck, and I hope this helps...
-Andy.

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


Problems with sshd on FreeBSD 4.11-RELEASE

2006-05-31 Thread Andrew Reitz

Hello,

For reasons that I don't want to go into here, I have recently  
downgraded my principal FreeBSD server from 6.1 to 4.11-RELEASE. I  
did this by installing a fresh copy of FreeBSD 4.11 on a clean HD,  
and then I rsync'd all of my data over.


Everything has been working fine, until I tried to SSH to the box  
this afternoon. While everything was working fine this morning, now  
sshd hangs up immediately on all clients that attempt to connect. In / 
var/log/messages, I see errors like this for every ssh connection  
attempt:


May 31 15:21:06 redefine sshd[8543]: error: ssh_dss_sign: sign failed
May 31 15:21:06 redefine sshd[8543]: fatal: mm_answer_sign: key_sign  
failed


Google hasn't enlightened me at all. This was *just* working a few  
hours ago, and now, nada. Does anyone on this list have any ideas?


Thanks,
-Andy Reitz.

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


Re: Problems with sshd on FreeBSD 4.11-RELEASE

2006-05-31 Thread Andrew Reitz


On May 31, 2006, at 3:26 PM, Andrew Reitz wrote:


Hello,

For reasons that I don't want to go into here, I have recently  
downgraded my principal FreeBSD server from 6.1 to 4.11-RELEASE. I  
did this by installing a fresh copy of FreeBSD 4.11 on a clean HD,  
and then I rsync'd all of my data over.


Everything has been working fine, until I tried to SSH to the box  
this afternoon. While everything was working fine this morning, now  
sshd hangs up immediately on all clients that attempt to connect.  
In /var/log/messages, I see errors like this for every ssh  
connection attempt:


May 31 15:21:06 redefine sshd[8543]: error: ssh_dss_sign: sign failed
May 31 15:21:06 redefine sshd[8543]: fatal: mm_answer_sign:  
key_sign failed


Google hasn't enlightened me at all. This was *just* working a few  
hours ago, and now, nada. Does anyone on this list have any ideas?


Curiously, I just restarted sshd, and now things are working again.  
Has anybody ever seen this before?


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


Re: Perl: sort string alphabetically, or remove dupe chars?

2006-04-27 Thread Andrew Reitz


On Apr 26, 2006, at 12:34 AM, Nikolas Britton wrote:


On 4/25/06, Parv [EMAIL PROTECTED] wrote:

[snip]

Thanks parv... I meant the algorithm was clunky, not the code... I'm
so new at this that I can't read your code, and I have a hard enough
time reading mine own :-).

I've got another simple problem now. How do I get this code to stop
printing everything on a newline, I'm not using \n in my print
statement so why does it do that and how do I get it to stop?

@wordlist1 = `sed /^$sedstring1\\\$/\\!d  enable2k_wordlist`;
foreach (@wordlist1) {
  $string = $_;
  $string =~ s/[$solvedletters1]//g;
  my @chars = split(, $string);
  $string = ; @chars = sort (@chars);
foreach (@chars) {
  $string .= $_;
}
  $string =~ tr///cs;
  print $string;
}


Hi Nikolas,

Most likely, your input has '\n' characters at the end of every line,  
and you aren't doing anything in perl to strip those away. Try adding  
a 'chomp($string);' line before you print.


-Andy Reitz.

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


Re: Apache refusing to listen 81

2006-04-08 Thread Andrew Reitz


On Apr 8, 2006, at 11:18 AM, Adam McCarthy wrote:


I am trying to tell Apache2 to listen on port 81
with
Listen *:81

Even if I comment out Listen:80 it still listens on 80.

After starting Apache, telnet 127.0.0.1 81 fails with Connection  
Refused.


My listen is
Listen *:80
Listen *:81

I have no firewall on the machine. No errors in httpd-error.log.

Thanks in advanced for any inconvience.


Hi Adam,

Are you sure that Apache is picking up the httpd.conf that you are  
editing? Examining the output of `ps -auxwww |grep httpd` and `httpd - 
V` could be helpful.


-Andy Reitz.

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


Re: watch(8), xwatchwin as courseware [solved by script/tail]

2006-04-03 Thread Andrew Reitz


On Apr 2, 2006, at 11:29 PM, Andrew Pantyukhin wrote:


Hi. I have to teach no-frills freebsd courses. I wonder how
I can arrange all the students seeing on their displays what
I'm typing in my xterm in real-time. I haven't been very
successful with xwatchwin (I've been able to see it in action
but it wasn't very pleasant, and it dumps core on me lately).

watch(1) seems to be ideal for my purposes - students log
on to my box (maybe even gain root privileges if I don't
tweak devfs) and watch my pty. They can even copy and
paste what I'm typing in their xterms. But there's a show-
stopper: it seems that only one snp(4) device can attach to
a tty at the same time and only one watch(1) can use a
snp(4) at the same time.

So what do you suggest?

Hmm... Just as I was typing this I saw a simple solution. I
can use script(1) dumping to a file with -t0 (flush on every
char) and people can just tail -f this file. Performance is
great on a local machine, but is very laggy over NFS... I
tried 'mount -o acregmin=0,acregmax=0' and the
perfomance is almost real-time now.

Great :-) It really is true that many solutions come just as
soon as you try to describe your problem clearly :-)


Another potential solution is to use VNC - assuming your students  
have graphical displays. I'm pretty sure that multiple VNC viewers  
(clients) can connect to one VNC server, in watch-only mode.


-Andy.

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


Re: Filesystem layout with sperated /boot partition

2006-04-03 Thread Andrew Reitz


On Apr 2, 2006, at 11:16 PM, [EMAIL PROTECTED] wrote:


Hi Eric,

Thanks for the reply.  I have now a better understanding whats  
possible with
FreeBSD. One question (last one) which I could not find an answer  
to in the

online manual is :

How would you do a Dual or multi OS boot machine f.e. with Windows  
on the first

disk, first slice, first partition and FreeBSD on another partition ?

Would I need a boot floppy or perhaps its not possible at all ?


Hi Valentin,

Dual booting FreeBSD along with other Operating Systems is definitely  
possible. And you're right, I couldn't find any reference to how this  
can be done in the Handbook either. :)


Basically, it is my understanding that you will want to add a  
dedicated FreeBSD partition to your disk, and configure the slices  
within that partition as you have learned previously. In terms of how  
to boot, while you can use a floppy, there are many boot managers,  
that once configured, are more convenient to use than floppies.


I did a quick google, and found a guide that seems to cover this  
topic in some depth:


http://www.faqs.org/docs/win_bsd/index.htm

Good luck,
-Andy Reitz.

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


FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread Andrew Reitz

Hello,

I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. I have  
decided to get with the times, and upgrade to FreeBSD 6 and  
Apache2. So far, my experience with FreeBSD 6 has been great, but I  
appear to have bumped into a problem with running Apache 2 and php4  
together. By itself, Apache is working fine spitting out static  
pages. However, whenever I try to load a page that needs to go  
through the PHP interpreter, I get a segmentation fault:


nr:/usr/local/etc# tail /var/log/httpd-error.log
[Sun Apr 02 15:54:47 2006] [notice] Graceful restart requested, doing  
restart
[Sun Apr 02 15:54:48 2006] [warn] (22)Invalid argument: Failed to  
enable the 'httpready' Accept Filter
[Sun Apr 02 15:54:49 2006] [notice] Digest: generating secret for  
digest authentication ...

[Sun Apr 02 15:54:49 2006] [notice] Digest: done
[Sun Apr 02 15:54:50 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/ 
2.2.0 OpenSSL/0.9.7e-p1 DAV/2 configured -- resuming normal operations
[Sun Apr 02 15:54:51 2006] [notice] child pid 46107 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:54:55 2006] [notice] child pid 46108 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:54:59 2006] [notice] child pid 46109 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:57:38 2006] [notice] child pid 46110 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:58:15 2006] [notice] child pid 46111 exit signal  
Segmentation fault (11)


And here is some information about my system:

nr:/usr/local/etc# uname -a
FreeBSD nr.tool.no 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar  
13 01:11:05 PST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ 
PARAMORE  i386

nr:/usr/local/etc# pkg_info |grep -i apache
apache-2.2.0_7  Version 2.2 of Apache web server with prefork MPM.
php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
nr:/usr/local/etc# pkg_info |grep -i php
gallery-1.5.2.2 A slick web based photo album written using PHP
libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
php4-bz2-4.4.2_1The bz2 shared extension for php
php4-gd-4.4.2_1 The gd shared extension for php
php4-gettext-4.4.2_1 The gettext shared extension for php
php4-mbstring-4.4.2_1 The mbstring shared extension for php
php4-mcrypt-4.4.2_1 The mcrypt shared extension for php
php4-mysql-4.4.2_1  The mysql shared extension for php
php4-openssl-4.4.2_1 The openssl shared extension for php
php4-pcre-4.4.2_1   The pcre shared extension for php
php4-session-4.4.2_1 The session shared extension for php
php4-zlib-4.4.2_1   The zlib shared extension for php
phpMyAdmin-2.7.0.2  A set of PHP-scripts to manage MySQL over the web

I have done some Googling, and it seems like there are problems when  
Apache is compiled with threads, but I haven't found anything that I  
consider to be definitive. And of course, while I installed  
everything from ports, I don't remember which knobs I twisted when  
installing. :)


Can anyone supply any hints as to how I can get more debugging  
information (I don't see any core files anywhere), and/or how I can  
fix this problem?


Thanks much in advance,
-Andy Reitz

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


Re: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread Andrew Reitz


On Apr 2, 2006, at 5:02 PM, RJ wrote:


 Something doesn't seem right with those ports.
  When I have setup a server I use php4-4.4.2_1,  mysql- 
server-4.1.18_2,

php4-extensions-1.0 and apache.

  I think php4-4.4.2_1 and  php4-mysql-4.4.2_1 will cause a conflict.

 Some correct me if I'm wrong on this.


Ni RJ,

I certainly hope that these two ports aren't in conflict -- because  
they are listed together as dependencies on 56 ports (according to my  
'/usr/ports/INDEX-6' file). It looks like I got the php4-mysql  
package when I installed phpMyAdmin (which is how I noticed that PHP  
wasn't working, btw). Here is the relevant line from my INDEX-6 file:


nr:/usr/ports$ grep ^phpMyAdmin INDEX-6
phpMyAdmin-2.7.0.2|/usr/ports/databases/phpmyadmin|/usr/local|A set  
of PHP-scripts to manage MySQL over the web|/usr/ports/databases/ 
phpmyadmin/pkg-descr|[EMAIL PROTECTED]|databases www|| 
apache-1.3.34_4 expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3  
jpeg-6b_4 ldconfig_compat-1.0_6 libdrm-2.0_1 libltdl-1.5.22  
libmcrypt-2.5.7_2 mysql-client-4.1.18_1 pdflib-6.0.3 pecl- 
pdflib-2.0.4 perl-5.8.8 php4-4.4.2_1 php4-bz2-4.4.2_1 php4-gd-4.4.2_1  
php4-mbstring-4.4.2_1 php4-mcrypt-4.4.2_1 php4-mysql-4.4.2_1 php4- 
openssl-4.4.2_1 php4-pcre-4.4.2_1 php4-session-4.4.2_1 php4- 
zlib-4.4.2_1 pkgconfig-0.20 png-1.2.8_3 t1lib-5.1.0_1,1 xorg- 
libraries-6.9.0|http://www.phpmyadmin.net/|||


I would tend to trust the dependency list contained in the port, but  
I'm willing to try uninstalling the php4-mysql package if you think  
it will help.


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