Re: freebsd-update problems

2013-02-01 Thread Kevin Kinsey
On Fri, Feb 01, 2013 at 11:51:41AM -0800, Carl Johnson wrote:
 I ran freebsd-update to update my 8.1-RELEASE system to 8.3-RELEASE
 (freebsd-update -r 8.3-RELEASE upgrade).  It downloaded a bunch of
 files, asked me to edit some configuration files, showed me long lists
 of files that have been changed, added and removed, and then ended with
 no status or error indications.  The problem is that there appears to be
 absolutely NO change in my system that I can find.  I have checked /etc,
 /bin, and /lib with 'ls -lct | head', but there are no files that have
 changed recently.  The /var/db/freebsd-update directory has over 500MB
 of files it downloaded.
 
 Does anybody have any suggestions on what might have happened and what
 can be done?
 -- 
 Carl Johnson  ca...@peak.org
 

I'm not looking at the docs ATM, but IIRC you need to run an install
step now.  Check the docs ... they should tell you.

HTH,

Kevin Kinsey

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


Re: how to speed up port make??

2012-07-25 Thread Kevin Kinsey
On Wed, Jul 25, 2012 at 08:11:50PM +0100, Anton Shterenlikht wrote:
 
 is it possible to speed up port make ??
 i want to install openbox and xorg on a Pentium 4 and 2gb ram,
 compiling xorg takes about 2 hours
 
 2 hours only??
 
 Try lang/gcc46 or 47
 or science/paraview
 
 This will keep your electronic helper busy
 for a day.

It's also rather obvious that he never did this on a P1 at 90Mhz.

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: An idea I have!

2012-06-19 Thread Kevin Kinsey
On Mon, Jun 18, 2012 at 10:57:50PM -0400, Allen wrote:
 Hello all!
 
 So, I'm sitting here watching True Blood, and also checking my Email,
 and updating my Ports, and a thought hits me; Wouldn't it be a cool way
 to do FreeBSD Advocacy, by making a BSD based band???
 
 And the name would be so simple! The BSD Boys !! (Yea I know, BSD has
 been sued enough lol, but come on, you have to admit that Beastie as a
 mascot, the name was chosen and meant to be pronounced BSD because
 Beastie sort of sounds like that when said out loud.
 
 I could even try writing a song like BSD Licensed to Init or something
 else moderately funny ;) Ohh!!! License to Kill -9 ;)
 
 I know some of this is just silly and all, but in my experience, most of
 you have a very good sense of humor, and it's almost 11 PM right now,
 and I have to get up for work at 1:30 AM, so, between the no sleep
 thing, and me having to much to do right now, I needed a little break,
 and, well, I like humor, and making people laugh.
 
 Of course, this COULD actually be a neat idea if done right lol. 
 Anyway, I Hope someone gets a good laugh out of this. I'm generally
 actually pretty good with coming up with ideas, as I'm usually pretty
 creative for the most part, and, well, what can I say? I'm sitting here
 in one of my Christmas Presents (Oldschool FreeBSD Power to Serve Tee
 Shirt) and I thought Hey, I wonder if I can try this out.  Anyway, I
 can probably come up with way more than this, and if anyone likes it, or
 thinks it's funny, I'll try more :)
 
 If nothing else, I Hope it gives someone a laugh,
 
 -Allen

I did smile, for sure.  Do you suppose we could have
grog@ on bassoon?

Slightly more seriously, look WAY back in the archives 
(well, less than 15 years, more than 5) and see if you can
find W. Palfreman's take on the Beatles Let it Be.  BSD,
BSD, BSD, yeah, BSD ... there will be an answer...

I don't know if I could perform with such a group, but I'd
be interested in helping produce the studio work.  Unfortunately,
my audio box runs Windows.  Win98, AAMOF.

My synth is on its last legs, too.

Kevin Kinsey

PS  I found it for ya:  
http://lists.freebsd.org/pipermail/freebsd-chat/2004-March/002195.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: (no subject)

2012-01-12 Thread Kevin Kinsey
On Wed, Jan 11, 2012 at 04:43:03AM +0200, Rares Aioanei wrote:
 On 01/11/2012 02:25 AM, Glen Davenport wrote:
 My name is Glen Davenport.  I am trying to download freebsd but haven't a
 clue as to how the FTP function works.When I go to download I am given a
 directory listing.  Needless to say, I have never downloaded anything for
 UNIX/LIINUX.  Can you help?
 
 My e-mail address is gdd80...@gmail.com.  Thanks.
 
 Glen Davenport
 GDD
 
 Hi Glen,
 
 Assuming you have a 32-bit PC, here's the link to the disc image you need:
 http://ftp.dk.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.2/FreeBSD-8.2-RELEASE-i386-disc1.iso
  
 .
 Burn it on a CD as image, not directly, then boot from CD and, with the 
 help of the excellent
 Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/)  
 you will have
 a shiny BSD system installed. Feel free to ask if you get stuck, but 
 it's  [...]

*HIGHLY* ;-)

recommended you take
 a look at the Handbook first.
 
 Best,
 
 -- 
 Rares Aioanei


KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: difference between cvsup and csup?

2011-12-11 Thread Kevin Kinsey
On Mon, Dec 12, 2011 at 09:54:25AM +0800, Foo JH wrote:
 Hello guys,
 
 I notice FreeBSD is now using (and probably has been for a while) csup 
 instead of cvsup. The parameters looking identical - at least from the 
 no-gui perspective.
 
 Can anyone advise what the difference is, and perhaps educate me on how 
 this came to be?
 
csup is a re-write of cvsup that's written in C, so it can be included
in the base system without requiring installation of Modula3 (the
language cvsup was written in).  There may also be licensing diffs?
(I'm not sure about that off the top of my head).

Hope this helps.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: For My Edification

2011-05-02 Thread Kevin Kinsey

On 05/02/11 19:44, Polytropon wrote:

Although others have already given you excellent replies,
I would like to add a few comments.




I have a couple of suggestion that I've not yet seen
in the thread ... and kudos to you for a] asking, and
nicely done, and b] gathering your courage to give this
a try.



On Mon, 2 May 2011 18:47:11 -0400, Louis Marrerolouis_marr...@yahoo.com  
wrote:

Although I am familiar with basic computer operation, I've been trying to
understand a very experienced programmer friend that mixes Linux/Unix
terminology in his vocabulary under the assumption that everyone knows the
language.

You can learn about this terminology, and I can really
encourage you to do so, as it is a neccessary means to
access the professional parts of Linux and UNIX, and if
you want to be into IT more deeply, there is no way
around it.

With those basics, you'll be able to access and under-
stand _any_ UNIX(-like) operating system as they share
basics and have many things in common.



All I have here is a me too.



Being familiar only with general knowledge on the Windows XP that I use
daily, I've gone on the web to find out more information on some of the
terms used by this programmer, such as BSD,

Berkeley Software Distribution, from which FreeBSD is
derived. There are other BSDs.




shell terminal,

A dialog terminal that runs an interactive shell, a
command-line processor that you use to issue commands
to the system. The term's origin is the terminal,
a stand-alone device (often called dumb terminal)
that served the same purpose - communicate with the
computer - without being a real computer.



Windows systems also have a command interpreter,
though (arguably) it's hardly used and considered
arcane by most users.  On all the NT and later systems
this is cmd.exe.



nc -u,

The netcat utility. On a UNIX system, see man nc
(local manual page).




etc.  Since my friend knows that my computer is strictly MS Windows, when my
friend writes down something like In a shell terminal type nc -u
10.101.97.200 . it makes me wonder what I'm missing.

You miss understanding of the terminology, that's nothing
bad, as you can easily learn and understand it.




Here are some questions that can help my understanding:



1. I know that Windows is an OS,

In this mentioning, it refers to a family of operating systems. :-)




and Linux/Unix as well as FreeBSD
are other Operating System.

Correct. There are many Linux (fully correct. GNU/Linux)
distributions, as well as different BSDs and UNIXes.




My very basic question is this: Is it even
possible to install a second OS, like FreeBSD on an existing Windows-based
computer?

That's easily possible. You need to do a proper partitioning
of the hard disk and then install FreeBSD into a free partition.

You can also make use of so-called Live systems, a thing
not common to Windows: This is an installed and configured
operating system that you boot from a CD, DVD or USB stick.
You do NOT have to install it.




And this is the only *real* interesting input.  Download
Sun's Virtual machine software, VirtualBox (I believe
they just released version 4.0.6) and you can set up a
FreeBSD machine *inside* your windows machine with
no need to add any additional hardware or do any
repartitioning of the hard disk.




2. Is it possible to link my Windows laptop to a web server with
Unix or FreeBSD and exercise Unix/Linux commands.  If so, how is that done?

You don't usually communicate to a web server. A web server
delivers web pages. What you mean is a dialog access, usually
done by SSH. You can use PuTTY (on your Windows laptop) to
access a FreeBSD system via SSH. It will show up as a terminal
window to you.




I'd be grateful for any information.

I may point you to the EXCELLENT documentation online: The
FreeBSD Handbook and the FAQ. Those are QUALITY material
not comparable to anything you find in Windows land. If
you're dealing with IT matter, you'll have no problem to
determine _what_ to read. Those resources can be easily
accessed through the FreeBSD web page, but can also used
locally (maybe on systems without Internet or web access).


+1 for the FreeBSD Handbook.  Ten years ago, I downloaded
it, and now scores of people in my area think I'm the guru to
match all 'Nix gurus.  Of course, they're all Windows users ;-)

The people on this list know that I'm just a newb with 10 years
of FreeBSD under my belt ;-)

We look forward to assisting with your further edification :-)

Kevin D. Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Thunderbird segfaults if UID 0

2011-04-06 Thread Kevin Kinsey
On Wed, Apr 06, 2011 at 06:09:21PM +0200, Damien Fleuriot wrote:
 
 Create a new user account, log in to it, run tbird ?

Would that be any different then moving ~/.mozilla
and trying to run it?  Because that was a total failure ;-)

KDK

P.S.  I'm thinking the answer is NO.  I can give it a
try after work tonight, I s'pose.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Thunderbird segfaults if UID 0

2011-04-05 Thread Kevin Kinsey
Hello,

I've had trouble since upgrading mail/thunderbird from 2.X
to 3.1.9 --- as a non-root user, it segfaults.

As root, I have no issues.

I've tried:

