Re: can FreeBSD run dos

2003-09-28 Thread Paul Everlund
On Sat, 27 Sep 2003, Jud wrote:

 On Sat, 27 Sep 2003 09:51:50 -0500, fred [EMAIL PROTECTED] wrote:

  I am new to different OS's .
  Can this Os run Wordperfect 5.1 for dos???

 It might be possible with Wine, but you would need a FAT partition, so
 that would definitely be the long way round - you might as well install
 Win9x in the FAT partition and run WordPerfect on DOS directly.  FreeBSD
 has several good free word processing programs of its own that you may
 want to look at - see URL: http://www.freebsd.org/ports/editors.html.

 Jud

There's also doscmd(1), but I doubt that it will be able to run
WordPerfect.

I recommend Jud's suggestion, to look at the FreeBSD ports.

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


Re: a technical how to

2004-01-26 Thread Paul Everlund
On Tuesday 09 December 2003 02:51, homeyra g wrote:

So, I hope this is the right address for this type of
question. If not would you please forward this and/or
let me know the correct address.
Thanks,

Here is the question: How to truncate a file from the
begining to a certain point in the file?
There's two commands that might be helpful:
  truncate(1)
  dd(1)
Read about them in the man pages.

Hope I was of some help!

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


RE: Problems with a C application that changes users and run 'screen-x'

2002-12-20 Thread Paul Everlund
On Fri, 20 Dec 2002, Aaron Burke wrote:

  3. Avoid using system() which I vaguely recall being described with a
 lot of bad words in various places and use fork(), exec(), _exit(),
 waitpid() and exit() instead.

 How would I do this with exec. According to the man page for exec
 I have only a few options.
  int execl(const char *path, const char *arg, ...);
  int execlp(const char *file, const char *arg, ...);
  int execle(const char *path, const char *arg, ...);
  int exect(const char *path, char *const argv[],
  char *const envp[]);
  int execv(const char *path, char *const argv[]);
  int execvp(const char *file, char *const argv[]);

 Can you point me to the right documentation to learn about
 the exec functions provided by unistd.h?

 Allthough I am not familiar with unistd.h at all, I did do
 a little bit of expermentation.

 Here is my new code:

 #include stdio.h
 #include stdlib.h
 #include unistd.h

 int main(int argc, char* pszArgs[])
 {
 int result, result2;
 result= execlp(/usr/bin/su, ppp, -m);
 result2=execlp(/usr/local/bin/screen, -x);
 return result + result2;
 }
 bash-2.05$ g++ run-ppp.c
 bash-2.05$ ./a.out
 bash-2.05$

 I am a little supprised that nothing appeared to have happened.
 Perhaps I am running these improperly. Am I using the correct
 exec command? Can you demonstrate how this should work?
 What else could execlp(args) needs to say?

 
  - Giorgos
 

 Thanks for your time.

I think execlp is writing over your current process. So first your
process is exchanged with ppp, then ppp is exchanged with screen. You
have to make a copy of your current process, a.out, by using fork, and
then exchange the process image in this copy using execlp.

I suggest you read more about those functions Giorgos mentioned: fork,
execlp, waitpid, and exit.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Problems with a C application that changes users and run 'screen-x'

2002-12-20 Thread Paul Everlund
On Fri, 20 Dec 2002, Paul Everlund wrote:

Found an error in my reply...

 On Fri, 20 Dec 2002, Aaron Burke wrote:

[big snip]

 I think execlp is writing over your current process. So first your
 process is exchanged with ppp, then ppp is exchanged with screen. You
 have to make a copy of your current process, a.out, by using fork, and
 then exchange the process image in this copy using execlp.

Correction... Your a.out process is replaced with ppp, then nothing
else happens, as screen never is called du to the replacement.

 Best regards,
 Paul

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



SunOS SPARC

2002-12-30 Thread Paul Everlund
Hi!

Is it possible to run SunOS-binaries compiled on a SPARC on i386
FreeBSD? Are there some kind of emulation program for this?

Thanks in advance!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: SunOS SPARC

2002-12-30 Thread Paul Everlund
On Mon, 30 Dec 2002, Miguel Mendez wrote:

 On Mon, 30 Dec 2002 13:01:21 +0100 (MET)
 Paul Everlund [EMAIL PROTECTED] wrote:

 Hi,

  I have a SPARC box, but thought of running proprietary SunOS-SPARC-
  binaries on a much better FreeBSD box (better because it's easier to
  maintain, upgrade packages and so on, on FreeBSD than SunOS). Guess
  I'll have to stick with the SPARC.

 Although not directly related to your original question, you might want
 to know that NetBSD's pkgsrc (the equivalent to FreeBSD's ports) runs on
 SunOS, it even runs on Linux. That could help you with having up to date
 software on the Sun box. Check:  http://www.netbsd.org/zoularis/

I'll take a look at it! Thank you!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: Bios not recognizing correct HD size

2003-01-09 Thread Paul Everlund
On Wed, 8 Jan 2003, Mike Loiterman wrote:

 On Wednesday, January 08, 2003 5:54 PM Stephen Hovey mailto:[EMAIL PROTECTED] 
wrote:

  I think you're right.  So should I just define the drive correctlt in
  fdisk?  If so, what would be the proper settings.
 
  usually a drive has em on the drive on something - a sticker/label
  sorta thing with head, cyl, sect, etc

 Ok I found out the proper numbers:
 39704  cyls, 16 heads, 63 sectors.

 I defined it that way in the BIOS.

 When I get to the fdisk part of the install I did 'G'.  I then set
 the geometry according to those numbers and told it to use the
 entire drive.  When I go to define the slices, though, it still
 thinks the drive is only 2 gigs.  What am I doing wrong?

 Mike Loiterman
 PGP Key 0xD1B9D18E
 http://www.ascendency.net

Maybe this will work? Set it up in BIOS to be a 2 GB disk. Boot from
the floppy/CD, and in fdisk you should give the proper numbers. Create
two partitions. The first one to boot from, that should be less than 2
GB, and the second should be the rest of the disk. Now create your
slices in the two partitions, and of course / should be on the first
one. Maybe this layout could be sufficient for you?
Partition 1  (2 GB): /  256 MB
 (swap) 2*RAM
 /var   The rest of the available space...
Partition 2 (18 GB): /usr  18 GB

Also make sure the jumpers are correctly set on the drive. Sometimes
the jumpers can be set to fake the disk size reported to the BIOS.

Hope above information will make it work!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Drive Image / Cloning

2003-01-09 Thread Paul Everlund
On Thu, 9 Jan 2003, Mike wrote:

 Hi All

 What's a good way to clone / Image to another HD? I have 3 boxes that
 are the same and I have one that is done and ready and want to copy that
 install to the others.

 Cheers

 M;)

