Re: starting Konqueror from the command line

2004-06-05 Thread Malcolm Kay
On Sunday 06 June 2004 15:59, Malcolm Kay wrote:
> On Sunday 06 June 2004 15:31, Jay Moore wrote:
> > On Sunday 06 June 2004 12:46 am, Bruce Hunter wrote:
> > > > This oughta' be easy, but I've been unable to find any documentation
> > > > on it...
> > > >
> > > > I'm using bluefish as an html editor. I don't have mozilla installed
> > > > (don't really want it), and would like to preview my html in
> > > > Konqueror.
> > > >
> > > > What is the correct command line incantation for this?
> > >
> > > I believe the command is #konqueror, only 50% sure though.
> >
> > I'm 100% sure you've got 50% of the answer, Bruce  :)
> >
> > What I need is the part that comes after "konqueror"... i.e. which file
> > to open. And that's assuming Konqueror knows to start in "html mode"
> > since the file it's opening is html. I thought there might even be a way
> > to specify a "profile file (??)" to set window size & other options.
>
> # konqueror file:'absolute-file-path'

# konqueror file:'relative-file-path'
also works.

Malcolm

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


Re: starting Konqueror from the command line

2004-06-05 Thread Malcolm Kay
On Sunday 06 June 2004 15:31, Jay Moore wrote:
> On Sunday 06 June 2004 12:46 am, Bruce Hunter wrote:
> > > This oughta' be easy, but I've been unable to find any documentation on
> > > it...
> > >
> > > I'm using bluefish as an html editor. I don't have mozilla installed
> > > (don't really want it), and would like to preview my html in Konqueror.
> > >
> > > What is the correct command line incantation for this?
> >
> > I believe the command is #konqueror, only 50% sure though.
>
> I'm 100% sure you've got 50% of the answer, Bruce  :)
>
> What I need is the part that comes after "konqueror"... i.e. which file to
> open. And that's assuming Konqueror knows to start in "html mode" since the
> file it's opening is html. I thought there might even be a way to specify a
> "profile file (??)" to set window size & other options.

# konqueror file:'absolute-file-path'

Malcolm

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


Sending a message to another computer on the network

2004-06-05 Thread Ian Smith
On Sat, 5 Jun 2004 [EMAIL PROTECTED] wrote:

 > I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
 > and would like to send a message to Win-box ( on the same network, but not my 
 > machine ) that's filling up my  httpd-access.log with junk.

Yes, these log-bombs are a pain, making it difficult (and slow) to scan
webserver logs with, say, less .. I had to write a script run hourly to
clean these out of our main apache and several vhost logs.

How can you be sure that they're coming from a Windows box, though?

 > The only thing I know is his IP-adress.
 > Is this possible ? If it is, how.
 > Or do I have to block his IP ?

Not much use if it changes, as you say yourself later .. best just send
a few of these log entries, with your later list of times received, to
your/his ISP asking for some action to hassle the (l)user concerned.

 > The junk I receive in my log looks like this :
 > -
 > httpd-error.log :
 >  [Sat Jun 05 14:13:43 2004] [error] [client 217.209.211.183] request 
 > failed: URI too long (longer than 8190)

Yes, they're all around 8300 bytes here, obvious buffer-overflow fodder,
though I don't know which webserver/s are targetted. Some days we get
between 10-20 per day from a range of IPs in the north-east Asia region,
where it's almost never any use trying to contact the ISPs concerned.

 > -
 > httpd-access.log :
 > 
 > 217.209.211.183 - - [05/Jun/2004:14:11:28 +0200] "SEARCH /\x90\x02\xb1\
 > 
 > and the last line ending with :
 > \x90\x90\x90\x90" 414 391 "-" "-"
 > 

Them's the ones.  You're in a much better position than we are to stop
these, being (at least apparently) from IPs of your own ISP.

I'm unsure whether these are real attack attempts by some worm, or are
just designed as log bombs.  Either way, they got me scriptin' .. email
me (anyone) if you could use my apache.logclean sh script.  It's a bit
heavy-duty (having to stop apache briefly to clean logs) but has made
maintenance easier here, and kept log sizes down by up to 150K per day.

Cheers, Ian

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


Re: starting Konqueror from the command line

2004-06-05 Thread Kent Stewart
On Saturday 05 June 2004 11:01 pm, Jay Moore wrote:
> On Sunday 06 June 2004 12:46 am, Bruce Hunter wrote:
> > > This oughta' be easy, but I've been unable to find any
> > > documentation on it...
> > >
> > > I'm using bluefish as an html editor. I don't have mozilla
> > > installed (don't really want it), and would like to preview my
> > > html in Konqueror.
> > >
> > > What is the correct command line incantation for this?
> >
> > I believe the command is #konqueror, only 50% sure though.
>
> I'm 100% sure you've got 50% of the answer, Bruce  :)
>
> What I need is the part that comes after "konqueror"... i.e. which
> file to open. And that's assuming Konqueror knows to start in "html
> mode" since the file it's opening is html. I thought there might even
> be a way to specify a "profile file (??)" to set window size & other
> options.

I tried 

konqueror pnl-1000th-patent.html

and it started a local copy of that web page.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


lseek problem

2004-06-05 Thread Tim Pushor
Hi all,
I am working on porting an old system over to FreeBSD, and am having a 
weird (to me) problem. This system uses various data file types, and 
unfortunately it uses the group_id execution bit (but no execute) on a 
data file to signify a sequential type file (mode 2440). I have stepped 
through the code, and it is failing on an lseek (fd,0,SEEK_SET) where fd 
is the properly opened file descriptor for one of these files. This file 
is readable by the user and is about 2K in size. this lseek should work 
shoudn't it? Its returning -1 and sets errno to 22 (EINVAL). Could this 
be because of the weird mode? man chmod doesn't say anything about what 
the set-group-id bit does to non-executable files. Could this be the 
problem?

Please reply to me as I don't subscribe to this list.
Thank you in advance,
Tim
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: starting Konqueror from the command line

2004-06-05 Thread Jay Moore
On Sunday 06 June 2004 12:46 am, Bruce Hunter wrote:

> > This oughta' be easy, but I've been unable to find any documentation on
> > it...
> >
> > I'm using bluefish as an html editor. I don't have mozilla installed
> > (don't really want it), and would like to preview my html in Konqueror.
> >
> > What is the correct command line incantation for this?

> I believe the command is #konqueror, only 50% sure though.

I'm 100% sure you've got 50% of the answer, Bruce  :)

What I need is the part that comes after "konqueror"... i.e. which file to 
open. And that's assuming Konqueror knows to start in "html mode" since the 
file it's opening is html. I thought there might even be a way to specify a 
"profile file (??)" to set window size & other options.

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


Re: starting Konqueror from the command line

2004-06-05 Thread Bruce Hunter


On Sun, 2004-06-06 at 01:40, Jay Moore wrote:
> This oughta' be easy, but I've been unable to find any documentation on it...
> 
> I'm using bluefish as an html editor. I don't have mozilla installed (don't 
> really want it), and would like to preview my html in Konqueror.
> 
> What is the correct command line incantation for this?
> 
> Thanks,
> Jay

I believe the command is #konqueror, only 50% sure though.

-Bruce-

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


starting Konqueror from the command line

2004-06-05 Thread Jay Moore
This oughta' be easy, but I've been unable to find any documentation on it...

I'm using bluefish as an html editor. I don't have mozilla installed (don't 
really want it), and would like to preview my html in Konqueror.

What is the correct command line incantation for this?

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


Re: FreeBSD / Gnome Performance Tuning

2004-06-05 Thread Kent Stewart
On Saturday 05 June 2004 09:48 pm, Bruce Hunter wrote:
> Hey everyone,
> I have noticed that my system isn't as fast as the windows gui is.
> Probably has to do with Gnome and GTK 2.0 issues. Is there anything I
> can do, to increase system wide performance? Either harddrive access
> time, or gui performance when running multiple apps?
>

It depends on what you are comparing. For example, I think the numerical 
libraries in Windows are significantly faster than FreeBSD. On the same 
system, I see ~25% more wu's calculated by setiathome from the Windows 
XP side than are processed on the FreeBSD 4.x side.

I could be wrong on where the 25% speed gain is coming from but the 
difference is there. I added the cpu_time from the report that is 
uploaded to Berkely into a spread sheet and then compared the averages 
once I had accrued more than 200 wu's by each OS. You need to process 
several hundred wu's before the really short running ones ceased to 
affect the first few digits in the average.

Look while you are doing some gui stuff and see if you are swapping. 
Your 8ns memory suddenly becomes equivalent to your HD average access 
time at that point and everything is going to run slower. I started 
looking at swapinfo on systems that I did port builds and frequent 
system builds and upped the memory until I quit swapping. The first DDR 
was 512 and it swapped. The 2nd DDR stick was also 512 and it didn't 
swap. 

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD / Gnome Performance Tuning

2004-06-05 Thread Bruce Hunter
Hey everyone,
I have noticed that my system isn't as fast as the windows gui is.
Probably has to do with Gnome and GTK 2.0 issues. Is there anything I
can do, to increase system wide performance? Either harddrive access
time, or gui performance when running multiple apps?

- Bruce -

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


Re: BSD 4.10 install question

2004-06-05 Thread Peter Ulrich Kruppa
On Sat, 5 Jun 2004, Harry Heim wrote:
Hi,
I am about to install BSD 4.10 and according to "The Complete FreeBSD" 4th 
ed, (Lehey) all I need is on the installation CD, (the first disk).  He  says 
little about the second CD, "Live File System" and what needs to be done 
about it.  Any good advice as to just what and how the second CD is used for? 
It contains additional software packages. You dont't need to care 
about them before you have FreeBSD installed.

Also, I am doing the install on 4GB HD and someone said use 256MB for root, 
512MB swap, 256MB for /var and /tmp and the rest of the space for /usr? 
This  is almost the install default as Lehey  says use far more for the root 
so as not to run out of space.
256 MB for / (the "root" - directory) will do fine if you keep 
strictly to the good rule to use your root account (i.e. the 
Administrator account) only for administrative works.

Have fun,
Uli.
+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Recommended answering machine software?

2004-06-05 Thread Jay Moore
On Friday 04 June 2004 10:02 pm, Bill Moran wrote:

> > I'd like to run something under FreeBSD 4.9 which can make my
> > FreeBSD box act as an answering machine:  answer calls, play an
> > outgoing message (presumably a .wav or similar file), and take
> > messages.  It would be nice if it also could understand DTMF codes and
  
> >
> > I skimmed through ports but didn't find a clear winner for this type
> > of application.  I'm also not sure what specific hardware I'd need (I
> > assume not just any modem will do :-), and I suspect this will be
> > dependent on what software I use.
>
> While it may be overkill, Asterisk is really the software you're looking
> for: http://www.asterisk.org  It'll do everything you need and more.
>
> Unfortunately, asterisk's ability to function on FreeBSD is currently
> limited by a lack of drivers for phone cards.  You'd think you could just
> use standard modems, but not really.  There is a lot of work going in to
> making asterisk work better on FreeBSD, so it's not going to be like this
> forever.

I'd like to get involved in this... is there a mailing list, or someone I 
should contact?

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


Re: PHP IDE instead of Bluefish