1. Googling
2. mv .mozilla .mozilla-old  thunderbird
3.  sudo chmod 777 /dev/null  thunderbird
(and similar stuff with /dev/fd/* and
the symlinks stdin, stdout and stderr.

I'm kind of stumped at this point.  Here's the
last part of a ktrace:

 54137 sh   RET   read 872/0x368
 54137 sh   CALL  stat(0x283034d0,0xbfbfe638)
 54137 sh   NAMI  /usr/local/lib/thunderbird/run-mozilla.sh
 54137 sh   STRU  struct stat {dev=87, ino=6053072, mode=-rwxrwxrwx 
, nlink=1, uid=0, gid=0, rdev=24241760, atime=1302052597, 
stime=1301719584, ctime=1302044479, birthtime=1301719584, size=10461, 
blksize=4096, blocks=24, flags=0x0 }
 54137 sh   RET   stat 0
 54137 sh   CALL  eaccess(0x283034d0,X_OK)
 54137 sh   NAMI  /usr/local/lib/thunderbird/run-mozilla.sh
 54137 sh   RET   eaccess 0
 54137 sh   CALL  geteuid
 54137 sh   RET   geteuid 1001/0x3e9
 54137 sh   CALL  fork
 54137 sh   RET   fork 54141/0xd37d
 54137 sh   CALL  getpgrp
 54137 sh   RET   getpgrp 54137/0xd379
 54137 sh   CALL  wait4(0x,0xbfbfe778,WUNTRACED,0)
 54137 sh   RET   wait4 54141/0xd37d
 54137 sh   CALL  exit(0x8b)
  

Anyone got a clue what I've done?

Thanks,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Shopping cart other than OSCommerce?

2010-12-08 Thread Kevin Kinsey

Chuck Swiger wrote:

You don't magically get immunity from SQL injection by using 
JDBC or EOF or whatever, but using bound variables in queries rather 
than feeding user input into raw SQL, or invoking stored procedures 
or user-defined functions instead will mitigate one of the more 

 common security problems.

And these practices are Good Practice in any language, including
PHP.  I think a big part of PHP's problem was that in order to have
it widely adopted and to be thought simple enough for $ME to use,
the documentation was written in simplest terms, without these
types of checks, and inexperienced coders adopted similar practices
to write working sites.  The real problems with PHP are its ubiquity
(not unlike M$ operating systems ... it's an omnipresent target) and
the fact that many of the people writing it come from a design
background instead of a programming one.  A man who has no inkling
of the existence of carnivorous animals will not build his house in a tree.

My $.02,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: About FreeBSD command question

2010-12-03 Thread Kevin Kinsey
kan wrote:
 Hi Support,
 
 I have a FreeBSD server for mailing, 
 I must make backup and check the which
 bit (32bit/64bit) is now use in FreeBSD,
 so can you provide the command for me?
 
 Regards,
 Kan

What output does:

$ uname -m

produce?

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd PHP extensions: missing option ?

2010-11-24 Thread Kevin Kinsey

n dhert wrote:

There is something I would like clarified with PHP extension options...

# cd /usr/ports/lang/php52-extensions
# make showconfig | grep PDO
 PDO=on PHP Data Objects Interface (PDO)
 PDO_SQLITE=on PDO sqlite driver
This corresponds with
# cat /var/db/ports/php5-extensions/options | grep PDO
WITH_PDO=true
WITH_PDO_SQLITE=true

However, the interactive menu, displays one more option: PDO_MYSQL
# cd /usr/ports/lang/php52-extensions
# make config
...
  [X] PDO PHP Data Objects Interface (PDO)
  [X] PDO_SQLITE  PDO sqlite driver
  [X] PDO_MYSQL   PDO mysql driver

-- 1st question: why does the options file not contain a
WITH_PDO_MYSQL=true line ?


It's not a default option, because not everyone uses MySQL.


and if I further look:
$ pkg_info | grep pdo
php52-pdo-5.2.14_1  The pdo shared extension for php
php52-pdo_mysql-5.2.14_1 The pdo_mysql shared extension for php
php52-pdo_pgsql-5.2.14_1 The pdo_pgsql shared extension for php
php52-pdo_sqlite-5.2.14_1 The pdo_sqlite shared extension for php

$ grep pdo /usr/local/etc/php/extensions.ini
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=pdo_pgsql.so

in a web browser phpinfo.php also tells me:
 PDO support  enabled
 PDO drivers  pgsql, sqlite, mysql

So I also have and use also pdo_pgsql

The interactive menu for php5 extensions does not provide a [ ] PDO_PGSQL
option

-- 2nd question: why not such an option in the interactive menu?


I can't answer that; I do note that this is true in the main trunk
ports/lang/php5-extensions as well; a user note on the php.net site
(http://www.php.net/manual/en/pdo.installation.php) makes a similar
complaint.  Suggestion:  run make maintainer in the php52-extensions
directory and respectfully mail that person with your question.


Some other ports need pdo_pgsql and install it along with the port as a
dependency, e.g.  davical. I installed that in march 2010 and did several
portugprades (0.9.7.6, 0.9.8.1, 0.9.8.4 - no problems). But from version
0.9.9 onwards davical doesn't want to portupgrade any longer and throws a
message  'Unknown extension pdo_pgsql for PHP52' ...

This must be related with the configuration of php extensions, but the file
/var/db/ports/php5-extensions/options  should not be edited manually.

3rd question: How to solve this?


See above for starters.  You might also be able to hack the Makefile,
but that's just what it is ... a hack ;-)   

Good luck!

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Kevin Kinsey

Dave wrote:


Hi. Sorry ... snip


Hello, and welcome.  And I made it a bit shorter ;-)

  I'd like to:-
Have a ssh login via LAN available, I believe that's a standard feature, 
but I expressedly disabled that (well, told it not to implement it) when 
I orignaly installed the OS.   Or have a VNC server running.


As someone mentioned:
   sshd_enable=YES
in /etc/rc.conf.  You can then either a] reboot, or b] issue the
following with root privileges:
   /etc/rc.d/sshd start

Have a small web server, again I've read that Apache can do a good job, 
but I don't want (nor need) all it's facilities, in particular I need to 
lock it down so no Put's can happen for a start!  The web pages are 
simple flat form, text and static graphics, with a little client side 
scripting, purely to find the client's local date and time, to select the 
graphic to serve.


I believe Beech had some advice on this.  It's probably pretty good :-)

Have a FTP server, so I can automate some of the web page graphics 
updates, from other systems that generate the data, and can FTP files 
across the LAN, also of course for general web page maintenance needs.


The base system ftpd is run from inetd, a super server which can serve
several small protocols.  Have a look at /etc/inetd.conf.  The first real 
line:

#ftp stream  tcp nowait  root/usr/libexec/ftpd   ftpd -l

   Uncomment that (remove the 'hash'), and save it (you'll have to be root
again, of course).

See if inetd is running:

$ pgrep inetd

If you get a number(PID), it's running.  Otherwise, you'll probably need
to enable it.  Again, you need:
  inetd_enable=YES
in /etc/rc.conf.  Add the line and either a] reboot, or b] issue the
following with root privileges:
   /etc/rc.d/inetd start

Sound familiar?

*IF* inetd was *already running*, all you should have to do is issue:

$ kill -HUP `pgrep inetd`

It'd be nice to have a  VPN endpoint, but not esential, as that is 
currently living on another W2k box.  But in the long term perhaps.  The 
only complication with that, is I need to be able to tunnel a UDP VoIP 
stream over/throug it.  (I currently use Hamachi on Windows for that, it 
works well.)  Also, the other end needs to live on a XP (or later) 
Laptop.


I'll leave vpn to someone more knowledgeable in that area.  AFAIK you'll
have to install a port; /usr/ports/security/openvpn is likely the canonical
program, but, as I say, seek other advice on that fo' shizzle ;-)

I would preffer to 
have FTP login's that are in no way related to any system login users.


I can't help with that either; check the docs on Beech's suggestions,
perhaps.

Lastly, I have everything so far (on the Win2k box) working well with 
highly non standard (high numbered) ports.   Even thoug it's exposed 
(via port forwarding in the router) to the outside, there is next to no 
noise, (script kiddies, chinese hackers etc) poking arround my back 
passage.


Of all the stuff I've read so far in the FreeBSD handbook, and a few 
other places, not one mention is made (that I can see so far) of how to 
set services for alternative port numbers?


That's generally in the configuration file for the server.  This information
might be available in the manpage, if one exists.

For example:

$man sshd | col -bx  ~/sshd.txt
$ grep -c port ~/sshd.txt
22

So, there's at least 22 mentions of port in the sshd manpage.
As it turns out, there's a line in /etc/ssh/sshd_config that gives
it right away:

$ grep -i port /etc/ssh/sshd_config
#Port 22
# Disable legacy (protocol version 1) support in the server for new
#GatewayPorts no

So, remove the comment from the Port 22 line, change the number
from the default 22 (222, perhaps, for memory's sake?) and either a]
reboot, or b] kill -HUP `pgrep sshd`   (sounding REAL familiar now).

Incidentally, one might suggest that running on non-standard ports
is merely security by obscurity.  In the case of sshd, at least, a
better solution might be to only allow key-based authentication; but,
as I said, that's just a suggestion.  I have done such things myself
a time or two ... I kinda think I just delayed the inevitable in that
case, though.

Lastly, as I don't want to break the existing NTP server, I may find 
another PC of similar spec, to mess with, witn some sort of impunity.


Well, as I mention, often you can enable and start these additional
services from the base system with little or no interruption to extant
services at all (which, IMHO, is exactly as a Real Server should work,
take that, M$).  But I suppose we'd certainly understand.  You might
even just get a Live-CD distribution and dink around with that.  AFAIK,
you could run ftpd, inetd, and sshd temporarily on those just to get
a feel for how to administer them.

My $0.02,

Kevin D. Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 

Re: Thanks.

2010-11-20 Thread Kevin Kinsey

Ryan Coleman wrote:

On Nov 18, 2010, at 9:14 AM, Alejandro Imass wrote:


On Thu, Nov 18, 2010 at 10:08 AM, Chris Brennan xa...@xaerolimit.net wrote:

On Thu, 18 Nov 2010 16:25:31 +0330, Mohsen Mostafa Jokar 
mohsenjo...@gmail.com wrote:

Hello.


Didn't Mohsen Mostafar Jokar post this same question last week?

Yes. This second one was an apparent follow-up, hopefully he will STFW
and RTFM before posting again ;-)


Assuming he knows what STFW and RTFM mean. :)


Well, shame on you guys. ;-)  After all, this is a *help list*, right?

http://www.google.com/search?q=define:STFW

   :-D

KDK











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


Re: need help with php.

2010-10-20 Thread Kevin Kinsey

Gary Kline wrote:

On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:

That's if someone messed up the original CSR, IMO, or didn't get the ServerName 
directive just right.


--I don't know what the snag is, but even 5.2 fails.  php execs;
it just doesn't do anything.  I built the test.php with

? phpinfo(); ?

and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
have something turned on it firfox3.

gary


Short Tags are (wisely /opinion) deprecated now.

?php phpinfo(); ?

should Just Work(tm).  If not, post back ;-)

HTH,

Kevin Kinsey

P.S.  I do think you might be able to turn them back on via
php.ini ... but it's not recommended.   


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


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Kevin Kinsey

Randal L. Schwartz wrote:

Ed == Ed Flecko edfle...@gmail.com writes:


Ed and changing them to read (I'm in the U.S.):

Ed  server 0.US.pool.ntp.org iburst maxpoll 9
Ed  server 1.US.pool.ntp.org iburst maxpoll 9
Ed  server 2.US.pool.ntp.org iburst maxpoll 9

I believe this is no longer necessary, and in fact, discouraged.

The pool.ntp.org servers have some geolocation built in, so the stock
version will automatically find and balance load on the existing NTP
servers.



Do we need to ping someone @freebsd.org about it then, say, kensm...@?

Just c'suped to 8 recently; mergemaster gave me a new ntp.conf and
this is the exact stuff in there ;-)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: BSD logo

2010-07-29 Thread Kevin Kinsey

Antonio Olivares wrote:

But yes we are in difficult times and then the 2012 saga, will the world end?



I have it on good AUTHORITY:

$dig @daleco.biz daleco.biz | grep AUTHORITY:
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

That we're perfectly OK:

$ ssh daleco.biz uname -mrs  cal Jan 2013

FreeBSD 7.1-RELEASE-p11 i386

January 2013
Su Mo Tu We Th Fr Sa
   1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31



See?  BSD says so ;-)


KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: BSD logo

2010-07-28 Thread Kevin Kinsey

Terrence Koeman wrote:

Subject: Re: BSD logo

On final analysis, I think the OP should abandon any desire for
FreeBSD in favor of this: http://pudge.net/jesux/


Is this real? It looks like a page from landoverbaptist.com or 

 something. I'm still deciding whether to laugh or cry...




Of course not.  Even Jesus knows RedHat sucks.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: apache22 build problem: cgi disabled

2010-07-28 Thread Kevin Kinsey

Michael W. Lucas wrote:

Hi,

I'm running a July 26 -current/amd64, both ports and userland, and it
seems that the newest apache22 doesn't build a lot of modules, such as
mod_cgi, mod_cache, etc.

/var/db/ports/apache22/options includes (among other things):

WITH_CGI=true

make.conf defines only perl and sendmail.mc.

The port's config.log shows:

  $ ./configure --prefix=/usr/local --enable-layout=FreeBSD --with-perl=/usr/local/bin/perl5.8.9 --with-port=80 --with-expat=/usr/local --with-iconv=/usr/local --enable-http --with-pcre=/usr/local --with-apr=/usr/local/bin/apr-1-config --with-apr-util=/usr/local/bin/apu-1-config --disable-authn-file --disable-authn-default --disable-authz-host --disable-authz-groupfile --disable-authz-user --disable-authz-default --disable-auth-basic --disable-charset-lite --disable-include --disable-log-config --disable-env --disable-setenvif --disable-mime --disable-status --disable-autoindex --disable-asis --disable-cgid --disable-cgi --disable-negotiation --disable-dir --disable-imagemap --disable-actions --disable-userdir --disable-alias --disable-filter --disable-proxy --disable-proxy-connect --disable-proxy-ftp --disable-proxy-http --disable-proxy-ajp --disable-proxy-balancer --disable-proxy-scgi --disable-reqtimeout --enable-so --enable-mods-shared=auth_basic auth_digest authn_file 

authn_dbm authn_anon authn_default authn_alias authz_host authz_groupfile 
authz_user authz_dbm authz_owner authz_default disk_cache file_cache dav dav_fs 
actions alias asis autoindex cern_meta charset_lite deflate dir dumpio env 
expires headers imagemap include info log_config logio mime mime_magic 
negotiation rewrite setenvif speling status unique_id userdir usertrack 
vhost_alias version reqtimeout proxy_connect ssl --with-dbm=sdbm 
--with-ssl=/usr --disable-ipv6 --with-devrandom --with-mpm=prefork 
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ 
--build=amd64-portbld-freebsd9.0


There's a --disable-cgi in there, but no cgi listed after
--enable-mods.

So, my FreeBSD options are set to enable CGI, but they aren't making
it down to the Apache build process.

Am I doing something daft here, or should I file a PR?

Thanks,
==ml


Not sure.  Try something like:

[12] Wed 28.Jul.2010 16:08:53 
[kad...@archangel][~]

$cd /usr/ports/www/apache22  sudo make show-modules | grep cgi
cgi: enabled (shared)
proxy_scgi: disabled
cgid: disabled

If make show-modules says enabled and the port still configures
with --disable-cgi, I'd definitely contact the maintainer and
see what's up.

My $.02,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Convert all packages to ports

2010-07-01 Thread Kevin Kinsey

Chris Stankevitz wrote:

--- On Thu, 7/1/10, Glen Barber glen.j.bar...@gmail.com wrote:

Once ports or packages are installed,
there is no 
differentiation to the system.


Interesting.  If this is true, then I can just start upgrading my 

 'pkg_add' installed packages using ports and eventually they will
 all be converted over to 'make'.


However, your comment seems to be in disagreement with online 

 warnings of do not mix 'pkg_add' packages with 'make' ports.

The ports tree will always be ahead (a bit) of the packages,
since the packages take time to build and push out to the FTP
servers.

You end up with some problems because the system expects
version $n.123 of somepackage but the installed somepackage
is $n.121, and vice-versa problems can happen as well.  They
are fairly minor to fix if you've done it much, but can be
responsible for a heckuva lot of list traffic.

Kevin Kinsey

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


Re: rc.conf: gnome_enable=YES - which instructions executed?

2010-06-30 Thread Kevin Kinsey

Chris Stankevitz wrote:

From: Rob Farmer rfar...@predatorlabs.net

Q: Where on my hard drive can I find the instructions

executed to enable GNOME?

This enables dbus, avahi, hal, and gdm (assuming that they
are installed, of course). See the files for those things in
/usr/local/etc/rc.d for the details of what is run.

See:
http://www.freebsd.org/gnome/docs/faq2.html#full-gnome


Rob,

Thank you for your response.  I also saw that comment in

 the docs; however, I am actually not interested in knowing
 what gnome_enable=YES does.  I should have been more clear.


I would like to learn more about how rc operates.  I want

 to know where on the hard drive the instructions are

located that activate when I say gnome_enable=YES.

 I naively thought I would find a file called /usr/local/etc/rc.d/gnome
  -- but I did not.  Something more complicated is going
 on.  So my question is -- how is this working?


Thank you,



Err, Magic?

More seriously, `man rc` and several hours of cross-references
(rc.subr., rc.conf., rc.local, etc. etc.) might be enlightening.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_add fails due to 'broken pipe'. Is my system in a consistent state?

2010-06-30 Thread Kevin Kinsey

Chris Stankevitz wrote:

pkg_add -r gnome2

This command fails repeatedly with broken pipe because the FTP 

 connection breaks.  When it dies, I just re-run the command.  I'm now on the 
fifth attempt.


The gnome2 package is a meta package that installs many other packages.

Q1: Is it bad for my FreeBSD system that I keep re-issuing the command 

 pkg_add -r gnome2?  I'm happy FreeBSD isn't responding already installed.

Shouldn't be bad for the system, unless you get a lil' P.O.'ed (and hack it
to bits, for example).

Q2: Where on my hard drive are the bytes that tell pkg_add to use 

 ftp.freebsd.org when downloading packages?

You mean like inode number, which cylinder, or are you looking for
/usr/ports/x11/gnome2/Makefile?  (Which, as it's a meta-port, will
probably just mean you need to look at about 120 other Makefiles).

Q3: I've been using this internet connection for years downloading 

 packages for other OSes without trouble.  Why is pkg_add/fetch having so much 
trouble?

Firewall?  Try setting PASSIVE in your environment.  Otherwise,
I dunno.  Any error message from fetch?


HTH,

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Copy a FreeBSD 8* install to larger HD

2010-06-22 Thread Kevin Kinsey

Al Plant wrote:

Aloha,

I am looking for the easiest way to copy a fresh working FreeBSD 8* HD 
install (Manolis version) to a bigger HD that I found.


I plan to have the new  HD in the same box for doing this copy.

Can I use sysinstall to make the new default slices on the big HD and 
then move the OS and directories/files to them?


Last time I did this, it worked fine ... just make sure the slices (right 
term?)
correspond with your /etc/fstab, or you'll end up in single user or even
stuck at a boot prompt with the new drive the first time out.


What command (utility) do I use? dd or cp or some other to copy the files.


I'd recommend dump and restore ... possibly piping dump *to* restore,
something like:

dump -0 -a -L -u -f - /usr | ( cd /newusr ; restore -ruf - )

HTH.


Thanks



You're welcome :-)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: debian compatibility

2010-05-27 Thread Kevin Kinsey

Jim Pazarena wrote:

can I please be directed to any on-line reference as the
procedures involved in executing a Debian binary on FreeBSD 8?

Thanks!


http://www.freebsd.org/doc/en/books/handbook/linuxemu.html

HTH,

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: user friendliest gui

2010-05-13 Thread Kevin Kinsey

Jean-Paul Natola wrote:

Ok so I have my new box setup and I have installed
Clamav-devel 
Tcl86

Dialog

First question is , I have only ever used clamav-clamd in the past 

 which I start with /usr/local/etc/rc.d/clamav-clamd start to run it, how do I 
run devel?

Second question is , where to o go from here?

I have tried to man tcl86 and man clamav-devel but I get no manual entry


Try man clamscan.

HTH,

KDK

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


Re: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 24 2010 23:51, S Roberts wrote:

I believe its been bundled into the  libpciaccess port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/



Doesn't seem to be there, and google isn't being helpful.  A search of
freshports.org didn't turn up anything either.  Searching freebsd.org
only shows our conversation.



Likely your ports tree is rather out-of-date?  The port directory
is at /usr/ports/devel/libpciacess, and the import date on the Makefile
is May 2008.

Or, perhaps ports aren't installed?  Try:

$pkg_add -r \ 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/Packages-8-stable/devel/libpciaccess-0.10.6_1.tbz


Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 25 2010 16:18, Chip Camden wrote:

On Apr 25 2010 21:26, S Roberts wrote:

Hmmm.., you sure your ports system is installed / up-to-date there?

Do you have any of the docs that would have shipped with the notebook?
If not, I searched ASUS, and found a link to the English version manual
here:
http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19

I've not downloaded it, so please see if there's anything that can
assist. There **are** other resources at the ASUS site - you just have
to use the menu on the right to select your particular model and review
the list of resources that gets returned..,


Thanks for the attempt to help, but ports are up-to-date.  I'm on
8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?


Let me preface my commentary with I'm way out of my league, so #include
disclaimer.h and all that ...

For starters, in re: above, didn't someone suggest libpciaccess as the
source for scanpci?  I can't tell if you are misunderstanding what S
Roberts suggested, or I am misunderstanding what you are responding.

I'm pretty sure there's some misunderstanding here, though.


The download for the manual is exactly the same as the paper manual that
came with the notebook.  It gives very little technical information.  On
the web site, all I could find is that it's 802.11n capable, which I
already knew from the sales pamphlet.


OK -- searching the ASUS site for Windows 7 64bit docs (that's what came
on it), I find three possibilities for the wireless device:

1. Intel 1000
2. Intel 6200
3. Azurewave

Looks like both of the first two are addressed by driver iwn on OpenBSD,
but not on FreeBSD.  The third one I don't see anywhere.  Looking here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

Looks like that page was last updated for FreeBSD on April 25.
In any case, I tried iwn, and that doesn't work.


I thought we had pciconf output that stated it was an Atheros chipset?
In that case, it would be the Azurewave, right?  I'd suspect it might
be supported under ath(4), but you'd wanna read the manpage and possibly
even the source for any kind of confirmation on that; the manpage does
specifically say that adapters based on the AR5005VL aren't supported.
However, the manpage might be slightly out-of-date, also.

The other thing I recall seeing is that a new variant of a supported
chipset comes out, and the driver code doesn't recognize it even though
it might work well.  Used to be something like a VENDOR_ID string in
the source files; I don't know if it's still the case, but if it was,
some people have been able to hack their own device support in rare
cases simply by adding the new info to the driver file and recompiling
it, but you'd want someone with a lot more $OS_foo than I have to help
out with that (or tell you if it's even possible).  This is open-source
stuff; you might even get sam@ 's attention and get help from the writer
himself if you're wearing your lucky sneakers.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: dhcpd doesn't sent route information

2010-04-23 Thread Kevin Kinsey

Onur Aslan wrote:

I tried, but It doesn't helped.


Please show us the revised dhcpd.conf.  Also, did you -HUP
your named?

Kevin Kinsey

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?




On Fri, Apr 23, 2010 at 08:22:54AM -0700, Chuck Swiger wrote:

On Apr 23, 2010, at 6:14 AM, Onur Aslan wrote:

I am using isc-dhcp30-server-3.0.7_5 in FreeBSD 7.2. When I run dhclient in a
client machine, this machine doesn't get gateway from dhcp server. I configured
dhcpd server as described in FreeBSD handbook.
If the machine you are testing from is one of onur-pc or onur-eee, you aren't 

 getting a default router because you've only defined it for the dynamic pool
 range of .4 - .24.  Move the:


   option routers 192.168.1.1;

...statement to the top level, or move the host declarations inside 

 of the subnet 192.168.1.0 block.  Or copy the routers line to your
 host declarations, I suppose.


Regards,
--
-Chuck


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


[Fwd: Re: dhcpd doesn't sent route information]

2010-04-23 Thread Kevin Kinsey

Onur Aslan wrote:

I tried, but It doesn't helped.


Please show us the revised dhcpd.conf.  Also, did you -HUP
your named?

Sorry!  That should be dhcpd.

$kill -HUP `pgrep dhcpd`

should do the trick.

KDK



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


Re: bsdstats country

2010-04-23 Thread Kevin Kinsey

Aiza wrote:

How does bsdstats know what country the PC posting its info is from?


Probably via a lookup in the regional registry; see RFC 2050.

Kevin Kinsey

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


Re: dhcpd doesn't sent route information

2010-04-23 Thread Kevin Kinsey

Onur Aslan wrote:

$ cat /usr/local/etc/dhcpd.conf
option domain-name-servers 8.8.8.8, 8.8.8.4;
option subnet-mask 255.255.255.0;

default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

option routers 192.168.1.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.4 192.168.1.24;
}

host onur-pc { 
hardware ethernet 00:0e:2e:ff:6b:e7;

fixed-address 192.168.1.2;
}

host onur-eee {
hardware ethernet 00:22:43:45:a1:2d;
fixed-address 192.168.1.3;
}

#

I am starting dhcpd with '/usr/local/etc/rc.d/isc-dhcpd start'. It's
starting with this command:

/usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf
/var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd
-group dhcpd ral0


After I added dhcpd_flags=-HUP to my rc.conf It's giving an error
message when I starting dhcpd:

# /usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p UDP port #] [-d] [-f]
 [-cf config-file] [-lf lease-file]
 [-user user] [-group group]
 [-chroot dir] [-early_chroot]
 [-jail name ip]
   [-tf trace-output-file]
   [-play trace-input-file]
 [-t] [-T] [-s server] [if0 [...ifN]]
Configuration file sanity check failed:
===
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p UDP port #] [-d] [-f]
 [-cf config-file] [-lf lease-file]
 [-user user] [-group group]
 [-chroot dir] [-early_chroot]
 [-jail name ip]
   [-tf trace-output-file]
   [-play trace-input-file]
 [-t] [-T] [-s server] [if0 [...ifN]]
===


-HUP is an option to kill(1).  Many daemons can
be told to re-read their configuration file like this:

kill -HUP `pgrep daemonname`

   where daemonname is something like dhcpd, named, inetd,
httpd, etc.  I've never had much trouble with dhcpd, so I
may be wrong about using kill -HUP on it; I am fairly
certain you don't wanna flag -HUP in /etc/rc.conf,
though.  Take it away and the usage message will disappear.


It's saying 'Configuration file sanity check failed' but I don't see
any problem in my configuration file.


Me neither, unless Chuck was also mistaken and you can't put the
option routers line up there, I don't think I see anything either.
Of course, my monitor's a little dusty and I think I need a stronger
eyeglass prescription :-)

If at first you don't succeed, edit, and try again?  :-)

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: dansguardian + squid running on local machine

2010-04-15 Thread Kevin Kinsey

Mexican Loser wrote:

Hello fellow BSD users -

I have dansguardian listening on 127.0.0.0.1:8080 - squid listening on
127.0.0.1:3128 on the same computer for content filtering and caching for
the kids.

I also have ipfw ruleset. I'm able to browse the Internet fine but I just
want to make sure http requests are going through my ipfw ruleset. How do I
know if my websites requests are going through the ipfw rules and coming
back through them?

The rule below allows everything through the loop back interface, is that
whats allowing squid and dansguardian to work? If so, I would like to know
what rules specifically I can add specifically for dansguardian and squid?


allow all from any to any via lo0

For starters, read up in the Handbook on ipfw.  You're really
going to want to understand what you are doing.  It may help to define
your rules in English, then try and figure out the syntax for ipfw.

You should look carefully at your network setup.  I'm assuming you
have a BSD box dual-homed to your ISP, and doing NAT for your LAN?

Your loopback interface must always work, otherwise Bad Stuff(tm)
will happen.  That's the rule you have up there.

After that, write out your rules in English:

1.  I can connect to anything from the gateway/server.
2.  Nothing can come in from outside.
2.  No one else can connect to anything outside the gateway/server.
4.  Everyone inside can connect to the gateway/server.

Etc.

After that, it's just a matter of figuring out ipfw's syntax.

HTH,

Kevin Kinsey

P.S.  You'll get some recommendations for other firewalls, too.
Use which ever one makes sense to you :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: internet connection tester script

2010-03-27 Thread Kevin Kinsey

Jozsef Vadkan wrote:

Why doesn't my internet-connection script work?

When I plug the ethcable out, it just waits...and waits...and waits...

The script: http://pastebin.com/AE9U1qdL


As someone has noted, you're waiting on ping to timeout a bunch
of times.  And really, I'm not sure why this script is needed.
In ~/.cshrc:

alias upping -t3 yahoo.com

 ... or something (your .bashrc equivalent, or .shrc, etc.)
should do the trick, with much less effort on all fronts.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD Version recommend for OLD machine

2010-03-16 Thread Kevin Kinsey

alexus wrote:

On Tue, Mar 16, 2010 at 3:21 PM, andrew clarke m...@ozzmosis.com wrote:

On Fri 2010-03-12 00:16:35 UTC-0500, Steve Bertrand (st...@ibctech.ca) wrote:


The machine has a Motherboard that supports 2 double pentium III
processors with 1GB of ram and a hard disk with 40GB.

I run FreeBSD 7.2 on a headless 1 GHz Pentium III with 256 MB RAM.
...


Again... so long as the system won't change its overall process
objectives, go to the recent production release, but instead of
assigning 256M for /, throw 2G at it to be safe.

2 GB for / seems excessive to me.  1 GB should be plenty.  I have 500
MB allocated for FreeBSD 7.2:


i'd go w/ 8.0 worse case scenario 7.2
and put more memory in that machine it's embarassing :)


Bah, it's got more than an iPhone. :-D

KDK


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


Re: Thousands of ssh probes

2010-03-05 Thread Kevin Kinsey

mikel king wrote:



Way back about 10 years ago, I was playing around with IPFW a lot. I 
wrote a script to update IPFW from changes made to a MySql db. It was a 
just for fun project, that turned out to be rather useful I have some 
developers that I managed who like you were road warriors. They logged 
in to the https web page w/ their username and password which grabbed 
their IP address and stored it in a table on with their login id.


The script called fud (for firewall update daemon) connected to the db 
and ran a query to check for any rule changes. If there were it would 
apply them to the rule set and clear the change flag. Using this 
combination I was able to allow ssh access only to the necessary ip 
addresses.




We use a similar approach but only rely on tcpwrappers.
Here's what we do (simplified  obfuscated slightly), just
for reference (or, maybe commentary :-D )

On server:

[505] Fri 05.Mar.2010 10:21:37
[ad...@foo][~] cat /etc/hosts.allow | grep sshd
# Wrapping sshd(8) is not normally a good idea, but if you
sshd:  /var/tmp/skyangel.ip : allow
sshd: all : deny

On skyangel:

[13] Fri 05.Mar.2010 10:22:56
[ad...@skyangel][~] sudo crontab -l |grep dhcp
@reboot /usr/local/bin/php -q /root/scripts/dhcp.php
*   */4***   /usr/local/bin/php -q /root/scripts/dhcp.php


dhcp.php uses lynx to dump a server-side HTTPS page and sends
a secret in the URI.  Server-side page is able to decrypt this
and determine it's really skyangel, then writes the connecting
IP addy to /var/tmp/skyangel.ip.

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Thousands of ssh probes

2010-03-05 Thread Kevin Kinsey

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/03/2010 16:12:11, Randal L. Schwartz wrote:

Matthew == Matthew Seaman m.sea...@infracaninophile.co.uk writes:

Matthew On 05/03/2010 15:51:52, Randal L. Schwartz wrote:

The spamtrap is a shiny object for spam, and anything that goes there gets
blocked for an hour from hitting the low port.  I presented this at a
conference once.

Matthew Having an IPv6-only high-mx seems to terminally confuse most 
spambots...

Oooh!  And arpnetworks gives me a /48 in 6 for free. I could have thousands of
them. :)