# /bin/dd if=/dev/ad4 of=/dev/ad6 bs=16384

This I use in a cron-job to make an exact copy of my drive every
month. You might have to change the ad4 and ad6.

You should probably read 'man dd' before using it.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Bios not recognizing correct HD size

2003-01-13 Thread Paul Everlund
On Fri, 10 Jan 2003, Jud wrote:

 On Fri, 10 Jan 2003 15:50:45 -0600
 Mike Loiterman [EMAIL PROTECTED] wrote:

 [snip]
   Also make sure the jumpers are correctly set on the drive. Sometimes
   the jumpers can be set to fake the disk size reported to the BIOS.
 [snip]

 Perhaps you've answered this and I didn't catch it: How are your
 jumpers set?

Hmmm... That one I've forgotten. It was quite a long itme I tried
to do this. Anyway, as the BIOS is only used when booting they
probably should be set to report the disk as smaller than it actually
is. After booting the BIOS isn't involved so that restriction should
not apply. But I'm not sure. You could maybe make some trial-and-error
investigation on what works and what does not?

As Mike (I think it was him) wrote, you could also buy an ATA board
with BIOS. That I've done that several times and it works great!

Good luck!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: entropy

2003-01-15 Thread Paul Everlund
On Wed, 15 Jan 2003, Erik Trulsson wrote:
 On Wed, Jan 15, 2003 at 08:51:35AM +, P. U. Kruppa wrote:
  On Tue, 14 Jan 2003, Kevin Stevens wrote:
   On Tuesday, Jan 14, 2003, at 22:46 US/Pacific, Wilkinson,Alex wrote:
[big snip]
  
   Did you actually have to MOVE your browser from in front of the mail
   program to AVOID searching for this on the web?!?

 You DO know that it is quite possible to be able to send and receive
 e-mail while not being directly connected to the Internet and therefore
 not being able to check the WWW?
 (Granted, this is quite unusual today, but still a possibility.)

Maybe even more usual and a possibility today than before, as mobile
phones are able to send/recieve e-mails (if I only could get my own
phone to work as it should :-). All the good things are not available
by WAP though, and hence it could be hard to search for the documents
describing entropy.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



WAP-server [Was Re: entropy]

2003-01-15 Thread Paul Everlund
On Wed, 15 Jan 2003, Scott Mitchell wrote:

 On Wed, Jan 15, 2003 at 11:51:23AM +0100, Paul Everlund wrote:
  Maybe even more usual and a possibility today than before, as mobile
  phones are able to send/recieve e-mails (if I only could get my own
  phone to work as it should :-). All the good things are not available
  by WAP though, and hence it could be hard to search for the documents
  describing entropy.

 Try http://wap.google.com/

 It's not perfect, but it doesn't a reasonable job of converting web pages
 to WML for display on a WAP device.  It shouldn't be too hard to figure out
 the URL format it uses so you can go directly to the page you want, without
 all that tedious searching :-)

   Scott

Will take a look at it! Anyway I would guess a page describing entropy
is not something one would want to view on a phone. :-)

Do anyone by the way know if a special web-server is required for
serving wap-pages, i.e. can one use Apache? If not, what's out there?
Will take a look in the ports tree to see if I find anything.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: WAP-server [Was Re: entropy]

2003-01-15 Thread Paul Everlund
On Wed, 15 Jan 2003, Anand Buddhdev wrote:

 On Wed, Jan 15, 2003 at 04:53:25PM +0100, Paul Everlund wrote:

  Do anyone by the way know if a special web-server is required for
  serving wap-pages, i.e. can one use Apache? If not, what's out there?
  Will take a look in the ports tree to see if I find anything.

 A wap page is nothing more than content that has been marked up with
 WML, the wireless mark-up language. You can serve WML content with any
 webserver, including apache. Just add a line like this to the httpd.conf
 file:

 AddType text/vnd.wap.wml .wml

 Where .wml is the file extension you use for your WML pages.

Thank you Anand!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Possible attack?

2003-01-18 Thread Paul Everlund
Alex wrote:

Dear/Beste Bill,

Friday, January 17, 2003, 4:01:43 PM, you wrote:

 I've seen the anonymous FTP denied off and on.  I think that

  some folks just randomly attempt to connect to any FTP server
  they find in the hopes that there's cool stuff there.


Or in the hopes that the can place some cool stuff there.


Hmmm... Why not open up ones FTP for anonymous access, without any 
contents on it, then just sit and wait... Then, when there are some
cool stuff uploaded, one closes the anonymous access and the uploader
who tried to take advantage of you is screwed while you have got all
the free (probably illegal though) stuff. :-)

Have a nice weekend all!

Best regards,
Paul





To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Scanner Epson Perfecton 1260

2003-01-21 Thread Paul Everlund
Hi!

Has anyone successfully used the scanner Epson Perfection 1260 with
FreeBSD (Sane)?

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Scanner Epson Perfecton 1260

2003-01-21 Thread Paul Everlund
On Tue, 21 Jan 2003, Kirk Strauser wrote:

 At 2003-01-21T10:38:01Z, Paul Everlund [EMAIL PROTECTED] writes:

  Has anyone successfully used the scanner Epson Perfection 1260 with
  FreeBSD (Sane)?

 Yes, via USB.

Thank you, Kirk Strauser!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Problems with Netatalk 1.6

2003-01-22 Thread Paul Everlund
On Wed, 22 Jan 2003 [EMAIL PROTECTED] wrote:

 I want to have netatalk 1.6 to run on it.

 But after ./configure
 comes only:
 error Berkeley DB3 not found

 What can I do?

 Helmut

Are you installing it from the ports-system?

Did you go to /usr/ports/net/netatalk and run make?

If you want to install the app not using the ports-system you
could try to install /usr/ports/databases/db3 and then once
again try to ./configure Netatalk.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Installing Stripped System

2003-01-24 Thread Paul Everlund
On Thu, 23 Jan 2003, Jens Haeusser wrote:

 On 1/23/03 2:30 AM, Paul Everlund [EMAIL PROTECTED] wrote:

  On Thu, 23 Jan 2003, Jens Haeusser wrote:
 
  I'd like to install a system lacking some of the binaries you can
  specify as make.conf knobs, such as
 
  NO_I4B= true
  NO_IPFILTER= true
  NOGAMES= true
  NOUUCP= true
  NO_SENDMAIL= true
 
  I have been thinking that those knobs should have their own
  pkg-plist which one could use for deleting the binaries. Also one
  must take in concern dependencies of those knobs...

 I've always thought that the entire base system should have it's own
 package/port system. That way, you could easily remove the bits you don't
 want (remove UUCP from a fileserver, remove gcc from a firewall, etc). As
 well, this would make security/other upgrades much easier. Telnet has a
 remote hole? Simply upgrade the base-telnet port.