2004-06-05 Thread Michal Pasternak
Bruce Hunter [Sat, Jun 05, 2004 at 09:46:09PM -0400]:
> I have recently gotten rid of window and now only run FBSD. I am a
> programmer of many kinds. I program in PHP and was wondering what is a
> good PHP IDE? Maybe something in the ports collection.

editors/xemacs works just great! :^)

-- 
m


pgpPwZFutG3iQ.pgp
Description: PGP signature


apache2 startup flags

2004-06-05 Thread dave
Hello,
I just upgraded apache and now it starts via rc.conf. I want to use:
apache_enable="YES"
apache2ssl_enable="YES"
but am unsure about the other options: apache2_limits, apache2_flags, and
apache2limits_args what should these be set to?
Thanks.
Dave.


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


dspam

2004-06-05 Thread Reed L. O'Brien
Anyone here use dspam?  I posted to the dspam maillist but apparen;ty 
noone is lurking there today.

FreeBSD 5.2.1
maildrop 1.6.3
dspam 2.10.6
I had maildrop delivering fine.  Then I built dspam from the ports and 
modified postfix main.cf
to read:
mailbox_command = /usr/local/bin/dspam --user $USER -d %u
#mailbox_command = /usr/local/bin/maildrop -d ${USER}
local_destination_concurrency_limit = 1
maildrop_recipient_limit = 1

I was receiving a permission denied error and modified 
/usr/local/bin/dspam permissions to match
/usr/local/bin/maildrop and now it delivers.  I setup aliases and it 
attemmpts to deliver them but I am getting an error in the log and no 
delivery.  I am not sure how to test if dspam is working otherwise.

permissions of /usr/local/dspam
drwxrwx---  2 root   mail 512 Jun  5 19:24 dspam
-rw-r--r--  1 root  mail  33 Jun  5 19:24 untrusted.users
-rw-r--r--  1 root  mail  78 Jun  5 19:22 trusted.users
the maillog errors:
Jun  5 20:08:33 server postfix/smtpd[71739]: connect from [server]
Jun  5 20:08:33 server postfix/smtpd[71739]: 25A1911422: [server]
Jun  5 20:08:33 server postfix/cleanup[71741]: 25A1911422: 
message-id=<[EMAIL PROTECTED]>
Jun  5 20:08:33 server postfix/qmgr[71738]: 25A1911422: 
from=<[EMAIL PROTECTED]>, size=4405, nrcpt=1 (queue active)
Jun  5 20:08:33 server dspam[71744]: unable to open 
/usr/local/etc/dspam/trusted.users for reading: Permission denied.
Jun  5 20:08:33 server dspam[71744]: forcing username for untrusted user 
nobody
Jun  5 20:08:33 server dspam[71744]: unable to locate 
/usr/local/etc/dspam/untrusted.mailer_args: Permission denied.  allowing 
untrusted user to specify passthru delivery parameters
Jun  5 20:08:33 server dspam[71744]: DB_ENV->open failed: 
/usr/local/etc/dspam/nobody: Permission denied
Jun  5 20:08:33 server dspam[71744]: unable to initialize dspam context
Jun  5 20:08:33 server dspam[71744]: process_message returned error -2. 
 delivering message.
Jun  5 20:08:33 server maildrop[71746]: Unable to change to home directory.
Jun  5 20:08:33 server postfix/local[71742]: 25A1911422: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=deferred 
(temporary failure. Command output: 71744: [Sat Jun  5 20:08:33 2004] 
Unable to create directory: /usr/local/etc/dspam/nobody/: Permission 
denied /usr/local/bin/maildrop: Unable to change to home directory. 
71744: [Sat Jun  5 20:08:33 2004] LDA returned error, exit code: 75, LDA 
command line: /usr/local/bin/maildrop)
Jun  5 20:08:33 server postfix/smtpd[71739]: disconnect from [server]

What else should I send??
--
reed
4.6692016090
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


IPFW and NATD to open firewall for XBox Live

2004-06-05 Thread Ted Bruyere
I hope the subject says it all...

I'm told that while using xbox live behind a router (I'm using FreeBSD
5.2.1), ports 88 and 3074 need to be open.

I have this working for internal addresses in the 192.168.2.* range, and
it DID work back when I had a linux box doing the routing.

Can anyone tell me what's going down, if this is the right way to do it,
or supply more information or troubleshooting? Any help at all
appreciated.

Here's the lines I'm using to try to do this, based on the web searching
I've been doing.

in /etc/rc.firewall.local:

# XBOX: (UDP 88, UDP 3074, and TCP 3074)
ipfw allow log tcp from any to any 88
ipfw allow log udp from any to any 88
ipfw allow log tcp from any to any 3074
ipfw allow log udp from any to any 3074

and in /etc/natd.conf

redirect_port tcp 192.168.2.216:3074 3074
redirect_port udp 192.168.2.216:3074 3074
redirect_port tcp 192.168.2.216:88 88
redirect_port udp 192.168.2.216:88 88





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


Re: pf

2004-06-05 Thread Kris Kennaway
On Sat, Jun 05, 2004 at 09:35:13PM -0400, Reed L. O'Brien wrote:
> I thought I read in the CURRENT docs somewhere that pf was going to be 
> the default packet filter.  Was I hallucinating? 

Apparently :-)

It's one choice among 3.

Kris


pgpy8NLWjF4Wo.pgp
Description: PGP signature


Re: Large window causes monitor to degauss/reset!!

2004-06-05 Thread Jacob Rhoden
I discovered the problem and describe it for future reference: I had
the correct vertical and horizontal refresh rate range set for the monitor
and X Windows chose the wrong refresh rate for the resolution I was
using (ie a monitor cant use its maximum refresh rate at its higher
resolutions). Decreasing the maximum refresh rate fixed it!

Thanks for your responses.
Jacob

Jacob Rhoden wrote:
> I have been using freebsd for quite some time now, I have come across
> a machine with a 19" viewmaster, whereby if you open a window
> bigger than about 500x500 pixels, the monitor resets and degausses
> every 8 seconds until you close the window. Has anyone had this
> happen to them? And how did you fix it? (Freebsd 5.2.1, fairly current
> XFree86 with fairly current KDE).

__
Jacob Rhoden - http://rhoden.id.au/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


PHP IDE instead of Bluefish

2004-06-05 Thread Bruce Hunter
I have recently gotten rid of window and now only run FBSD. I am a
programmer of many kinds. I program in PHP and was wondering what is a
good PHP IDE? Maybe something in the ports collection. I use anjuta for
my C, and C++ Development. Any comments would be great.

-Bruce-

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


BSD 4.10 install question

2004-06-05 Thread Harry Heim
Hi,
I am about to install BSD 4.10 and according to "The Complete FreeBSD" 
4th ed, (Lehey) all I need is on the installation CD, (the first disk).  
He  says little about the second CD, "Live File System" and what needs 
to be done about it.  Any good advice as to just what and how the second 
CD is used for?  Also, I am doing the install on 4GB HD and someone said 
use 256MB for root, 512MB swap, 256MB for /var and /tmp and the rest of 
the space for /usr?   This  is almost the install default as Lehey  says 
use far more for the root  so as not to run out of space.

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


pf

2004-06-05 Thread Reed L. O'Brien
I thought I read in the CURRENT docs somewhere that pf was going to be 
the default packet filter.  Was I hallucinating?  Anyone seen it?

Also anyone using pf on FreeBSD 5.x?
Is it fully implemented?  is it as solid as ipfilter?
I have never used ipfw or ipfw2 so please don't refer to them without 
great detail on their part of the comparisonI won't get it

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


Re: buildkernel and perl5

2004-06-05 Thread Gary Kline
On Fri, Jun 04, 2004 at 06:07:47PM -0700, Gary Kline wrote:
> 
>   Troubles with buildkernel and 4.8
>   I just rebuilt perl5.8 and reinstalled it.  make buildworld 
>   completes, but buildkernel fails ...  Here is where it dies:
> 
> 
> cd /usr/obj/usr/src/sys/TAO;  MAKEOBJDIRPREFIX=/usr/obj
> MACHINE_ARCH=i386  MACHINE=i386
[[ ... ]]
> perl5:No such file or directory
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/TAO.
> *** Error code 1
> 
> 
>   Both perl and perl5 exist; I've used "port" and "system"
>   and, yes, the symlinks change.  Anybody know what's going
>   on?
> 

This is another FWIW, next time this happens to anyone else.
My bad-memory problems were kindly fixed by a gentleman from
the Seattle BSD users group, but there were scores of files
missing (vanished) all over.  Several missing binaries caused
the /usr/src/Makefile to go haywire, so I had to build/install
the kernel the old way:

  # cd /usr/src/sys/i386/conf
  # [[ perform necessary kernel configuration on ``./KERNCONF'' ]]
  # config KERNCONF 
  # cd ../../compile/KERNCONF
  # make depend
  # make
  # make install

After going single-user, and mergmastering stuff, 
make installworld was broke, so I had to install several
src trees by hand.  At last make installworld worked and
I came back up.   There are probably lots of ports 
gone-south, but this is almost a non issue after the past
few weeks.

-g


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: Changing SendMail Port Number

2004-06-05 Thread Mark
Gerard Seibert wrote:

> This is probably a stupid question, but how do I change the SMTP port
> number that SendMail listens in on? I want to change it to something
> else, like perhaps 24. My ISP is blocking 25 and I want to get around
> that problem.

And how will clients (the world) find you then, on port 24?

Besides, are you sure your ISP blocks *incoming* port 25? That is somewhat
unusual; *outgoing* 25, yes (for dialup users), but incoming? Regardless,
same difference: you can start sending on port 24, but since the world is
listening on port 25, that will do you little good.

- Mark

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


Re: Changing SendMail Port Number

2004-06-05 Thread Scott Kupferschmidt
The only problem with listening on port 24 is no one is going to be able
to send mail to you, as smtp listens on port 25.

Sincerely,

Scott Kupferschmidt
ISPrime, Inc.
866.502.4678 ext. 3
AIM: Scott ISPrime - ICQ: 174337249

On Sat, 5 Jun 2004, Doug Hardie wrote:

> 
> On Jun 5, 2004, at 16:49, Gerard Seibert wrote:
> 
> > This is probably a stupid question, but how do I change the SMTP port 
> > number that SendMail listens in on? I want to change it to something 
> > else, like perhaps 24. My ISP is blocking 25 and I want to get around 
> > that problem.
> 
> I use the following in the mc file:
> 
> DAEMON_OPTIONS(`Port=25, Name=MTA')dnl
> DAEMON_OPTIONS(`Port=26, Name=MTA')dnl
> 
> 
> It responds to both ports 25 and 26.
> 
> ___
> [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: New apache2 rc.conf start syntax check

2004-06-05 Thread Stacey Roberts
Hi,

- Original Message -
From: "JJB <[EMAIL PROTECTED]>"
To: To Stacey Roberts
Date: Sat, 05 Jun, 2004 22:26 BST
Subject: RE: New apache2 rc.conf start syntax check

> Send an email to the apache2 port maintainer and tell him his
> pkg-message is very unclear and should just come right out and say
> ="YES" instead of (bool).  The pkg-message for apache13  says it the
> correct way so there is no misunderstanding.

Thanks for this.., I'll act on this information accordingly.

Regards,

Stacey

> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Stacey
> Roberts
> Sent: Saturday, June 05, 2004 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: New apache2 rc.conf start syntax check
> 
> Hello,
>  Sorry if this is a straight-forward case, but I just wanted to
> double-check the syntax for the new apache2 start syntax that's to
> be added to /etc/rc.conf.
> 
> The pkg-message reads:
> 
> # Add the following lines to /etc/rc.conf to enable apache2:
> # apache2_enable (bool):  Set to "NO" by default.
> # Set it to "YES" to enable apache2
> # apache2ssl_enable (bool):   Set to "NO" by default.
> # Set it to "YES" to start apache with
> SSL
> # (if  exists in
> httpd.conf)
> # apache2limits_enable (bool):Set to "NO" by default.
> # Set it to yes to run `limits
> $limits_args`
> # just before apache starts.
> # apache2_flags (str):Set to "" by default.
> # Extra flags passed to start command
> 
> Now following from what's normally used for /etc/rc.conf, its
> reasonable to me that the syntax should be along the lines of:
> 
> apache2_enable="YES"
> 
> But reading the apache2 pkg-message, there's no mention of the use
> of the "=" for the apache2_enable statement. Is the "=" required or
> not? If it is, then shouldn't the examples in pkg-message include a
> reference to using the "=" before the bool selection?
> 
> Thanks for the time.
> 
> Regards,
> 
> Stacey
> 

-- 
Stacey Roberts
B. Sc (HONS) Computer Science

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


Re: Changing SendMail Port Number

2004-06-05 Thread Doug Hardie
On Jun 5, 2004, at 16:49, Gerard Seibert wrote:
This is probably a stupid question, but how do I change the SMTP port 
number that SendMail listens in on? I want to change it to something 
else, like perhaps 24. My ISP is blocking 25 and I want to get around 
that problem.
I use the following in the mc file:
DAEMON_OPTIONS(`Port=25, Name=MTA')dnl
DAEMON_OPTIONS(`Port=26, Name=MTA')dnl
It responds to both ports 25 and 26.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Changing SendMail Port Number

2004-06-05 Thread Gerard Seibert
This is probably a stupid question, but how do I change the SMTP port 
number that SendMail listens in on? I want to change it to something else, 
like perhaps 24. My ISP is blocking 25 and I want to get around that 
problem.

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


sendmail access file and cidrexpand

2004-06-05 Thread Warren Block
Adding cidrexpand support to the /etc/mail/Makefile would be handy; then 
we could use CIDR notation in /etc/mail/access.  I've edited the 
/etc/mail/Makefile (patch attached), and it seems to work.

The question would be: have I done this in an appropriate way?
Feedback would be appreciated before I submit a send-pr.
-Warren Block * Rapid City, South Dakota USA--- Makefile.bakSat Jun  5 15:32:45 2004
+++ MakefileSat Jun  5 16:17:58 2004
@@ -109,6 +109,7 @@
 SENDMAIL?= /usr/sbin/sendmail
 MAKEMAP?=  /usr/sbin/makemap
 M4?=   /usr/bin/m4
+CIDREXPAND?=   /usr/src/contrib/sendmail/contrib/cidrexpand
 
 # Permissions for generated maps
 SENDMAIL_MAP_PERMS?=   0640
@@ -125,11 +126,11 @@
 # type to use when calling makemap.
 #
 SENDMAIL_MAP_SRC+= mailertable domaintable bitdomain uucpdomain \
-   genericstable virtusertable access
+   genericstable virtusertable
 SENDMAIL_MAP_OBJ=
 SENDMAIL_MAP_TYPE?=hash
 
-.for _f in ${SENDMAIL_MAP_SRC} userdb
+.for _f in ${SENDMAIL_MAP_SRC} access userdb
 .if exists(${_f})
 SENDMAIL_MAP_OBJ+= ${_f}.db
 .endif
@@ -148,6 +149,10 @@
${MAKEMAP} ${SENDMAIL_MAP_TYPE} ${.TARGET} < ${.OODATE}
chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
 .endfor
+
+access.db: access
+   ${CIDREXPAND} < ${.OODATE} | ${MAKEMAP} -r ${SENDMAIL_MAP_TYPE} ${.TARGET}
+   chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
 
 userdb.db: userdb
${MAKEMAP} btree ${.TARGET} < ${.OODATE}
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ICH4 sound problems

2004-06-05 Thread Seb
I finally got it to work, using the this patch :
http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/61388


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


RE: routing question

2004-06-05 Thread Eric Crist
You need to kill all the running dhclient processes, then try again.
Usually, this can be done with:

#killall -9 dhclient

HTH

Eric F Crist
President
AdTech Integrated Systems, Inc
(612) 998-3588



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Saturday, June 05, 2004 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: routing question
>
>
> I am trying to configure a wireless router so I am redefining
> routes and IP address of my system. After booting dhclient
> ep0 works fine. After messing around with the wireless router
> I was just going back to my ethernet connection so I did:
>
>ifconfig ep0 192.168.0.3 remove
>arp -da
>route flush
>dhclient ep0
>
> This returned immediatly without assigning an IP or route so
> I just connected manually using ifconfig and route. There
> must be something I did not clear out, but I can not figure
> it out. Thanks for any ideas. This is on 4.10 if that makes
> any difference.
>
> _
> Douglas Denault
> http://www.safeport.com
> [EMAIL PROTECTED]
> Voice: 301-469-8766
>   Fax: 301-469-0601 ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/free> bsd-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: New apache2 rc.conf start syntax check

2004-06-05 Thread Kent Stewart
On Saturday 05 June 2004 01:16 pm, Stacey Roberts wrote:
> Hello,
>  Sorry if this is a straight-forward case, but I just wanted to
> double-check the syntax for the new apache2 start syntax that's to be
> added to /etc/rc.conf.
>
> The pkg-message reads:
>
> # Add the following lines to /etc/rc.conf to enable apache2:
> # apache2_enable (bool):  Set to "NO" by default.
> # Set it to "YES" to enable apache2
> # apache2ssl_enable (bool):   Set to "NO" by default.
> # Set it to "YES" to start apache with
> SSL # (if  exists in
> httpd.conf) # apache2limits_enable (bool):Set to "NO" by default.
> # Set it to yes to run `limits
> $limits_args` # just before apache
> starts.
> # apache2_flags (str):Set to "" by default.
> # Extra flags passed to start command
>
> Now following from what's normally used for /etc/rc.conf, its
> reasonable to me that the syntax should be along the lines of:
>
> apache2_enable="YES"
>
> But reading the apache2 pkg-message, there's no mention of the use of
> the "=" for the apache2_enable statement. Is the "=" required or not?
> If it is, then shouldn't the examples in pkg-message include a
> reference to using the "=" before the bool selection?
>


If you do a "man rc.conf", you will see that for (bool), you have to set 
'=YES"' or '="NO"'.

Since you have to stop apache and restart it, you could have done a 
"shutdown now" and watch it come up the new way.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: GRE issues

2004-06-05 Thread D.D.W. Downey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Saturday 05 June 2004 02:00 pm, you wrote:
> The link below will show you exactly how to setup GRE tunnels
>
> http://www.pointless.net/~jasper/consume/docs/my-docs/tunneling.html
>
> - Original Message -
> From: "D.D.W. Downey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 04, 2004 3:01 AM
> Subject: GRE issues
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> >
> > Trying to set up GRE here for routing a /29 to the house. I am using the
> > following configuration and not sure what the problem is. I get a single
> > packet through from the DSL box to the remote box then I get total packet
> > loss. I can ping the 192.168.3.1 from 192.168.2.1 but not vis versa.
> > If i assign an IP to my rl0 on the DSL box from the AssignedBlock it
> > pings locally but not from the internet. In fact it bounces back and
> > forth
>

Right on, thank you for that URL. Reinforces that I am on the right track. I 
found that URL before I mailed the list and this confirms that I've done this 
correctly. For that I wish to thank you.

However, the problem still remains. See, the problem is that from the remote 
side of the tunnel I can ping any IP address I assign lcoally, from the block 
I'm trying to route over the gre tunnel. I can ping the local side of the 
routing from the remote. However, if I ping the remote side of the tunnel 
(NOT the IPs used in the ifconfig gre1 tunnel   statement, but the 
one used for the link1 statement) it fails to ping. I get exactly *one* ping 
through and recorded and then the rest just "magically" disappear. The local 
side shows them going out (via ipfw add statements and counting the packets), 
but the far side records only one packet recieved and ping shows one single 
successful send. Every packet after that seems to get lost.

I've been thinking on this and want to see how far off base I am. So, feel 
free to tell me if you see something wrong in my logical thoughts.

I have the /29 routed to here on the remote over the gre tunnel. I have 
another route statement on THIS side (local) for the same block. (My 
reasoning being that for the packets for that block to be answerable it has 
to know to go back over the tunnel. However, in my head that seems wrong 
since routing is destination based packet routing which means that i'm just 
bouncing the packets back and forth over the gre tunnel. It works fine coming 
from the remote to me because, well that's the correct traffic path. The 
route on MY side of the tunnel is wrong because I'm saying to route packets 
destined for the /29 BACk to the REMOTE side of the tunnel. Obviously not 
what we want here. The example given on the URL we both have shows 2 
different /30s being routed across the GRE. I don't have that. I have a 
single /29 coming TO me locally. Now i need to know how to route any packets 
the /29 generates in response to traffic BACK over the gre TO the remote side 
and of course, back to their origination. 

OK, so I see I'm doing it wrong with the routing statement on my side (local) 
of the gre tunnel. How would I route the packets the /29 generates (either 
from me just using the IPs outbound with return traffic, or as someone 
contacting the IPs in the /29 and me responding)?

Seems route is only half the answer when dealing with this.

- -- 
D.D.W. Downey
CyberSpace Technologies, Inc.
AS64567-OCCAID


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAwitVDQ32jEgJHCgRAqe4AKDJGkz0W+jRzw+ifjo96T+LZaSbHwCbB3OK
EK5EA8RbZ+3hxg3bAivXN/A=
=x11b
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


New apache2 rc.conf start syntax check

2004-06-05 Thread Stacey Roberts
Hello,
 Sorry if this is a straight-forward case, but I just wanted to double-check the 
syntax for the new apache2 start syntax that's to be added to /etc/rc.conf.

The pkg-message reads:

# Add the following lines to /etc/rc.conf to enable apache2:
# apache2_enable (bool):  Set to "NO" by default.
# Set it to "YES" to enable apache2
# apache2ssl_enable (bool):   Set to "NO" by default.
# Set it to "YES" to start apache with SSL
# (if  exists in httpd.conf)
# apache2limits_enable (bool):Set to "NO" by default.
# Set it to yes to run `limits $limits_args`
# just before apache starts.
# apache2_flags (str):Set to "" by default.
# Extra flags passed to start command

Now following from what's normally used for /etc/rc.conf, its reasonable to me that 
the syntax should be along the lines of:

apache2_enable="YES"

But reading the apache2 pkg-message, there's no mention of the use of the "=" for the 
apache2_enable statement. Is the "=" required or not? If it is, then shouldn't the 
examples in pkg-message include a reference to using the "=" before the bool selection?

Thanks for the time.

Regards,

Stacey


pgphDp3E4e1JG.pgp
Description: PGP signature


Re: Monthly security run.

2004-06-05 Thread Viktor Lazlo
On Tue, 1 Jun 2004, jimmie james wrote:

> Doing login accounting:
> total 1438.65
> jimmie 1435.18
> root 3.46
>
> This all makes perfect sense, though I was wondering,
> if there's an easy way to get the script to log how
> many times (and optionally, who) uses "su" or "su -"
> and to what account they jumped to.
>
> Unfortunaly, I'm not a code monkey, so digging around
> in the source, and trying myself would probably break
> something.

You can do this easily enough by polling /var/log/messages for any use of
su:

grep -i su /var/log/messages | sort +6

Set this up as a daily crontab item and the results will be emailed to you
automatically.

Cheers,

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


Re: setting up a system with no keyboard

2004-06-05 Thread Dan Nelson
In the last episode (Jun 05), [EMAIL PROTECTED] said:
> The question is: can I gain access without one?
> 
> The system with no keyboard is 4.8, the rub is it is configured with
> an IP address not on the LAN. I have physical access to the system.
> 
> I tried: "route add 204.156.12.157 -interface ep0" and sorta got what
> I wanted.

The best way would be to do something like 

ifconfig ep0 inet 204.156.12.156 netmask 255.255.255.0 alias

, since you have no guarantees that the remote system has a route back
to your real IP address.  With an aliased IP, the remote system should
realize it's talking to a machine on the same subnet.

Just make sure the ip address you pick isn't already in use.

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


setting up a system with no keyboard

2004-06-05 Thread doug
The question is: can I gain access without one?

The system with no keyboard is 4.8, the rub is it is configured with an IP
address not on the LAN. I have physical access to the system.

I tried: "route add 204.156.12.157 -interface ep0" and sorta got what I wanted.

netstat -rn -f inet
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGSc   264ep0
127.0.0.1  127.0.0.1  UH  1  172lo0
192.168.0  link#6 UC  10ep0
192.168.0.100:20:ea:1f:40:b4  UHLW   270ep0858
204.156.12.157 00:00:86:5a:85:8e  UHLS08ep0

I can tell from the mac adrs that is the correct system. I also have a
cross-over cable.

Can I get there from here?


_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: termcap vs terminfo

2004-06-05 Thread Dan Nelson
In the last episode (Jun 05), [EMAIL PROTECTED] said:
> I've noticed that the base system does not have terminfo, but instead
> comes with termcap. Apparently BSD always had termcap and System V
> had terminfo. I don't want to start a religious war as to which one
> is better, but only want to ask if anyone has experienced problems
> when porting ncurses applications from BSD to System V and vice
> versa, and what could be done to minimise such problems.

FreeBSD's libcurses is ncurses, and it also uses the same terminal
descriptions that terminfo-using systems do (just in termcap format),
so you shouldn't have any problems.  If you want to be portable across
all systems, I think some commercial systems' curses libraries don't do
color, so you'll have to check for that.

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


Re: 5.2.1 SMP problems

2004-06-05 Thread Toomas Aas
Hi!

> Installed 5.2.1 on a high load server - albeit not recommended - and 
> it was working perfectly with SMP support. It picked up 4 cpu's and 
> appeared to be using them all. (The box is a dual 2.4gig Xeon machine). 
> Anyway, the box was as I said under quite a bit of load, and would die 
> about once a day - just reboot. I looked into it a bit and found 
> whenever I put more load on (e.g. a make install in ports) it would 
> panic - vm_load_page or something like that - sorry about being so 
> vague. Anyway I took out SMP support, and now it boots with 2 cpu's - 
> one normal Xeon + HT for the second (no idea how to disable that - but I 
> don't need to)... its been running perfect for 4 days now and I put it 
> under SERIOUS load.. has anyone else had SMP problems on 5.2.1? 

I put 5.2.1-RELEASE on an IBM Netfinity 5000 (dual Pentium III) and I 
had problems, although different from yours. This system has some 
warning LEDs on the motherboard which light up when something is wrong. 
Quite often, when booting, the NMI and PCI1 LEDs would light up, the 
message "NMI ISA 34, EISA ff" appears among the boot messages and 
system reboots shortly after that. PCI1 LED indicates a problem with 
the first PCI bus, which is where I have IBM ServeRAID controller.

Interesting thing is that sometimes this problem during booting does 
not happen and once the system boots successfully there are never any 
problems.

When I removed the second CPU, the problem disappeared. I am not quite 
convinced yet that the problem is completely gone (haven't rebooted too 
many times) but it certainly has been greatly reduced.

Downgrading the firmware of ServeRAID controller from 6.10 to 5.10 (as 
recommended by another poster on this list) may also have contributed 
to resolving the problem. But the first thing I did was removing the 
2nd CPU and I successfully booted several times between that and 
downgrading the ServeRAID firmware. I *seem* to remember one NMI-boot 
after removing the second CPU, but I'm not quite sure my memory isn't 
failing me - it has been quite a rough ride with this NF5000 during the 
past few days. Anyway, *before* removing the second CPU, the boot 
failure rate was >50%, so I'm sure removing the second CPU did help, 
even if downgrading the ServeRAID firmware may have helped further.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Feeling compressed ARJ you?

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


Re: help me make a Mail Server choice

2004-06-05 Thread Thomas Farrell
You should check out puremessage from ActiveState & Sophos. Other choices
are mailscanner & spamassasin, as for free scanners most of these still
require sometype of an AV engine. You can download an evaluation of sophos
savi it will work for about three months. Most free software like
mailscanner will  utilize savi , fprot, Mcafee.  Other mail scanning
software types are mimesweeper, mailmarshal, Qwava.

http://www.sophos.com/products/sav/eval/

http://freshmeat.net/projects/mailscanner/

SpamAssasin
/usr/ports/mail/spamass-milter

type "make && make install"




http://sophos.com/
- Original Message -
From: "Perica Veljanovski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 7:39 AM
Subject: help me make a Mail Server choice


> Hi again
>
> It turned out to be a public mail server as well! The choice for the MTA
> on fell on postfix :) Now I have to chose POP/IMAP and Virus/Spam.
>
> I would appreciate if you can give me some input on your experience with
> Cyrus or Courier, since they are my choices for pop/imap. Also I'd like
> some suggestions on what to use for virus/spam protection, and how they
> are implemented in postfix?
>
> --
--
> My first mail on the subject from 2004-06-01:
>
> I have some trouble choosing between "postfix" and "qmail" for the new
> corporate mail server I'll be making. I'm looking for the one with least
> administrative overhead (since I run a one man show) and security is a
> big issue. Also, I'm looking for some guidance (choices) for POP, IMAP
> and webMail interface as well as Virus and SPAM (preferably free)
> protection.
>
> Another issue is the FreeBSD version. Should I stay with the 4.x-STABLE
> or should I go with the 5.x. If I set up a 5.2-Release, will the upgrade
> to 5.3-STABLE be enough, or is there a possibility that I will have to
> reformat and do a clean 5.3 install.
> --
--
>
> 10x ahead
> --
>  <>
>
>
> ___
> [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: termcap vs terminfo

2004-06-05 Thread Bill Campbell
On Sat, Jun 05, 2004, [EMAIL PROTECTED] wrote:
>I've noticed that the base system does not have terminfo, but instead 
>comes with termcap. Apparently BSD always had termcap and System V had 
>terminfo. I don't want to start a religious war as to which one is 
>better, but only want to ask if anyone has experienced problems when 
>porting ncurses applications from BSD to System V and vice versa, and 
>what could be done to minimise such problems.

First, you can install ncurses on FreeBSD so that's not a problem.

It's been many years since I first worked with termcap on a Tandy Model
16/6000 running Xenix.  I still have a couple of the early O'Reilly ``A
Nutshell Handbook: Reading and Writing Termcap Entries'' by John Strang
Copyright 1985 and Strang's ``Programming with Curses'' published at the
same time.

Terminfo came along a bit later from Bell Labs, and offered some extended
functionallity as well as some restriction not found in termcap.

Technically, they're both terminal capability databases.  The termcap data
file is simple ascii with two character attribute fields, and historically
has been limited to a maximum size of 1024 characters for any terminal
entry.  Termcap is extensible in that there aren't any hard-coded
attributes so the programmer can make up whatever suits the application.
Terminfo doesn't restrict the attribute names to two characters, is
compiled into a binary file for each terminal, and has never had the size
limit of termcap.  One of the downsides of terminfo is that the attributes
aren't as flexible as those of termcap so the programmer can't arbitrarily
define new ones as needed.  Before the advent of ncurses and other open
source terminfo implementations, this could be a serious problem.

My bottom line is that termcap is simpler to use for projects such as
printer descriptions where all I want is a simple way to define attributes,
and I can retrieve them using the standard termcap libraries in C or perl.
I've been using in a printer interface system for almost 20 years now where
I use termcap files to define printer capabilities for run-time conversion
depending on the type of printer.

When I'm working with real terminals, I'm more likely to be using ncurses
with terminfo since the work is largely done for me.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:   camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``One of the common failings among honorable people is a failure to
appreciate how thoroughly dishonorable some other people can be, and how
dangerous it is to trust them.''
- Thomas Sowell
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Parallel port probe failure in 5.2.1

2004-06-05 Thread d . main
Hello!  Could anyone help me understand and resolve why FreeBSD 5.2.1 encounters
a parallel port probe failure?  When I boot, I do not find the predicted /dev/ppc0
and /dev/lp0 devices.  If I boot in verbose mode, I the following is in 
/var/run/dmesg.boot: 

ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
ppc0:  failed to probe at port 0x378-0x37f irq 7 on isa0

When using the KDE InfoCenter, under IO-Ports I find that 0x377-0x3bf is reserved
by root0.  This range would overlap the port IO range listed on the ppc0
messages.  I don't know if these are related, but they seem to be to me.

I found the text "failed to probe" in /usr/src/sys/isa/isa_common.c, but the
source code didn't give me much to go on.  I'm afraid I don't know enough yet
about kernel modules and configuration to understand it.

I'm running FreeBSD 5.2.1 (installed from the CD) on a Dell Dimension 8100 with
256K.  Nothing too special except for a second Seagate 120GB drive (limited to 
120GB to avoid having to introduce potentially incompatible hardware), and a
combined USB2/Firewire card from Adaptec (which does probe successfully and 
appears to function correctly).

It would be great actually if someone could give me two answers (I know one
should not post two questions, but perhaps one can ask for two answers).  First,
what might be a quick fix to get my parallel port recognized?  Second, how does
one go about identifying and remedying port IO configuration conflicts?

This is my first question ever posted to freebsd-questions. Thanks in advance
for your patience and assistance.

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


howto setup zope.sh (zope-2.7) ?

2004-06-05 Thread Peter Ulrich Kruppa
Hi!
I am trying to get zope-2.7 running.
So far I get it started manually by
# zopectl start
and can view the management screen in my browser.
Of course this should be done on boot-up via 
/local/etc/rc.d/zope.sh , but I can't work out howto.
As far, as I understand this script, all I have to do is to 
create a file /etc/rc.conf.local containing 2 variables
zope_enable= ...
zope_instance= ...

Could someone help me with this? Perhaps I am messing up the 
syntax somehow?

My instancehome dir is /usr/local/etc/zope .
Thanks,
Uli.
+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


routing question

2004-06-05 Thread doug
I am trying to configure a wireless router so I am redefining routes and IP
address of my system. After booting dhclient ep0 works fine. After messing
around with the wireless router I was just going back to my ethernet connection
so I did:

   ifconfig ep0 192.168.0.3 remove
   arp -da
   route flush
   dhclient ep0

This returned immediatly without assigning an IP or route so I just connected
manually using ifconfig and route. There must be something I did not clear out,
but I can not figure it out. Thanks for any ideas. This is on 4.10 if that makes
any difference.

_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Large window causes monitor to degauss/reset!!

2004-06-05 Thread Michal Pasternak
Jacob Rhoden [Sun, Jun 06, 2004 at 01:24:47AM +]:
> I have been using freebsd for quite some time now, I have come across
> a machine with a 19" viewmaster, whereby if you open a window
> bigger than about 500x500 pixels, the monitor resets and degausses
> every 8 seconds until you close the window. Has anyone had this
> happen to them?

Hardware error or X misconfigured. Try to lower resolution / refresh rate
and see if problem persists. Try another video card. If degausing occurs at
the lowest supported resolution and refresh rate, this is clearly hardware
issue. Examine, if degausing depends on the background color of the window
(try black, white, red, green, blue). 


pgpmjzqOpFHQZ.pgp
Description: PGP signature


Re: install from floppies will not resolve any ftp server

2004-06-05 Thread Peter Risdon
SWIT wrote:
I d/l the floppies and made them and get thru the whole install process but
can not resolve any ftp servers to finish.
I have tried several nics and I don't think thats the problem.
My setup is this.
to be freebsd computer hardwired to a switch. the switch is connected to the
lan port of a sonic wall. the wan port of the sonic wall is connected to my
wireless Access Point which flys thru the air to a neighbors house where i
have another wireless radio that rec the signal puts it thru a linksys
router and out the cable modem.
I can surf from the home network fine. been doing that for a year.
I just can't get the freebsd to resolve ftp to finish the install.
 

You probably need to use passive mode.
Peter.

In the network setup I put
host - commanche
domain - left blank
ip is dhcp (and yes it receives and ip
subnet is dhcp
dns servers are dhcp also (which my home network computers get and work just
fine).
gate way is dhcp (home network uses same one w/o any problem)
no extra config in the network setup.
sometimes it kicks back instantly that can't resolve and other times sits
there for long time.
I have tired manually putting in the info and no go either.
I have no errors in the sonic wall or linksys router about it.
I can ftp from any home network computer .
I am lost. any help greatly appreciated.
This email is sent from the same setup as the to be freebsd computer is
using.
THanks
Mark
___
[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: Large window causes monitor to degauss/reset!!

2004-06-05 Thread sigsegv
Jacob Rhoden wrote:
Hey,
I have been using freebsd for quite some time now, I have come across
a machine with a 19" viewmaster, whereby if you open a window
bigger than about 500x500 pixels, the monitor resets and degausses
every 8 seconds until you close the window. Has anyone had this
happen to them? And how did you fix it? (Freebsd 5.2.1, fairly current
XFree86 with fairly current KDE).
Thanks,
Jacob
hmm... may be it's something to do with your XF86Config, can you show us 
what you have there? Usually when you run "startx" it should print the 
path to XF86Config file it reads.

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


Re: X11 fonts

2004-06-05 Thread sigsegv
Patrick Useldinger wrote:
Hi all,
a newbie question: I have just installed X11 (Xfree86 4.3), KDE (3.2.2) 
and Firebird (0.8), and surfing works very well. Compared to my Windows 
machine however, I think that the fonts look less appealing to what I am 
used to.
So I need a pointer - is this due to
1) the video driver? the card is an ATI Radeon 7500, and I configured 
the driver 'radeon' which should be correct.
2) the X11 fonts? which one 'look best'?
3) KDE - how can I make it to use the nicer fonts?
4) Firebird?
Regards,
You may need to setup fonts to be anti-alised on your XFree86 
configuration, below is a small how to. If you still have ugly fonts, 
get back to us and we'll se what's wrong.

http://www.huckstep.uklinux.net/mle/fonts.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


install from floppies will not resolve any ftp server

2004-06-05 Thread SWIT
I d/l the floppies and made them and get thru the whole install process but
can not resolve any ftp servers to finish.
I have tried several nics and I don't think thats the problem.

My setup is this.
to be freebsd computer hardwired to a switch. the switch is connected to the
lan port of a sonic wall. the wan port of the sonic wall is connected to my
wireless Access Point which flys thru the air to a neighbors house where i
have another wireless radio that rec the signal puts it thru a linksys
router and out the cable modem.

I can surf from the home network fine. been doing that for a year.
I just can't get the freebsd to resolve ftp to finish the install.

In the network setup I put

host - commanche
domain - left blank
ip is dhcp (and yes it receives and ip
subnet is dhcp
dns servers are dhcp also (which my home network computers get and work just
fine).
gate way is dhcp (home network uses same one w/o any problem)

no extra config in the network setup.
sometimes it kicks back instantly that can't resolve and other times sits
there for long time.

I have tired manually putting in the info and no go either.
I have no errors in the sonic wall or linksys router about it.
I can ftp from any home network computer .

I am lost. any help greatly appreciated.
This email is sent from the same setup as the to be freebsd computer is
using.

THanks
Mark


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


Large window causes monitor to degauss/reset!!

2004-06-05 Thread Jacob Rhoden
Hey,

I have been using freebsd for quite some time now, I have come across
a machine with a 19" viewmaster, whereby if you open a window
bigger than about 500x500 pixels, the monitor resets and degausses
every 8 seconds until you close the window. Has anyone had this
happen to them? And how did you fix it? (Freebsd 5.2.1, fairly current
XFree86 with fairly current KDE).

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


Re: sending messages

2004-06-05 Thread Randy Pratt
On Sat, 5 Jun 2004 15:50:21 +0200
Michal Pasternak <[EMAIL PROTECTED]> wrote:

> arden [Sat, Jun 05, 2004 at 02:45:31PM +0100]:
> > reading the windows messaging thread with interest was wondering how you
> > would message a *nix box on the same network ?
> 
> man talk
> 
> Pity it's disabled by default in many today's unices, it was a great
> time using it to talk with various people on the net (and, sometimes
> exploiting bugs in talkd ;).

Yep, I agree.  Turning on ntalkd (/etc/inetd.conf) is one of the first
things I do on a new box.  I still use talk daily to keep in touch
with friends.  Often, we will use talk over an ssh connection but
this requires having an account on the box.  It'd be nice if there
were an encrypted version of ntalkd.

The thing I like about the unix talk is that it doesn't require any
3rd party servers like IRC, ICQ or whatever.  Its strictly box to
box.  I've even went so far as to hack talkd/announce.c to play a
wav file when a talk request is received.

The port net/ytalk is similar and allows more than 2 parties to
talk.  It also needs the ntalkd turned on.

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


X11 fonts

2004-06-05 Thread Patrick Useldinger
Hi all,
a newbie question: I have just installed X11 (Xfree86 4.3), KDE (3.2.2) 
and Firebird (0.8), and surfing works very well. Compared to my Windows 
machine however, I think that the fonts look less appealing to what I am 
used to.
So I need a pointer - is this due to
1) the video driver? the card is an ATI Radeon 7500, and I configured 
the driver 'radeon' which should be correct.
2) the X11 fonts? which one 'look best'?
3) KDE - how can I make it to use the nicer fonts?
4) Firebird?
Regards,
-PU

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


Need to build, but not install/use system perl in 4.10

2004-06-05 Thread Jed Clear
I recently added the perl 5.8 port to my build server.  When building
FreeBSD 4.10, it did not build the system perl as expected.  

However, I have a smaller machine that mounts /usr/src and /usr/obj off
of the build server, which croaked in installworld when it couldn't find
the system perl library.  There's really no reason for me to have the
perl port on that machine.

So my question is, is there some combination of the PERL variables in
/etc/make.conf on the build server that would cause the system perl to
be built by buildworld, but not installed by installworld (i.e. continue
to use the port perl)?  It looks like omitting NOPERL will cause system
perl to be built, but will it also try to install it?  I guess I can
also live with the server installing system perl with installworld, as
long as the server defaults to using port perl.

I'm assuming that omitting the PERL variables in make.conf on the client
machine will do the right thing during installworld, once the server has
built the system perl.

Thanks,

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


Mirror Server Netherlands

2004-06-05 Thread Stefan Home Sharper
Hello
I Have a freebsd web mirror server
http://freebsd.mirror.sharper.nl
Wil jou to addet of the list *Select a server near you: ?
*The Server state bij
Netherlands
*(Roosendaal)
*
Kind Regards,
Met vriendelijke groet,
Stefan Bottelier
Sharper.nl
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ipnat and ipfw dummynet

2004-06-05 Thread Micheal Patterson


- Original Message - 
From: "Nelis Lamprecht" <[EMAIL PROTECTED]>
To: "FreeBSD Questions Mail List" <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 7:43 AM
Subject: ipnat and ipfw dummynet


Sorry, I failed to point out my current network configuration.

I have 2 internal networks which use NAT, one class C ( 192.96.48.0/24 )
and one rfc1918 ( 192.168.1.0/24 ).

The internal interface(bge1) is configured with the class c network and
I have added a route to bge1 for 192.168.1.0/24. All traffic on the
192.96.48.0/24 network internally is routed via the gateway to get to
the 192.168.1.0 network.

Hope that makes sense.

Nelis

On Fri, 2004-06-04 at 14:43, Nelis Lamprecht wrote:
> Hi,
>
> I'm interested to hear how people utilise dummynet in a NAT environment.
> How does one create a pipe for a NAT network without effecting the
> actual LAN speed ? For example, on the gateway:
>
> $fwcmd add pipe 1 ip from 192.168.1.0/24 to any out
> $fwcmd add pipe 2 ip from any to 192.168.1.0/24 in
> $fwcmd pipe 1 config bw 128Kbit/s
> $fwcmd pipe 2 config bw 128Kbit/s
>
> The above example would be fine if 192.168.1.0/24 were only talking to
> the internet but unfortunately it also effects the machines from talking
> to each other internally. The only interface you can specify is the
> internal interface(bge1) because this is the only time that ipfw will
> see the addresses before they are passed to NAT(ipnat) and will not be
> seen on the external interface(bge0). So basically the above example
> should be written as:
>
> $fwcmd add pipe 1 ip from 192.168.1.0/24 to any out via bge1
> $fwcmd add pipe 2 ip from any to 192.168.1.0/24 in via bge1
>
> This however will also give 192.168.1.0/24 an internal LAN speed of
> 128Kbit/s which is to say quite humorous ;-)
>
> What is the solution to this ? ..I'm obviously missing something. The
> internal interface is not firewalled.
>
>
> Many thanks,
-- 
Nelis Lamprecht



Nelis, this may help. Remember, that ipfw goes through the rulesets until it
finds a match and will stop at that point. So, to provide rate limiting as
well as allowing traffic on the lan to go all out, place allow rules before
the pipes to specifically allow traffic between your lan ip ranges
unhindered.

#Rate Limit Settings
$fwcmd pipe 1 config bw 128Kbit/s
$fwcmd pipe 2 config bw 128Kbit/s


#Unrestricted LAN Access Allows
$fwcmd add allow ip from 192.168.1.0/24 to 192.96.48.0/24
$fwcmd add allow ip from 192.96.48.0/24 to 192.168.0/24

#Rate Limit Rules
$fwcmd add pipe 1 ip from 192.168.1.0/24 to any out
$fwcmd add pipe 2 ip from any to 192.168.1.0/24 in


Hope it helps. It's been awhile since I've done any rate limiting, but as I
recall, that should do the trick.

--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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


Re: Audigy 2 Surround Sound

2004-06-05 Thread Remko Lodder
Hi Mag,
Mag wrote:
Just got your code for freebSD 5.x and compiled it and everything went 
well.Got the code from, http://chibis.persons.gfk.ru/audigy/  Is it 
possible to get surround sound support on this driver?

Thanks
As for i know , only the OSS drivers support that, but they are 
commercial. I don't actually know if someone tries to develop that in 
the FreeBSD version.

Hope this helps.
p.s the website: http://www.opensound.com/
--
Kind regards,
Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the 
hackerscene
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sending messages

2004-06-05 Thread Michal Pasternak
arden [Sat, Jun 05, 2004 at 02:45:31PM +0100]:
> reading the windows messaging thread with interest was wondering how you
> would message a *nix box on the same network ?

man talk

Pity it's disabled by default in many today's unices, it was a great
time using it to talk with various people on the net (and, sometimes
exploiting bugs in talkd ;).


pgpGoYLSvFt6E.pgp
Description: PGP signature


sending messages

2004-06-05 Thread arden
hi all 

reading the windows messaging thread with interest was wondering how you
would message a *nix box on the same network ?

arden 

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


Re: Sending a message to another computer on the network

2004-06-05 Thread Hasse
On Saturday 05 June 2004 15.22, Warren Block wrote:
> On Sat, 5 Jun 2004, Hasse wrote:
> > I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
> > and would like to send a message to Win-box ( on the same network, but
> > not my machine ) that's filling up my  httpd-access.log with junk.
> > The only thing I know is his IP-adress.
> > Is this possible ? If it is, how.
> > Or do I have to block his IP ?
> >
> >From the log you posted, it looks like it's trying to attack your web
>
> server with a buffer overflow.  Probably this is a compromised Windows
> machine, and the owner isn't aware it's doing this, but either way, you
> should contact your ISP.  Telia doesn't seem to be very different from
> most larger ISPs, and they may not react quickly or at all.  You could
> also try using smbclient (part of the Samba port) to send a Windows
> popup message to that machine.
>
> -Warren Block * Rapid City, South Dakota USA
> ___

Yes, I think I'll give it a try with smbclient.
If I get no response, I guess I have to report him. For what good that will do
Thx everybody for your efforts.
/ Hasse
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sending a message to another computer on the network

2004-06-05 Thread Hasse
On Saturday 05 June 2004 15.20, Yasir Malik wrote:
> > -
> > httpd-access.log :
> > 
> > 217.209.211.183 - - [05/Jun/2004:14:11:28 +0200] "SEARCH /\x90\x02\xb1\
> > 
> > and the last line ending with :
> > \x90\x90\x90\x90" 414 391 "-" "-"
> > 
>
> He's obviously trying to hack into your system using some escape character
> sequence.  Report him.
> Yasir
> ___
Hi.
Do you think he is aware of this ?
I mean doing it deliberatly. I think he got one of them worms.
Look at the frequency :
[Sat Jun 05 12:10:18 2004] [error] [client 217.209.211.183] request failed: 
URI too long (longer than 8190)
[Sat Jun 05 12:11:54 2004]
[Sat Jun 05 12:12:56 2004]
[Sat Jun 05 12:13:14 2004]
[Sat Jun 05 12:13:45 2004]
[Sat Jun 05 12:15:27 2004]
[Sat Jun 05 12:15:45 2004]
[Sat Jun 05 12:17:23 2004]
[Sat Jun 05 12:18:25 2004]
[Sat Jun 05 12:18:27 2004]
[Sat Jun 05 12:18:51 2004]
[Sat Jun 05 12:19:04 2004]
[Sat Jun 05 12:20:25 2004]
[Sat Jun 05 12:21:10 2004]
[Sat Jun 05 12:22:13 2004]
[Sat Jun 05 12:24:14 2004]
[Sat Jun 05 12:25:35 2004]
[Sat Jun 05 12:27:30 2004]
[Sat Jun 05 12:27:48 2004]
[Sat Jun 05 12:28:45 2004]
[Sat Jun 05 12:31:16 2004]
[Sat Jun 05 12:37:25 2004]
[Sat Jun 05 12:40:59 2004]
[Sat Jun 05 12:48:49 2004]
[Sat Jun 05 12:55:43 2004]
[Sat Jun 05 12:59:14 2004]
[Sat Jun 05 13:04:25 2004]
[Sat Jun 05 13:08:03 2004]
[Sat Jun 05 13:09:21 2004]
[Sat Jun 05 13:11:20 2004] 
[Sat Jun 05 13:14:24 2004]
[Sat Jun 05 13:21:14 2004]
[Sat Jun 05 13:23:47 2004] 
[Sat Jun 05 13:24:06 2004]
[Sat Jun 05 13:27:27 2004]
[Sat Jun 05 13:36:04 2004]
[Sat Jun 05 13:38:15 2004] 
[Sat Jun 05 13:41:58 2004] 
[Sat Jun 05 13:57:12 2004]

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


Re: Sending a message to another computer on the network

2004-06-05 Thread Hasse
On Saturday 05 June 2004 14.31, Michal Pasternak wrote:
> Hasse [Sat, Jun 05, 2004 at 02:25:49PM +0200]:
> > I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
> > and would like to send a message to Win-box ( on the same network, but
> > not my machine ) that's filling up my  httpd-access.log with junk.
> > The only thing I know is his IP-adress.
>
> What?
>
> Lookup his/hers IP via whoisdb (www.ripe.net) and report abuse to proper
> Internet Service Provider.
>
> > Is this possible ? If it is, how.
>
> smbclient -M
>
> > Or do I have to block his IP ?
>
> That's also an option.
> ___
Thx for your replay.
Well, I've allready tried whois, host -a, dig, and so on, but it's not giving 
me any more then telling me who's the ISP, and I allready know that.
Same as mine :-)  
The problem with blocing his is IP is that it's dynamic, next time he reboot, 
he'll be back with another one. So then I have to block the hole range, and 
that's rather drastic.

What I was looking for, was a way to notify the poor guy so he could take some 
proper action to clean his machine. He is probably not aware of the problem.

I'll have a look at smbclient

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


Re: Sending a message to another computer on the network

2004-06-05 Thread Warren Block
On Sat, 5 Jun 2004, Hasse wrote:
I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
and would like to send a message to Win-box ( on the same network, but not my
machine ) that's filling up my  httpd-access.log with junk.
The only thing I know is his IP-adress.
Is this possible ? If it is, how.
Or do I have to block his IP ?

From the log you posted, it looks like it's trying to attack your web 
server with a buffer overflow.  Probably this is a compromised Windows 
machine, and the owner isn't aware it's doing this, but either way, you 
should contact your ISP.  Telia doesn't seem to be very different from 
most larger ISPs, and they may not react quickly or at all.  You could 
also try using smbclient (part of the Samba port) to send a Windows 
popup message to that machine.

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


Re: Sending a message to another computer on the network

2004-06-05 Thread Yasir Malik
> -
> httpd-access.log :
> 
> 217.209.211.183 - - [05/Jun/2004:14:11:28 +0200] "SEARCH /\x90\x02\xb1\
> 
> and the last line ending with :
> \x90\x90\x90\x90" 414 391 "-" "-"
> 

He's obviously trying to hack into your system using some escape character
sequence.  Report him.
Yasir
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD mailing lists

2004-06-05 Thread Ben Paley
On Friday 21 May 2004 12:41, Mike Jeays wrote:
> Hi!
>
> I have received no messages at all from freebsd-questions, or one or two
> of the other FreeBSD mailing lists, for about 2 days.  Do you know if
> there is a problem at their end, or has perhaps my ISP decided they are
> all spam?

Sorry, I've been away, so I'm not sure. I expect you got this sorted by now.

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


Audigy 2 Surround Sound

2004-06-05 Thread Mag
Just got your code for freebSD 5.x and compiled it and everything went 
well.Got the code from, http://chibis.persons.gfk.ru/audigy/  Is it 
possible to get surround sound support on this driver?

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


Re: Sending a message to another computer on the network

2004-06-05 Thread Michal Pasternak
Hasse [Sat, Jun 05, 2004 at 02:25:49PM +0200]:
> I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
> and would like to send a message to Win-box ( on the same network, but not my 
> machine ) that's filling up my  httpd-access.log with junk.
> The only thing I know is his IP-adress.

What?

Lookup his/hers IP via whoisdb (www.ripe.net) and report abuse to proper
Internet Service Provider.

> Is this possible ? If it is, how.

smbclient -M

> Or do I have to block his IP ?

That's also an option.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: where to use the xdm host chooser?

2004-06-05 Thread Rob
Zhang Weiwu wrote:
Rob wrote:
Zhang Weiwu wrote:
Hello. Now I have my /usr/X11R6/lib/X11/xdm/Xaccess contain (only) this:
*   CHOOSER BROADCAST
according to xdm(1) this will enable XDMCP host chooser upon user 
login. Now I reboot, xdm login box pops up, everything like it was 
before.

I think it means any host can connect and asks in a broadcast.
If, on your network, a host does
  X -broadcast
your machine will/may appear in the that machine's chooser list.

I don't really get you, I'm a xdm newbie;)
I am not sure of the inner machenism but in my local network 
(192.168.0.0/24) everyone in the office use gdm and turned on XDMCP, so 
you pick up a box with gdm login screen, select 'run host chooser' from 
'system' menu, you will see all the computers in the office listed there 
and I can pick up one to login. I believe this means they are all 
broadcasting.

I don't know if it also allows an indirect request:
X -indirect 
Oh, and take also a note of this in xdm-config file:
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
DisplayManager.requestPort: 0

What does this mean? I am running a slow box I don't need myself to be 
listed in the host chooser of other boxes, but I need to be able to 
login to other boxes.
I'm not an expert either, but I have some memories when I was fiddling
with X and xdm configuration. So take my advice was a pinch of salt.
The files /usr/X11R6/lib/X11/xdm/Xaccess and /usr/X11R6/lib/X11/xdm/xdm-config
are only for regulating access from other hosts to your PC. Apparently that's
not what you're interested in. For security reasons, it's then better to block
that access, since X is a rather insecure protocol.
So, if other computers are configured such that they answer broadcast requests,
or direct access request, you can simply type that from your PC.
You requesting a broadcast, should be something like:
X -broadcast
If you want to get a chooser from a specific host, then type:
X -indirect 
If you want to get directly to xdm on a specific host, then do:
X -query 
At least that's what I remember. Do "X -help" for all flags, such
as forcing a display 3 and/or virtual terminal 9 ("X :3 vt9").
However, once again, I may be wrong here in the details. Hopefully a more
knowledgeable person will give comments too.
Regards,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sending a message to another computer on the network

2004-06-05 Thread Hasse
Hi all.
I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
and would like to send a message to Win-box ( on the same network, but not my 
machine ) that's filling up my  httpd-access.log with junk.
The only thing I know is his IP-adress.
Is this possible ? If it is, how.
Or do I have to block his IP ?
The junk I receive in my log looks like this :
-
httpd-error.log :
 [Sat Jun 05 14:13:43 2004] [error] [client 217.209.211.183] request 
failed: URI too long (longer than 8190)

-
httpd-access.log :

217.209.211.183 - - [05/Jun/2004:14:11:28 +0200] "SEARCH /\x90\x02\xb1\

and the last line ending with :
\x90\x90\x90\x90" 414 391 "-" "-"

Appreciate any help on this

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


SATA RAID support on VIA VT8237?

2004-06-05 Thread Gabriel Ambuehl
Hi,
I'm wondering if SATA RAID 1 is suppored on the VT8237. The hardware
notes for 4.10 say the chipset it supported but nothing about the RAID
capabilities. So now I'm wondering if I need to stick in a Highpoint
expansion card (cause those sure as hell do work) or if I can use the
onboard controller...

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


Re: Problem about ports command

2004-06-05 Thread Andy Smith
On Sat, Jun 05, 2004 at 09:20:34AM +0800, Stephen Liu wrote:
> On running
> # pkg_delete -f portupgrade*
> pkg_delete: No match.

I am thinking perhaps that the shell expanded your * there.  Try:

 # pkg_delete -f 'portupgrade*'

Also, have a read of (and feel free to contribute to)
http://freebsdwiki.org/Port_management

> Is there a device locking all ports commands.  Kindly
> advise how to proceed.  TIA

No.. I think it would be best if you picked one goal (e.g. to install
a single specific port) and tried that, then if you encounter
errors, tell us about them and we can help.

-- 
http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B


pgp53Ya54BnQZ.pgp
Description: PGP signature


Re: How to make a screenshot?

2004-06-05 Thread Randy Pratt
On Sat, 5 Jun 2004 17:22:50 +0800 (CST)
Stephen Liu <[EMAIL PROTECTED]> wrote:

> Hi Randy,
> 
> FreeBSD 5.2
> 
> >vidcontrol -p < /dev/ttyv0 > shot.scr
> 
> with the above command a file 'shot.scr' was created. 
>  But I have no program to view it.
> 
> # pkg_info | grep scr2txt
> # pkg_info | grep scr2png
> # pkg_info | grep -w xv
> all no printout
> 
> # cd /usr/ports
> # make search name=scr2txt
> Port:   scr2txt-1.1
> Path:   /usr/ports/textproc/scr2txt
> Info:   Converts the output of "vidcontrol -p" to text

The scr2txt is used to convert the console screenshot (.scr) to
plain text:

scr2txt < shot.scr > shot.txt

This works well for .scr that are text and can be viewed with any
text editor.

> # make search name=scr2png
> Port:   scr2png-1.1_4
> Path:   /usr/ports/graphics/scr2png
> Info:   Converts the output of "vidcontrol -p" to PNG

The scr2png is used to convert the console screenshot (.scr) to
a .png image:

scr2png < shot.scr > shot-1.png

The image (.png) can then be viewed with any image viewer.

> # make search name=xv | grep -w xv
> Port:   xv-3.10a_3
> Path:   /usr/ports/graphics/xv
> 
> Kindly advise Whether I have to install either of the
> above program to read shot.scr?

Yes, the scr2png will probably suit your needs best if you want to
make screenshots of the console.

> >  The following command will dump contents of the
> > fourth virtual
> >  terminal to the standard output in the human
> > readable format:
> > 
> >vidcontrol -P < /dev/ttyv3
> 
> On KDE desktop Konsole window
> 
> # vidcontrol -P < /dev/ttyv3
> no graphic image displayed
> (tried both -P and -p)
> 
> Besides I have to 'su' to use 'vidcontrol'

Vidcontrol is used for taking console screenshots.  It will not
display them.  After processing with scr2png, then an image viewer
is needed to view them.

> B.R.
> Stephen Liu
> 
> 
> > The .scr images can be manipulated with
> > textproc/scr2txt and
> > graphics/scr2png.  The man pages for both describe
> > their usage.
> > 
> > These are the tools that are used to produce the
> > screenshots of
> > the console and Sysinstall in the Handbook.
> > 
> > For screenshots in XFree86, I find that graphics/xv
> > does the job
> > quite nicely without a lot of fuss.

Vidcontrol was suggested for screenshots of the console.  I'm not
aware of any method to use it to take screenshots in XFree86.  As
you can tell by this thread, there are plenty of options for
making screenshots while in X.  

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


Re: dump backup question

2004-06-05 Thread Nagilum
Hi,
I assume you could script something using expect, but maybe you should 
consider using a real backup program like for example bacula.
Kind regards,
Alex.

[EMAIL PROTECTED] wrote:
  Hi,
 I'm running FreeBSD 5.1 and I'm trying to backup= a filesystem
  which is quite large with many files. I'm using dump, and= using a
  remote tape. I'm also using cron to make a daily backup with d= ump
  level 9, and a weekly dump with level 0. The problem I have is that   during the 
dump process there is a need for interaction, and
  providing= lots of "yes" when I get prompted if I want to continue
  with the new v= olume. How can I avoid this ? I want the backup to be
  automatic, with n= o need for interaction.

  Thanks,

  Matias
  __   Todavía no tenés tu Ciudad 
Internet Mail? Obtenelo ahora! -   [1]http://webmai= l.ciudad.com.ar
  Descargá Gratis el nuevo Internet Explorer= 6.0, el mejor software
  para actualizar tu PC. [2]Hacé click acá.
References
  1. 3D'http://webmail.ciudad.com.ar'/
  2. 3D'http://www.ci=/
___
[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: where to use the xdm host chooser?

2004-06-05 Thread Zhang Weiwu
Rob wrote:
Zhang Weiwu wrote:
Hello. Now I have my /usr/X11R6/lib/X11/xdm/Xaccess contain (only) this:
*   CHOOSER BROADCAST
according to xdm(1) this will enable XDMCP host chooser upon user 
login. Now I reboot, xdm login box pops up, everything like it was 
before.

I think it means any host can connect and asks in a broadcast.
If, on your network, a host does
  X -broadcast
your machine will/may appear in the that machine's chooser list.
I don't really get you, I'm a xdm newbie;)
I am not sure of the inner machenism but in my local network 
(192.168.0.0/24) everyone in the office use gdm and turned on XDMCP, so 
you pick up a box with gdm login screen, select 'run host chooser' from 
'system' menu, you will see all the computers in the office listed there 
and I can pick up one to login. I believe this means they are all 
broadcasting.

I don't know if it also allows an indirect request:
X -indirect 
Oh, and take also a note of this in xdm-config file:
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
DisplayManager.requestPort: 0
What does this mean? I am running a slow box I don't need myself to be 
listed in the host chooser of other boxes, but I need to be able to 
login to other boxes.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to make a screenshot?

2004-06-05 Thread Stephen Liu
Hi Randy,

FreeBSD 5.2

>vidcontrol -p < /dev/ttyv0 > shot.scr

with the above command a file 'shot.scr' was created. 
 But I have no program to view it.

# pkg_info | grep scr2txt
# pkg_info | grep scr2png
# pkg_info | grep -w xv
all no printout

# cd /usr/ports
# make search name=scr2txt
Port:   scr2txt-1.1
Path:   /usr/ports/textproc/scr2txt
Info:   Converts the output of "vidcontrol -p" to text

# make search name=scr2png
Port:   scr2png-1.1_4
Path:   /usr/ports/graphics/scr2png
Info:   Converts the output of "vidcontrol -p" to PNG

# make search name=xv | grep -w xv
Port:   xv-3.10a_3
Path:   /usr/ports/graphics/xv

Kindly advise Whether I have to install either of the
above program to read shot.scr?

>  The following command will dump contents of the
> fourth virtual
>  terminal to the standard output in the human
> readable format:
> 
>vidcontrol -P < /dev/ttyv3

On KDE desktop Konsole window

# vidcontrol -P < /dev/ttyv3
no graphic image displayed
(tried both -P and -p)

Besides I have to 'su' to use 'vidcontrol'

B.R.
Stephen Liu


> The .scr images can be manipulated with
> textproc/scr2txt and
> graphics/scr2png.  The man pages for both describe
> their usage.
> 
> These are the tools that are used to produce the
> screenshots of
> the console and Sysinstall in the Handbook.
> 
> For screenshots in XFree86, I find that graphics/xv
> does the job
> quite nicely without a lot of fuss.
> 
> Best regards,
> 
> Randy

___
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: where to use the xdm host chooser?

2004-06-05 Thread Rob
Zhang Weiwu wrote:
Hello. Now I have my /usr/X11R6/lib/X11/xdm/Xaccess contain (only) this:
*   CHOOSER BROADCAST
according to xdm(1) this will enable XDMCP host chooser upon user login. 
Now I reboot, xdm login box pops up, everything like it was before.
I think it means any host can connect and asks in a broadcast.
If, on your network, a host does
  X -broadcast
your machine will/may appear in the that machine's chooser list.
I don't know if it also allows an indirect request:
X -indirect 
Oh, and take also a note of this in xdm-config file:
! SECURITY: do not listen for XDMCP or Chooser requests
! Comment out this line if you want to manage X terminals with xdm
DisplayManager.requestPort: 0

I thought there will be a bottom to click to launch the chooser (like 
gdm -> system -> Run XDMCP host chooser), or there will be a list of 
clickable hosts to send query to. Any hints?
I don't know anything about gdm. Never used it.
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems mounting my cdrom drive

2004-06-05 Thread Victor Gregorio
An audio CD?  Try cdplay (/usr/ports/audio).
# cdplay -d /dev/acd0

I'm not sure you can mount an audio CD since it has no filesystem.  You
need an application that can read the data off the device.

Interesting links...
http://www.unixguide.net/freebsd/faq/09.20.shtml
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html
http://www.unixguide.net/freebsd/faq/09.20.shtml

-Victor

On Sat, 2004-06-05 at 00:17, Bruce Hunter wrote:
> That didn't work for me.
> I did a man cdcontrol and tried
> #cdcontrol
> #cdcontrol>play
> and it started to play my cd. But won't mount the sucker?? i was trying
> to mount it to play with xmms. Hmm...
> 
> 
> THIS IS WHAT I DID
> -
> [EMAIL PROTECTED] cdcontrol
> Compact Disc Control utility, version 2.0
> Type `?' for command list
> 
> cdcontrol> info
> Starting track = 1, ending track = 12, TOC size = 106 bytes
> track start  duration   block  length   type
> -
> 1   0:02.00   4:23.20   0   19745  audio
> 2   4:25.20   3:26.02   19745   15452  audio
> 3   7:51.22   4:50.18   35197   21768  audio
> 4  12:41.40   3:59.57   56965   17982  audio
> 5  16:41.22   3:40.53   74947   16553  audio
> 6  20:22.00   4:50.12   91500   21762  audio
> 7  25:12.12   2:03.00  1132629225  audio
> 8  27:15.12   3:29.38  122487   15713  audio
> 9  30:44.50   5:06.00  138200   22950  audio
>10  35:50.50   5:03.62  161150   22787  audio
>11  40:54.37   5:47.50  183937   26075  audio
>12  46:42.12   9:03.25  210012   40750  audio
>   170  55:45.37 -  250762   -  -
> cdcontrol> quit
> [EMAIL PROTECTED] mount -v -s 19745 /dev/acd0 /cdrom/
> mount: illegal option -- s
> usage: mount [-dfpruvw] [-o options] [-t ufs | external_type] special
> node
>mount [-adfpruvw] [ -F fstab] [-t ufs | external_type]
>mount [-dfpruvw] special | node
> [EMAIL PROTECTED] mount_cd9660 -v -s 19745 /dev/acd0 /cdrom/
> 
> -
> 
> -Bruce-
> 
> On Sat, 2004-06-05 at 03:08, Victor Gregorio wrote:
> > This has happened to me.  The problem was with the file system
> > startsector.  By default, mount_cd9660 uses a default of 15112. I had to
> > use mount_cd9660 along with -s startsector.
> > 
> > Here is how I used cdcontrol to get the right startsector for a
> > particular track...
> > 
> > # mount_cd9660 -v /dev/acd0 /mnt
> > using starting sector 15112
> > mount_cd9660: /dev/acd0: Invalid argument
> > # cdcontrol
> > cdcontrol> info
> > Starting track = 1, ending track = 3, TOC size = 34 bytes
> > track start  duration   block  length   type
> > -
> > 1   0:02.00   3:15.35   0   14660   data
> > 2   3:17.35   0:06.02   14660 452   data
> > 3   3:23.37  11:02.37   15112   49687   data
> >   170  14:25.74 -   64799   -  -
> > 
> > If I changed the startsector to 0, I saw the root FS and some data but
> > no folders.  I had to use -s 14660.  
> > 
> > So the solution for me was:
> > root:/# mount_cd9660 -v -s 14660 /dev/acd0 /mnt
> > 
> > Hope this helps.
> > 
> > -Victor
> > 
> > On Fri, 2004-06-04 at 22:44, Bruce Hunter wrote:
> > > I am having problems mounting my cdrom drive.
> > > 
> > > i have also run the command 
> > > mount_cd9660, and this is the result
> > > 
> > > [EMAIL PROTECTED] mount_cd9660 /dev/acd0 /cdrom/
> > > mount_cd9660: /dev/acd0: Invalid argument
> > > 
> > > this is with the mount command
> > > 
> > > [EMAIL PROTECTED] mount -v -t cd9660 /dev/acd0 /cdrom/
> > > cd9660: /dev/acd0: Invalid argument
> > > 
> > > Thanks guys,
> > > Bruce
> > > 
> > > ___
> > > [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]"
> 

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


termcap vs terminfo

2004-06-05 Thread sigsegv
I've noticed that the base system does not have terminfo, but instead 
comes with termcap. Apparently BSD always had termcap and System V had 
terminfo. I don't want to start a religious war as to which one is 
better, but only want to ask if anyone has experienced problems when 
porting ncurses applications from BSD to System V and vice versa, and 
what could be done to minimise such problems.

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


vi, threading, EAGAIN, nonblocking (was: Error: input: Resource temporarily unavailable)

2004-06-05 Thread Mark Terribile

[Sorry if this has been answered; I'm catching up on freebsd-questions
 and I haven't seen it in the next seven or eight digests.]

Tim Gustafson writes:

>I am getting the following error in "vi" pretty consistently:

>Error: input: Resource temporarily unavailable

>Usually I get this at every attempt I make to run vi.

Here's the scenario I found for this:

A threaded program (before 5.x and the new threading system) will turn
on Nonblocking on ALL the program's file descriptors, including stdin,
stdout, and stderr.  This setting is not on the process but on the open,
which is shared between processes (and thus, between various programs
that run at a given terminal, including the shell).  An unsophisticated,
innocent program will try to do a read(2) on the terminal, expecting to
block waiting for input.  Instead, it will receive an EAGAIN, which
basically means ``use poll(), select(), or kevent() to wait until the
input is _really_ there.''  So now vi/nvi has an input terminal that
doesn't behave like a terminal is supposed to behave; it's getting an
EAGAIN, and it does the safest thing it knows: it reports the problem
and goes away.

I use this little program to check for Nonblocking and restore the
normal (Blocking) state on the tty:

#include 
#include 
#include 
#include 


bool checkfd( int fd );

int
main()
{
return checkfd( 0 )
&& checkfd( 1 )
&& checkfd( 2 ) ? 0 : 1;
}


bool
checkfd( int fd )
{
int flags = fcntl( fd, F_GETFL, 0 );
if( flags == -1 )
{
cerr << "Fd " << fd << ": " << strerror( errno ) << endl ;
return false;
}

cout << fd << ( ( flags & O_NONBLOCK ) ? " nonblocking" : " blocking" )
<< endl ;
if( ! ( flags & O_NONBLOCK ) )
cerr << "blocking" << endl ;
else
{
cerr << "nonblocking" << endl ;
if( fcntl( fd, F_SETFL, flags & ~O_NONBLOCK ) == -1 )
{
cerr << "Couldn't set O_NONBLOCK: " << errno
<< " " << strerror( errno ) << endl ;
return false;
}
}

return true;
}

Hope this helps.

Mark Terribile





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems mounting my cdrom drive

2004-06-05 Thread Sergey Zaharchenko
On Sat, Jun 05, 2004 at 03:17:41AM -0400,
 Bruce Hunter probably wrote:
> That didn't work for me.
> I did a man cdcontrol and tried
> #cdcontrol
> #cdcontrol>play
> and it started to play my cd.

Ok. So it's an AUDIO CD. You can't mount an audio CD. It has no
filesystem. If you want, you may grab it. A search in the ports tree
will surely come up with some alternatives.

-- 
DoubleF
"I'd love to go out with you, but I'm having all my plants neutered."


pgpWFh2sfV3oO.pgp
Description: PGP signature


Re: Problems mounting my cdrom drive

2004-06-05 Thread sigsegv
Bruce Hunter wrote:
I am having problems mounting my cdrom drive.
i have also run the command 
mount_cd9660, and this is the result

[EMAIL PROTECTED] mount_cd9660 /dev/acd0 /cdrom/
mount_cd9660: /dev/acd0: Invalid argument
this is with the mount command
[EMAIL PROTECTED] mount -v -t cd9660 /dev/acd0 /cdrom/
cd9660: /dev/acd0: Invalid argument
Thanks guys,
Bruce
Tell me if I'm wrong, but if it's an audio CD then I think you can't 
mount it, instead you use audio programs like xmms to access the CD 
directly. Have a look at 
http://www.onlamp.com/pub/a/bsd/2002/09/19/FreeBSD_Basics.html for an 
overview on how to play audio CDs with xmms.

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


Re: Problems mounting my cdrom drive

2004-06-05 Thread Bruce Hunter
That didn't work for me.
I did a man cdcontrol and tried
#cdcontrol
#cdcontrol>play
and it started to play my cd. But won't mount the sucker?? i was trying
to mount it to play with xmms. Hmm...


THIS IS WHAT I DID
-
[EMAIL PROTECTED] cdcontrol
Compact Disc Control utility, version 2.0
Type `?' for command list

cdcontrol> info
Starting track = 1, ending track = 12, TOC size = 106 bytes
track start  duration   block  length   type
-
1   0:02.00   4:23.20   0   19745  audio
2   4:25.20   3:26.02   19745   15452  audio
3   7:51.22   4:50.18   35197   21768  audio
4  12:41.40   3:59.57   56965   17982  audio
5  16:41.22   3:40.53   74947   16553  audio
6  20:22.00   4:50.12   91500   21762  audio
7  25:12.12   2:03.00  1132629225  audio
8  27:15.12   3:29.38  122487   15713  audio
9  30:44.50   5:06.00  138200   22950  audio
   10  35:50.50   5:03.62  161150   22787  audio
   11  40:54.37   5:47.50  183937   26075  audio
   12  46:42.12   9:03.25  210012   40750  audio
  170  55:45.37 -  250762   -  -
cdcontrol> quit
[EMAIL PROTECTED] mount -v -s 19745 /dev/acd0 /cdrom/
mount: illegal option -- s
usage: mount [-dfpruvw] [-o options] [-t ufs | external_type] special
node
   mount [-adfpruvw] [ -F fstab] [-t ufs | external_type]
   mount [-dfpruvw] special | node
[EMAIL PROTECTED] mount_cd9660 -v -s 19745 /dev/acd0 /cdrom/

-

-Bruce-

On Sat, 2004-06-05 at 03:08, Victor Gregorio wrote:
> This has happened to me.  The problem was with the file system
> startsector.  By default, mount_cd9660 uses a default of 15112. I had to
> use mount_cd9660 along with -s startsector.
> 
> Here is how I used cdcontrol to get the right startsector for a
> particular track...
> 
> # mount_cd9660 -v /dev/acd0 /mnt
> using starting sector 15112
> mount_cd9660: /dev/acd0: Invalid argument
> # cdcontrol
> cdcontrol> info
> Starting track = 1, ending track = 3, TOC size = 34 bytes
> track start  duration   block  length   type
> -
> 1   0:02.00   3:15.35   0   14660   data
> 2   3:17.35   0:06.02   14660 452   data
> 3   3:23.37  11:02.37   15112   49687   data
>   170  14:25.74 -   64799   -  -
> 
> If I changed the startsector to 0, I saw the root FS and some data but
> no folders.  I had to use -s 14660.  
> 
> So the solution for me was:
> root:/# mount_cd9660 -v -s 14660 /dev/acd0 /mnt
> 
> Hope this helps.
> 
> -Victor
> 
> On Fri, 2004-06-04 at 22:44, Bruce Hunter wrote:
> > I am having problems mounting my cdrom drive.
> > 
> > i have also run the command 
> > mount_cd9660, and this is the result
> > 
> > [EMAIL PROTECTED] mount_cd9660 /dev/acd0 /cdrom/
> > mount_cd9660: /dev/acd0: Invalid argument
> > 
> > this is with the mount command
> > 
> > [EMAIL PROTECTED] mount -v -t cd9660 /dev/acd0 /cdrom/
> > cd9660: /dev/acd0: Invalid argument
> > 
> > Thanks guys,
> > Bruce
> > 
> > ___
> > [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]"


How to make a screenshot?

2004-06-05 Thread epilogue

hello andrew,

> import /foopath/fooscreenshot.png
> man import  (handles various other formats too)

hope that this wasn't already suggested.


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


Re: Problems mounting my cdrom drive

2004-06-05 Thread Victor Gregorio
This has happened to me.  The problem was with the file system
startsector.  By default, mount_cd9660 uses a default of 15112. I had to
use mount_cd9660 along with -s startsector.

Here is how I used cdcontrol to get the right startsector for a
particular track...

# mount_cd9660 -v /dev/acd0 /mnt
using starting sector 15112
mount_cd9660: /dev/acd0: Invalid argument
# cdcontrol
cdcontrol> info
Starting track = 1, ending track = 3, TOC size = 34 bytes
track start  duration   block  length   type
-
1   0:02.00   3:15.35   0   14660   data
2   3:17.35   0:06.02   14660 452   data
3   3:23.37  11:02.37   15112   49687   data
  170  14:25.74 -   64799   -  -

If I changed the startsector to 0, I saw the root FS and some data but
no folders.  I had to use -s 14660.  

So the solution for me was:
root:/# mount_cd9660 -v -s 14660 /dev/acd0 /mnt

Hope this helps.

-Victor

On Fri, 2004-06-04 at 22:44, Bruce Hunter wrote:
> I am having problems mounting my cdrom drive.
> 
> i have also run the command 
> mount_cd9660, and this is the result
> 
> [EMAIL PROTECTED] mount_cd9660 /dev/acd0 /cdrom/
> mount_cd9660: /dev/acd0: Invalid argument
> 
> this is with the mount command
> 
> [EMAIL PROTECTED] mount -v -t cd9660 /dev/acd0 /cdrom/
> cd9660: /dev/acd0: Invalid argument
> 
> Thanks guys,
> Bruce
> 
> ___
> [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]"