Thousands?  Try billions.  Sagans and sagans.  More than the maximum
possible number of hosts on the IPv4 internet. Muha ha Ha!


I'd think we might have to increase the size of the container
for /etc/rc.conf to do that, though?  At any rate, that'd be
a lot of ifconfig to read/edit/etc.

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to check a ext3 partition ?

2010-02-27 Thread Kevin Kinsey

zaxis wrote:

There is a ext3 partition used to share data between linux and freebsd.
Sometimes freebsd cannot mount this partition as abnormal poweroff.   I have
to enter linux to do `fsck.ext3` .

Can freebsd fsck ext3 partition ?



Not natively, AFAIK.  Check out /usr/ports/sysutils/e2fsprogs;
I've not used it, but I'd imagine it would take care of this
chore for you.

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mozilla Updates

2010-02-25 Thread Kevin Kinsey

Programmer In Training wrote:

Since the advisories from Mozilla[0-1] have been released, and updates
for at least FireFox and Thunderbird are available, when will they be
made available via ports (especially FF 3.6 TB 3.0.2)? Should I
deinstall the ports version and go ahead and compile from source
available at Mozilla's sites?

If this isn't the right list to ask these questions, my apologies.

[0]:
http://www.us-cert.gov/current/index.html#mozilla_releases_security_advisories1
[1]: http://www.mozilla.org/security/announce/


Well, nothing wrong with asking here.  You might get a better,
quicker, or more cogent reply from the ports@ list, though.

That said, did you look here?

ftp pwd
Remote directory: /pub/FreeBSD/ports/i386/packages-8-stable/All
ftp ls firefox-3.6*
229 Entering Extended Passive Mode (|||24438|).
150 Here comes the directory listing.
-rw-r--r--1 110  1002 19611520 Feb 18 06:51 firefox-3.6,1.tbz
226 Directory send OK.
ftp