This can already be easily done:
# cvsup -g -L2 cvs-src
# cd /usr/src/usr.bin/telnet
# make
# make install

The hard part is removing the bits and pieces you don't want, as a
running system expects some parts to just be there. The system
requires sendmail for an example, but if you exchange sendmail with
another MTA, you do not need sendmail and hence it could be removed.
But which bits and pieces makes up sendmail? That's why some sort of
pkg-plist would be nice. Also the question arise, if you remove
sendmail to use another MTA, then remove that newly installed MTA,
you end up with a system without any MTA at all.

Hence it would be very easy to break a system if one were allowed to
remove things from the base system. It would anyway be nice if the
possibility was there for sysadmins who knows their way.

 Jens Haeusser
 Network Manager
 Zoology, UBC

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: WILKO.NET

2003-01-29 Thread Paul Everlund

Please wrap your lines at a reasonable length, about 70 characters.

On Wed, 29 Jan 2003, =?ISO-8859-1?Q?The Portal?= wrote:

 Dear Sir/madam,

 WILKO.NET   -US $ 490

 Please note that after years, the registration on the domain name
 WILKO.NET was not renewed and this domain became available to
 register.
[snip]
 With so many companies that would benefit from using this domain,
 along with what many would consider to be a genuine investment, we
 expect to find an interested party for this excellent .net.

Why would anyone want wilko.net as domain name? What is so special
with that??? Is wilko.net more special than dilko.net or bilko.net
or even zilko.net and milko.net?

[big snip]

 We thank you for your attention and sincerely apologise if this
 e-mail has not been of interest to you.

Apologise accepted, but please do not send such mails to this list
again. :-)

 Sincerely Yours,

 Suzanne
 Marketing
 ThePortal.net

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



re: Apache 5.0 - release

2003-01-31 Thread Paul Everlund
On Fri, 31 Jan 2003, Roger Bate wrote:

 I've looked through your documentation and can't seem to find
 anything.  Does 5.0 Come with Apache and all other tools needed to
 set up a fully functioning web server?  I would have expected this
 to be true since that's what the majority seem to use it for.

 I've d/l the two .iso files from your ftp server, but I'm a little
 afraid of installing it without knowing all the tools are on the two
 disks. I have to kill my current version of Mandrake to make some
 disk space!.

 I would appreciate it if you could get back to me =)

 Roger Bate
 [EMAIL PROTECTED]

If you have a cable connection (something I suspect as you're going to
run a web server) every tool needed is in the FreeBSD system itself.

Just install FreeBSD, then...

# cd /usr/ports/www/your favourite apache distribution
# make
# make install

This retrieves the sources and dependencies, compiles it and installs
the web server.

Take a look at http://www.freebsd.org/ports/index.html for even more
easily installed applications/servers.

If you on the other hand do not have a cable connection I'm not sure
of what's on those CD's. :-)

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: I want using FreeBSD, but...

2003-07-25 Thread Paul Everlund
Kirk Strauser wrote:
At 2003-07-25T14:33:09Z, Charlie Schluting [EMAIL PROTECTED] writes:


I guess ...i'm a christian speaks for itself.


On the behalf of Christian FreeBSD users everywhere: screw you.
Isn't that a sin, to screw (anything other than screws)? Is it
ok to be a Christian and encourage sin? :-)
Also... I've always thought Christian people should be nice to
all people, even those who don't deserve it (and hence deserve
it even more). ;-)
Have a nice day/night!

(And now I hope no one will take these small jokes to build a
giant flame war.)
Best regards,
Paul
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I want using FreeBSD, but...

2003-07-25 Thread Paul Everlund
[EMAIL PROTECTED] wrote:
I am a Christian too. I go to church in the DFW area, and have
 friends in the Internet business that are also Christians using
 FreeBSD for their web servers, mail servers, etc. Nothing in
 the Bible says you cannot use FreeBSD.
When the bible was written I don't think anyone had heard about
servers and FreeBSD, hence there's nothing there to say you should
not use FreeBSD. :-)
The only caveat I can think of is in 1st Corinthians 10:31-33
 where it says Do not cause anyone to stumble... Again, I do
 not display the little Daemon logo anywhere, so I think I'm OK.
You're OK. If I display it when ever I can I'm not? :-)

Just had to write a response to your e-mail, and I hope there's
no hard feelings.
I whish you a wonderful day/night!

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


Re: Why people are not satisfied with FreeBSD?

2003-08-30 Thread Paul Everlund
Denis Troshin wrote:
Hi!

Looking  at  the  field MAILER of e-mails' headers, I see that
 there a lot  of  people here who are using mail programs like
 Outlook, Eudora, Mozillafor   win32. This means that they
 run windows systems.   So I'm  asking why still a lot of people
 here who hadn't move toFreeBSD?
Are  there  any  common  reasons  of why people are not satisfied
 with FreeBSD? Why do they still prefer windows?

I have two servers at home, and a third computer on my desk, with
FreeBSD, and my girlfriend is using FreeBSD at her shop. As most
companies still uses MS Windows I do also have a fourth computer
at home, running Win2k, for developing purposes.
I guess most people use different OS:s for different purposes. And
I must say that MS for once has succeeded, with Win2k. It's quite
a good OS, although it seems to be full of security holes.
I'm VERY satisfied with FreeBSD and it's the OS I prefer for a
lot of tasks! Still Win2k has it benefits some times.
Also most drivers and games are developed for MS Windows, and hence
people who like to play games often has to stick with that OS.
Hope this answered your question.

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


KDE startup slow

2003-03-31 Thread Paul Everlund
Hi all!

After I got ADSL for my FreeBSD box the startup of KDE takes
very long time. It stops at Initializing System Services,
then after a while the splash screen disappears, and after
some more waiting (about two minutes) the Desktop appears.

It almost looks like a DNS query timeout, but I'm not sure,
as I really do not know what Initializing System Services
actually do. Do anyone know?

Anyone who have had the same problem and solved it, or who
can help me out in some way?

Thank you in advance!

Below are info about the system and configuration files.

Best regards,
Paul

**
FreeBSD version is 4.8-RC2.
X version is XFree86 4.3.
KDE version is 3.1.


rc.conf
---
Firewall is set to allow everything...

# --- Internet
hostname=comp.primavera.homeip.net

network_interfaces=lo0 fxp0
ifconfig_fxp0=DHCP

firewall_enable=YES
firewall_script=/etc/ipfw.rules

tcp_keepalive=YES


dhclient.conf
-
interface fxp0 {
request subnet-mask, broadcast-address, time-offset, routers;
}


resolv.conf
---
domain primavera.homeip.net
nameserver 10.0.0.1
nameserver 10.0.0.2


