Re: wikipedia article

2006-06-12 Thread Mipam
On Sun, 11 Jun 2006, Nikolas Britton wrote:

[SNIP]
 * IIRC NetBSD was a fork of FreeBSD, OpenBSD was a fork of NetBSD.

Eeh? I believe NetBSD was there half a year before FreeBSD.
Bye,

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


proxy check port

2006-01-12 Thread Mipam
Hi All,

I install the proxycheck port (ports/security/proxycheck)
I wished to check whether a proxy is open.
It appears there's a bug in the proxycheck program for example:

proxycheck -vvv -d www.freebsd.org:80 -c chat:GET 
http://www.freebsd.org/ 
HTTP/1.0:HTTP/1.1 200 OK -p hc:8080 127.0.0.1

It appears proxycheck is only sending GET http and omits everythings 
from the :.
HOwever, this : is between 's so it shouldn't be interpreted as the : to 
seperate the send string and reply string.
Or am i doing something wrong here?
Bye,

Mipam.




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


named -n paramter

2005-08-10 Thread Mipam
Hi,

With threads disabled in bind9, is it still 
usefull to give
-n 2 for example if you got a system with 2 cpu's?
The man page only mentioned worker threads...
Bye,

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


using openssl from ports

2005-07-22 Thread Mipam
Hi All,

I installed openssl from the ports collection.
However, there is also an openssl native in freebsd.
How can i set things to use the openssl from the ports as default instead 
of the system openssl?
Bye,

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


frontend for openssl?

2005-07-21 Thread Mipam
Hi All,

Openssl is very cool, but not always very easy to use.
Does there exist a frontend for openssl that can create and sign 
certificates bit one that also can create and sign pkcs7 certs?
Maybe something exists to help you create your own certificate authority?
Bye,

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


i'm lost in named trouble.

2004-12-29 Thread Mipam
Hi,