Perhaps it's been there a week already?  Not sure, myself,
but it kind of appears that way.

KDK

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ping: sendto: Can't assign requested address

2010-02-11 Thread Kevin Kinsey

GLADtr GLADtr wrote:

Hello my friends! Help me please with its problem. I`m don`t understood what
it is problem...


I doubt I do either, but I'll bite.


*mx# uname -a*
FreeBSD mx.taricat.ru 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon Jan 25 09:28:38
UTC 2010 r...@mx.taricat.ru:/usr/obj/
usr/src/sys/GENERIC  i386
mx#

*mx# ping 127.0.0.1*
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss

*mx# ping localhost*
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- localhost ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss



What does `ifconfig lo0` say? Anything in /var/run/dmesg.today
about lo0?



*mx# ping `hostname`*
ping: cannot resolve mx.taricat.ru: Host name lookup failure


What about `head -n 40 /etc/hosts`?  Looks like the
machine can't find its own address.  `cat /etc/resolv.conf` ?


*mx# ping google.com*
PING google.com (74.125.87.103): 56 data bytes
64 bytes from 74.125.87.103: icmp_seq=0 ttl=56 time=188.367 ms
64 bytes from 74.125.87.103: icmp_seq=1 ttl=56 time=180.537 ms
^C
--- google.com ping statistics ---
3 packets transmitted, 2 packets received, 33.3% packet loss
round-trip min/avg/max/stddev = 180.537/184.452/188.367/3.915 ms

*mx# ping 10.10.0.113*
PING 10.10.0.113 (10.10.0.113): 56 data bytes

^C
--- 10.10.0.113 ping statistics ---
193 packets transmitted, 0 packets received, 100.0% packet loss
mx#

*mx# ifconfig*
xl0: flags=8843UP,BROADCAST,
RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=9RXCSUM,VLAN_MTU
ether 00:01:03:09:2e:b4
inet 10.10.0.114 netmask 0xfff0 broadcast 10.10.0.127
media: Ethernet autoselect (100baseTX full-duplex)
status: active
plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST metric 0 mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
options=3RXCSUM,TXCSUM
inet6 fe80::1 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
nd6 options=3PERFORMNUD,ACCEPT_RTADV
mx#


OK, you don't have an `inet` (IPv4) address configured
for the lo0 device.  That's the issue.  Try `ping6 localhost`
or `ping6 ::1`.


*mx# netstat -rn*
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default10.10.0.126UGS 2   97xl0
10.10.0.112/28 link#1 U   2  465xl0
10.10.0.114link#1 UHS 00lo0

Protocol Family 28:
DestinationGatewayFlagsNetif Expire
(28)           0001   (28)
          0001   UH
lo0
(28)    fe80 0003        
link#3 U lo0
(28)    fe80 0003      0001  
link#3 UHS   lo0
(28)    ff01 0003         (28)
   fe80 0003      0001   U
lo0
(28)    ff02 0003         (28)
   fe80 0003      0001   U
lo0
mx#

*mx# less /etc/rc.conf*
hostname=mx.taricat.ru
#ifconfig_xl0=inet 91.198.171.167 netmask 91.198.171.128
#defaultrouter=91.198.171.129
#ifconfig_ste0=inet 10.10.11.100 netmask 255.255.255.0
#pf_enable=YES
#pf_rules=/etc/pf/conf
#named_enable=YES
ifconfig_xl0=DHCP
sshd_enable=YES
#pflog_enable=YES
#clear_tmp_enable=YES
#smartd_enabled=YES
#samba_enable=YES
#nmbd_enable=YES
#smbd_enable=YES
#samba_config=/usr/local/etc/smb.conf
#zfs_enable=YES
/etc/rc.conf (END)


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


Re: X11/freebsd problem

2010-02-05 Thread Kevin Kinsey

Chuck Robey wrote:

I have this problem with my built-under-freebsd-current Xorg, it gives me this
following sort of error everytime it starts up:

(pts/2):{14}% Xlib:  extension Generic Event Extension missing on display 
:0.0.
Xlib:  extension Generic Event Extension missing on display :0.0.

Usually, that 2nd line shows up 6 to 12 times, I trimmed the repetitions for
brevity.  Anyone got any idea what this sort of error is?  If it isn't a fairly
common sort of error, I think I'll hunt to see if maybe there's an Xorg mailing
list I could use.  I think that the error originated during the period when I
was writing a X11 graphical tablet driver, but it never (until now) seemed to
actually get it the way.  The version of X I was using is completely gone now,
and when I found out that the cut-rate graphical tablet itself was too defective
to give me a good basis for the driver, well, the driver is history now too
(except for all the stuff I learned, very useful!)

Thanks.  This all came up as I've been searching for a sound player with a good
GUI, and that's what triggered the error this time (the audacious port).


Hmm, I'm not sure it's uncommon, depending on the environment.  I get the
same when running many apps from 7-STABLE to the Cygwin/freeXer X server running
on a Winblows desktop, for example.  Any bad behavior associated with it?

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /root permission reset on boot

2010-02-01 Thread Kevin Kinsey

Nerius Landys wrote:

I'm running FreeBSD 7.1 i386, and even after I chmod 700 /root,
after a reboot it goes back to permission 755.
1. What's the reason for this?  There must be a good reason and I
would like to know it.  Everything in FreeBSD just makes sense and is
well designed (honestly, no sarcasm here).

It's something local to your machine; this doesn't happen on any machine
I've used, and I can't find anything that could be configured for that.


Perhaps I was mistaken about this happening after every reboot.
Perhaps it only happens when I upgrade my world (make buildworld, make
installworld, etc.).  I do this often (every time a release patch is
released).

So, perhaps this only happens during these upgrades?


Yup, 99% sure of that.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problems with make clean

2010-01-30 Thread Kevin Kinsey

Frank Wißmann wrote:

Hi, Beasties!
I just installed the new VirtualBox through ports. It worked fine, but 
now I have trouble cleaning the directory. Neither make clean nor a 
rm -rf work/ do what they are supposed to. Here is the output:


rm: 
work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj/VBoxRT/VBox: 
Directory not empty


No explanation, sorry.  Have you tried

$chflags -R nosch work
$rm -rf work

?

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't load smbfs kernel module

2010-01-25 Thread Kevin Kinsey

Anton Shterenlikht wrote:

This is on FreeBSD 9.0-CURRENT #0 r202964M ia64

I've built a kernel with smbfs module:

# ls -al /boot/kernel/smb*
-r-xr-xr-x  1 root  wheel  265579 25 Jan 13:36 /boot/kernel/smbfs.ko
-r-xr-xr-x  1 root  wheel  680186 25 Jan 13:36 /boot/kernel/smbfs.ko.symbols

but can't load it:

# kldload smbfs
kldload: can't load smbfs: No such file or directory


Other modules load fine with kldload, e.g.:


Does it make any difference to use the .ko extension, to
call it by absolute path, or to use -v for more information,
per The Friendly Manual?

Certainly no expert.  Wondering tho, as I don't know if
the kernel maintains a list of new objects if they've been
recently added.  Hate to ask if you've done a reboot :-)

Also, for curiosity, `file /boot/kernel/smbfs.ko`?



All I need is to mount an MS WIndows partition to my fbsd box.

Please advise

many thanks
anton

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


Re: FreeBSD sources from svn repos

2010-01-25 Thread Kevin Kinsey

RW wrote:

On Mon, 25 Jan 2010 15:51:26 +
Masoom Shaikh masoom.sha...@gmail.com wrote:


Hi List,

I am confused about FreeBSD versions maintained in svn repos

1. http://svn.freebsd.org/base/releng/8.0/
2. http://svn.freebsd.org/base/release/8.0.0/
3. http://svn.freebsd.org/base/stable/8/

(2) is easy, most probably it means stable


Rather than the one that has stable in the url?


how about (1) and (2)


The obvious interpretation is that 3 is stable, 2 is the release, and
1 is the RELENG_8_0 security branch.


But to the initiate :-), remember that the terms can be
confusing.  A RELEASE is extremely stable in terms of
operation, most usually, per our reputation (and will never be
changed again).

The RELENG tag means that only security fixes, etc. are
added to the code, and the -STABLE tag refers to the fact
that the API isn't going to change in any substantial way
without developer's heads rolling, most likely, but stuff
is Merged-from-Current (or wherever) fairly continually,
and, as such, is occasionally susceptible to hiccups.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Unable to find device node for /dev/ad0s1b in /dev!

2010-01-22 Thread Kevin Kinsey

insecur...@malandrines.net wrote:

Unable to find device node for /dev/ad0s1b in /dev!

help me please


$ grep ad /var/run/dmesg.boot

Is /dev/ad0 there?  /dev/ad0s1b ?

Do you have SCSI disks instead?  A RAID?

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Server set up

2010-01-16 Thread Kevin Kinsey

Chad Perrin wrote:

On Fri, Jan 15, 2010 at 04:34:17PM -0600, Kevin Kinsey wrote:

NTFS comes with NT versions of Windows, that is, NT, Windows 2000,
and everything since then.  W95 and W98 used FAT filesystems.  Fat32
was the default for Win98 IIRC.


I know a lot of MS Windows users like to pretend WinME never existed, but
I like to think those of us in the FreeBSD community take a more honest
look at the world.  Thus, for the sake of clarity:

NTFS comes with NT versions of Windows -- that is, WinNT, Win2K, WinXP,
and everything since then.  Win95, Win98, and WinME used FAT filesystems.

I wouldn't want anyone to make some kind of grave error involving the
assumption that WinME used NTFS. . . .


ROFL.  I don't think I was being dishonest, certainly not intentionally.
I did recently purchase a small notebook with Windows 7 installed.  I
may have had my head infected by the Marketroid virus as a result.  :-D

So, yes Virginia, there was one further release with the (DOS-based?)
Windows kernel, named WinME.  Now, to be real pedantic, there was Windows
3.1 before Windows95, and before that, Windows 3.0, 2.1, 2.0, 1.0, and
Interface Manager.

I'm feeling kinda sick now ... so, no more ROFL, maybe ROLF instead?