More configuration files are available upon request! I just don't
know which other files could be of interest.

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


Re: KDE startup slow

2003-03-31 Thread Paul Everlund
On Mon, 31 Mar 2003, CARTER Anthony wrote:

 How do you start your ppp connection over ADSL? Is your modem
 internal, USB or Ethernet?

 Anthony

Thank you for your answer!

The modem is external with an Ethernet connection to the computer. I
use DHCP to configure the network as PPPoE didn't seem to work. After
dhclient is started, and the interface has got an IP, one has to surf
to the internal 10.0.0.0-network address to login.

Best regards,
Paul

 On Monday 31 March 2003 14:20, Paul Everlund wrote:
  Hi all!
 
  After I got ADSL for my FreeBSD box the startup of KDE takes
  very long time. It stops at Initializing System Services,
  then after a while the splash screen disappears, and after
  some more waiting (about two minutes) the Desktop appears.
 
  It almost looks like a DNS query timeout, but I'm not sure,
  as I really do not know what Initializing System Services
  actually do. Do anyone know?
 
  Anyone who have had the same problem and solved it, or who
  can help me out in some way?
 
  Thank you in advance!
 
  Below are info about the system and configuration files.
 
  Best regards,
  Paul
 
  **
  FreeBSD version is 4.8-RC2.
  X version is XFree86 4.3.
  KDE version is 3.1.
 
 
  rc.conf
  ---
  Firewall is set to allow everything...
 
  # --- Internet
  hostname=comp.primavera.homeip.net
 
  network_interfaces=lo0 fxp0
  ifconfig_fxp0=DHCP
 
  firewall_enable=YES
  firewall_script=/etc/ipfw.rules
 
  tcp_keepalive=YES
 
 
  dhclient.conf
  -
  interface fxp0 {
  request subnet-mask, broadcast-address, time-offset, routers;
  }
 
 
  resolv.conf
  ---
  domain primavera.homeip.net
  nameserver 10.0.0.1
  nameserver 10.0.0.2
 
 
  More configuration files are available upon request! I just don't
  know which other files could be of interest.
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]


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


Re: KDE startup slow

2003-03-31 Thread Paul Everlund
On Mon, 31 Mar 2003, CARTER Anthony wrote:

 ok...

 Do you have an internal network on your machine, or do you just plug
 your ADSL into your network card?

It's hooked up like this... (The UTP is crossed wired)

Phoneline -ADSL-modemUTP-cableFreeBSD

I have no internal 192.168-network...

 If you just plug straight into your network card, then you can
 disable dhcp if you want, it is not necessary. What you need to do
 is configure /etc/ppp/ppp.conf and /etc/rc.conf (using
 /etc/defaults/rc.conf as reference, but don't change the defaults
 file).

 you have to add:

 ppp_enable = yes
 ppp_mode = dial
 (and another one about the connection name in you ppp.conf file but
 I forget.)

 Anyway, I don't have my ppp.conf file here, but I can get it for
 tomorrow...If you have done all this, then make sure you have
 enable dns as the last entry in ppp.conf.

I did try ppp.conf at first, as I use it myself at home with an ADSL
provider that uses PPPoE. The provider for this particular ADSL does
not seem to use PPPoE, even though it for MS Windows, in the manual,
mentions PPP.

As I know the IP's of the DNS's, and they're static, I should not have
to have enable dns, or? At least I do not use that at home.

In ppp.conf I did 'set device PPPoE:fxp0'. Maybe I should try to drop
the PPPoE?

Anyway it seems the provider isn't like other providers, as there
exists an application that is called LF Connection Keeper, just to
keep the connection open, and this application is only made for this
ISP provider.

Best regards,
Paul



 On Monday 31 March 2003 15:33, Paul Everlund wrote:
  On Mon, 31 Mar 2003, CARTER Anthony wrote:
   How do you start your ppp connection over ADSL? Is your modem
   internal, USB or Ethernet?
  
   Anthony
 
  Thank you for your answer!
 
  The modem is external with an Ethernet connection to the computer. I
  use DHCP to configure the network as PPPoE didn't seem to work. After
  dhclient is started, and the interface has got an IP, one has to surf
  to the internal 10.0.0.0-network address to login.
 
  Best regards,
  Paul
 
   On Monday 31 March 2003 14:20, Paul Everlund wrote:
Hi all!
   
After I got ADSL for my FreeBSD box the startup of KDE takes
very long time. It stops at Initializing System Services,
then after a while the splash screen disappears, and after
some more waiting (about two minutes) the Desktop appears.
   
It almost looks like a DNS query timeout, but I'm not sure,
as I really do not know what Initializing System Services
actually do. Do anyone know?
   
Anyone who have had the same problem and solved it, or who
can help me out in some way?
   
Thank you in advance!
   
Below are info about the system and configuration files.
   
Best regards,
Paul
   
**
FreeBSD version is 4.8-RC2.
X version is XFree86 4.3.
KDE version is 3.1.
   
   
rc.conf
---
Firewall is set to allow everything...
   
# --- Internet
hostname=comp.primavera.homeip.net
   
network_interfaces=lo0 fxp0
ifconfig_fxp0=DHCP
   
firewall_enable=YES
firewall_script=/etc/ipfw.rules
   
tcp_keepalive=YES
   
   
dhclient.conf
-
interface fxp0 {
request subnet-mask, broadcast-address, time-offset, routers;
}
   
   
resolv.conf
---
domain primavera.homeip.net
nameserver 10.0.0.1
nameserver 10.0.0.2
   
   
More configuration files are available upon request! I just don't
know which other files could be of interest.
   
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]



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


Re: which script will be executed when the adsl IP up

2002-07-14 Thread Paul Everlund

 [EMAIL PROTECTED] wrote:
 
 Hi all,
 
 I have use the adsl to connect the internet.
 As the ppp link will be disconnect, I want the gateway the send me
 the new IPaddress to my mail box.
 Could u tell me, when the ADSL link is up, which scripts will be
 executed.
 
 In linux that shoud be /etc/ppp/ip-up, I donnot know what is in
 FreeBSD.
 
 
 Thanks,
 Fred Zhang

Not quite a direct answer to your question, but... You haven't thought
of using some dynamic dns that are provided by for an example DynDNS?
In that way you can always refer to your computer by name instead of
IP number. The IP number can very well change, and then DynDNS is up-
dated automatically, and the name will allways point to the correct
number.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Using free BSD in medical equipment

2002-09-23 Thread Paul Everlund