I configured plenty of nameservers also with bind9, but this time
i cannot figure out what's wrong anymore, i'm lost.
When i do host 127.0.0.1, i get a normal answer.
When i do host localhost, i get a normal answer.
When i do dig localhost, i get a normal answer.
When i do dig 127.0.0.1, i get no answer and i keep waiting  :-(
I don't know anymore what the problem is. :-(
Here are the config files:

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

key bla {
algorithm hmac-md5;
secret akjdhakdjfhaksdjfhASDFASFJASDJASDJFJASDJSEFA;
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { bla; };
};

zone . {
type hint;
file named.root;
};

zone localhost. {
type master;
file master/db.localhost;
notify no;
};

zone 0.0.127.IN-ADDR.ARPA {
type master;
file master/db.127.0.0;
notify no;
};

;
; 127.0.0.rev
;
$TTL 86400
@   IN  SOA localhost. root.localhost. (
1   ;serial
28800   ;Refresh
1440;Retry
360 ;expiry
86400   ;minimum 
)
IN  NS  localhost.
1   IN  PTR localhost.

;
; db.localhost
;
$TTL 259200 
@   IN SOA   @ root.mydom.local. ( 
2004122901  ; serial (r.)
28800; refresh
3600 ; retry
1209600 ; expiry
259200 ); minimum
IN NS@
IN A 127.0.0.1

While running dig 127.0.0.1 i captured the packets on the lo0 interface:

13:44:31.343171 IP (tos 0x0, ttl 64, id 580, offset 0, flags [none],
length: 55) 127.0.0.1.50900  127.0.0.1.53: [udp sum ok] 5460+ A?
127.0.0.1. (27) 13:44:36.349225 IP (tos 0x0, ttl 64, id 587, offset 0,
flags [none], length: 55) 127.0.0.1.50900  127.0.0.1.53: [udp sum ok]
5460+ A? 127.0.0.1. (27)

No answer as you can see. I also made a dump from what happens when i do
host 127.0.0.1 

13:45:42.903997 IP (tos 0x0, ttl 64, id 616, offset 0,
flags [none], length: 68) 127.0.0.1.57562  127.0.0.1.53: [udp sum ok]
60267+ PTR? 1.0.0.127.in-addr.arpa. (40) 13:45:42.904647 IP (tos 0x0, ttl
64, id 617, offset 0, flags [none], length: 121) 127.0.0.1.53 
127.0.0.1.57562:  60267* q: PTR? 1.0.0.127.in-addr.arpa. 1/1/1
1.0.0.127.in-addr.arpa. PTR localhost. ns: [|domain]

So dig asks an A record, and host ask a PTR record.
Can anybody tell me what is wrong with my config?
I don't know anymore how to resolve the issue with dig 127.0.0.1 anymore.
What am i doing wrong??
Bye,

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


Re: i'm lost in named trouble.

2004-12-29 Thread Mipam
On Wed, 29 Dec 2004, Nelis Lamprecht wrote:

 On Wed, 29 Dec 2004 14:00:04 +0100 (MET), Mipam [EMAIL PROTECTED] wrote:
 
  
  controls {
  inet 127.0.0.1 port 953
  allow { 127.0.0.1; } keys { bla; };
  };
 
 perhaps this should be:
 
 controls {
  inet 127.0.0.1 port 953
  allow { localhost; } keys { bla; };
  };

I just tried it, same result. :-(
Any other hints?
Bye,

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


Re: i'm lost in named trouble.

2004-12-29 Thread Mipam
On Wed, 29 Dec 2004, Nelis Lamprecht wrote:

 On Wed, 29 Dec 2004 14:39:44 +0100 (MET), Mipam [EMAIL PROTECTED] wrote:
  On Wed, 29 Dec 2004, Nelis Lamprecht wrote:
  
   On Wed, 29 Dec 2004 14:00:04 +0100 (MET), Mipam [EMAIL PROTECTED] wrote:
  
   
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { bla; };
};
  
   perhaps this should be:
  
   controls {
inet 127.0.0.1 port 953
allow { localhost; } keys { bla; };
};
  
  I just tried it, same result. :-(
  Any other hints?
 
 I see you also have not set a query option ?
 
 eg.
 allow-query { any; };

I added allow-query under options as you recommanded.
Though .. still no luck. :-(
What else could it be?
Bye,

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


mod_jk2 + tomcat + java question

2004-11-24 Thread Mipam
Hi,

Does anybody have experience with tomcat en mod_jk?
I installed java, tomcat5, mod_jk2 and apache2 via the ports.
The mod_jk2 module is now loaded in the httpd.conf
I copied mod_jk.conf in /usr/local/etc/apache2 and it looks now like this:

IfModule mod_jk.c
JkWorkersFile /usr/local/etc/apache2/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn

# Sample JkMounts.  Replace these with the paths you would
# like to mount from your JSP server.
JkMount /*.jsp myname.com
JkMount /servlet/* myname.com
JkMount /examples/* myname.com

I also copied workers.properties and workers2.properties to
/usr/local/etc/apache2.
However, i see errors in the http log:

[Wed Nov 24 10:09:50 2004] [error] config.update(): Can't find config file 
/usr/local/conf/workers2.properties
[Wed Nov 24 10:09:50 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:51 2004] [notice] Apache/2.0.52 (FreeBSD) mod_jk2/2.0.2 
PHP/4.3.9 configured -- resuming normal operations
[Wed Nov 24 10:09:51 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:51 2004] [error] mod_jk child init 1 0
[Wed Nov 24 10:09:51 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:51 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:51 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:51 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:57 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:58 2004] [error] shm.init(): No file
[Wed Nov 24 10:09:58 2004] [error] shm.init(): No file

There is a tomcat dir here: /usr/local/jakarta-tomcat5.0

Any hints how i could make things work?
What to change?
Bye,

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


system in cpu states in top

2004-11-23 Thread Mipam
Hi,

I wonder how some variables are being determined in top.
For example CPU states:

CPU states: 0.4% user, 0.0% nice,  1.5% system, 0.4% interrupt, 97.7% idle

is the percentage of system the usage that system processes use from
the cpu? What about nice? Any nice link where i can rtfm about it?
Bye,

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


/bin/rm: Argument list too long.

2004-11-19 Thread Mipam
Hi,

I tried to delete all files from a dir, however I got this message:

/bin/rm: Argument list too long.

So, no go. newfs is also no option, because the dir is not a seperate fs.
Any hints exept for manual labour?
Bye,

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


difference between releases

2004-11-08 Thread Mipam
Hi,

At this moment RELENG_5_3 kan be followed to obtain 5.3 release.
Also RELENG_5 kan be followed, will this be for early adopters?
Some day i hope to run a 5.x with the ule scheduler or is ule more likely 
to come in 6.x? 5.3 release is fixed and will not contain new things 
anymore right? So 5.3 is the first stable 5 serie? In general, the 
releases and stable versions are not quite clear to me.

Btw, i already run 5.2.1-p11 on smp machines with the ule scheduler 
enabled. It runs fine, also on some mail machines that need to digest a 
lot of mail a day.
Bye,

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


good hz value?

2004-11-05 Thread Mipam
Hi,

For about 60 mbit use of bandwidth and max of 85, what
is a good value for HZ in the kernel config when i use device polling?
Btw, are the bge now also useable with device polling?
Bye,

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


acpi_cpu1 attach returned 6 on single cpu system

2004-10-07 Thread Mipam
Hi,

I am running 5.2.1-p11 on a p3 system.
I commented options SMP in the kernel config.
However, i still get:

acpi_cpu1: CPU on acpi0
device_probe_and_attach: acpi_cpu1 attach returned 6

In dmesg. I didnt comment APIC
#optionsSMP # Symmetric MultiProcessor Kernel
device  apic# I/O APIC

Should i also comment apic?
How do i get rid of these attempts since i only have one cpu anyway?
Bye,

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


ntop question

2004-09-28 Thread Mipam
Hi,

I installed ntop 3.0 from the ports.
I am running 5.2.1-10
But /usr/local/etc/rc.d/ntop.sh start
does not create a daemon, . instead.
ntop starts a connection to 131.114.21.22 on port 80.
making a connection to that ip it appears its the website of Luca Deri 
himself. Very nice of course, but i hoped ntop would start sniffing and 
opening a webserver on port 3000.
What is going on? Any hints?
Bye,

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


cannot remove own file from tmp

2004-08-26 Thread Mipam
Hi,

I have a system where tmp is a symlink to /var/tmp
The permissions or /var/tmp are as follows:
(doing a ls -l in /tmp):
drwxrwxrwt  3 root wheel   512 Aug 26 11:48 tmp

in tmp is created a file test:

ls -lo test

-rw-rw-r--  1 mipam  wheel  -   8 Aug 26 11:46 test

However, i cannot remove this file as mipam eventhough i own it.
No chflags have been said as can be seen.
How is this possible, why can i not remove a file in here eventhough
i created it myself and own it myself?
Bye,

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


Re: cannot remove own file from tmp

2004-08-26 Thread Mipam
On Thu, 26 Aug 2004, Subhro wrote:

 Could we have a look at mount -a please?

/dev/wd0a on /config: Operation not permitted
/dev/wd0d on /var: Operation not permitted
/dev/wd0e on /opt: Operation not permitted
/dev/wd0f on /: Operation not permitted
procfs: Operation not permitted

Bye,

Mipam.
 
 Regards
 S.
 
 On Thu, 26 Aug 2004 12:18:06 +0200 (MEST), Mipam [EMAIL PROTECTED] wrote:
  Hi,
  
  I have a system where tmp is a symlink to /var/tmp
  The permissions or /var/tmp are as follows:
  (doing a ls -l in /tmp):
  drwxrwxrwt  3 root wheel   512 Aug 26 11:48 tmp
  
  in tmp is created a file test:
  
  ls -lo test
  
  -rw-rw-r--  1 mipam  wheel  -   8 Aug 26 11:46 test
  
  However, i cannot remove this file as mipam eventhough i own it.
  No chflags have been said as can be seen.
  How is this possible, why can i not remove a file in here eventhough
  i created it myself and own it myself?
  Bye,
  
  Mipam.
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  
 
 
 -- 
 Subhro Sankha Kar
 School of Information Technology
 Block AQ-13/1 Sector V
 ZIP 700091
 India
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cannot remove own file from tmp

2004-08-26 Thread Mipam
On Thu, 26 Aug 2004, Subhro wrote:

 Silly me :-(, Login as root and type mount without the s. Also
 could we have a listing of /etc/fstab and uname -a.

$ mount
/dev/wd0f on / (local, read-only)
/dev/wd0a on /config (local)
/dev/wd0d on /var (local)
/dev/wd0e on /opt (local)
procfs on /proc (local)

/etc/fstab:

/dev/wd0a   /config ufs rw 1 2
/dev/wd0b   noneswapsw 0 0
/dev/wd0d   /varufs rw 1 2
/dev/wd0e   /optufs rw 1 2
/dev/wd0f   /   ufs ro 1 1
proc/proc   procfs  rw 0 0

In / i do ls -l:

lrwxr-xr-x   1 root  wheel 8 Aug 25 13:30 tmp - var/tmp2

in /var i do ls -l:

drwxrwxrwt  5 root wheel  1024 Aug 26 12:38 tmp2

Bye,

Mipam.

 
 Regards
 S.
 
 On Thu, 26 Aug 2004 12:34:23 +0200 (MEST), Mipam [EMAIL PROTECTED] wrote:
  On Thu, 26 Aug 2004, Subhro wrote:
  
   Could we have a look at mount -a please?
  
  /dev/wd0a on /config: Operation not permitted
  /dev/wd0d on /var: Operation not permitted
  /dev/wd0e on /opt: Operation not permitted
  /dev/wd0f on /: Operation not permitted
  procfs: Operation not permitted
  
  Bye,
  
  Mipam.
  
  
  
   Regards
   S.
  
   On Thu, 26 Aug 2004 12:18:06 +0200 (MEST), Mipam [EMAIL PROTECTED] wrote:
Hi,
   
I have a system where tmp is a symlink to /var/tmp
The permissions or /var/tmp are as follows:
(doing a ls -l in /tmp):
drwxrwxrwt  3 root wheel   512 Aug 26 11:48 tmp
   
in tmp is created a file test:
   
ls -lo test
   
-rw-rw-r--  1 mipam  wheel  -   8 Aug 26 11:46 test
   
However, i cannot remove this file as mipam eventhough i own it.
No chflags have been said as can be seen.
How is this possible, why can i not remove a file in here eventhough
i created it myself and own it myself?
Bye,
   
Mipam.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
   
  
  
   --
   Subhro Sankha Kar
   School of Information Technology
   Block AQ-13/1 Sector V
   ZIP 700091
   India
  
  
 
 
 -- 
 Subhro Sankha Kar
 School of Information Technology
 Block AQ-13/1 Sector V
 ZIP 700091
 India
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


memory usage question

2004-08-17 Thread Mipam
Hi,

I have a question about usage of memory.
Despite the well documented articles about it some things are still
unclear. In top we see memory devided in several items:

Active, inactive, buffered, wired and free.
The active memory is clear, it's what is in use by programs now.
Wired mem is also clear, it's for the kernel data structs.
When a program ends, the mem is put in the inactive part right?
So when the program is run 10 minutes after it can be started very 
quickly, also because the data used from the disk of that program is still 
in the cache part right? However, suppose the program isnt run in 2 hours, 
will there be a timeout in the parts which are being put in inactive and 
in cache? Suppose the timeout has occured, will the mem be added to free 
mem or? What is the difference between buffered mem and cached mem? Both 
represent data which is recently being called from the disk, so that next 
time when the file is called again, no disk access, needs to be made in 
order to save time right?

However, suppose i have little mem free, say 7 mb and still 200 in 
inactive. Then a program needs to start which needs say 30 mb on mem, will 
also mem be taken from the inactive part and discard the cache?
Some ppl only look at how much free mem is available on their system and 
then sound the alarm, however, shouldnt they add inactive and free 
together in order to see how much mem can be used for newly used programs 
(which didnt run before?).
Bye,

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


Re: localtime question

2004-08-11 Thread Mipam
On Wed, 11 Aug 2004, Giorgos Keramidas wrote:

 On 2004-08-11 10:44, Mipam [EMAIL PROTECTED] wrote:
   You'd have to use strftime() and a local buffer for that.
 
  I found an example and adjusted it:
 
  #include time.h
  #include stdio.h
 
  int main()
  {
  struct tm *ptr;
  time_t tm;
  char str[60];
  char str2[60];
  char str3[60];
 
  tm = time(NULL)-86400;
  ptr = localtime(tm);
  strftime(str ,100 , %d,ptr);
  strftime(str2 ,100 , %m,ptr);
  strftime(str3 ,100 , %Y,ptr);
  printf(%s %s %s\n,str3,str2,str);
 
  return 0;
  }
 
  This runs just fine: 2004 08 10
  I dont know what the 100 is good for?
 
 It's the size of the buffer that strftime() gets as the first argument.
 In this case 100 is a bug waiting to happen, because the buffers are
 allocated with only 60 bytes of data.  The manpage of strftime()
 explains what each argument is supposed to be.

Okay, so i should do:
strftime(str ,60 , %d,ptr);
Could i do a check, i mean:

ptr = localtime(tm); here i assign the output of locatime... to
ptr and ptr is a string of 60 characters, what if for some reason
localtime(tm) exceeds the 60 characters, then i have a nice buffer
overflow. Can i do a check before doing: ptr = localtime(tm); whether
localtime(tm) does not exceed 60 characters?
When i done that check, i dont need an additional check in the strftime, 
where also 60 is assigned.
Bye,

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


irq mitigation support?

2004-08-11 Thread Mipam
Hi,

I saw that the intel PWLA8492MT dual nic is supported, it's
the Intel 82546 Gigabit Controller.
In the specs of this card according to intel it supports irq mitigation.
However,i have only seen support for this in the fxp driver.
Is irq mitigation supported in the em(4) driver for this card?
Bye,

Mipam.

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


localtime question

2004-08-10 Thread Mipam
Hi,

I tried to display the time from yesterday by this little program

#include stdio.h
#include sys/time.h

time_t tval;

int main()
{
struct timeval tv;
struct timeval tv_current;
if (gettimeofday(tv_current, NULL) == -1)
err(1, Could not get local time of day);
tv.tv_sec = tv_current.tv_sec-86400;
printf(%s\n, ctime(tv.tv_sec) );
}

But at compilation it complains:

tijd.c: In function `main':
tijd.c:15: warning: passing arg 1 of `ctime' makes pointer from integer 
without a cast

What am i doing wrong?
Bye,

Mipam.

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


Re: localtime question

2004-08-10 Thread Mipam
 Note that it's a good idea to explicitly specify that main() does
 nothing to its argument with:
 
 int
 main(void)
 {
 ...
 }
 
 and that main() has to `return' some value that fits in an `int' as its
 definition says it should.
 
  But at compilation it complains:
 
  tijd.c: In function `main':
  tijd.c:15: warning: passing arg 1 of `ctime' makes pointer from integer without a 
  cast
 
  What am i doing wrong?
 
 You're passing the value of tv.tv_sec in a function that expects a
 pointer to it.
 
 % man ctime
 
  char *
  ctime(const time_t *clock);
 
 The value you passed to ctime() is not an address of a constant time_t
 object but the value of the time_t object itself.  The compiler detects
 that a conversion from an integral type to a pointer needs to take place
 and warns you about it.
 
 This is not a fatal error (c.f. the rationale of the ANSI C99 standard,
 which specifies that pointers might be converted to integral values and
 back to the same pointer type without losing any information).  However,
 it is usually a very common mistake (forgetting to pass a reference to
 the object and passing the object itself).  This is why you get warned.
 
 Try calling ctime() with the address of tv.tv_sec:
 
 printf(%s\n, ctime(tv.tv_sec));

#include stdio.h
#include sys/time.h

int main(void)
{
struct timeval tv;
struct timeval tv_current;
if (gettimeofday(tv_current, NULL) == -1)
   err(1, Could not get local time of day);
tv.tv_sec = tv_current.tv_sec-86400;
printf(%s\n, ctime(tv.tv_sec));
return 0;
}

Does the job, thanks!
At compile time i get:

tijd.c: In function `main':
tijd.c:11: warning: passing arg 1 of `ctime' from incompatible pointer 
type

But it works:
Mon Aug  9 18:44:04 2004
nicely the time of yesterday.
Only thing left is another format like: 2004 Aug  9 18:44:04
Any hints?
Bye,

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


Re: localtime question

2004-08-10 Thread Mipam
On Tue, 10 Aug 2004, Giorgos Keramidas wrote:

 On 2004-08-10 18:45, Mipam [EMAIL PROTECTED] wrote:
  #include stdio.h
  #include sys/time.h
 
  int main(void)
  {
  struct timeval tv;
  struct timeval tv_current;
  if (gettimeofday(tv_current, NULL) == -1)
 err(1, Could not get local time of day);
  tv.tv_sec = tv_current.tv_sec-86400;
  printf(%s\n, ctime(tv.tv_sec));
  return 0;
  }
 
 Hmmm, now that I noticed.  You don't need to add a trailing '\n' to the
 string of ctime().  It already has one:
 
 [EMAIL PROTECTED]:11]/home/keramida$ ./a.out
 Mon Aug  9 20:11:30 2004
 
 [EMAIL PROTECTED]:11]/home/keramida$

Thanks, for the help, i'll remove the \n and get on the sorting part now 
:-)
Bye,

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


Re: clamd keeps exiting

2004-07-19 Thread Mipam
On Sat, 17 Jul 2004, Jay Moore wrote:

 On Thursday 15 July 2004 08:34 am, Mipam wrote:
 
  ls /var/log/clamav/clamd.log yields:
 
  +++ Started at Wed Jul 14 10:30:57 2004
  clamd daemon 0.74 (OS: freebsd5.2.1, ARCH: i386, CPU: i386)
  Log file size limited to 2097152 bytes.
  Verbose logging activated.
  Running as user clamav (UID 1006, GID 1007)
  Reading databases from /usr/local/share/clamav
  Protecting against 22678 viruses.
  Unix socket file /var/run/clamav/clamd
  Setting connection queue length to 15
  Listening daemon: PID: 859
  Archive: Archived file size limit set to 10485760 bytes.
  Archive: Recursion level limit set to 5.
  Archive: Files limit set to 1000.
  Archive: Compression ratio limit set to 200.
  Archive support enabled.
  RAR support disabled.
  Mail files support enabled.
  OLE2 support enabled.
  Self checking every 3600 seconds.
 
  and in var/log/messages
 
  Jul 14 10:33:10 rbns01 kernel: pid 859 (clamd), uid 1006: exited on signal
  6
 
  For the rest i couldnt find anything just this.
  I have no clue why it keeps exiting.
  The deps:
 
  /usr/local/sbin/clamd:
  libclamav.so.1 = /usr/local/lib/libclamav.so.1 (0x28086000)
  libz.so.2 = /lib/libz.so.2 (0x280ae000)
  libbz2.so.1 = /usr/lib/libbz2.so.1 (0x280bc000)
  libgmp.so.6 = /usr/local/lib/libgmp.so.6 (0x280cb000)
  libc_r.so.5 = /usr/lib/libthr.so.1 (0x280f9000)
  libc.so.5 = /lib/libc.so.5 (0x2810a000)
 
  kern.version: FreeBSD 5.2.1-RELEASE-p9 #3: Thu Jul  8 16:43:50 CEST 2004
  Any clues?
  I cant seem to get any more debug info about what happend even not with
  the --debug option enabled.
  Any hints?
 
 Do you have a file /etc/clamav.conf ?
 
 There is a line in the default clamav.conf: # Example
 This line must be un-commented (remove the #).

You mean this part:

# Comment or remove the line below.
#Example

This is commented as you can see, so you suggest to uncomment this line?
What is the function of this Example in the clamav.conf?
Bye,

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


Re: clamd keeps exiting

2004-07-15 Thread Mipam
On Wed, 14 Jul 2004, Jay Moore wrote:

 On Tuesday 13 July 2004 10:30 am, Mipam wrote:
 
  I am using clamav to check on virusses.
  This works well. However, when i try to use clamd, it never runs long.
  Mostly within a minute or a couple, it exists with signal 6.
  I am using this libmap.conf
 
 snip, snip 
 
  Maybe i should adjust some things to make it work fine?
  Did anyone else encouter these problems?
 
 This is a non-answer, but I use clamav (0.73  0.74) on 2 OpenBSD (3.4  3.5) 
 systems for the past week or so, and I've not had this problem. In fact other 
 than being kind of tedious to install  configure it seems to be working 
 well. OpenBSD has no libmap.conf - I'm just curious as to what makes you 
 think library mappings are at fault?

I wasnt sure it had something to do with the libmaps i used but i 
wondered it might be so. The --debug option didnt reveal any info at all, 
other then i already had. In the example libmap.conf they had a lib 
setting 
for apache so i figured this might be important for clam as well.
Maybe the program is linked to some libs during compile time, but at 
running time is uses other libs? I wonder why i seem to be the only one 
who is running into trouble like this. Big difference with OpenBSD is that 
FreeBSD 5 does threading and supports SMP, which is applicable for the 
machine i run clam on. Not that this answer is sensefull, but i wondered 
if i am the only one experiencing trouble with clamd.
Bye,

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


Re: clamd keeps exiting

2004-07-15 Thread Mipam


On Thu, 15 Jul 2004, Warren Block wrote:

 On Thu, 15 Jul 2004, Mipam wrote:
 
  Maybe the program is linked to some libs during compile time, but at
  running time is uses other libs? I wonder why i seem to be the only one
  who is running into trouble like this. Big difference with OpenBSD is that
  FreeBSD 5 does threading and supports SMP, which is applicable for the
  machine i run clam on. Not that this answer is sensefull, but i wondered
  if i am the only one experiencing trouble with clamd.
 
 Is anything logged in /var/log/clamav/clamd.log?
 
 -Warren Block * Rapid City, South Dakota USA

ls /var/log/clamav/clamd.log yields:

+++ Started at Wed Jul 14 10:30:57 2004
clamd daemon 0.74 (OS: freebsd5.2.1, ARCH: i386, CPU: i386)
Log file size limited to 2097152 bytes.
Verbose logging activated.
Running as user clamav (UID 1006, GID 1007)
Reading databases from /usr/local/share/clamav
Protecting against 22678 viruses.
Unix socket file /var/run/clamav/clamd
Setting connection queue length to 15
Listening daemon: PID: 859
Archive: Archived file size limit set to 10485760 bytes.
Archive: Recursion level limit set to 5.
Archive: Files limit set to 1000.
Archive: Compression ratio limit set to 200.
Archive support enabled.
RAR support disabled.
Mail files support enabled.
OLE2 support enabled.
Self checking every 3600 seconds.

and in var/log/messages

Jul 14 10:33:10 rbns01 kernel: pid 859 (clamd), uid 1006: exited on signal 
6

For the rest i couldnt find anything just this.
I have no clue why it keeps exiting.
The deps:

/usr/local/sbin/clamd:
libclamav.so.1 = /usr/local/lib/libclamav.so.1 (0x28086000)
libz.so.2 = /lib/libz.so.2 (0x280ae000)
libbz2.so.1 = /usr/lib/libbz2.so.1 (0x280bc000)
libgmp.so.6 = /usr/local/lib/libgmp.so.6 (0x280cb000)
libc_r.so.5 = /usr/lib/libthr.so.1 (0x280f9000)
libc.so.5 = /lib/libc.so.5 (0x2810a000)

kern.version: FreeBSD 5.2.1-RELEASE-p9 #3: Thu Jul  8 16:43:50 CEST 2004
Any clues?
I cant seem to get any more debug info about what happend even not with 
the --debug option enabled.
Any hints?
Bye,

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


clamd keeps exiting

2004-07-13 Thread Mipam
Hi,

I am using clamav to check on virusses.
This works well. However, when i try to use clamd, it never runs long.
Mostly within a minute or a couple, it exists with signal 6.
I am using this libmap.conf

# /etc/libmap.conf
#
# candidate mapping
#
libc_r.so.5 libthr.so.1 # Everything uses 'libthr'
libc_r.so   libthr.so

[/usr/local/bin/mplayer]# 'mplayer' uses libc_r.
libc_r.so.5 libc_r.so.5
libc_r.so   libc_r.so

[mplayer]
libc_r.so.5 libc_r.so.5
libc_r.so   libc_r.so

[/usr/local/sbin/httpd] # Apache uses libkse
libc_r.so.5 libkse.so.1
libc_r.so   libkse.so

[httpd]
libc_r.so.5 libkse.so.1
libc_r.so   libkse.so

Maybe i should adjust some things to make it work fine?
Did anyone else encouter these problems?
Bye,

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


Re: options in /etc/resolv.conf

2004-05-12 Thread Mipam
On Mon, 10 May 2004, Matthew Seaman wrote:

 FreeBSD uses a pretty standard version of BIND-8.3.7, and it uses the
 BIND resolver code in libc -- See:

 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libbind/Makefile?rev=1.7content-type=text/x-cvsweb-markup

 The part you're interested in is handled by the code in res_init.c:
 look for the res_setoptions() function in:

 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/bind/lib/resolv/res_init.c?rev=1.1.1.8content-type=text/x-cvsweb-markup

 Which suggests that the functionality you require is available, and
 that the man page is somewhat lacking.  Note that the man page isn't
 supplied with the BIND sources, so it may well have got out of synch.

 Have you tried using those options in your /etc/resolv.conf? Do they
 work?

I have tried the options.
options timeout:60
I added it to /etc/resolv.conf
However, it doesnt seem to work, because the timeout period is still 40
seconds. Weird enough are nowhere errors detectable that the options isnt
possible or anything.
Bye,

Reinoud.

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


options in /etc/resolv.conf

2004-05-10 Thread Mipam
Hi,

I wish to use the following option in /etc/resolv.conf

options timeout:40

However in man resolv.conf(5) i notice that this option isnt available.
But i read here:

http://ops.ietf.org/lists/namedroppers/namedroppers.199x/msg03798.html

that this option is available from bind 8.2
named -v yields:

named 8.3.7-REL
Does freebsd use a modified version with not all options which comes in
bind 8.3?
Bye,

Mipam.




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


munin question

2004-05-04 Thread Mipam
Hi,

I installed munin-node from the ports.
There are some nice plugins, for example:

/usr/local/share/munin/pluginspostfix_mailqueue

I wish to display info which is generated by that scripts.
I assume it keeps stats about the mailq?
I added some machines with allow  in the munin-node.conf file.
Right now i'm kind of stuck on how to display the stats gained by the
plugin. Any hints what i could do?
Bye,

Mipam.

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


freeradius + 800 users :-(

2004-04-16 Thread Mipam
Hi,

I hoped for some input and suggestions how to administrate a Fbsd system
with freeradius and must have about 800 radiususers.
That is, the machines acts as radius server. Another machine will file a
radius authentication request to the server to give access to certain
users. But 800 users is a lot and sometimes users will be removed and be
added etc. Does anybody have suggestions how to maintain such a system
and a mechanism to remove and add users?

Of course the simple way like ssh access and manually add or remove dns
users is possible. But is there also something else possible with isnt
insecure ass well? Any hints etc?
Bye,

Mipam.


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


Re: pseudo-device vn

2004-04-08 Thread Mipam
  On Wed, 7 Apr 2004, Jerry McAllister wrote:
Should i just put
pseudo-device   vn
in the kernel config file to make this work?

 In 5.x, `vn' was replaced by `md'.  (Sorry, that's about all I know
 about it.)

Do you know whether it's being enable by default in the kernel or not?
Bye,

Mipam.

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


pseudo-device vn

2004-04-07 Thread Mipam
Hi,

I couldnt find stuff whether the pseudo device vn is by default in the
generic kernel. I didnt find it in GENERIC, but maybe it's otherwise
involved? I guess i need this device to mount a tmpfs like this in /etc

/dev/amrd0s1b /var/amavis   mfs   rw,-s=65536   0   0

where s1b is the swap device.
Should i just put
pseudo-device   vn
in the kernel config file to make this work?
Bye,

Mipam.

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


Re: pseudo-device vn

2004-04-07 Thread Mipam
On Wed, 7 Apr 2004, Jerry McAllister wrote:

  I couldnt find stuff whether the pseudo device vn is by default in the
  generic kernel. I didnt find it in GENERIC, but maybe it's otherwise
  involved? I guess i need this device to mount a tmpfs like this in /etc
 
  /dev/amrd0s1b /var/amavis   mfs   rw,-s=65536   0   0
 
  where s1b is the swap device.
  Should i just put
  pseudo-device   vn
  in the kernel config file to make this work?

 You didn't say which version of FreeBSD you were using.
 In versions  4.xxx and earlier I think this will work.
 It is what I have done.   You should be able to find it
 in the LINT file.

 But, starting with 5.0 I think it may have been changed.

I am using 5.2.1-p4, i also didnt see this in LINT.
Any hints?
Bye,

Mipam.

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


how to enable RXCSUM,TXCSUM options?

2004-04-06 Thread Mipam
Hi,

Doing ifconfig bge0 i saw:

options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING

When i do ifconfig bge0 -txcsum i saw:

options=18VLAN_MTU,VLAN_HWTAGGING

So it means txcsum and rxcsum are enabled by default, so checksum
offloading is enabled by default?
However, whether i configure bge0 with or without txcsum, bad udp and tcp
checksums are seen by tcpdump anyway ... is that normal?
Bye,

Mipam.


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


signal 6 meaning?

2004-04-05 Thread Mipam
Hi,

Sory for the luser question.
What's signal 6?

kernel: pid 567 (clamd), uid 1006: exited on signal 6

Where can i rtfm on signals?
This is in /var/log/clam/clamd.log (so nothing  :-()

+++ Started at Mon Apr  5 13:23:48 2004
  Log file size limited to 2097152 bytes.
  Verbose logging activated.
  Running as user clamav (UID 1006, GID 1007)
  Reading databases from /usr/local/share/clamav
  Protecting against 20832 viruses.
  Unix socket file /var/run/clamav/clamd
  Setting connection queue length to 15
  Listening daemon: PID: 567
 Archive: Archived file size limit set to 10485760 bytes.
 Archive: Recursion level limit set to 5.
 Archive: Files limit set to 1000.
 WARNING: USING HARDCODED LIMIT: Archive: Compression ratio limit set to
200.
 Archive support enabled.
 RAR support disabled.
 Mail files support enabled.
 OLE2 support disabled.
 Self checking every 3600 seconds.
Bye,

Mipam.

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


[no subject]

2004-04-05 Thread Mipam
Hi, I've some dell poweredges with broadcomcards in them:

bge0: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem
0xfcd2
-0xfcd2,0xfcd3-0xfcd3 irq 16 at device 0.0 on pci2
bge0: Ethernet address: 00:0b:db:93:c5:c4
miibus0: MII bus on bge0
brgphy0: BCM5704 10/100/1000baseTX PHY on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto

However on all of these systems i enconter this in tcpdump:

14:51:49.845 x.x.x.x.22  x.x.x.x.3599: P 444:784(340) ack
53 win 32850 (DF) [tos 0x10]  (ttl 64, id 21535, len 380, bad cksum 0!)
14:51:49.863740 x.x.x.x.3599  x.x.x.x.22: P 53:105(52) ack 280
win 64128 (ttl 126, id 24085, len 92)
14:51:49.864327 x.x.x.x.3599  x.x.x.x.22: . [tcp sum ok]
105:105(0) ack 784 win 63624 (ttl 126, id 24086, len 40)
14:51:49.865208 x.x.x.x.3599  x.x.x.x.22: P 105:157(52) ack
784 win 63624 (ttl 126, id 24088, len 92)
14:51:49.865231 x.x.x.x.22  x.x.x.x.3599: . [bad tcp cksum
505b!] 784:784(0) ack 157 win 32824 (DF) [tos 0x10]  (ttl 64, id 21536,
len 40, bad cksum 0!)

Has this to do with tcp checksum offloading?
Should i turn it off? And if so, how to turn it off?
Any hints?
Bye,

Mipam.

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


bad tcp/udp checksums with broadcom cards.

2004-04-05 Thread Mipam
Hi,

(I allready posted this message without a subject, which isnt nice so i
post it again, forgive me).

I've some dell poweredges with broadcomcards in them:

bge0: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem
0xfcd2
-0xfcd2,0xfcd3-0xfcd3 irq 16 at device 0.0 on pci2
bge0: Ethernet address: 00:0b:db:93:c5:c4
miibus0: MII bus on bge0
brgphy0: BCM5704 10/100/1000baseTX PHY on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto

However on all of these systems i encounter this in tcpdump:

14:51:49.845 x.x.x.x.22  x.x.x.x.3599: P 444:784(340) ack
53 win 32850 (DF) [tos 0x10]  (ttl 64, id 21535, len 380, bad cksum 0!)
14:51:49.863740 x.x.x.x.3599  x.x.x.x.22: P 53:105(52) ack 280
win 64128 (ttl 126, id 24085, len 92)
14:51:49.864327 x.x.x.x.3599  x.x.x.x.22: . [tcp sum ok]
105:105(0) ack 784 win 63624 (ttl 126, id 24086, len 40)
14:51:49.865208 x.x.x.x.3599  x.x.x.x.22: P 105:157(52) ack
784 win 63624 (ttl 126, id 24088, len 92)
14:51:49.865231 x.x.x.x.22  x.x.x.x.3599: . [bad tcp cksum
505b!] 784:784(0) ack 157 win 32824 (DF) [tos 0x10]  (ttl 64, id 21536,
len 40, bad cksum 0!)

Has this to do with tcp checksum offloading?
Should i turn it off? And if so, how to turn it off?
Or is this correct and no problem?
Does this card got segmentation offload and other offloads?
Any hints?
Bye,

Mipam.



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


maxproc is automatically adjusted?

2004-03-23 Thread Mipam
Hi,

I noticed that kern.maxproc was different than i expected.
Same goes for maxusers. It seems FreeBSD sizes these values according to
your system? I couldnt find any info upon this, whether this is happening
and how and on bases upon what it sizes these sysctl's.
Can anybody give me more info on this?
Bye,

Mipam.

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


Re: maxproc is automatically adjusted?

2004-03-23 Thread Mipam
Thanks for your answer.

I only dont know where to find the LINT file in the src tree.
in /usr/src i tried find . -name LINT
but no result. (sorry for this luser question).
Bye,

Mipam.

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


Re: maxproc is automatically adjusted?

2004-03-23 Thread Mipam
On Tue, 23 Mar 2004, Richard P. Williamson wrote:

 At 13:13 23/03/2004, Mipam wrote:
 Thanks for your answer.
 
 I only dont know where to find the LINT file in the src tree.
 in /usr/src i tried find . -name LINT
 but no result. (sorry for this luser question).
 Bye,

 PMFBI

 obligatory winge:  Where's the context of that follow-on question?

 For 4.8 and that era, if you installed the source when
 installing FreeBSD, look for

 /usr/src/sys/i386/conf/LINT

I didnt install the source when installing FreeBSD.
I obtained 5.2.1-p3 by cvsup.
I still cannot find the file LINT, it doesnt seem to be there.
Where can i find it?
Bye,

Mipam.

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


Re: maxproc is automatically adjusted?

2004-03-23 Thread Mipam
Okay, i found LINT, that is,
in /usr/src/sys/i386/conf i did make LINT and the file was created.
But i still didnt find the answers i was looking for, like
kern.maxusers seems to be sized automatically based on you hardware?
And so maxproc etc? I still didnt find further docs about this
and how it works. Any places where i can RTFM about it?
Bye,

Mipam.



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


Re: maxproc is automatically adjusted?

2004-03-23 Thread Mipam
Thanks, i read it.
I also found this:

# The `maxusers' parameter controls the static sizing of a number of
# internal system tables by a formula defined in subr_param.c.
# Omitting this parameter or setting it to 0 will cause the system to
# auto-size based on physical memory.

And looking at some source files:

maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE)

PAGE_SIZE is the amount of swap as reported in pfstat -s?
I wasnt able to find out what physpages are only this:

voidinit_param2(long physpages);

But that still didnt give me a clue what it shoud represent, any hints
here?

maxproc = physpages / 12;
maxprocperuid = (maxproc * 9) / 10;

Would physpages be the amount of available RAM?
In my case with 512 MB of RAM I'll get kern.maxproc: 4036
So in my case physpages is 49032?
Bye,

Mipam.

On Tue, 23 Mar 2004, Kevin D. Kinsey, DaleCo, S.P. wrote:

 Mipam wrote:

 Okay, i found LINT, that is,
 in /usr/src/sys/i386/conf i did make LINT and the file was created.
 But i still didnt find the answers i was looking for, like
 kern.maxusers seems to be sized automatically based on you hardware?
 And so maxproc etc? I still didnt find further docs about this
 and how it works. Any places where i can RTFM about it?
 Bye,
 
 Mipam.
 
 
 
 

 loader.conf(5)

 Kevin Kinsey
 DaleCo, S.P.


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


fxp0: device timeout with 5.2.1-Release-p1

2004-03-09 Thread Mipam
Hi,

I was trying to install a ProLiant BL10e G2 (blade server) over the
network. With all machines it's working fine.
But the blade isnt going fine.
I choose to use NFS to fetch the files.
But in ctrl-alt-F2 i see: fxp0: device timeout
This message is repeated and so the nfs mounting doesnt work.
Anybody else run into this problem?
I even disbled the second nic and usb support and placed the card on irq
10, but with the same result.
I'm afraid this is a driver problem, that is  i guess maybe hp has
specific instructions on their version of the intel card??
I've they're offering special drivers for redhat 8.0 for the nics  :-(
But even if i would use linux, i wouldnt use these drivers anyway.
Any remedy for this timeout issues?
Bye,

Mipam.

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


problems mounting swap on mfs

2004-03-03 Thread Mipam
Hi,

Im running FreeBSD 5.2.1-RELEASE-p1 and i'm having trouble mounting some
dirs on swap. pfstat -s yields:

Device  1K-blocks UsedAvail Capacity
/dev/amrd0s1b 15994880  1599488 0%

When i put in /etc/fstab:

/dev/amrd0s1b  /try   mfs   rw,-s=65536   0   0

and then i try mount (yes i did create /try first)
i get:

mfs: bad device unit: amrd0s1b

Im using a raidconfig:

amr0: LSILogic MegaRAID mem 0xfcb0-0xfcb3,0xf000-0xf7ff
irq 18 at device 3.0 on pci4
amr0: LSILogic PERC 4/Di Firmware 4.10, BIOS B111, 128MB RAM

amrd0: LSILogic MegaRAID logical drive on amr0
amrd0: 34558MB (70774784 sectors) RAID 1 (optimal)
GEOM: create disk amrd0 dp=0xc4961b0c
ses0 at amr0 bus 0 target 6 lun 0
ses0: PE/PV 1x3 SCSI BP 1.1 Fixed Processor SCSI-2 device
ses0: SAF-TE Compliant Device

What am i doing wrong?
Bye,

Mipam.

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


diskSetCustom: no such release bin

2004-02-19 Thread Mipam
Hi,

I managed to get the system booted and install the machine by pxeboot.
Next step is to create an install.cfg to make the install automatic.
In install.cfg i have:

##
dists=bin doc manpages dict info crypto compat3x compat4x ports ssecure \
sbase scontrib sgnu setc sinclude slib slibexec srelease sbin ssbin \
sshare ssys subin susbin ssmailcf

distSetCustom
#

However, the install stops in the screen of the partitioner.
In ctrl-alt-F2 i see:
DEBUG: diskSetCustom: Warning, no such release bin

Any hings?
Bye,

Mipam.

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


pxe boot problems

2004-02-18 Thread Mipam
Hi,

Im trying to install freebsd on a system (i386 system) without cdrom or
floppy.
I created a loader.rc and the kernel (used from /boot/kernel) and I
created an mfsroot from the mfsroot.flp which can be downloaded from
freebsd.org. The kernel is loaded, then mfsroot is loaded.
my loader.rc

echo Loading mfsroot...
load -t mfs_root /mfsroot
echo booting...
echo \007\007
echo initializing h0h0magic...
set boot_userconfig
set vfs.root.mountfrom=ufs:/dev/md0c
boot

after mfsroot has been loaded is see:
initializing h0h0magic...
then a loud BEEP and then it stops and the system reboots.
What am i doing wrong? Any hints what to do now?
Bye,

Mipam.



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


Re: pxe boot problems

2004-02-18 Thread Mipam
In loader.rc i did unset acpi and now it gets a little further:
after loading mfsroot (rotating /), after that i see:

no such file or directory

Then press enter to boot kernel now 
the kernel is located /boot/kernel/kernel
when i press enter all i see is a / and the system hangs.
Any hints?
Bye,

Mipam.



 Im trying to install freebsd on a system (i386 system) without cdrom or
 floppy.
 I created a loader.rc and the kernel (used from /boot/kernel) and I
 created an mfsroot from the mfsroot.flp which can be downloaded from
 freebsd.org. The kernel is loaded, then mfsroot is loaded.
 my loader.rc

 echo Loading mfsroot...
 load -t mfs_root /mfsroot
 echo booting...
 echo \007\007
 echo initializing h0h0magic...
 set boot_userconfig
 set vfs.root.mountfrom=ufs:/dev/md0c
 boot

 after mfsroot has been loaded is see:
 initializing h0h0magic...
 then a loud BEEP and then it stops and the system reboots.
 What am i doing wrong? Any hints what to do now?
 Bye,

 Mipam.




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


redundancy with freebsd.

2004-02-11 Thread Mipam
Hi,

I wish to run freebsd on some servers (hp blade servers).
Each server will be supplied with two nic's, both will have the same ip
and network mask.
like this:

switch
  |
  |
  |
freebsd
  |
  |
  |
switch

Suppose one switch will fail, then the link on one nic will be inactive.
Meaning is that than the second nic will become active traffic will go out
over the second nic.
Is this possible with freebsd, anybody got any experience with it?
Btw, could you also cc to my own adress [EMAIL PROTECTED]
Bye,

Mipam.

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


rc.d jail script

2003-08-14 Thread Mipam
Hi,

I setup a jail environment using man jail and with some more struggle
man rc.conf helped me out putting the stuff in the rc.conf file to start
at boot time. I created a user in the jail and in the jail sshd started so
that the user could log on. However, then i got no access to tty (bad file
descriptor). Then i looked into ${jail_rootdir}/dev and it was nearly
empty. So i mounted the devfs in the jailenv. I also mounted a procfs in
the jail. I attached a diff with the original rc.d/jail script, since i
had to adjust mine to make things happen at boot time.
Anybody got any other hints for me so that running for example apache in
the jail will be fine? Maybe I'll run into some other surprises?
Bye,

Mipam.

ps could you also cc to [EMAIL PROTECTED] since i aint subscribed to this
list?

--- /usr/src/etc/rc.d/jail  Mon May  5 17:38:41 2003
+++ /etc/rc.d/jail  Wed Aug 13 11:28:19 2003
@@ -54,7 +54,8 @@
eval jail_ip=\\$jail_${_jail}_ip\
eval jail_exec=\\$jail_${_jail}_exec\
[ -z ${jail_exec} ]  jail_exec=/bin/sh /etc/rc
-   
+   mount_devfs devfs ${jail_rootdir}/dev
+   mount -t procfs proc ${jail_rootdir}/proc   
jail ${jail_rootdir} ${jail_hostname} ${jail_ip} ${jail_exec}
done
 }
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]