Fi`ni.

Kevin Kinsey


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


Re: Server set up

2010-01-15 Thread Kevin Kinsey

Jerry McAllister wrote:


Of course, if you plan to dual boot FreeBSD along with the existing
installation of W98, then you need enough disk for both of them.
Probably 20 Gbytes each as a minimum.  More is nicer.

If you want to dual boot, then you will need to acquire a utility
that will allow you to shrink down the W98 portion of the disk
to make room for FreeBSD.   There are several available, both for
a price and free.   The most common one to buy is Partition Magic.
I have used that successfully until I came to dividing a USB disk
and it failed on that.   It has some other quirks and limits too.

The most common free one is gparted which you can download and
burn to a CD from the net.  Just do a Google search for it.
There are other free ones.  Two limited ones come with FreeBSD.

I don't remember back to W98.  Does it use NTFS file system type?
It the Windos file system is of type NTFS, most of the free partition
utilities will not work.I think that gparted is supposed to,
but I haven't tried it on that.   


NTFS comes with NT versions of Windows, that is, NT, Windows 2000,
and everything since then.  W95 and W98 used FAT filesystems.  Fat32
was the default for Win98 IIRC.

KDK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Failed to Load Kernel

2010-01-07 Thread Kevin Kinsey

Programmer In Training wrote:

On 1/6/2010 5:07 PM, Programmer In Training wrote:

snip

After testing out the boot disk on my mom's laptop, I have determined
there is an error somewhere with my computer. I don't know what it is or
where to even begin to look to fix it, but my computer is toast.



BIOS:
Phoenix - AwardBIOS

Attached Hardware:
Sound Blaster Live!
Generic USB expansion PCI Card
Pentium IV 2.4GHz
2GB RAM
HP DVD Writer 1040r
NEC CD-RW NR-9100A
6GB WD WD64AA
ATI Radeon 9200 (AGP)
ZoneNet 10/100 Wireless NIC
LinkSys 10/100 wired NIC

Monitor:
CTX LCD

No floppy disk drive (none hooked up anyway)
ZIP100 internal drive (not hooked up to anything)

None of the attached hardware I saw specifically listed as being
compatible, but none of it listed as incompatible, either.

The two optical drives are known to work (obviously if I can get so far
as attempting to load the kernel). The only thing I can think of is the
hard drive (unknown previous working condition, although claimed to be
in good order).

Just to test, though, I'm going to swap out the CD-RW for a 52x CD-ROM.
I have no other hard drives to test with (my 32GB drive, known to work,
is MIA).


Hmm, having two optical drives might rise up and bite one's tushy;
It could be that you're booting from a drive in BIOS that gets
reassigned by the kernel to be number two, and the kernel's
attempting to find it one number one.  NO idea for certain, but
such things have happened in the past, I think.

You might trying disconnecting one optical drive and trying
again.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Failed to Load Kernel

2010-01-05 Thread Kevin Kinsey

Programmer In Training wrote:

Hello, P I T (Joseph?),

I'm rather astounded that no one has responded to your
email as of yet.  IANAE, but here goes:

snipped the part about checksums, per your later post


The message I'm getting (wish I could just screen cap and put it up on
the web):

FreeBSD/i386 bootstrap loader, Revision 1.1
(r...@almeida.cse.buffalo.edu, Sat Nov 21 14:05:36 UTC 2009)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x88d680
readin failed


Could that be readln?  Been too long since I saw it.
The typo below makes me assume you're typing from the
view on the the monitor.  Bad news is, ev'ry time I've
seen this, it's because of bad media.  I've not seen it
for years, though, and then, it was always on floppy
installs, which, I think, are the posterboy for bad media
on Google or Wikipedia or summat.


elf32_loadimage: read failed
Unable to lad a kernel!
/
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
can't load 'kernel'

As far as I can tell, the cd burned fine (I did the burn on a Toshiba
notebook running Vista, was able to browse the folders just fine,
everything looked in order).


I'm guessing there's some issue we're both unaware of.  Perhaps
someone with a better grok on the situation will post.


Do I need to use the bootonly.iso as well? What am I missing here? I
know my drive that I'm booting from is in perfect working order (DVD
Super Multi-Format DVD+/-R(W), HP, less then a year old with no problems
prior).


You could try the bootonly,iso, but the disc you are using does
the same thing, and more.  Bootonly is just the installer program,
and is intended to be used when you want to installer over the network,
like in the old floppy days.  Disc1 should have the installer and
all the necessary chunks to get a working environment without
a network connection.


All the hardware up to this point appears to be detected just fine.


That's good to hear.  As I mentioned, hopefully someone else
will have a better clue on this, as I've not had the problem
for years.  I've also not burned a CD for FreeBSD on Windows
*ever*, so I'm thinking it could be related to that, somehow
or other, despite the fact that you can see everything.  But
then again, maybe I just don't trust Windows programs ;-)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: problem with php5-snmp

2009-12-01 Thread Kevin Kinsey

B. Cook wrote:

Trying to update all ports since updating to 8.0..

already rebuilt all ports and did a yes | make delete-old-libs so none 
of that is the problem..


php5-snmp would not rebuild.

Not sure where the problem is..

but below is tons of output..


snip


checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for 
more information.


So what does config.log say?  It should be at
/usr/ports/net-mgmt/php5-snmp/work/{$PORTNAME}/config.log
and *might* have useful information.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Remote ssh tunnel in background or script?

2009-11-09 Thread Kevin Kinsey

Greetings!

I have a client who recently dropped static IP service in
favor of a cheaper solution, so they're now on a DHCP network
blocking port 25, etc.

In order to continue to allow them to connect to an outbound
SMTP box on the LAN, I've done this on their server:

sudo ssh -L thisbox:24:remotebox:52525 m...@remotebox

I've got Sendmail listening there on 52525, and it works
fine; the local clients are told to connect to thisbox
port 24.  The only issue is that I have to run it from
a terminal session.  When I tried to bg the process (cmdstring )
it doesn't work, exactly.  I've gotten an error message
at times*, and at other times I apparently get thisbox
listening on port 24 but it's not an SMTP daemon that's
listening.

I have a feeling it's cause I'm in csh, which is notorious
for backgrounding issues.  ?  At any rate, what I'd
like to do is have a script set up the connection, or
write some daemon that would monitor the connection and
fix it if it gets reset.  At any rate, if I could get this
SSH process to detach from a terminal, it'd be great.

Any suggestions?

Kevin Kinsey

* I'm sorry, but I can't reproduce the error message
this morning.  IIRC, something to the effect of
I can't do nothing, give me a command please?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Remote ssh tunnel in background or script?

2009-11-09 Thread Kevin Kinsey

Svante Kvarnstrom wrote:

Hello

Have you tried -f (for background) and -N for Do not execute a remote 
command? See man 1 ssh for more details.


Svante


Cheers for you!

It was -f without -N that produced the error.

I'm guessing I got down the manpage about as far as
-f and didn't go any further.  *beats head on desk*

Thanks, Svante!

For the archives:

SMTP OVER SSH TUNNEL FREEBSD

  sudo ssh -f -N -L localname:24:remotename:52525 m...@remotename

When SMTP is listening on remotename port 52525.  sudo is needed
to open the tunnel on the localname side on port 24 (a privileged
port).  You could do this as root on the local side, but shouldn't
connect *to* root on the remote computer.


On Nov 9, 2009, at 7:30 PM, Kevin Kinsey wrote:


Greetings!


sudo ssh -L thisbox:24:remotebox:52525 m...@remotebox

I've got Sendmail listening there on 52525, and it works
fine; the local clients are told to connect to thisbox
port 24.  The only issue is that I have to run it from
a terminal session.  When I tried to bg the process (cmdstring )
it doesn't work, exactly.  I've gotten an error message
at times*, and at other times I apparently get thisbox
listening on port 24 but it's not an SMTP daemon that's
listening.

I have a feeling it's cause I'm in csh, which is notorious
for backgrounding issues.  ?  At any rate, what I'd
like to do is have a script set up the connection, or
write some daemon that would monitor the connection and
fix it if it gets reset.  At any rate, if I could get this
SSH process to detach from a terminal, it'd be great.

Any suggestions?

Kevin Kinsey



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


Re: Why is sendmail is part of the system and not a package?

2009-10-27 Thread Kevin Kinsey

Gonzalo Nemmi wrote:

On Tuesday 27 October 2009 7:22:22 pm Lowell Gilbert wrote:

I probably should move this bikeshed to freebsd-chat...


I'd like the bikeshed blue, please.  Also, since Sendmail
has reached maturity, let's baptize it now instead of
during infancy, and add a knob FEATURE(require_calvinism).

Also, I'm attending the annual meeting of my Sendmail Users
Anonymous Group (SMAUG) tomorrow (it's annual because there are
SO FEW of us we had to scour the world to find a quorum and it
makes economic sense to to meet just once a year), where
I'll ask Pope Eric to call up troops to end this holy war
on this list once and for all.  I'm sharpening blades in
the shop even as I write this!  DEUS VULT

'Nuff ... please?

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: changing cron's From: address in emails

2009-10-24 Thread Kevin Kinsey

Paul Schmehl wrote:
--On Saturday, October 24, 2009 4:16 AM -0500 Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:



Kelly Martin wrote:


How can I change the From: address of these emails to Myserver Cron
Daemon instead? I know cron runs as the user, so it's not immediately
obvious to me how to change the From: field. Already the subject line
says something like Cron r...@myserver ... but this doesn't stand
out enough for my tired eyes.


Do you control the mail server where you read your e-mail?  Can you use
eg. procmail(1) as a delivery agent?  You should be able to match e-mails
from Cron and rewrite headers, or deliver cron e-mails into per-machine
mailboxes.  Something like this:

   :0 h
   * From:.*Cron r...@\/[^\.]+
 $MATCH

The other alternative is to re-write the cron scripts to send e-mail
themselves, rather than relying on cron(8) to capture their stdout/stderr
and e-mail it for you.  Here's a handy shell programming trick that can
make that easier.  Somewhere near the top of the script, you can add
something like this:

   exec 21 | /usr/sbin/sendmail -oi -t
   echo From: Sender Name sen...@add.ress
   echo To: recipi...@some.where
   echo Subject: e-mail from cron job
   echo 

Then everything you print out in the script will be captured as the body
of the e-mail and sent to the specified recipient.  You might get some
warnings about forgery in the mail headers if the userid the script runs
as is not the same as the 'From:' address.



Why not just echo `hostname` as the first line of every script?  Isn't 
that what he really wants to know?


Or echo This script came from `hostname`?


Or, on a related note, why have cron(8) do any mailing at all?
Most/all of my management scripts compile a mail message in
/tmp and then send it as the body of a message with mail(1),
so I can have whatever subject header I want, and the envelope
data comes from the user (usually m...@myhost.tld).  Cron sees
nothing because stdout/err is redirected to dev/null.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd forgets root password

2009-10-24 Thread Kevin Kinsey

kalin m wrote:


does anybody here know if freebsd has a driver for Marvell 88E8057 nic 
chip?


according to the kernel list of drivers (7.2) marvell chips are driven 
by the msk driver. but it doesn't show up in pciconf, dmesg or 
sysinstall
strangely enough 88E8057 is not in the list in man msk. although 88E8056 
and 88E8058 are. is this just bad luck?!




No, as I mentioned earlier, it appears the driver author didn't have
or wasn't aware of this chipset.  It's quite possible, based on the
cursory glance I gave to the headers of the file, that it didn't exist
at the time it was written.  There are obviously some issues with
licensing or disclosure or what-not.

See /usr/src/dev/msk/if_msk.c, down about line 210-220 where
these are defined.  You can, I think, very carefully, attempt
to add this device to that file and rebuild your kernel, I think,
and then see if it works.  I'm thinking OOTOMH the trick would be getting
the right DEVICEID string in there.

Barring that, you might speak very sweetly to the author of the driver,
perhaps offering $BEVERAGE and detailed information about the chip, and
see if he/she would attempt to conjure up the right code to make it work.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd forgets root password

2009-10-23 Thread Kevin Kinsey

kalin m wrote:



hi all 

this is really weird.
i've must have set up the root password on this new machine i got at 
least 5 times and after a few reboots this thing forgets it.

i have to go in single user and reset it again and again?!?

what can be the reason?


Can you clarify a bit?  Do you mean, after rebooting I can get
in without a password, or, after rebooting it refuses the password
I type, or something else?  Are you logging into the console, or
into something like xdm/gdm?  What about normal (non-root) accounts,
do they also have this problem?

And, for that matter, why have you done a few reboots?  This
isn't Windoze ;-)

 while i'm on here... the machine comes with an ethernet card

snip

Sounds like, possibly, a newer variant of the device?  Occasionally
a manufacturer makes a new variation on a chip/device and the FBSD
driver doesn't recognize it.  If you can get the thing to work, or
maybe use another card and update, it just might.  Can't say for
sure, but you might check the CVS Web Interface for changes to
the msk(4) driver in the last $n months.

At any rate, the suggestion to read the manpage for msk(4) isn't
a bad one.  It could be that you need to add a KLD to loader.conf
or something ... at the very least, it should say what variants
are expected to work with msk(4).

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Question about FreeBSD syscall usage

2009-10-21 Thread Kevin Kinsey

Yan, Yeqing wrote:

Hi:
I'm from Intel China. Our project use FreeBSD 7.0 

 and I have some questions about the FreeBSD syscall.

I don't know how to use these syscall below.
Is there having some doc or example about how to use these syscall?

kse_exit
kse_wakeup
kse_create
kse_thr_interrupt
kse_release
kse_switchin

mac_syscall

thr_create
thr_suspend
thr_kill2

Thank you very much!

Best Regards
Yan, Yeqing


Hello Yeqing,

You might want to write to hack...@freebsd.org ...
... some of those guys *wrote* these syscalls.  However,
since it's a question, I'll take a stab at it.

Have you read:

$man kse
$man 3 mac
$man libthr  ?

Also, see www.freebsd.org/kse/

However, I think that KSE was used in 5.x and 6.x
and then dropped in favor of a 1:1 threading model
when 7.0 was released (I'm sure some hacker@ can
correct this information if I'm wrong).

I hope this is helpful to you.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sysinstall colours

2009-10-11 Thread Kevin Kinsey

Alexander Best wrote:


Seriously?!?!?! All the problems with sysinstall, and your idea is to
change
the color? Are you trying to start a bikeshed? If so, I prefer pink.



-- randi


I'm painting the little girl's room next week and might have
some leftover interior latex, if that will do.  Oh, but, it's
outside, so prolly not.  Sorry.  Or, do you want your pink
bikeshed in the garage?  ;-)


current developers don't seem to have any interest in improving sysinstall. so
it's important to get new people involved in freebsd. and the way to do that
is with an attractive looking installer and an easy installation process imo.


I don't want to be harsh, but do you know what you're talking about?

Randi, for one, has taken on the zombie known as sysinstall with a
nice big shotgun, and is attempting to keep adding a few features 
here/there as needed to keep up with necessities while other developers 
(AFAIK) work on other projects, including, at last count, a couple 
differnet possibilities for installers.  It's apparently been rather 
daunting work, and, as a result, the new installer, whatever its name 
is/will be, isn't ready for inclusion with 8.0.


However, a day is coming ...

Kevin Kinsey


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


Tcpwrappers, sendmail, and unknown hosts...

2009-10-10 Thread Kevin Kinsey

Seems like a lot of the spam we fight comes from
hosts with no DNS entries.  What about using this?

--

$grep sendmail /etc/hosts.allow

sendmail : KNOWN : allow
sendmail : UNKNOWN : deny

-

Comments?  anyone tried it?

Kevin Kinsey
DaleCo, S.P.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Tcpwrappers, sendmail, and unknown hosts...

2009-10-10 Thread Kevin Kinsey

Jeff Laine wrote:

On Sat,10-10-2009 [12:31:01], Kevin Kinsey wrote:

Seems like a lot of the spam we fight comes from
hosts with no DNS entries.  What about using this?

--
$grep sendmail /etc/hosts.allow

sendmail : KNOWN : allow
sendmail : UNKNOWN : deny
-

Comments?  anyone tried it?



Hi Kevin!

What you need is 'require_rdns' feature.
Also from my own expirience, dnsbl feature of 

 Sendmail works great for spammers scum.

TYTY!  Bang-Smack-Out of the park.  Lemme
know where I can send {$beverage}.

Mail queue (Sendmail dual + amavid-new + spamassassin)
is down from 100+ to  10 after adding that to .mc
and rebooting.  Thanks a bunch  :-)

Kevin Kinsey
DaleCo, S.P.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Security cams/DVR, using FBSD?

2009-08-21 Thread Kevin Kinsey

Hello,

I seem to have a problem --- fairly small pieces of equipment are
disappearing occasionally.  It's a couple hundred dollars here or
there, but it's starting to add up.

I'd like to set up a box or two with a camera feeding an HDD for
later review.  Is there a hardware/software combination you 
use or recommend for video monitoring?


TIA,

Kevin Kinsey
--
There is a Massachusetts law requiring all dogs to have their hind legs
tied during the month of April.

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


Re: freebsd

2009-08-17 Thread Kevin Kinsey

BONGANI MANGANYE wrote:

am doing research about freebsd ,so can you help me with this
information
1. features, benefits and setbacks
2. Functionality and features 
3. versions, strong and weak points 
4. Unique features


www.freebsd.org

:-)

Kevin Kinsey
--
Here I am, fifty-eight, and I still don't know what I want to be when
I grow up.
-- Peter Drucker

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


Re: freebsd

2009-08-17 Thread Kevin Kinsey

BONGANI MANGANYE wrote:

i dont know if is me or what but you havent answerwd my question,please
take ur time ad give me reply


Kevin Kinsey k...@daleco.biz 08/17/09 2:18 PM 

BONGANI MANGANYE wrote:

am doing research about freebsd ,so can you help me with this
information
1. features, benefits and setbacks
2. Functionality and features 
3. versions, strong and weak points 
4. Unique features


www.freebsd.org

:-)

Kevin Kinsey


My reply is, *read the website*.  www.freebsd.org is
the FreeBSD Project's site and gives details such as
those you are asking for with great attention to
accuracy in language and with great character.

If your native/primary language is not English,
the site should still be available in several other
languages, but I've never read those, and can't
*positively* say that they will help you as much.
I have, however, read posts by persons on the translation
teams, and they seem top-caliber as well as the
programmers and English documentation team, so you
should still be able to glean most of what you need
from the site.

If you are looking for opinions rather than facts,
please accept my apology for not giving you mine,
but I read the original post as asking for facts,
and these can best be found from the Project's website.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FTP

2009-07-07 Thread Kevin Kinsey

Jos Chrispijn wrote:

Ruben de Groot wrote:

On Tue, Jul 07, 2009 at 11:27:53AM +0200, Jos Chrispijn typed:
  - use truss on the server process
  

Thanks for your reply; can you explain what you mean with this?

Jos Chrispijn


He's assuming you have control of the FTP server ...

$ apropos truss
truss(1) - trace system calls

... so you can use the above tool to see what's going
on from the server's point of view.

HTH,

Kevin Kinsey
--
Suaviter in modo, fortiter in re.
Se non e vero, e ben trovato.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrade almost done on ns1.thought.org

2009-06-14 Thread Kevin Kinsey

Gary Kline wrote:
	well, guys, i just pulled the trigger and install kernel and 
	world.  upon reboot most things worked.  i'm having trouble with

the ntp stuff and need help there.

who can tell me what idiot thing is wrong with my ntp.conf file:

drwx--  2 root  wheel   512 Dec 24  2007 ntp
-rw-r--r--  1 root  wheel   157 Jan 19  2008 ntp.conf

the ntp directory is/has been empty.  in ntp.conf i thought this
was correct, but upon reboot, i get sudden errors (with 7.2)

sage# cat ntp.conf
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.htp.org
driftfile /var/db/ntp.drift
restrict 10.47.0.0 mask 255.255.255.0 nomodify notrap

anybody?


Not certain, Gary, as IANAE; here, /etc/ntp/holds ntpd.conf,
and /etc/ntp.conf is a symlink to said file.  No issues with
ntp; I'm running 7-STABLE from last summer.

Kevin Kinsey

--
It's better to be quotable than to be honest.
-- Tom Stoppard

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


Re: GSM to Serial Converter

2009-05-30 Thread Kevin Kinsey

Exemys wrote:

This is a message in multipart MIME format.  Your mail client should not be 
displaying this. Consider upgrading your mail client to view this message 
correctly.


Wrong list.  You should consider
upgrading *your* mail client to send
messages correctly; general consensus,
and I'll leave it to another troll to
quote the relevant RFC's. ;-)

Oh, and upgrade your keyboard to one
with an ENTER key as well, please.  :-P

Kevin Kinsey
--
Ring around the collar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: loader.conf

2009-04-10 Thread Kevin Kinsey

gahn wrote:

Hi all:

I have a machine with 2GB memory. in the file loader.conf, there is a line:

#hw.physmem=1G# Limit physical memory. See loader(8)

Could I remove the # and change that to 2G?


Yes, but, would it make a difference?


Interestingly, the sysctl indicates the parameter of hw.physmem is not 
changeable.


It is changeable before the system boots (during the 'loader' stage),
but not changeable later.  The question is, what's it currently
set to?  The comment means that the line in question *isn't* a 
physical memory limit ... what's the current setting of hw.physmem,

and why would you *want* to limit it?

On my systems, both 7x and 6x, hw.physmem is something like 4G
by default---despite the fact I've nothing like that amount of
RAM onboard.


Any guru here give me some enlightenment?


IANAE, but am willing to accept correction.

Kevin Kinsey
--
When a person goes on a diet, the first thing he loses is his temper.

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


Re: installing freebsd 7.1 ( error mounting /dev/acd0 input/output error)

2009-03-30 Thread Kevin Kinsey

ajeesh joseph wrote:
 Hello,I was installing freebsd 7.0/7.1to my 
Ampro RB700,celeron processor,usb hdd 80gb using my 
CD drive.during the time of installation i get 
error error mounting /dev/acd0 input/output error
could any one tell me how to solve this and how 
can i install the OS..regardsAjeesh 


/dev/acd0 is your CDROM drive.

Try using a different CD for starters ... (a
2nd copy) ... if that doesn't work, it might
be a bad CDROM drive.

HTH,

Kevin Kinsey
--
If one studies too zealously, one easily loses his pants.
-- A. Einstein

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


Re: phpBB3, php5 and mysql

2009-03-24 Thread Kevin Kinsey

Christoph Kukulies wrote:
I'm in the process of moving a phpBB3 forum to a new machine (formerly 
5.2, now 7.1).

I also was so keen to move to php5 (was running php4 before, I believe).

I have the phpBB3 forum directory copied back into the DocumentRoot.
Mysql 4.1 is running, The database is there, I can log in to mysql and 
view the database.

I can get phpinfo.

Only I can't get the hell out of the phpBB3 forum. When I invoke the 
index.php
I get a blank page with an incomplete xml header. I have no idea were to 
look at the moment.


Wherever PHP places its errors?  On my installations, it's
/var/log/httpd_error_log.  This might be configurable via
PHP's ini file, or PHP's ini_set(), or from the system's 
syslog.conf ... not certain.


It looks a bit like php5 is not accessing the database (mysql) or 
something. Is there some module
or driver to be compiled in? I installed php5 now from ports with the 
apache mod_php5 module

being installed.


PHP is great about telling what's wrong ... if it's configured
to do so.  Once you have an error message, it'll be easier to 
know how to fix it.


Kevin Kinsey
--
Ever wonder if taxation without representation might have been cheaper?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Kevin Kinsey

Chris Rees wrote:

2009/3/12 Gilles gilles.gana...@free.fr:

Hello

I'd like to download information from our competitor's web site,
without their knowing it's from us.

The Tor network works fine, but they don't seem to provide a *nix
version, much less a command-line version (the download script will
run  on a non-X FreeBSD 6.3 server).

Do you know of an alternative for FreeBSD, ie. a solution that will
let me connect to a web server through at least one other host, and
have the IP address change automatically every few minutes?

Thank you.



Don't you think it's a bad idea to publish your nefarious intentions
to a PUBLIC mailing list with your name on it? Your 'competitor' will
see this if all s/he does is do a Google search for your name, which
would certainly be easier than scouring their httpd logs.

Chris


It probably is, but you're assuming his competitors know that
he works for their competition, and, for that matter, that
Giles 
 is his real name, etc., etc.


KDK
--
Campbell's Law:
Nature abhors a vacuous experimenter.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Which install ?

2009-03-09 Thread Kevin Kinsey

Darryl Hoar wrote:



From this, I believe I should install the i386 version of Freebsd.  Do I

have to do anything to enable multi-processors in Freebsd ?


AFAIK you need apic and smp options in your kernel config; of
course, the good news is that 7.0 and up have this enabled by default.

Kevin Kinsey
--
Squirrels eating squirrels, my God, that's sick.

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


Re: Apache 1.3.41

2009-03-06 Thread Kevin Kinsey

Jos Chrispijn wrote:
For some reason, Apache isn't starting anymore after having my ports 
upgraded today. That was a major php5 upgrade and I think it might have 
to do something with it.


[snip]

Looks like half way the start Apache is stopping and bypassing every log 
output.


Can some tell me what I am overlooking here? Does it have something to 
do with the php-5 portupgrade?


High probability that you're correct.  It could be possible that running
a quick PHP command at the CLI (of course, that assumes that PHP has installed
a CLI version) would get the error out in the open.  Likely one of the modules
isn't compatible?  I'd comment out the entire /usr/local/etc/php/extensions.ini
file and see if HTTPD starts.  If it does, enable half the extensions and
try again, etc., until you find which one causes the problem.

In all likelihood, to really sort things out permanently, you'll
need to rebuild all the extensions.

HTH,

Kevin Kinsey
--
Our business in life is not to succeed
but to continue to fail in high spirits.
-- Robert Louis Stevenson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: USB key with 7.5 GByte but no space left on device after 4 GByte written

2009-03-05 Thread Kevin Kinsey

Matthias Apitz wrote:


to end this threat, I did:

# dd if=/dev/zero of=/dev/da0 bs=64k count=1
# newfs_msdos /dev/da0
# mount -t msdosfs /dev/da0 /mnt
# time cat file file file  /mnt/big
cat: stdout: File too large
0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w

# df -kh /mnt
FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/da0  7.5G4.0G3.5G53%/mnt

i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as
free;

the write speed is
4294963200 in 14:36.63 minutes, i.e. 4902926 per sec;

matthias


Probably I'm just making more noise; you didn't give any
hardware details.  Some manufacturers (I have a SanDisk
Cruzer) are now putting multiple partitions on a flash stick;
the Cruzer has one which, on Windows,emulates a CD-ROM drive
(dunno why a CD emulation would take up 3.5 GB, tho).

Kevin Kinsey
--
It is sweet to let the mind unbend on occasion.
-- Quintus Horatius Flaccus (Horace)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OT: what is the X11 equiv of /dev/null

2009-03-02 Thread Kevin Kinsey

Modulok wrote:

I was thinking is there someway to direct a X11 app to target the X11 equiv of 
/dev/null ?


...what? What problem are you trying to solve, exactly?
-Modulok-


I'd have to assume he wants to call a remote X program from his terminal
and not have the program's output clutter it up.

My usual workaround is:

1.  xterm  in Terminal one.
2.  appname  in the new Xterm, then CTL-D.

I also have a couple of buttons in XFCE that simply call
ssh $somehost $someapp.  I've no idea where it puts
the stderror/stdout, but I never see it.

Kevin Kinsey
--
Surely you cant be serious.
I am serious, and dont call me Shirley.

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


Re: RELENG_7 != STABLE?

2009-02-25 Thread Kevin Kinsey

Paul Schmehl wrote:

I have this in my /etc/cvsupfile:

*default tag=RELENG_7

Yet, when I recompiled world and kernel yesterday, I ended up with this:

FreeBSD hostname.utdallas.edu 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #10: 
Mon Feb 23 18:15:12 CST 2009 
r...@utd65257.utdallas.edu:/usr/obj/usr/src/sys/GENERIC  i386


I thought that tag got me the STABLE branch?


And I'm probably just talking out loud to hear my own voice at
this point, but the -STABLE branch is tagged -PRERELEASE during
the last $n $units prior to a RELENG_M_N being tagged, unless
I'm mistaken [IANAE] ... in case that was what your question actually
was.


Kevin Kinsey

--
Are you a turtle?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: hi

2009-02-22 Thread Kevin Kinsey

Wojciech Puchar wrote:

On Sun, Feb 22, 2009 at 04:07:44PM +, Saifi Khan wrote:

The existing users provide continuity not growth. To be popular
FreeBSD needs growth.



I think that one of FBSD's guiding principles is *correctness*
... or, at least, that's one of the higher values of the
community.  By way of evidence, I present the following
terms, used frequently in correspondence on these lists:

It Just Works(tm)
The Right Way(tm)
canonical
P.O.L.A.

And be sure and check today's .sig ;-)

Kevin Kinsey
--
Grandpa used to say --- What is right is not always popular,
and what is popular is not always right.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: desktop app/config

2009-02-19 Thread Kevin Kinsey

Jean-Paul Natola wrote:

What is the terminology that I would need to search in the handbook to get
a bsd machine to authenticate with AD  I have Mac machines that authenticate
to our network- but that's easy to configure


AD==Active Directory?

BSD doesn't do that by default.  AFAIK, you'll need to install
and configure SAMBA (which is in ports).

As for the original question, I saw a config by a guy named
Horen (I think, from NW Europe someplace) for FVWM which looked
almost exactly like Windows XP, down to the icons.  There's also
FWVM95, which is supposed to look like Win95.  And, I've not
seen XFWM mentioned yet, which is pretty user friendly and a
tad more lightweight than KDE or Gnome ... which could be important
if you're talking about recycled hardware.

My $.02,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pkg_info php

2009-01-06 Thread Kevin Kinsey

Grant Peel wrote:

Hi all,

I am getting 'segmentation faults' when using php (apache module) on a server
that recently had php 4 instlalled when php 5 was already there.

/var/log/httpd-error.log:

[Tue Jan 06 09:44:39 2009] [notice] child pid 8209 exit signal Segmentation 
fault (11)

Is there a way to completely remove all hints of php 5? Do you think this would 
stop the segmentation faults?


IANAE, but (and I don't intend a personal offense) this is a
very convoluted configuration.  Having PHP4 and PHP5 side by
side isn't something I'd try on one box; too much chance of
the extensions overlapping one another, and this would be a prime
cause of a segfault --- that is, PHP5, just as an example, might
be attempting to use an extension.so that was compiled against
PHP4, or vice-versa, and such a problem is the usual cause of
such errors.  My $0.02.

There is a good possibility that doing the following would help:

*Pick one version or the other, probably v 5, as v4 is EOL'ed.
*Uninstall both versions and Apache, and all php-extension ports.
*Reinstall the PHP$n port with Apache module enabled via OPTIONS.
*Reinstall the correct php-extension ports.

HTH,

Kevin Kinsey

PS  once again, a fitting .sig.  Is our randomizer
not random enough?  Or something more sinister?


Uname -a:

FreeBSD servername 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 22 02:59:38 EST 
2007 ... i386

Output of pkg_info:

apache-2.2.3Version 2.2 of Apache web server with prefork MPM.
apachetop-0.12.6Apache RealTime log stats
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
bind95-base-9.5.0.2 The BIND DNS suite with updated DNSSEC and threads
bsdpan-Archive-Tar-1.30 Archive::Tar - module for manipulations of tar archives
bsdpan-Authen-PAM-0.16 Authen::PAM - Perl interface to PAM library
bsdpan-CGI-SpeedyCGI-2.22 SpeedyCGI - Speed up perl scripts by running them 
persisten
bsdpan-Compress-Raw-Zlib-2.004 Compress::Raw::Zlib - Low-Level Interface to 
zlib compressi
bsdpan-Compress-Zlib-2.004 Compress::Zlib - Interface to zlib compression 
library
bsdpan-Crypt-CBC-2.14 Crypt::CBC - Encrypt Data with Cipher Block Chaining Mode
bsdpan-Crypt-CBC-2.22 Crypt::CBC - Encrypt Data with Cipher Block Chaining Mode
bsdpan-Crypt-DES-2.05 Crypt::DES - Perl DES encryption module
bsdpan-Crypt-SSLeay-0.53 Crypt::SSLeay - OpenSSL glue that provides LWP https 
suppor
bsdpan-Date-Calc-5.4 Unknown perl module
bsdpan-Date-Manip-5.44 Unknown perl module
bsdpan-Digest-1.15  Digest - Modules that calculate message digests
bsdpan-Digest-HMAC-1.01 Digest::HMAC - Keyed-Hashing for Message Authentication
bsdpan-Digest-MD5-2.36 Digest::MD5 - Perl interface to the MD5 Algorithm
bsdpan-Digest-Nilsimsa-0.06 Digest::Nilsimsa - Perl version of Nilsimsa code
bsdpan-Digest-SHA1-2.11 Digest::SHA1 - Perl interface to the SHA-1 algorithm
bsdpan-ExtUtils-CBuilder-0.18 ExtUtils::CBuilder - Compile and link C code for 
Perl modul
bsdpan-ExtUtils-ParseXS-2.18 ExtUtils::ParseXS - converts Perl XS code into C 
code
bsdpan-HTML-Parser-3.56 HTML::Parser - HTML parser class
bsdpan-HTML-Tagset-3.10 HTML::Tagset - data tables useful in parsing HTML
bsdpan-HTML-Template-2.9 HTML::Template - Perl module to use HTML Templates 
from CGI
bsdpan-IO-Compress-Base-2.004 IO::Compress::Base - Base Class for IO::Compress 
modules
bsdpan-IO-Compress-Zlib-2.004 IO::Compress::Gzip - Write RFC 1952 files/buffers
bsdpan-IO-Socket-INET6-2.51 IO::Socket::INET6 - Object interface for 
AF_INET|AF_INET6 d
bsdpan-IO-Socket-SSL-1.02 IO::Socket::SSL -- Nearly transparent SSL 
encapsulation for
bsdpan-IO-Tty-1.07  IO::Tty - Low-level allocate a pseudo-Tty, import constants
bsdpan-IO-Zlib-1.05 IO::Zlib - IO:: style interface to LCompress::Zlib
bsdpan-IO-stringy-2.110 IO-stringy - I/O on in-core objects like strings and 
arrays
bsdpan-Locale-gettext-1.01 gettext - message handling functions
bsdpan-MD5-2.03 MD5 - Perl interface to the MD5 Message-Digest Algorithm
bsdpan-MIME-Base64-3.07 MIME::Base64 - Encoding and decoding of base64 strings
bsdpan-MIME-tools-5.420 MIME-tools - modules for parsing (and creating!) MIME 
entit
bsdpan-Mail-SpamAssassin-3.001008 Mail::SpamAssassin - Spam detector and markup 
engine
bsdpan-MailTools-1.74 Mail::Cap - Parse mailcap files
bsdpan-Net-CIDR-Lite-0.20 Net::CIDR::Lite - Perl extension for merging IPv4 or 
IPv6 C
bsdpan-Net-DNS-0.59 Net::DNS - Perl interface to the DNS resolver
bsdpan-Net-IP-1.25  Net::IP - Perl extension for manipulating IPv4/IPv6 address
bsdpan-Net-Ident-1.20 Net::Ident - lookup the username on the remote end of a 
TCP
bsdpan-Net_SSLeay.pm-1.30 Net::SSLeay - Perl extension for using OpenSSL
bsdpan-Number-Format-1.52 Number::Format - Perl extension for formatting numbers
bsdpan-Parse-Syslog-1.09 Parse::Syslog - Parse Unix syslog files
bsdpan-Socket6-0.19 Socket6 - IPv6 related part of the C socket.h defines and s
bsdpan-Text-Iconv-1.4 Text::Iconv - Perl interface to iconv() codeset conversion
bsdpan-Unicode-String

Re: running asfiles on windowmaker...

2008-12-30 Thread Kevin Kinsey

Peter Boosten wrote:


On 30 dec 2008, at 07:02, per...@pluto.rain.com wrote:


  Does anyone know how to run asfiles on windowmaker?
Whereis its executable? (path)


I have no idea what asfiles is, but I would assume
`which asfiles' would tell you where it is located.