On Fri, 20 Sep 2002 [EMAIL PROTECTED] wrote:

 I work for a medical company situated in Andover England. We are currently
 looking at various software packages that we could use as a platform for a
 graphical user interface on a piece of medical equipment that is in an
 early design stage. I have considered various Microsoft and UNIX based
 packages and consequently found FreeBSD suitable for our requirements.
 However I have one obstacle in my way, in order to convince my colleges I
 need to find documented evidence of some commercial ventures (not internet
 hosting or similar activity), typical examples: customer information
 service, domestic satellite receiving equipment, pocket PC etc.

 Regards

 Andy Pike

 Development Engineer

 Integra NeuroSciences
 Newbury Road
 Andover
 Hants
 SP10 4DR
 Tel 01264 345717

 [EMAIL PROTECTED]

Hi!

At Lund University Hospital we're currently using a FreeBSD system
that is a middlestation between a Toshiba nuclear modality and our
PACS archive. It's purpose so far is to convert between various
image formats to DICOM, using a slightly modified application from
Eric Nolf (XMedcon). A Modality Worklist Query is asked to Mitra's
BROKER, for insertion of data in the DICOM object using a modified
package of CTN from Mallinckrodt Institute of Radiology. After the
DICOM object has been created it is send to our PACS archive.

Everything works really good, and no one could be happier than me,
as it was due to my suggestion we did chose FreeBSD. As I also be-
came fully responsible for the project, it was a comfort using this
great OS.

This FreeBSD server will eventually be a gateway between other im-
age systems as well, and I have no worries that it will not be able
to handle this too!

To summarize it all... The OS fully serves our purpose. If it will
serve your is another story though.

Good luck!

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Cron leaving a zombie

2002-09-26 Thread Paul Everlund

Hi!

I have this little script in /usr/local/etc/rc.d to start, stop and
restart a daemon: adac.sh

#!/bin/sh

case $1 in
start)
echo -n ' adac'
/usr/local/sbin/adac   /dev/null 
;;
stop)
/bin/kill `/bin/cat /var/run/adac.pid 2 /dev/null` 2 /dev/null
/bin/rm -f /var/run/adac.pid
;;
restart)
/bin/kill `/bin/cat /var/run/adac.pid 2 /dev/null` 2 /dev/null
/bin/rm -f /var/run/adac.pid
sleep 5
/usr/local/sbin/adac    /dev/null
;;
*)
echo 
echo Usage: adac.sh {start|stop|restart}
echo 
exit 64
;;
esac

Then I did put this in roots crontab:
10 0 * * * /usr/local/etc/rc.d/adac.sh restart

The adac-daemon is restarted, but everytime the job runs it leaves a
sh-zombie from the cron-job. By killing the cron-job, the sh-zombie
disappears (as it should).

Do anyone know why this is happening?

Thanks in advance!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Cron leaving a zombie

2002-09-26 Thread Paul Everlund

On Thu, 26 Sep 2002, Danny Pansters wrote:

Thanks for your reply!

 On Thursday 26 September 2002 11:30, Paul Everlund wrote:
  case $1 in
  start)
  echo -n ' adac'
  /usr/local/sbin/adac   /dev/null 
   ^
 [SNIP]

  restart)
  /bin/kill `/bin/cat /var/run/adac.pid 2 /dev/null` 2 /dev/null
  /bin/rm -f /var/run/adac.pid
  sleep 5
  /usr/local/sbin/adac    /dev/null
   ^

  Then I did put this in roots crontab:
  10 0 * * * /usr/local/etc/rc.d/adac.sh restart

 sidenote
 Hmmm. IMHO an rc restart script shouldn't be cron'd like this. Or don't call
 it a daemon. But hey, it's your box :)
 /sidenote

Yup! :-) It's something like a daemon, but it stops after it has
received 2048 images, and that's why I want to restart it every 24th hour.
Before it hits the limit though, it acts just like a daemon.

  The adac-daemon is restarted, but everytime the job runs it leaves a
  sh-zombie from the cron-job. By killing the cron-job, the sh-zombie
  disappears (as it should).
 
  Do anyone know why this is happening?

 I think I do. It's not cron, it's your rc script. See ^^ above.

I know it's my script, and not cron. :-)

 The sh is waiting because you tell it to redirect stdout from a background
 process it had to spawn to /dev/null (in the restart case). Then the child
 gets killed, turning the sh process into a zombie. Hard to test without the
 actual adac script/program though.

Removing redirections to /dev/null did not help. It still leaves a zombie.

 HTH,

 Dan

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: I'm New, Help, regarding Installation

2002-09-30 Thread Paul Everlund

Mooney Potter wrote:
 To the Support Group,
 
 When I download the iso images for freebsd5, do I just burn them tot 
 he CD? Like do I need something else to read the iso-images when I 
 boot or does my computer?

ISO-images should not be burned to a CD as data, but as an ISO. If 
burning as data you will end upp with one big file with extension .iso 
and you will not be able to boot. If burning as an ISO you will end up 
with a CD with a lot of files on it. I do not know what kind of burner 
software you are using, but Easy CD Creator, among many others, are 
able to burn ISO's.

 Do I just need the ISo images to install FREEbsd?

Yep.

 -xachen
 _
 http://fastmail.ca/ - Fast Secure Web Email for Canadians

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: program to create partial invisable gifs

2002-10-01 Thread Paul Everlund

On Tue, 1 Oct 2002, David Banning wrote:

 Is there anything in the ports to create a gif image with invisable
 edges?

Maybe ImageMagick, in graphics, is what you're looking for?

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: How i can force a stream socket to wait as limited time in accept()function?

2002-10-08 Thread Paul Everlund

alireza mahini wrote:
 I am a C++ programmer and the platform that i develop
 my project on it is FreeBSD4.4 .I am aplaying the
 setsocketopt()function for seting the timeout into the
 stream socket that blocked in accept() function but i
 can't successful.

You must include (at least part of) your source code for
people here to be able to answer your question.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



aclocal.m4: AM_CONFIG_HEADER error

2002-10-27 Thread Paul Everlund
What does this mean, and how can one solve it?
I'm using automake14 and autoconf213. I know
little information is given, but someone must
have seen this (and maybe know what's going
on), or?

aclocal.m4: 4716: `automake requires `AM_CONFIG_
HEADER', not `AC_CONFIG_HEADER'
configure.in: 4716: required file `./$@)].in'
not found

Thanks in advance!

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: looking for a lightweight web server

2002-10-30 Thread Paul Everlund
On 10/30/02 at 9:38 AM Rotaru Razvan wrote:

I am looking for a lightweight web server with php support to set

 up on my FreeBSD system. It is very likely that the only use for
 that web server will be phpMyAdmin so it should be multithreading
 and all that stuff.
 I want something small and very fast (i have a k6-2 500MHz
 system). If somebody knows can recommend me one i'll be thankfull.
 All this searching gives me a headache...  :)

I'm running Samba, and Apache with PHP/MySQL, on an old 486 DX-2 (66
MHz) with 40 MB RAM and 2,5 GB HDD. It works as a charm!

So I guess Apache isn't that resource demanding even with mod_php. At
least one is still able to login to the system. :-)

But I would recommend you to set spawned Apache-processes to a mini-
mum. I have set it to...
MinSpareServers 5
MaxSpareServers 10
...while you probably could set it to 2 and 2 I guess.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Separating the OS from the data - tough to do?

2002-10-31 Thread Paul Everlund
Steve Warwick wrote:
 Hi,
Hi Steve!

 -- Problem:
 Separating OS from underlying data. Which parts of the BSD OS are
 not part of the initial, never modified OS? Or, which pieces of the
 OS change due to useage.

 -- Goal: To have a slightly modified BSD OS structure where the OS
 can be upgraded, yet the variable data remains the untouched (DNS,
 websites, mail etc), on another partition or disk, allowing an OS
 upgrade that can be as plug  play as possible.


-- THEORY --

 See reference below for BSD file system details.

 At first glance it looks like I can just move and soft link a few
 directories, /etc, /usr/local, /usr/home (websites) and /var.
 However if one upgrades the OS, is it possible to have all the
 installed apps separate?

 For example, I have Apache, MySQL and PHP installed. By moving/
 linking /usr/local to another partition or disk, is it possible that
 these apps will run properly once the OS is upgraded and the soft
 link re-setablished? Will /var still function properly? Will MySQL
 re-write the DB files somewhere else next time it is optimized or
 repaired?

 All thoughts, ideas and input gratefully received. Hopefully this
 discussion will be of use to a few more people that just me :)

[...snip...]

Not a direct answer to your question, as I assume you want to reformat
the disk for every new installation, but...

The easiest way to upgrade the OS is by using cvsup. Then you'll get
the changes of the source files, and after you've cvsup'ed you just
compile the sources and install them.

It's as easy as this...

cvsup sources
make buildworld
make buildkernel KERNCONF=KERNEL
mergemaster -p
make installkernel
reboot
make installworld
mergemaster
reboot(?)

(If I remember the steps correct)

No need to reformat the disk, no need to recreate symbolic links and
all is updated. It's all in the handbook! :-)

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Separating the OS from the data [Addendum]

2002-10-31 Thread Paul Everlund
Steve Warwick wrote:

[Addendum]

Cvsup / makeworld: I apologize for missing that piece of information

Yes, I could use the usual update procedure, however, this is a production
machine. So my thought is: build a new OS on a staging machine, add required
symlinks, pull the drive (sled) and slot it into the production machine. In
THEORY it should be possible to do an upgrade in the time it takes to do a
reboot. For server farms this would be a big benefit...


Steve


So... Would the following be an option?

The production server have two disks: one with the OS on (A) and some
symbolic links to another disk where /usr/local is (B).

You have another computer with an identical disk (C) as disk A, where
you can do the upgrade.

Do the upgrade on disk C, pick it out, shutdown the production server,
replace disk A with C, and boot the production server. Then put disk A
into the other computer and upgrade that disk, then disk A and C will
be identical again. Next time, upgrade A and swap it with C.

It would be good if you, on the upgrade build computer, could have an
exact copy of disk B so you could test, that everything went as expec-
ted.

Also, it's not necessary to have the mySql database tables in /var.
I've put them in /usr/local/mysql, and hence I do not care if anything
happens to /var when upgrading.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Why Use a Daemon as a Symbol since it alienates many?

2002-11-03 Thread Paul Everlund
[EMAIL PROTECTED] wrote:

The traditional devil horns derive from goats, which if you have ever been 
around goats, seen how they can climb, eat all vegetation in sight, climb 
trees, get on roofs, etc., how kids gambol, is understandable.  But it 
alienates so many.  But as it alienates so many Christians, Jews and Muslims 
as a little Satan symbol, really limits the widespread use, public and tax 
paid support and availability of BSD.  A better symbol might be the statue of 
liberty, or the creator of the first Library, Aristotle.  The Penguin symbol 
is LINUX' best advantage over BSD, not to mention all the public hostility 
towards Berkley.

Please read http://www.freebsd.org/copyright/daemon.html.

And if the little cute daemon alienates Christians, Jews, Muslims or
anyone else, my personal opinion is that they should grow up.

Take care and I whish you a nice day!

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: simple question

2002-11-06 Thread Paul Everlund
On Wed, 6 Nov 2002, Paul A. Scott wrote:

 On 11/6/02 1:43 AM, Kent Stewart [EMAIL PROTECTED] wrote:

  mike wrote:
  What would i type to
  make the output of that command not show but at the end simply do
  let me know its finished? thanks guys
 
  tar -xzf ports.tar.gz 
 
  Turn off the verbose and  to background it.
 
  Kent

 That will work unless tar has stderr output (error messages) which
 might then cause the tar command to suspend, or cause the error
 messages to appear on the screen, depending upon your stty tostop
 setting.

 Also, by turning off the verbose option you won't see the list of
 files extracted.

 A better way (IMHO) would be to leave the verbose option on, and
 capture both stdout and stderr output to a file, while running the
 whole thing in background. Then when you're notified that the
 command completed, you can peruse the file to see both the list and
 any errors.

 The way to do this depends on the shell you're running.

 With 'sh' and its derivatives use:

 tar -xvzf ports.tar.gz tarlog.txt 21 

 With 'csh' and its derivatives use:

 tar -xvzf ports.tar.gz  tarlog.txt 

 When the background command finishes, all the output will be in
 tarlog.txt

 Hope this helps,

 Paul A. Scott

Just a shot in the dark, but how about...

# script tarout tar -xvzf ports.tar.gz 

...?

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: simple question

2002-11-06 Thread Paul Everlund
On Wed, 6 Nov 2002, Paul A. Scott wrote:

  Just a shot in the dark, but how about...
 
  # script tarout tar -xvzf ports.tar.gz 

 Actually, that won't work. The 'script' command will redirect the output to
 a file, but it still outputs to the terminal, which is not what was
 originally requested. My previous explanation is the correct solution.

# script tarout tar -xvf ports.tar  /dev/null

But it doesn't seem to work with the , as it says something about
suspended tty output. Your solution, while teaching people the magic
of shells, is correct and working. As I wrote, it was just a shot in
the dark. :-)

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Can I delete /usr/src ?

2002-11-06 Thread Paul Everlund
Darryl Hoar wrote:

greetings,
I cvsupped from 4.7-release to 4.7-stable.  Followed all the steps to do
that.
I need to reclaim some disk space.  Can I delete the files under /usr/src?
Currently it's consuming roughly 340 MB of space ?

thanks,
Darryl


You can delete /usr/src, and also /usr/obj, but next time you want to
do an upgrade I guess it will take longer to get all the sources. If
you can manage by only delete /usr/obj it would be the best for you,
if upgrading in the future.

Also, if deleting /usr/src, and hence /usr/src/sys too, you can not
compile your kernel if you change any hardware.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Net connection problem: sis, miibus

2002-11-10 Thread Paul Everlund
Hi all!

I have a friend who decided to try FreeBSD 4.6.2 and it works just
fine except one thing, his connection to the internet.

He has a sis network card, which is compiled into the kernel, with
miibus that is required.

He gets a connection just fine, for about half a minute, then it
doesn't work anymore, with long periods of wait time.

A ping to an address works perfectly, next minute a ping to the same
address does not work.

Somehow, issuing kldstat, the miibus is there, which it should not,
as it's compiled into the kernel. If I recall correct, it's not
there when it's first working, but later it is, when not working.

There is also an arp message, that looks as if some change of MAC-
address has taken place, which seem to be strange.

Also, one last thing, ifconfig says the sis is using full-duplex. Is
that ok, if maybe not the other side can handle full-duplex?

I can provide more information if needed to help me solve this pro-
blem, so that he can start using FreeBSD full time.

Thanks in advance for any reply!

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Periodic mails and ipfw

2002-11-11 Thread Paul Everlund
Hi!

After upgrading to 4.7 I do not get the log from my ipfw in my
periodic mails.

Is this as it should be, or is something wrong with my configuration
(which I have not changed)? When I did mergemaster I did overwrite my
old periodic config file with the new for 4.7 as this should be
perfectly ok, as I had not changed the old one, and newer is better
(sometimes).

Thanks in advance!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Net connection problem: sis, miibus

2002-11-13 Thread Paul Everlund
Toomas Aas wrote:

Hi!

I have never used sis-based network adapter, so I skip the miibus stuff 
(it seems very weird indeed)

I guess miibus will be loaded if needed.


Also, one last thing, ifconfig says the sis is using full-duplex. Is
that ok, if maybe not the other side can handle full-duplex?


If the other side cannot handle full-duplex, then this is definitely 
*not* OK, and duplex mismatch can cause exactly the behaviour that you 
described.

What is in the other end of the connection?

Not a clue, but it is set as autoselect when doing ifconfig (see man
sis).


Anyway, try forcing the sis to the speed and duplex settings that match 
the other side and see if the problems go away.

Saw something about setting mediaopt's manually in rc.conf and will
take a closer look at that.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Changing IP and ports served on

2002-11-14 Thread Paul Everlund
Hi Jay!

Jay wrote:

Hello, I am using freebsd 4.4 stable.
I am also not a complete newbie but I definitely am
a neophyte when it comes to unix.

I recently left my job where they let me colo
a server there.  Since I left, I had to take my server
with me.  I had help setting it up but that help isn't
available anymore.  

I am pretty sure these are pretty simple things to do
I just can't remember which files to edit to do it.

1.  I need to re-assign the static IP that is on the box
to an IP within my internal network at home.  I know
it is just as simple as changing the 12.x.x.x number
to a 192.x.x.x number in a file, I just don't know which 
file.

/etc/rc.conf
Look for a line similar to:
ifconfig_ed0=inet 192.168.0.5  netmask 255.255.255.0
inet should be chenged to your IP-address.


2.  There weren't any blocked ports at work.  So
I could use the standard ports for ftp and http.   But
at home I have CoxCable and they block 21 and 80
and maybe some others that I am ot sure of.  How
do I change what ports ftp and http are served off of
on my server.  When I originally set up the box I 
actually have 2 ftp ports (16 and 21) I just can't 
remember where I changed that.  And do I change the
http in the same place?

I guess it all depends on which ftp- and http-server you
are using.

In my config file for proftpd I've put:
Port 2121
I'm hence using 2121 for my ftp-server.

In my config file for Apache I've put:
Port 80
I'm hence using 80 for my http-server, which of course
could be changed to something different.

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is there a replace command ?

2002-12-02 Thread Paul Everlund
On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote:

 On Freebsd4.x
 I have a file. I want to change some expressions with new ones
 For example a file
 touch  /var/qmail/1
 touch  /var/qmail/2
 touch  /var/qmail/3
 touch  /var/qmail/4
 touch  /var/qmail/5
 touch  /var/qmail/6
 I want to change touch with rm
 How can i replace a newones in stead of a lot of  expressions in a file on
 FreeBSD ?
 Which command(s) do i have to use ?

man sed(1)

# cat file | sed s/touch/rm/  file.tmp

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is there a replace command ?

2002-12-02 Thread Paul Everlund
On Mon, 2 Dec 2002, [iso-8859-9] Malik Bülent wrote:

 On Freebsd4.x
 I have a file. I want to change some expressions with new ones
 For example a file
 touch  /var/qmail/1
 touch  /var/qmail/2
 touch  /var/qmail/3
 touch  /var/qmail/4
 touch  /var/qmail/5
 touch  /var/qmail/6
 I want to change touch with rm
 How can i replace a newones in stead of a lot of  expressions in a file on
 FreeBSD ?
 Which command(s) do i have to use ?

Unfortunately I deleted your other mail, asking how to remove lines
containing some text in a file, but this might be one of many
solutions:

# perl -e 'open(FD,file); while(FD) { if(!($_ =~ /texttolookfor/)) { print $_; 
}} close(FD);'  file.tmp

This has not been tested, so use it at your own risk. :-)

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: is there a replace command ?

2002-12-03 Thread Paul Everlund
On Tue, 3 Dec 2002, Roman Neuhauser wrote:

 # [EMAIL PROTECTED] / 2002-12-03 11:13:39 +0100:
  On Tue, 3 Dec 2002, Malik Bülent wrote:
   But my expression has / that is there is a / in a expression
   What shall i do ?
   my expression is new: 11  I want to change new: 11  with new/11
  
   thanks
 
  # echo new: 11 | sed s/new\:\ 11/new\\/11/

 you don't have to use slashes for the delimiters. see sed(1).

 roman@freepuppy ~ 1003:0  echo new: 11 | sed 's,: ,/,'
 new/11
 roman@freepuppy ~ 1004:0  echo new: 11 | sed 's:\: :/:'
 new/11
 roman@freepuppy ~ 1005:0  echo new: 11 | sed 's-: -/-'
 new/11

Thanks for the tip! I wasn't aware of that. When it comes to man sed(1):
Reading a Kafka book is light weight reading compared to that man
page. :-)

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Jail question

2002-12-04 Thread Paul Everlund
On Wed, 4 Dec 2002, Didier Wiroth wrote:

 Hey,
 I'm a freebsd newbie. I was experimenting with jails. I've build an
 entire jail under /usr/local/jail/test which I'm accessing through the
 network using ssh.

 I thought that you can't grep any path or any information outside the
 jail but when I use the command df, I can clearly see the disk slice,
 partition and path to the jail.

 Is this normal?

 Thanks
 Didier

This have been discussed earlier, and I even think some one did file a
PR with a patch to correct it. Try to search the mailarchives.

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



...changed from TIME to SPACE

2002-12-11 Thread Paul Everlund
Hi list!

What does this mean?

# sysctl kern.msgbuf
[snip]
5/var: optimization changed from TIME to SPACE
118Dec 10 11:36:12 fw /kernel: /var: optimization changed from TIME to SPACE
[snip]

Thank you in advance!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: ...changed from TIME to SPACE

2002-12-12 Thread Paul Everlund
Jens Rehsack wrote:

Paul Everlund wrote:


C J Michaels wrote:


Some time in the recent past Paul Everlund scribbled:

Hi list!

What does this mean?

# sysctl kern.msgbuf
[snip]
5/var: optimization changed from TIME to SPACE
118Dec 10 11:36:12 fw /kernel: /var: optimization changed from 
TIME to
SPACE [snip]

It means that your /var filesystem is nearly full.  The kernel is now
trying to maximize the amout of free full blocks on the filesystem.

From fs(5) manpage:
===
The element fs_optim specifies whether the file system should try to 
min-
imize the time spent allocating blocks, or if it should attempt to mini-
mize the space fragmentation on the disk.  If the value of fs_minfree
(see above) is less than 10%, then the file system defaults to 
optimizing
for space to avoid running out of full sized blocks.  If the value of
minfree is greater than or equal to 10%, fragmentation is unlikely to be
problematical, and the file system defaults to optimizing for time.
===

Some other good reads would be tunefs(8), newfs(8), and the mailing list
archives.



Thank you Chris and Jens for your replies!

A full file system on /var triggered it?

# df -k
Filesystem  1K-blocks   Used   Avail Capacity  Mounted on
/dev/ad1s1a 65470  40452   1978267%/
/dev/ad0s1e   2030062 801262 106639643%/usr
/dev/ad1s1e 35230  17770   1464255%/var
procfs  4  4   0   100%/proc

It doesn't look full to me.

Best regards,
Paul


Try 'df -ik'


# df -ik
Filesystem  1K-blocks   Used   Avail Capacity iused  ifree %iused 
Mounted on
/dev/ad1s1a 65470  40452   1978267%1517   6801   18%   /
/dev/ad0s1e   2030062 801262 106639643%  110510 144464   43%   /usr
/dev/ad1s1e 35230  17512   1490054% 825   3653   18%   /var
procfs  4  4   0   100%  494839%   /proc

The i-nodes are fine too.

Anyway, I guess it is as Bill Moran wrote, that a temporary file was
created, that made it change, and somewere in the logs a change back
should be found. Will check it later.

Thank you all for your replies! In the future, now I know what TIME
to SPACE and vice versa means!

Best regards,
Paul



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Epson Perfection 1260 and SANE

2003-02-24 Thread Paul Everlund
Hi!

Has anyone got this scanner to work with FreeBSD 4.7 and SANE?

When issued sane-find-scanner it finds it, telling me it's on
libusb:/dev/usb0:/dev/ugen0.
It also seems to use the backend Plustek, and in the [usb]
section I have entered the correct vendor- and product-id.
I have tried various settings for device, such as auto,
libusb:/dev/usb0:/dev/ugen0, /dev/ugen0 and so on.
Executing scanimage -L just tells me it can not find the
scanner.
Also got some Device not found and I/O error's while
testing various settings.
If you who reads this managed to make it work, can you please
give me some hints?
Thanks in advance!

Best regards,
Paul


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


VINUM: Disk crash with striped raid

2004-10-07 Thread Paul Everlund
Hi Greg and list!
I did have two 120 GB's disk drives in vinum as a striped raid.
One disk crashed, and is not found during boot. It starts up and
makes the usual noises, but then it stalls with a katjing, katjing
and so on. It seems like either the steering electronics, or the
read/write-heads mechanics, have failed.
I did contact a data recovery company and they say they need both
disks to restore the raid, because of that the raid initializing
might be corrupted.
My questions is:
Do they need both disks?
Isn't it enough if they make a disk image of the failed drive, and
I will then be able to restore the raid data initialization in vinum
by a vinum create, or something similar?
Will they be able to recreate the raid data without using vinum
anyway?
Thank you in advance for an answer!
Best regards,
Paul
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: VINUM: Disk crash with striped raid

2004-10-08 Thread Paul Everlund
Greg 'groggy' Lehey wrote:
On Thursday,  7 October 2004 at 18:11:52 +0200, Paul Everlund wrote:
 Hi Greg and list!
Thank you for your reply!
 I did have two 120 GB's disk drives in vinum as a striped raid.
Can you be more specific?
My vinum.conf looks like this, if this is to be more specific:
   drive ad5 device /dev/ad5s1e
   drive ad6 device /dev/ad6s1e
   volume raid0
   plex org striped 127k
   sd length 0 drive ad5
   sd length 0 drive ad6
 I did contact a data recovery company and they say they need both
 disks to restore the raid, because of that the raid initializing
 might be corrupted.

 My questions is:

 Do they need both disks?
That depends on your configuration.
That is as above.
 Isn't it enough if they make a disk image of the failed drive, and I
 will then be able to restore the raid data initialization in vinum
 by a vinum create, or something similar?
The command will be 'vinum start'.
Thank you!
 Will they be able to recreate the raid data without using vinum
 anyway?
Who knows?
You at least know from this mail that I don't... :-)
The real issue is the configuration of your volume (not raid).
Sorry.
 If it only has a single plex, you're in trouble.
Well, then I'm in trouble.
 In that case, you need your recovery company to get an image of
 the failed disk. Then you should put it on a similar disk, create
 a configuration entry and perform some other incantations, and you
 should be up and running again.
Can you please be more specific? Is the configuration entry the one
above, vinum.conf? Perform other incantations?
If you have two or more plexes, you shouldn't need to do any of this.
As I don't have two or more plexes it seems I have to do all of it. :-)
Thank you for a reply in advance!
Best regards,
Paul
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Swedish language...

2005-04-30 Thread Paul Everlund
Hi Marie!
M. IsaLonewolf Mattsson wrote:
 Hi!
 I just wonder, if there is any version of FreeBSD in Swedish
 available.
 I do hope, there is!!
 Kindly
 Marie
That depends on what you mean by Swedish...
I suggest you read the following:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html
If you're using X11 and KDE, there are a language pack for swedish you
could install:
/usr/ports/misc/kde3-i18n-sv
Best regards,
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]