... unless it's not in PATH, and the OP is asking which directory
needs to be added.  asfiles is a port which installs into /usr/local,
so I'd expect the executable to be in /usr/local/bin.  If not,

 find /usr/local -name asfiles -print

should find it.


pkg_info -L package

(replace package by actual package name)

Shows all files installed by the port, assuming OP installed asfiles 
through the port.


... and in this case, he'd better pipe that to more(1)

[17] Tue 30.Dec.2008 9:33:36 [kad...@archangel][~]
pkg_info -L asfiles-1.0_2 | wc -l
231

... or, even better, to head:

[18] Tue 30.Dec.2008 9:33:50 [kad...@archangel][~]
pkg_info -L asfiles-1.0_2 | head

Information for asfiles-1.0_2:

Files:
/usr/local/man/man1/files.1.gz
/usr/local/man/man3/regexp.3.gz
/usr/local/bin/files
/usr/local/include/bitmaps/MASK.xbm
/usr/local/include/bitmaps/application.xbm
/usr/local/include/bitmaps/autocad.xbm
/usr/local/include/bitmaps/bargraph.xbm

... and now we know why looking for asfiles
doesn't help much.  Try running files, Luiz.

Kevin Kinsey
--
If it's Tuesday, this must be someone else's fortune.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: install/upgrade FREEBSD on a remote server

2008-12-24 Thread Kevin Kinsey

Tom Worster wrote:

what ways exist to upgrade a remote server (to which you have no terminal
server attached) if the currently installed FREEBSD is too old for
freebsd-update? besides asking someone local to the server to help, i mean.


The Canonical Way of Auld(tm)* is detailed in the handbook.
It involves fetching the source code via cvsup/csup, and
rebuilding the kernel and world(userland), etc.

The entire process is covered in Chapter 24 of the handbook;
see http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html
for the beginning of the old way part.

HTH,

Kevin Kinsey
--
Neurotics build castles in the sky,
Psychotics live in them,
And psychiatrists collect the rent.

* Hee hee.  For many of us, it's the Only Way ;-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Kevin Kinsey

Eitan Adler wrote:

Jeff Laine wrote:

Just mv teh snowflakes to /dev/null ^_-

You can't mv things to /dev/null
 Operation not supported


Hmm, but you can cat /dev/null to something ...
so, a true UNIX guru should be able to do
something like:

find *snow* | xargs cat /dev/null  $1

Of course, that doesn't work, either.  Shows
why csh(1) is considered bad for snow removal,
as the story, maybe, goes

Joy to the world,

Kevin Kinsey
--
Distrust all those who love you extremely upon a very slight
acquaintance and without any visible reason.
-- Lord Chesterfield

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


Re: kldload: can't load /usr/local/modules/fuse.ko: Exec format error fusefs-ntfs-1.2531

2008-12-03 Thread Kevin Kinsey

Dino Vliet wrote:

Hi people,

kldload: can't load /usr/local/modules/fuse.ko: Exec format error



What does 


$file /usr/local/modules/fuse.ko

 say, and do you have Linux support built and enabled?

Kevin Kinsey
--
A failure will not appear until a unit has passed final inspection.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I permanently set the numerical ip in dmesg?

2008-11-24 Thread Kevin Kinsey

Mike Price wrote:

How do I permanently set the numerical ip in dmesg?


Hmm, I'm not sure what you are asking, *exactly*, because
dmesg(8) simply prints the collected messages given by the OS
kernel beginning with the most recent boot-up.

However, and I think maybe I'm correct in this guess, if
you are asking how to make the system remember the IP address
for an interface across a reboot, try adding a line like
this to the file /etc/rc.conf:

ifconfig_xl0=192.168.0.1 netmask 255.255.255.0

where xl0 is the name of the interface.  You can
read the manpage for ifconfig(8) (man ifconfig) and
possible the manpage for rc.conf(5) for more information.

HTH,

Kevin Kinsey
--
Many hands make light work.
-- John Heywood
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP Session Support in /tmp

2008-11-23 Thread Kevin Kinsey

Ivan Voras wrote:

APseudoUtopia wrote:

Hey.

PHP stores session data for the 'file' handler in /tmp, by default.
For organizational purposes, I'd like to change this to something like
/tmp/php_sessions/ or so. However, I have the clear_tmp_enable feature
enabled, so /tmp is cleared on reboot. PHP wont create the
php_sessions dir on it's own.

So basically, I'm looking for a way to create the dir
/tmp/php_sessions/ each time the server is booted BEFORE apache
starts. I'm sure I could do this somehow with the rc.d scripts, but I
really have no idea how.


man 8 rc.local


And, by way of an alternate suggestion, remember that cron(8)
recognizes an @reboot special string instead of the normal
five-field time indicators.

@reboot /bin/mkdir /tmp/php_sessions

HTH,

Kevin Kinsey

--
It's amazing how many people you could be friends
with if only they'd make the first approach.

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


Re: Soundcard problem

2008-11-23 Thread Kevin Kinsey

kenneth hatteland wrote:
After switching from FreeBSD 7.0 release to stable I have had a big 
soundproblem.
When compiling a kernel as I used to with device sound and device 
snd_emu10Kx as options I now get an error saying mixer is not configured 
etc.And no sound at all.  Have tried several mixers to but to no avail, 
I do not understand the problem enough to correct it.


I'm not sure I will either, but maybe won't hurt to try?

Googling doesn`t help as no one reports the same error with audigy 
soundcards.
If  I compile a kernel without the snd_emu10kx device sound works 
partially, sometimes playing ok, and then often sounding like an alien 
attacking ( digital noise of the horrible kind) Sooner or later the 
system locks down after playing about 5 songs with normal sound forcing 
me to hard switch the system off..  I find this extremely annoying.


I think I would also.

Does anybody have a clue ? I am not sure which output you`d want me to 
provide for this so instead of pasting every output I know I thought to 
ask first...
I haven`t reversed my system to 7.0 release so that could maybe fix it, 
but I was hoping to stay with 7.1 :)


Well, relevant lines re: your soundcard from `dmesg` or /var/run/dmesg.boot,
if it's there.  Also, output of `cat /dev/sndstat` and perhaps a listing thus:

ls -l /dev/dsp* /dev/mixer

for starters.

Kevin Kinsey
--
Fortune favors the lucky.

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


Re: Segmentation fault (core dumped)

2008-11-22 Thread Kevin Kinsey

tethys ocean wrote:

Hi to all

The server is give this error whenever i want to start apache22.  why?
regards


Well, there could be any number of reasons why this happens.
In my experience, it's because you have Apache loading a
broken or incompatible module.  Have you recently rebuilt
Apache, or some other module (like Perl, PHP, Python) that
is used by Apache?

Kevin Kinsey
--
If it ain't baroque, don't fix it.
---P.D.Q. Bach
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tool to recover fat partition

2008-11-12 Thread Kevin Kinsey

Gonzalo Nemmi wrote:

So ...

newfs_msdos /dev/insert_typo_in_here

.. new filesystem succesfully created ... lost partition on the wrong 
drive ...


Is there a tool to recover the files on said partition in FreeBSD (7 release)?

Thanks for you help :)

Regards


Ouch, feel your pain.  I've used sysutils/ddrescue for recovery
from a FAT partition, but I'm not at all sure if it will help in
your situation.

Kevin Kinsey
--
Seems this guy showed up at a party, and all of his friends jumped for
Joy.  But she sidestepped, and they missed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Large discrepancy in reported disk usage on USR partition

2008-10-30 Thread Kevin Kinsey

Jeremy Chadwick wrote:

On Fri, Oct 31, 2008 at 11:50:39AM +1030, Brendan Hart wrote:

#: df -h
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/aacd0s1a   496M163M 293M36%/
devfs   1.0K1.0K 0B  100%   /dev
/dev/aacd0s1e   496M15M  441M3% /tmp
/dev/aacd0s1f28G25G  1.2G96%/usr
/dev/aacd0s1d   1.9G429M 1.3G24%/var

Is this output untruncated? Is df really df or an alias to 'df -t nonfs'?

Yes, it really is the untruncated output of df -h. I also tried the df -t
nonfs and it gives exactly the same output as df. What are you expecting
that is not present in the output ?


I would have to assume he's looking for an NFS mount ;-)


Is it possible that nfs directory got written to /usr at some point in
time? 

You would only notice this with du if the nfs directory is unmounted.
Unmount it and ls -al /usr/mountpoint should only give you an empty dir



Bingo!! That is exactly the problem. An NFS mount was hiding a 17G local dir
which had an old copy of the entire NFS mounted dir. I guess it must have
been written incorrectly to this standby server by RSYNC before the NFS
mount was put in place. I will add an exclusion to rsync to make sure it
does not happen again even if the NFS dir is not mounted.

Thank you for your help, you have saved me much time rebuilding this server.


Can either of you outline what exactly happened here?  I'm trying to
figure out how an NFS mount was hiding a 17G local dir, when there's
no NFS mounts shown in the above df output.  This is purely an ignorant
question on my part, but I'm not able to piece together what happened.


Well, it would appear that perhaps Mel also guessed right about df
being aliased?  Just my guess, but, as you mention, no nfs mounts
appear.  I may be mistaken, but I think it's also possible to get
into this sort of situation by mounting a local partition on a 
non-empty mountpoint---at least, it happened to me recently.


Kevin Kinsey
--
A triangle which has an angle of 135 degrees is called an obscene
triangle.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SSH Port forwarding when PermitRootLogin==no ?

2008-10-27 Thread Kevin Kinsey
Hello,

I'm (still) trying to work around a limitation I've encountered
with a new service provider (cf. MTA on non-standard port).

As root:
 # ssh -L 24:server:52525 server

   fails because root logins aren't permitted in
/etc/sshd_config on the server.

Also as root:
 # ssh -L 24:server:52525 [EMAIL PROTECTED]

fails - an terminal session is established, but
when I telnet localhost:24 I receive this in the
terminal:
   
channel 3: open failed: administratively prohibited: open failed

I was kinda under the impression this should work, since
the port on the remote server is a dynamic port.

Any suggestions how I might get this to work?

TIA,

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


Re: MTA on non-standard port

2008-10-26 Thread Kevin Kinsey
Hello,

Quick thanks to Andrew Clark, Jeremy Chadwick, Tim Kellers,
Jeff Goldberg, and anyone whose reply I've not seen re:
this issue.

Isn't hard, as several pointed out.  Now I've sendmail listening
on any port I want to.  Problem is, still can't touch it from
here (and you might have guessed, the base issue is a new provider
of a lower-class service who I'm guessing only allows certain
ports by default).

So, I'm sure to have a frustrating couple hours with their
tech support sometime Real Soon Now.  Meantime, Mutt on the
server via SSH is OK, I guess, for me, but no one else likes it ;-)

Thanks again,

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


MTA on non-standard port

2008-10-24 Thread Kevin Kinsey
Hello,

For various reasons, I find myself in need of an MTA
accepting submission on a port other than 587 (or 25).

It'd be Real Nice(tm) if sendmail could Just Do It,
but I'd be willing to look at other options as well,
as long as I can get a good spam solution to play nice
with the server (currently I'm running dual-sendmail
with Amavisd-new and spamassassin).

Anyone doing such a thing, or have a few hints handy?

TIA,

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


Re: Scanner

2008-10-01 Thread Kevin Kinsey

John Vliouras wrote:

I wonder if this is the right place to ask a question regarding FreeBsd7
and the Handbook.


It is, unless you have a specific fix (patch) for the handbook, in which
case you send a PR and/or discuss it on the doc@ list (generally send a PR
is correct; doc@ is a list for use by the doc writers, so it should be pretty
important before we bother them).


I have installed FreeBsd7 both i386 and amd64 architectures in two
macines, one celeron dual core with 1GB, the other amd64x2 3800+ ,and I
have problem with my scanner.


snip


The problem is my scanner a Canon Lide 60. Running #scanimage -L I get
device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed
scanner which is right and it shows up with xsane as root (when I am
lucky to use xsane as root in gnome)

Now trying to: 7.6.4 Giving Other Users Access to the Scanner

All previous operations have been done with root privileges. You may
however, need other users to have access to the scanner. The user will
need read and write permissions to the device node used by the scanner.
As an example, our USB scanner uses the device node /dev/uscanner0 which
is owned by the operator group. Adding the user joe to the operator
group will allow him to use the scanner:

# pw groupmod operator -m joe

For more details read the pw(8) manual page. You also have to set the
correct write permissions (0660 or 0664) on the /dev/uscanner0 device
node, by default the operator group can only read the device node. This
is done by adding the following lines to the /etc/devfs.rules file:

[system=5]
add path uscanner0 mode 660


Since your device is ugen0 instead of uscanner0, you
might try adjusting the line to fit that.


Then add the following to /etc/rc.conf and reboot the machine:

devfs_system_ruleset=system

More information regarding these lines can be found in the devfs(8)
manual page.

Note: Of course, for security reasons, you should think twice before
adding a user to any group, especially the operator group.

I cannot find /etc/devfs.rules file, it does not exist. I tried to
make one adding what I was instructed, to no avail. I tried to put
[system=5] etc in the /etc/defaults/devfs.rules file, which exists,
but it did not work either.


Well, you didn't find /etc/devfs.rules because it's not created by default,
but only is used if additional local configuration is needed (for example,
to change permissions on a scanners /dev/ node).  :-)

Creating the file in /etc/ is the way to go.  Perhaps if you note what
I said above it will work for you this time.  However, IANAE, some it
may not, (YMMV, #include disclaimer.h and all that).


I suppose I must be doing something wrong. Please bear in mind that this
is my first time that I am using the command line. I have been able to
thanks to the very easy and instructive FreeBSD's handbook.


It is nice, isn't it?  :-)


Thank you,

John Vliouras


Kevin Kinsey
--
Don't despise your poor relations, they may become suddenly rich one day.
-- Josh Billings
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Command to rechown

2008-09-30 Thread Kevin Kinsey

Mike Price wrote:

I had to ( chown -R /etc/ ) I to edit the ( pf.conf ), how do I rechowm or
restore ( /etc ) ?

Can you please send me the command.


Hmm, why did you have to chown an entire directory to edit
one file?  su(1), and, perhaps even better, sudo(8) are meant
for such things AFAIK.

As for restoring permissions on /etc/, mtree(8) is your 
friend ... I'd recommend taking a look at the

manpage, however, because IANAE.

However, all disclaimers included, I *think* you want

% cd /
% mtree -U -f /etc/mtree/BSD.root.dist


Kevin Kinsey
--
It is now pitch dark.  If you proceed, you will likely fall into a pit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: X server crashes on exit

2008-09-25 Thread Kevin Kinsey

Herman Te wrote:

Hi,

I installed 7.0 from the CD with X. Now this is the first time I ever used
FreeBSD or X, I know a bit from linux but I usually use command line only.
So when the system finished installing I logged in and typed startx. First
time it took over 2 mins (is this normal) but eventually worked, and loaded
3 green terminals and a small clock in the corner. I don't know what this is
and the mouse was not working so I tried to exit with the ctrl+alt+backspace
but screen went black and the entire system hung - I know this as my remote
session aborted and the keyboard led stopped responding too - still no
response after 30 mins.

I realise that i need a window manager so I tried to install gnome from CD.
However it is the same problem and the system hung when I tried to quit back
to command line mode. After hours on google I found how to fix the mouse and
decide to try building fluxbox wm from the ports. Before starting the X, I
ran Xorg -configure and echo exec startfluxbox  .xinitrc. So now it starts
up properly and works well but still I cannot exit the X. This is a big
problem because the machine has no case so I must bend down and touch the
reset pins with a penknife :P Also as the disks are not unmounted there are
errors and one of the times my user account was deleted, so I had to
reinstall the whole system.

As I said I have never configure or install an X windows system before, and
I was googling for ages. Could anyone give me some idea of how to diagnose
and fix this problem?
Thanks
Herman


Have you looked at the logfiles? (/var/log/Xorg.$n.log)


Kevin Kinsey
--
Let your conscience be your guide.
-- Pope
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NATD Reverse Proxy

2008-09-25 Thread Kevin Kinsey

Tim Gustafson wrote:

Hi,

I'm trying to build a server that will act as a gateway between my wireless
network and the rest of the world.  Here's an overview of the current setup:

1. FreeBSD 7.1
2. isc-dhcp3-server-3.0.5_2
3. natd configured to connect fxp0 (public network, dynamic IP) to fxp1
(private network, static IP)
4. ipfw
5. bind
6. apache 2.2
7. php 5.2.6

Right now, when someone connects to the private net, they get an IP address
and can connect to the Internet no problemo.  So, this is all working so
far.

What I'd like to do next is this:

When someone obtains an IP address, I'm going to configure DHCP to block
that IP using IPFW initially, and I'd like to redirect any requests that
come from that IP to port 80 or 443 to be silently redirected to the local
Apache installation, where the user can enter their login and password.
Once they've been authenticated, the firewall will allow them to connect out
to everywhere else.

So, it seems to me that I need to use natd again to do a silent proxy of
traffic from certain IPs on the private net to the server box.  But, since
I'm already using natd, I'm a little perplexed about how to set this up.  Do
I need to run a second instance of natd on a different port, and then update
the firewall rules to divert to one or the other based on the user's
authentication status?  Or can this all be configured in one natd instance?

Tim Gustafson
SOE Webmaster
UC Santa Cruz
[EMAIL PROTECTED]
831-459-5354


Someone else's wheel, for perusal, at least:

http://www.shmoo.com/~bmc/software/wicap/announce.html

The tarball is still up there.

HTH,

Kevin Kinsey
--
If you do not think about the future, you cannot have one.
-- John Galsworthy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nat and firewall

2008-09-24 Thread Kevin Kinsey

FBSD1 wrote:


natd_enable=YES  This statement in rc.conf enables ipfw nated function.
firewall_nat_enable=YES  This is an invalid statement. No such thing as
you have here.


This is no longer true; he did indeed find firewall_nat_enable
in /etc/defaults/rc.conf.  The knob seems to have first appeared
in February in HEAD and I'm guessing it cues the system to use a
new kernel-based nat rather than natd(8), but I've not read anything
further about this, as my system isn't as up to date as the OP's.
I don't know when this change was MFC'ed, but apparently fairly
recently?

I suppose we need someone a tad more in the know to straighten
that out for us.

Kevin Kinsey
--
A wise man can see more from a mountain top
than a fool can from the bottom of a well.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: branches, updates, buildworld

2008-09-10 Thread Kevin Kinsey

Lister Notifies wrote:


Nope, it's too soon for me to deal with moving targets. So, I guess I
need the rock-stable
version until I get familiar with the OS.


I'll agree with rock-stable as it relates to FBSD;
however, realize that the -STABLE tag mostly refers
to the fact that the developers aren't allowed to make
sweeping changes to subsystems/API's without permission
from a consensus of developers and perhaps even 
notification of the userbase.  It's not a guarantee of

usability, etc.  As noted, RELENG is what you want for
now; it's never going to be changed for the sake of a
feature, only for security related patching.


  3) make buildworld re-compiles _everything_ or the base system only?

 It recompiles the base system. For updates to packages installed from
 ports look at portupgrade.


OK. It brings another question. For example Postgres is not a part of
the base system. Will it break if i make:
##
pkg_add -r postgresql83-server.tbz
cvsup /usr/share/examples/cvsup/standard-supfile
make buildworld
make buildkernel
make installkernel
reboot (in single mode)
mergemaster -p
make installworld
mergemaster
reboot
##

...And what should I do if Postgres (or any other arbitrary binary
package) breaks afterwards? How should I keep the binary packages
up-todate? Actually I intend to
compile Postgres from the ports after success in re-building and
installing the base system, but the question still remains.


First, let me hopefully give you a little comfort, that as
long as you're only tracking a RELENG branch, this (breakage
of a port) will Hardly Ever Happen(tm).

I think another poster already pointed you to portupgrade
(which is well-known in the community and perhaps even mentioned
in the official FBSD Docs, although it's a port itself ...
take a gander at /usr/ports/port-mgmt for an idea of what's
there to manage your ports.

Now, let me caution you that updating the *ports* is more
likely to cause issues than the updating of the base system.
If you, for example, happen to upgrade expat or something
basic to a bunch of ports, things can go pretty haywire until
everything's back up-to-date.  But, then again, that's what
the ports-mgmt tools are supposed to help with.

snip


Last but not least: Thanks for the fast and detailed response. I
appreciate it very much.


Well, welcome to *the* community.  FBSD's community is often that
way.

Kevin Kinsey
--
In every hierarchy the cream rises until it sours.
-- Dr. Laurence J. Peter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mail server DNS configuration questions

2008-09-10 Thread Kevin Kinsey

Andrew Falanga wrote:

Clients in the churches private network cannot send mail using this 
server, though they can receive mail from it (POP).  The church has a 
private network, PN1, and the mail server sits at a church members house 
because he has a static IP address; let's call that PN2.  The router at 
his house is setup to forward traffic over port 25, and the POP port, to 
this server.  Also, just to further clarify, the Internet separates 
these two Private Networks.  However, this may not be entirely true as I 
think about it because at both locations, the ISP is CableOne using 
cable broadband.  So, though technically part of the Internet, the 
traffic shouldn't leave the CableOne domain.  Also, of interest, is that 
another of our pastors uses CableOne at home and is unable to send 
e-mail using the churches server from home.  However, from a coffee shop 
in town, that our pastors frequent, they are able to send mail.  It is 
my understanding that this coffee shop does not use CableOne.


So, just to make sure everyone's got it, the mail server sits in PN2.  
While diagnosing this, I connect to the server (using Putty) from a 
machine in PN1, using either a mail client or telnet I'm unable to make 
a connection to the mail server over port 25.  Using tcpdump during this 
putty session I do not even see the SYN packets for the start of the 
connection from the machines in PN1.  This is only when connecting to 
port 25.  Obviously, I can connect to the server because I'm using 
putty.  Also, I can see the SYN packets for the start of the connection 
when this same machine in PN1 attempts to connect to port 80.  The 
problem seems to be when trying to connect over port 25.  For some 
reason, the packets aren't being delivered to that address 
(72.24.34.252).  This happens if I try to telnet to 
mail.whitneybaptist.org or telnet to 72.24.34.252 on port 25.  The 
packets aren't being delivered.  They're being sent somewhere else, or 
lost in digital purgatory.


Now, from home (my home) let's call this PN3, I can send/receive mail 
using the church e-mail server.  I, however, don't use CableOne.  Are 
there routers that route traffic based on port number?  It's almost as 
if traffic, that originates within the CableOne domain and travels 
through, but not outside, the CableOne domain, doesn't get routed to the 
correct address when it's destined for port 25.


So a common thread is that traffic on the ISP's net isn't going
out via yourserver.com:25 --- would seem to indicate port blocking,
which is quite common for port 25.  Tried 587 or some weird alternate?

Kevin Kinsey

--
If the odds are a million to one against something
occurring, chances are 50-50 it will.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mail server DNS configuration questions

2008-09-07 Thread Kevin Kinsey

Andrew Falanga wrote:


*Not having* a reverse entry for a mail server is often
the cause of issues.


This I do know very well.  I had similar problems when running a sendmail 
backup spooler for Syracuse Networks back in 2000.  The eventual solution was 
that our ISP delegated control of our subnet to us.  I'm wondering if 
something similar must be done on the internal network, i.e. 192.168.2.0/24.  
Perhaps I shouldn't have eluded to the problems that my clients are 
experiencing.  The real question is, should I configure a sub-domain under 
whitneybaptist.org for this server and if so, how to set it up?


I'm interested as to why you got this answer to the host query you did.  In my 
original mail, I provided the result of a reverse lookup on that IP address 
to which I got this response:

[/usr/home/andy]
- dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

Using host, on my machine, I get this response:
[/usr/home/andy]
- host  72.24.34.252
252.34.24.72.in-addr.arpa domain name pointer 34-252.72-24-cpe.cableone.net.



Well, interestingly enough:

[30] Sun 07.Sep.2008 DING!
[EMAIL PROTECTED]/logs]
host 72.24.34.252
252.34.24.72.in-addr.arpa domain name pointer 34-252.72-24-cpe.cableone.net.

So something's changed in the last 12 hours, although I can't
say exactly what.  AFAIK, my DNS boxen and I were communicating
Just Fine(tm) last night as well as this afternoon.

Regardless of the fact that I got a response and you didn't, I'm still not 
getting the right information.  The reverse mapping should be something like:


252.34.24.72.in-addr.arpa PTR mail.whitneybaptist.org.

I may have gotten the syntax wrong as it's been a while since I've had to 
manipulate BIND name tables.



And the RFC for ESMTP is #2821.



Thanks for the RFC.

Andy


Well, at this point, I'd take the day off, and tomorrow
perhaps have a dig at cableone's support ppl, looky here:

[35] Sun 07.Sep.2008 14:03:43
[EMAIL PROTECTED]/logs]
dig 72.24.34.1

;  DiG 9.4.2-P1  72.24.34.1
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 56668
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;72.24.34.1.IN  A

;; AUTHORITY SECTION:
.   3600IN  SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 
2008090700 1800 900 604800 86400


;; Query time: 222 msec
;; SERVER: 66.76.92.18#53(66.76.92.18)
;; WHEN: Sun Sep  7 14:03:50 2008
;; MSG SIZE  rcvd: 103


So, it's obvious they're playing with this zone Right Now(tm),
(more or less) as the SN seems to indicate today.  Possible this
is auto-generated or something, but I think you'll get no joy
on the PTR records until they do something upstream.  As for
your internal net, I don't know much about it, unfortunately.

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


Re: ssh

2008-09-07 Thread Kevin Kinsey

Sahil Tandon wrote:

FBSD1 [EMAIL PROTECTED] wrote:

On FreeBSD 7.0 how do I tell ssh to allow login from root 
 
Change the PermitRootLogin parameter in /etc/ssh/sshd_config.



and also to listen on port 9922 instead of port 22?


Edit the the Port parameter in the same config file.  And as an aside



... don't do it. ;-)

Just my guess.

Kevin Kinsey
--
Reactor error - core dumped!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mail server DNS configuration questions

2008-09-06 Thread Kevin Kinsey

Andrew Falanga wrote:

Hi,

Well, my clients at church are still having issues and after working with 
George, a respondant to my original questions, I think that most, if not all, 
of my problems are related to DNS and how we've got it improperly configured.


First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the person at 
whose house the mail server is) has IP forwarding setup so that mail get's 
sent to our FreeBSD machine.  Using dig, here's the responses:


(from my FBSD machine at home, not the server)
[/usr/home/andy]
- dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy]
- dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy]
- dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga]
- hostname
whitbap
[/home/afalanga]
- ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga]
- cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1


It doesn't take a rocket scientist, or a computer scientist, to figure out 
we've got DNS issues.  I'm thinking that I should setup a domain within the 
192.168.2.0/24 network on this box.  I've done this before, at work.  The 
question I've got is I've never actually integrated a domain like this to a 
domain on the Internet.  I'm thinking that we'll setup something like: 
internal.whitneybaptist.org with hosts in that sub-domain.


So, what would my DNS tables need to look like to make this happen.  Also, to 
any knowledgable souls here, what RFCs address these issues?


Thanks,
Andy


Andy, I'm not sure I'm DNS guru enough to answer all your
questions, but --- you don't specify what problems are
being experienced at the location, and, are you certain it's
not about this?

[25] Sat 06.Sep.2008 21:58:25
[EMAIL PROTECTED]/logs]
host 72.24.34.252
Host 252.34.24.72.in-addr.arpa. not found: 3(NXDOMAIN)

*Not having* a reverse entry for a mail server is often
the cause of issues.

And the RFC for ESMTP is #2821.

HTH,

Kevin Kinsey
--
In Denver it is unlawful to lend your vacuum cleaner to your next-door
neighbor.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   4   5   6   7   8   9   >