Re: mercurial port broken?

2010-08-08 Thread Sahil Tandon
On Sat, 2010-08-07 at 13:51:29 -0700, Chip Camden wrote:

 Looks the same to me.  A message went out on freebsd-ports@ that the port
 is broken and will be fixed in a couple of days:

There is a preliminary patch with which you can experiment until the
port is fixed in the tree:

 http://lists.freebsd.org/pipermail/cvs-ports/2010-August/200063.html

-- 
Sahil Tandon sa...@freebsd.org
___
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: portmaster not replacing %var% in final pkg-msg

2010-05-31 Thread Sahil Tandon
On Sun, 30 May 2010, Eitan Adler wrote:

 $cd lang/go  portmaster .
 --
  To build Go programs for FreeBSD, you'll want to set up your
  environment properly. The following environment variables should
  be set:
 ...
  GOOS=freebsd
  GOARCH=386
  GOROOT=/usr/local/lib/go

This works because of the following sed-fu in lang/go/Makefile:

post-install:
@${CAT} ${PKGMESSAGE} | ${SED}  \
-e s|%%PREFIX%%|${PREFIX}|g   \
-e s|%%ARCH%%|${GOARCH}|g \
-e s|%%GOOBJ%%|${GOOBJ}|g

 === pkg-message for go-20100413

[ .. ]

  GOARCH=%%ARCH%%
  GOROOT=%%PREFIX%%/lib/go

It's probably preferable for lang/go to utilize SUB_FILES and
SUB_LIST instead of using ${SED} to manually expand VAR=VALUE pairs in
post-install.  For context, see:

 http://www.freebsd.org/doc/en/books/porters-handbook/book.html#USING-SUB-FILES

-- 
Sahil Tandon sa...@freebsd.org
___
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: unexpected operator .sh error

2010-05-31 Thread Sahil Tandon
On Tue, 01 Jun 2010, Aiza wrote:

 Chris Hill wrote:
 The open-square-bracket, [, is another name for test. IIRC the
 equal sign is not valid in that context.

Using '=' within test(1) brackets should be fine.

 Can you post the 'before' and 'after' versions of that part of
 your script? It would help us in determining what the problem is.
 
 That hint got me to the correct line
 
 I hadif [$1 = basejail ]; then

As noted by Chris and the sh(1) man page, '[' is a built-in equivalent
of test(1).  The correct syntax for an expression inside those brackets
requires *spacing*, i.e. [ expression ], and not [expression ], as in
your example.

-- 
Sahil Tandon sa...@freebsd.org
___
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 find literal in file and them delete that line

2010-05-09 Thread Sahil Tandon
On Mon, 10 May 2010, Fbsd1 wrote:

 Alberto Mijares wrote:
 On Sun, May 9, 2010 at 11:08 PM, Fbsd1 fb...@a1poweruser.com wrote:
 I want to search every line in the specified file for a literal and if found
 then delete that line from the file and save the file all from within a sh
 type of shell script.
 
 man(1) sed
 
 That makes no sense to me.
 need example

What makes no sense?  The sed(1) man page?  Which section in particular
is confusing?  And please, explain the rationale for making your port
automatically edit /etc/rc.conf.

-- 
Sahil Tandon sa...@freebsd.org
___
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 7.2 port of Postfix 2.7 Snapshot 20091209

2009-12-17 Thread Sahil Tandon
On Dec 17, 2009, at 10:14 AM, Len Conrad lcon...@go2france.com  
wrote:



Anybody know where to get this?

The fix reversing the order of black/white queries in postscreen is  
important for us.


I filed a PR to update postfix-current in the tree but the committer  
has not yet addressed it; I am sure he will soon.  In the meantime  
just edit the port's Makefile and update distinfo locally so you can  
update yourself.

___
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: Adding new domain in mail server

2009-03-21 Thread Sahil Tandon
On Thu, 19 Mar 2009, Ruel Luchavez wrote:

 we have here a mail server running in FreeBSD 6.2 which is holding out 2
 domain (e.g u...@mydomain.com. w...@mydomain2.com) and it running very good,
 unfortunately I'm not the person who configure this mail stuff.
 
 heres my problem:
 
 we bought a new domain (e.g mydomain3.com) and Im planning to add the domain
 to our mail server so that I could create a new email ad with the new domain
 (e.g us...@mydomain3.com). how will I do that?

Does this mail server send *and* receive mail?  Which SMTP software?  Which
IMAP server?  More details are required.  In your follow up, please also 
define what you mean by 'add the domain to our mail server'.  If you do not
understand these requests for clarification, I urge you to contact the person
who actually set up 'this mail stuff'.

-- 
Sahil Tandon sa...@tandon.net
___
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: Ports

2009-03-15 Thread Sahil Tandon
On Sun, 15 Mar 2009, jmdennis @dslextreme.com wrote:

 It would be nice if in ports you had kmymoney2 0.9.3.  I see that you still
 have 0.8.9.

Your question is more appropriate for freebsd-ports.  The finance/kmymoney2
port is 0.8.9 because that is the latest *stable* release.  Feel free to
submit a patch for a new port (i.e. kmymoney2-devel) if you want 0.9.3 in the
tree.  For context, see ports/126478.

-- 
Sahil Tandon sa...@tandon.net
___
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: Delivering system mail

2009-01-25 Thread Sahil Tandon
On Sun, 25 Jan 2009, Rem P Roberti wrote:

 I currently have to retrieve crontab generated system mail from the command
 line.  Is it possible to have system mail delivered to my Thunderbird  
 mail client?

According to the cron(8) manual:

   When executing commands, any output is mailed to the owner of the crontab
   (or to the user named in the MAILTO environment variable in the crontab, 
   if such exists).

So you can configure Thunderbird to retrieve email for the user running the
crontab, or set the MAILTO environment variable within your crontab.

-- 
Sahil Tandon sa...@tandon.net
___
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: receiving mail

2009-01-13 Thread Sahil Tandon
On Tue, 13 Jan 2009, Pieter Donche wrote:

 Between host1 (non-freebsd) and host2 (freebsd 7), sending a mail from  
 host1 to host2 (both in domain  .domain.topdom) results in message  
 'Returned mail: see transcript for details:

- The following addresses had permanent fatal errors -
 u...@host2.domain.topdom

- Transcript of session follows -
 550 5.1.2 u...@host2.domain.topdom... Host unknown (Name server:
 mailhost.domain.topdom: host not found)
 -

The MX for host2.domain.topdom is mailhost.domain.topdom; the latter is
unreachable by host1, hence the permanent failure.

 mailhost.domain.topdom does not exist in DNS, but host1 can send
 mail to other mailservers all over the world.

The fact that host1 can send mail anywhere else is irrelevant; fix the MX
entry or make mailhost.domain.topdom real/reachable from host1.  Or remove
or adjust the MX entry for host2.domain.topdom so host1 sends mail to
host2.domain.topdom instead of its mailhost.domain.topdom.

-- 
Sahil Tandon sa...@tandon.net
___
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: unsub

2009-01-13 Thread Sahil Tandon
On Tue, 13 Jan 2009, Paul Schmehl wrote:

 --On January 13, 2009 9:38:31 AM -0600 Javier Henderson jav...@kjsl.org 
 wrote:

 unsub

 Another Criminal Minds fan?

ROFL!

-- 
Sahil Tandon sa...@tandon.net
___
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: Security Exploits...to report, or not to report?

2008-12-25 Thread Sahil Tandon
Modulok wrote:

 I was given an FTP account on a server for company X. Being a UNIX
 guy, I did some poking around and discovered a security flaw in how
 they set their web server up, which would permit anyone at the company
 with an FTP account, to intercept ANY data that passed through the
 company website.
 
 Question:
 Do I tell them about it? On the one hand I want to do the 'right
 thing' and tell them about it and how to fix it. On the other, I don't
 want to be criminally prosecuted for finding the flaw. I'm not
 implying that they would do such a thing, but in order to find said
 flaw, I had to be poking around.

Report it.  If you are afraid of prosecution, and do not wish to be
contacted by anyone, create a gmail (yahoo, or whatever) account to send
the message and do so from a location that can not be traced to you.

-- 
Sahil Tandon sa...@tandon.net
___
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 FOR SUITABLE VERSION

2008-12-11 Thread Sahil Tandon
hitech resources wrote:

 *HI, i have PowerEdge(TM) 840, Quad Core Xeon Pro X3220 Processor, so what
 is the suitable version of FreeBSD i could use. I actually want to use it
 for server purposes. TQ

7

-- 
Sahil Tandon sa...@tandon.net
___
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: mx1.freebsd.org

2008-12-03 Thread Sahil Tandon
Ebbe Hjorth [EMAIL PROTECTED] wrote:

 My postfix mail servers shows to messages in the queue saying
 
 (host mx1.FreeBSD.org[69.147.83.52] said: 450 4.7.1 Client host rejected:
 cannot find your hostname, [86.58.167.132] (in reply to RCPT TO command))
 
 But when i do a lookup or a reverse lookup, i find my hostname, also
 from work and other ip, not only local ;)
 
 Does mx1.freebsd.org have an old dns? - This affects me sending mail
 to all the freebsd lists.

Most likely a temporary DNS problem; are the messages still sitting in
your queue?

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


Re: Unix program that sends email directly using MX record

2008-11-30 Thread Sahil Tandon
Ott K?stner [EMAIL PROTECTED] wrote:

 Peter Boosten wrote:

 The most recent vulnerabilities of Postfix are from August and September
 2008, and I still use it. Also I use (with great happyness) Sendmail on
 two machines, without any problems. The only problem ever caused was by
 clamav.

 Would be interesting to know, what kind of problems have been there with 
 CLAMAV?

None whatsoever.  I have used it for several years on FreeBSD without
incident.  There are, from time to time, some security vulnerabilities,
but they are handled swiftly by both the clamav developers and the
security/clamav port maintainer.

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


Re: does not understand df -H

2008-11-30 Thread Sahil Tandon
Tsu-Fan Cheng [EMAIL PROTECTED] wrote:

 Hi,
I have a pretty basic question: when I df -H my disk, the numbers
 cant add up,
 
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ad0c  484G429G 17G96%/ad0c
 
 
 there should be more disk space available based on what is shown. why
 is this like that??

This is default behavior.  From tunefs(8):

-m minfree
 Specify the percentage of space held back from normal users; the
 minimum free space threshold.  The default value used is 8%.
 Note that lowering the threshold can adversely affect perfor-
 mance:

 +o  Settings of 5% and less force space optimization to always be
 used which will greatly increase the overhead for file
 writes.

 +o  The file system's ability to avoid fragmentation will be
 reduced when the total free space, including the reserve,
 drops below 15%.  As free space approaches zero, throughput
 can degrade by up to a factor of three over the performance
 obtained at a 10% threshold.

Your df output suggests your minfree is set to the default 8%; to
confirm this:

% dumpfs /dev/ad0c | grep minfree | cut -f 1-2

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


Re: ports mirror

2008-11-30 Thread Sahil Tandon
Juan Pablo Roig [EMAIL PROTECTED] wrote:

 i want trying to make in my lan a mirror of the ports. I have the cvsup
 mirror , and an rsync of all the ports. But in a client i made a cvsup of
 the ports list, but then when i make a port it going to get the tar.bz from
 an external ftp... 

If you want to grab distfiles from a non-default MASTER_SITE when
building ports, look into the MASTER_SITE_OVERRIDE variable.  Search for
it in the Handbook and ports(7).

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


Re: Purchase of FreeBSD

2008-11-29 Thread Sahil Tandon
Masoom Shaikh [EMAIL PROTECTED] wrote:

 On Sat, Nov 29, 2008 at 6:14 AM, Sahil Tandon [EMAIL PROTECTED] wrote:
 
  Harry Veltman [EMAIL PROTECTED] wrote:
 
   Where can I buy it on CD, and how do I know if it is compatible with
   my hardware?
 
  Did you try asking Google?
 
  http://www.google.com/search?hl=enq=where+to+get+freebsd to:
  http://www.freebsd.org/where.html
 
  http://www.google.com/search?hl=enq=freebsd+hardware+compatibility to:
  http://www.freebsd.org/doc/en/books/faq/hardware.html
 
  Also see: http://www.freebsd.org/doc/en/articles/freebsd-questions/
 

 http://www.freebsdmall.com
 
 this question is not even worth answering,  it is like

To which question are you referring?  Your QA makes little sense.

 Q: why didn't u tell us ?
 A: bcos it was impossible to hide

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


Re: shell scripting problems

2008-11-29 Thread Sahil Tandon
Tim Judd [EMAIL PROTECTED] wrote:

 I'm sure it's faulty
 
 Which is why I'm asking for help
 
 My regexes (in it's various forms) produce the output similar to:
   xorg-fonts-75dpi
   xorg-fonts
   xorg-fonts-100dpi
   ...
   ...
   ...
 
 and I'm wanting my regex to return the 2nd value, in this example, in
 this list.

In your initial message, you wished to extract the first value; now it
is the second?

 The problem is the shell is taking the end anchor $ as the start of a
 variable, and no matter how I escape it, it seems to never work.
 
 I'm sorry for not explaining properly.  Maybe the above would help.

It does not.  Explain exactly what you are trying to do and you will
receive more exact troubleshooting advice.  And please stop
top-posting.

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


Re: Temporarily blocking ports

2008-11-29 Thread Sahil Tandon
Jos Chrispijn [EMAIL PROTECTED] wrote:

 Can someone hint me how I can block ports for let's say 30 minutes if 
 someone repeatedly tries to do a SSH login?
 I use ipfw as firewall...

security/sshguard-ipfw

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


Re: shell scripting problems

2008-11-28 Thread Sahil Tandon
Tim Judd [EMAIL PROTECTED] wrote:

 I've been trying for a few weeks to try to get this to work, and the /bin/sh
 keeps snagging the command line before passing it to pkg_info
 
 I'll use a different shell if I need to, but since I got everything except
 this one thing working, i'd rather keep it in sh
 
 In the shell script, i have a
   pkg_info -qLx ^$PKG-[0-9,._]+$
 also tried (-X)tended regex instead of the standard rege(-x).
 
 sh keeps erroring out saying various $ isn't a valid variable name, or
 pkg_info doesn't find the anything there.  And it does exist.  This all came
 around with me trying to automatically update a bunch of ports.  xorg-fonts
 is outdated, but xorg-fonts-100dpi or xorg-fonts-75dpi isn't.  So the regex
 returns multiple values (as above).  I just want the first, hence the
 anchors.
 
 Any ideas on how to get sh to let pkg_info see everything?  Various escaping
 around the end $ just doesn't work.  I'll keep working on it, but i'd like
 to see how you all would suggest getting it to work.

I am not sure what the problem is, but are you just looking for the
output of pkg_info -qxL on the *first* instance of xorg-fonts-*?

% pkg_info -qL `pkg_info | grep xorg-fonts | head -1 | cut -d\  -f1`

FWIW, your regexp also looks faulty.

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


Re: Purchase of FreeBSD

2008-11-28 Thread Sahil Tandon
Harry Veltman [EMAIL PROTECTED] wrote:

 Where can I buy it on CD, and how do I know if it is compatible with
 my hardware?

Did you try asking Google?

http://www.google.com/search?hl=enq=where+to+get+freebsd to:
http://www.freebsd.org/where.html

http://www.google.com/search?hl=enq=freebsd+hardware+compatibility to:
http://www.freebsd.org/doc/en/books/faq/hardware.html

Also see: http://www.freebsd.org/doc/en/articles/freebsd-questions/

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


Re: Free usenet nntp servers

2008-11-19 Thread Sahil Tandon
Fbsd1 [EMAIL PROTECTED] wrote:

 In the past (alt.binaries.warez)  contained monthly posts of a list of Free 
 usenet nntp servers. I dont have access to a nntp server so I can't search 
 foe the list. Does any one here know of a Free usenet nntp server I can 
 access?

This is not a FreeBSD question.  Please check google.

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


Re: Kerberos in FreeBSD

2008-11-16 Thread Sahil Tandon
Ansar Mohammed [EMAIL PROTECTED] wrote:

 Any reason why the port of HEIMDAL is at 0.6.3 (2004) in FreeBSD 7.0 when we
 have 1.0 available?

On 7.0-RELEASE:

% cat /usr/ports/security/heimdal/Makefile | grep PORTVERSION
PORTVERSION=1.0.1

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


Re: why do I have 2 aliases.db files?

2008-11-09 Thread Sahil Tandon
Michael P. Soulier [EMAIL PROTECTED] wrote:

 I just noticed that I have one in /etc/mail and one in /etc, and
 postfix is reading the one in /etc which the newaliases command hasn't
 touched in ages 'cause it's been updating the one in /etc/mail.

That is not the default behavior.  From sendmail(1), which is the
Postfix to Sendmail compatibility interface:

newaliases
  Initialize the alias database.  If no input  file  is  specified
  (with  the  -oA  option,  see  below), the program processes the
  file(s) specified with the alias_database configuration  parame-
  ter.   If  no alias database type is specified, the program uses
  the type specified with the default_database_type  configuration
  parameter.  This mode of operation is implemented by running the
  postalias(1) command.

% postconf -d | grep '^alias_'
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases

So, the newaliases command should be modifying the alias database in
/etc unless you changed this in your main.cf.  But if that were the
case, Postfix would also *read* for aliases in that non-default
location.  What is the output of the following command on your machine?

% man sendmail | grep Postfix | head -1

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


Re: recommendation word processer for xfce

2008-11-06 Thread Sahil Tandon
FBSD1 [EMAIL PROTECTED] wrote:

 I looked at OpenOffice but there is no package of it since freebsd release
 6 stable. It takes a very very long time to compile this port.

Please don't top-post.  OpenOffice packages are available via the
FreeBSD FTP sites.

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


Re: Watching /var/log/pflog grow

2008-11-04 Thread Sahil Tandon
cpghost [EMAIL PROTECTED] wrote:

 How can I watch /var/log/pflog grow with tcpdump, tail -f style?
 
 This won't work:
   $ tail -f /var/log/pflog | tcpdump -n -s 116 -r -
 because tail doesn't start at the right location.

[...]

 I'm afraid that in the latter case, every packet will be
   EITHER logged by pflogd
   XORdisplayed by tcpdump.
 Is that so?
 
 If yes, /var/log/pflog would be incomplete, because some packets
 would have been snatched away from pflog0 by tcpdump, before
 pflogd ever got a chance to read them out.
 
 Is there a way to watch /var/log/pflog grow, while
 still making sure that pflogd logs EVERY packet that appears
 on the pflog0 interface? How?

According to pflogd(8):

   Display the logs in real time (this does not interfere with the
   operation of pflogd):

  # tcpdump -n -e -ttt -i pflog0

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


Re: just a test mail

2008-11-02 Thread Sahil Tandon
Alex Zhang [EMAIL PROTECTED] wrote:

 I want to submit a question to Mail list; I hope to get help in time.
 Thanks

Never, ever send test emails to freebsd-questions.  From the Handbook:

If you wish to test your ability to send to FreeBSD lists, send a test
message to freebsd-test. Please do not send test messages to any other
list.

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


Re: OT: Shell Script using Awk

2008-11-01 Thread Sahil Tandon
David Allen [EMAIL PROTECTED] wrote:

 My apologies for asking on this list, but I'm stuck without Perl and need
 to use awk to generate a report.
 
 I'm working with a large data set spread across multiple files, but to
 keep things simple, say I have A Very Long String that containing records,
 each delimited by a single space.  I need to print those records in
 columnar format, but with only 7 columns per line:
 
 record1  record2  record3  record4  record5  record6  record7
 record08 record09 record10 record11 record12 record13 record14
 ...

A small sh script:

#!/bin/sh
awk ' {
for (i=1; i=NF; i++) {
 printf(%s , $i)
 if (i % 7 == 0) { printf(\n) }
}
if (NF % 7 != 0) { printf(\n) }
} ' input 

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


Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread Sahil Tandon
David Christensen [EMAIL PROTECTED] wrote:

 mdh wrote:
 The answer is to upgrade your devel/glib20 port to the latest version, 
 then try to install or upgrade libgiofam, then install the other software. 
  

 Thank you for your response.  :-)

 Here's my attempt to carry out your suggestions:

 20081026-122203 [EMAIL PROTECTED] ~
 # portsnap fetch update
 Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
 ...
 Building new INDEX files... done.

 20081026-122344 [EMAIL PROTECTED] ~
 # cd /usr/ports/devel/glib20

 20081026-122615 [EMAIL PROTECTED] /usr/ports/devel/glib20
 # make
 ...

Do these ellipses include a 'make install'?  Otherwise, that is likely
your problem; devel/glib20 is not actually installed.

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


Re: Postfix communicating with IPFW

2008-10-19 Thread Sahil Tandon
Jos Chrispijn [EMAIL PROTECTED] wrote:

 I recently got attacked with some dsl subscribers of this (imaginary) 
 some.net domain.

 These subscribers present themselves as [ip address.dynamic.some.net].
 Postfix SMTP server: errors from 66-66-66-166.dynamic.some.net 
 [66.66.66.166]

 What I would like to do is to generate a some.net list with all these 
 dynamic ip addresses and provide them to my ipfw firewall in order to block 
 them on the moment that they try to relay a 2nd time thru my server. This 
 will cause less process time as it is quicker to send someone home by the 
 doorkeeper (ipfw) rather than check his credentials first (Postfix) and 
 tell him to get lost.

True, but Postfix can handle these rejects just fine though YMMV
depending on your load and other aspects of your setup to which we
aren't privy.

 Is there any way to let postfix 'communicate' with my ipfw firewall?

No, but you can write a script that parses your maillog and accordingly
updates firewall rules.  Tools like fail2ban are often mentioned here --
check the archives and adapt as necessary. 

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


Re: Postfix communicating with IPFW

2008-10-19 Thread Sahil Tandon
Sahil Tandon [EMAIL PROTECTED] wrote:

 Jos Chrispijn [EMAIL PROTECTED] wrote:
 
  I recently got attacked with some dsl subscribers of this (imaginary) 
  some.net domain.
 
  These subscribers present themselves as [ip address.dynamic.some.net].
  Postfix SMTP server: errors from 66-66-66-166.dynamic.some.net 
  [66.66.66.166]

One more thing: I use the following PCRE to block dynamic-looking IPs at
SMTP and it really isn't resource intensive.

/\d+([-\.]\d+){3}/  REJECT  Generic hostnames prohibited.

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


Re: pfSense

2008-10-18 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

[pfSense question removed]

Please ask your question on the pfSense mailing list or forum.  Thanks.

http://www.pfsense.org/index.php?option=com_contenttask=viewid=66Itemid=71
http://forum.pfsense.org/

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


Re: portupgrade failure

2008-10-13 Thread Sahil Tandon
Michael P. Soulier [EMAIL PROTECTED] wrote:

 On Mon, Oct 13, 2008 at 2:05 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote:
  So don't use it?  :-)  There are alternatives like portmaster.
 
 I suppose I prefer a single, reliable, supported tool for the system.
 portupgrade seems to be pushed the most in all of the documentation
 that I can find, so I went with it. Maybe I should dig into its guts
 and find out how it works.

Try portmanager; it has worked well for me.

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


Re: How to generate password hashes for vipw and chpass

2008-10-06 Thread Sahil Tandon
Ivan Rambius Ivanov [EMAIL PROTECTED] wrote:

 Can you please show me how to generate the password hashes?

There are many tools; I use security/makepasswd.

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


Re: testing

2008-09-27 Thread Sahil Tandon
Michael P. Soulier [EMAIL PROTECTED] wrote:

 I've gotten many bounces from the list MX lately. Let me test right
 from gmail instead of my ISP's mail server.

From the Handbook:

 Note: If you wish to test your ability to send to FreeBSD lists, send a
 test message to freebsd-test. Please do not send test messages to any
 other list.

% dig +short MX digitaltorque.ca 
20 gatekeeper.digitaltorque.ca.
0 mail.digitaltorque.ca.

I know those are the incoming MXs for your domain, but were you by any
chance trying to relay to the FreeBSD list via gatekeeper?  Its IP is
listed on multiple RBLs:

dnsbl.sorbs.net
dul.dnsbl.sorbs.net
zen.spamhaus.org

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


Re: The consequences of turning off sendmail

2008-09-27 Thread Sahil Tandon
Andrew Falanga [EMAIL PROTECTED] wrote:

 This question comes from complete ignorance about this stuff (what
 happens when turning off sendmail), but if I turn off sendmail will
 system messages still get delivered?  Also, I'm going to be using this
 box as a web server and I'm using Joomla!.  If I turn this off, will I
 still get the notifications that new users have signed on, etc.?  I'd
 like to turn it off because the box doesn't sit inside of a fully
 qualified domain (it sits inside a 192.168.x/24 network), but will
 host web services for www.whitneybaptist.org.  Obviously, requests
 sent to 72.24.34.252 on port 80 are forwarded to this box (actually,
 internally it's 192.168.2.23).  Also, (for those who have endured
 helping me work through the issues with our mail server) until I get
 things worked out with DNS this new server will not be hosting e-mail
 for this domain (whitneybaptist.org), that's temporarily being done at
 google mail.
 
 So, basically, what sort of trouble am I going to get into by turning
 off sendmail?  Also, I think I'm going to implement DNS, an internal
 thing, to make this box happy and then point the resolver to use the
 Internet DNS servers for everything else.

You can turn off the Sendmail daemon so that it does not actually listen
for incoming connections or act as an MTA in the conventional sense.
But local utilities like cron can still invoke the /usr/sbin/sendmail
command to send you notifications.

http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107610.html

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


Re: Identd question...

2008-09-25 Thread Sahil Tandon
Agus [EMAIL PROTECTED] wrote:

 Just wondering if i can have like a central ident server on my
 LANthats cause my boxes are behind A NAT so i can only forward
 identd requests to oneand i mean like a fake one..cause the
 process may be on one of the other boxes that require de ident, is
 clear?...i read about fakeidentdjust wanted to ask your opinion or
 experience on this

Without more information about exactly what problem you're trying to
solve, I think yes it's possible.

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


Re: upgrade packges

2008-09-20 Thread Sahil Tandon
gahn [EMAIL PROTECTED] wrote:

 Hi all:
 
 I am trying upgrading some packages and having problems. for example:
 
 home# pkg_delete mysql-client-5.0.67
 pkg_delete: package 'mysql-client-5.0.67' is required by these other packages
 and may not be deinstalled:
 apache-2.2.9_5
 php5-5.2.6_2
 cyrus-sasl-2.1.22_1
 postfix-2.5.4,1
 subversion-1.5.2
 
 ok, if i removed it via pkg_delete -f and replace it with new
 version (5.1), then what would happen to packeges like apach2.2.9.5,
 php5-5.2.6_2 ...? are those packages would fail?

They should not fail if you successfully upgrade mysql-client;
incidentally, you might want to try:

% portupgrade -o databases/mysql50-client mysql-client

Of course, to do this you'll need to install ports-mgmt/portupgrade.

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


Re: problem killing a process with its pid

2008-09-14 Thread Sahil Tandon
Richard Yang [EMAIL PROTECTED] wrote:

 I have been trying to kill the process by pulling natd.pid

Is the rc script, which can be used to stop natd, not working?

 below are 3 typical examples among a couple dozens I tried
 
 kill -9 $(natd.pid)
 Illegal variable name
 
 kill -9 '/var/run/natd.pid'
 kill: Arguments should be jobs or process id's
 
 cat /var/run/natd.pid | kill -9
 (no error returned, but natd process is still up)

In bash, you could:

# kill -9 $(cat /var/run/natd.pid)

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


Re: /etc/hosts not working

2008-09-11 Thread Sahil Tandon
David Naylor [EMAIL PROTECTED] wrote:

 I am trying to redirect a URL request to a different address but it 
 appears that /etc/hosts is not doing the job.  Example:
 
 127.0.0.1  google.com
 
 The way I understand it is that by typing google.com in a web browser 
 it should result in the local page being displayed.  It instead goes 
 to the proper Google page.  

Which browser?  Works fine here; might be a browser cache issue.

 `ping google.com' actually pings 127.0.0.1 but `host google' returns 
 the actual IP addresses for google.  

This means both ping and host are working as designed.

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


Re: setup cronjob

2008-09-11 Thread Sahil Tandon
Darrell Betts [EMAIL PROTECTED] wrote:

 I have wrote a small script put it in my home directory. I am trying to 
 setup a cronjob to run it every six hours. When it runs the job I 
 receive the error message  /usr/home/test/cronjobs/test.sh: not found 
 I have tripe checked the file permissions and they appear correct so I 
 am stumped as to why this won't run? Any ideas?

Show the output of:

% ls -l /usr/home/test/cronjobs
% crontab -l
% less /etc/crontab

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


Re: Postfix issue

2008-09-08 Thread Sahil Tandon
David Southwell [EMAIL PROTECTED] wrote:

 Sorry to ask the question here but postfix users mailing list is 
 currently rejecting mails from servers on a dynamic ip address 
 - so I cannot get through to ask a question there.

Incidentally, your IP is also listed on several RBLs.

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


Re: Postfix issue

2008-09-08 Thread Sahil Tandon
David Southwell [EMAIL PROTECTED] wrote:

 Could anyone tell me what entry I should make in postfix 
 configuration files to bounce mails directed to [EMAIL PROTECTED] 
 that emanate from a source outside my local network.

After permitting your networks in the smtpd_recipient_restrictions, use 
check_recipient_access to REJECT any messages with an RCPT TO 
[EMAIL PROTECTED]

http://www.postfix.org/postconf.5.html#check_recipient_access
http://www.postfix.org/access.5.html

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 Sahil Tandon
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

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


Re: Local freebsd-update and portsnap server

2008-09-07 Thread Sahil Tandon
Christer Solskogen [EMAIL PROTECTED] wrote:

 Is there any docs about how to setup a own freebsd-update and 
 portsnap-server/mirror? Or is the only way to setup some kind of 
 proxy?

Proxy is recommended as per the man page; also see this thread for some 
background:

http://freebsd.monkey.org/freebsd-stable/200604/msg00606.html

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 Sahil Tandon
Kevin Kinsey [EMAIL PROTECTED] wrote:

 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.

Woops!  I guess the rest of the sentence never made it, and yep, that 
was it.  I was just going to caution against false hopes of increasing 
security through obscurity. :-)

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


Re: safest way to upgrade a production server

2008-09-07 Thread Sahil Tandon
John Almberg [EMAIL PROTECTED] wrote:

 So, my first question is, do I really need to do this?

Not unless you can identify a good reason (i.e. feature requirements, 
security, end-of-life).  6.3 end-of-life is estimated around January 
31, 2010, so you still have some time. :-)
 
 If so, what is the minimum amount of upgrading I can do to be safe?  
 And how?

Upgrade ports based on security/feature requirements.  We generally do 
not upgrade production servers from one release to another while 
they're still expected to be in production.

You'll probably get a lot of different suggestions from this list -- 
good luck!

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 Sahil Tandon
Andrew Falanga [EMAIL PROTECTED] wrote:

 It doesn't take a rocket scientist, or a computer scientist, to 
 figure out we've got DNS issues.

What exactly is the problem though?  What problems are you having on 
the mail server that lead you to the above conclusion?

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


Re: /etc/hosts

2008-09-02 Thread Sahil Tandon
Derek Ragona [EMAIL PROTECTED] wrote:

 What error are you getting from ping?

I think the OP said he did not have a problem with ping.

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


Re: no ask

2008-09-01 Thread Sahil Tandon
D?nielisz L?szl? [EMAIL PROTECTED] wrote:

 Do you have any idea how to set the /etc/make.conf to do not ask any 
 question during the make procedure and do the make with the default 
 settings?

Maybe you're looking for BATCH=yes?

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


Re: smtp authentication

2008-09-01 Thread Sahil Tandon
David Southwell [EMAIL PROTECTED] wrote:

 I am running postfix on freebsd 7.0 using a dynamic IP address and am 
 getting requests to turn on smtp authentication for outgoing mails to 
 reach servers such as yahoo.com but do not know how to do it.

This is a little unclear.  Who is making these requests?  And what do 
your logs currently show when you try to send email destined for 
yahoo.com?  You might also want to take this discussion to the 
postfix-users mailing list.  But in general, for help with SASL in 
Postfix, see:

http://www.postfix.org/SASL_README.html

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


Re: /etc/hosts

2008-09-01 Thread Sahil Tandon
Tom Marchand [EMAIL PROTECTED] wrote:

 Everything is set correctly in rc.conf.  What I have noticed is that 
 ping can resolve hosts from /etc/hosts.  
 
If ping works then everything is fine in /etc/hosts.  You haven't told us 
what program you're using to resolve the 'test' hostname.  If you're 
using something like dig or nslookup, then this is expected behavior; 
those programs are *supposed* to query the name server and do not read 
/etc/hosts.

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


Re: (no subject)

2008-09-01 Thread Sahil Tandon
kakyama umar [EMAIL PROTECTED] wrote:

 hi, their have just installed freebsd 6.2 but am having issues with 
 configuring ssh so can you plz help me out.
   
http://www.lemis.com/questions.html

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


Re: MTA advice ??

2008-08-25 Thread Sahil Tandon

Jeffrey Goldberg wrote:

Receiving mail directly will be more possible, but tricky.  You will 
need to use a dynamic DNS system.  Also do consider uptime and 
reliability.  In the old days, if one MTA couldn't reach another it 
would hold stuff in its queue for four or five days.  Now, most MTAs 
appear to be configured to give up after 24 hours.  So if your 
mailserver is down for a day, mail will be bounced and never delivered 
to you.


Actually, most *legitimate* MTAs do not give up after 24 hours.

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


Re: shutdown/reboot suggestion

2008-08-09 Thread Sahil Tandon
Michael Grant [EMAIL PROTECTED] wrote:

 More than once, through carelessness, and I'm sure I'm not alone, I
 have inadvertently shutdown or rebooted the wrong machine.  I'm sure
 some of you know that all too familiar feeling when you see
 Connection closed instead of your desktop being rebooted.
 
 I have a suggestion with respect to these commands.  What if they
 could be modified to require the hostname of the machine as their
 first argument, otherwise, they refuse to bring the machine down?

Write two scripts that check for those additional arguments and name them 
'shutdown' and 'reboot'.  Then ensure that they exist earlier in your 
PATH than the actual shutdown and reboot binaries.

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


Re: apple mac laptop.

2008-08-07 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

 My daughter wants a laptop; the only brand [ AFAIC ] is Apple.
 amazon.com seems to have a fair price.  Her school requires Word, for
 some reason.  {maybe because we're in X-Bill country:}
 
 Anyway, if anybody onlist knows of a better  place to buy an online Mac
 laptop, please drop a line.  
   
You are asking on the wrong mailing list; see http://www.apple.com.

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


Re: Backspace Key Not Working

2008-07-26 Thread Sahil Tandon
Schiz0 [EMAIL PROTECTED] wrote:

 I have an annoying problem that I'm not sure how to solve. Here's my setup:
 
 PuTTy = My FreeBSD 6.2 box = Production FreeBSD 7.0 box
 
 All via SSH, of course. Now, on my FreeBSD 6.2 box, the backspace key
 works fine all the time. However, when I connect from my 6.2 box into
 the production 7.0 box, the backspace key does not work all the time.
 In the console, it works fine (as in, it deletes what I type).
 However, when I'm in programs such as VIM, it displays ^? instead of
 deleting. Is there a way to fix this?

What are the contents of .vimrc on the 7.0 machine?  And how have you set 
your TERM environment variable on that machine?  Does anything change if you 
connect directly to your 7.0 box without going through 6.2 in between?

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


Re: crontab mails

2008-07-25 Thread Sahil Tandon
Yavuz Maslak [EMAIL PROTECTED] wrote:

 On freebsd7.0, my crontab sends many mails about its jobs.
 
 I want crontab not to send these mails
 
 How can I do that ?

This is somewhat of a FAQ; see:

http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/038638.html

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


Re: FreeBSD for webserver?

2008-07-22 Thread Sahil Tandon
Paul Schmehl [EMAIL PROTECTED] wrote:

[...]

 Some people enjoy doing that.  Most people just want the software to work, 
 be easy to maintain and upgrade and then stay out of their way. 

Ahem, and that 'just works' crowd is generally not found using FreeBSD or in 
an admin capacity. :-)

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


Re: FreeBSD for webserver?

2008-07-22 Thread Sahil Tandon
Paul Schmehl [EMAIL PROTECTED] wrote:

[...]

 Compiling from source rather than ports gains you nothing, in most cases, 
 and can cost you a great deal of extra time if you run into problems. Time 
 is something most admins I know have precious little of already. 

Relax.  Google joke and jest.  But let's be clear.  You *are* compiling 
from source when you *build* from ports.  You just have some 
guidance via the ports infrastructure. :)  YMMV.  TMTOWDI.  There are 
exceptions.  Et cetera.  No need to justify your methods to the list; just do 
what works for you.

[...]

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


Re: What price at the license of FreeBSD 7?

2008-07-20 Thread Sahil Tandon
OutBackDingo [EMAIL PROTECTED] wrote:

  How many Zimbabwe dollars, I wonder?  This seems to give the finest 
  measurement for approximations to zero...
 
 I think this is a bit uncalled for, it might have been in a candid
 manner, but there are alot of locations in the world using FreeBSD
 quite effectively where most people live on less then a dollar a day
 Id also like to note your so called US dollar isnt fairing so well.
 Pretty soon might it also be worth 0.00. I do think we should try not to
 insult the ecomonics of other countries 

Your reply is full of fallacies, false assumptions and one or two non 
sequiturs.  But anyway, this is thread is veering way off topic, so let's 
close it.  Thanks.

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


Re: Can't ping

2008-07-20 Thread Sahil Tandon
Rem P Roberti [EMAIL PROTECTED] wrote:
   
[...]

 ping: sendto: Permission denied

Did you (or another admin) change firewall rules?  Also, please do a simple 
google or list archive search before posting to the list.  Searching for the 
error you paste above results in several links that might've helped you 
troubleshoot this problem.

[...]

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


Re: PACKAGESITE

2008-07-13 Thread Sahil Tandon
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Can someone provide a correct example of setting PACKAGESITE so that
 pkg_add will find the 7-stable packages for i386?  I have tried
 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/
 
 as shown in the handbook, and also:
 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/All/
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable
 
 and all have failed.  I get messages like
 
 pkg_add: could not find package expat-2.0.1 !
 pkg_add: could not find package png-1.2.28 !
 pkg_add: could not find package pkg-config-0.23_1 !
 
 etc.  Even specifying -v does not cause pkg_add to show exactly

[...]

Did you specify the -r flag?  Without that, the PACKAGESITE environment 
variable is note used.  From the ENVIRONMENT section of pkg_add(1):

 The environment variable PACKAGESITE specifies an alternate location for
 pkg_add to fetch from.  This variable subverts the automatic directory
 logic that pkg_add uses when the -r option is invoked.  Thus it should 
 be a complete URL to the remote package file(s).

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


Re: User properties and how to make files with a specific group owner

2008-07-09 Thread Sahil Tandon
Andrew Falanga [EMAIL PROTECTED] wrote:

 I've not had to set this up and so far my efforts have proven less than 
 successful.  I'm working on a web project with my father and one other 
 developer.  I need to have it so that our user id's, when creating files in 
 the directory we share the source code in, create the files with the group 
 id common to the three of us.  How do I do this?

[...]
  
New files are created with GID set to that of the directory in which they're 
contained.  In your case, is that directory owned by user and group 'andy'? 
If so:  

% chown -R :www /path/to/shared/directory

... and every file created therein will have the default GID.

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


Re: Sed in FreeBSD

2008-07-05 Thread Sahil Tandon
Sebastian Tymk?w [EMAIL PROTECTED] wrote:

 I'm trying to use sed in script to append file after pattern but I couldn't
 find any good example
 how can I do it.

Based on sed(1), I think you need something like:

sed '/PATTERN/ r file' 

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


Re: Amanda port update

2008-07-04 Thread Sahil Tandon
FBSD [EMAIL PROTECTED] wrote:

 I need to install the current version of Amanda (misc/amanda-client and 
 misc/amanda-server) and would like to install from the ports collection. 
 However the port maintainer has not updated Amanda in quite some time. Can 
 someone give me some advice on how to roll my own ports install from the 
 source tarball?  Thanks.
 
See http://www.freebsd.org/doc/en/books/porters-handbook/ and use the 
existing amanda ports as a guide.  Good luck.

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


Re: Amanda port update

2008-07-04 Thread Sahil Tandon
David Robillard [EMAIL PROTECTED] wrote:

  I need to install the current version of Amanda (misc/amanda-client and
  misc/amanda-server) and would like to install from the ports collection.
  However the port maintainer has not updated Amanda in quite some time. Can
  someone give me some advice on how to roll my own ports install from the
  source tarball?  Thanks.
 
 Did you try to contact the port maintainer? You probably want to check
 with him/her before you update the port no?
 
 In any case, it's a good idea to update the port because we're going
 to need it here too!

It's nice to contact the maintainer to ensure you don't duplicate efforts.  
But no need to ask permission to create an update patch. :)

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


Re: Amanda port update

2008-07-04 Thread Sahil Tandon
FBSD [EMAIL PROTECTED] wrote:

 I did contact the port maintainer, but he didn't respond at all. :(
 
 Any help in getting this port updated would be greatly appreciated!

Follow the guide linked previously in the thread and feel free to ask about 
specific problems that you encounter.  We should also move this discussion to 
the freebsd-ports@ mailing list.

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


Re: Making changes to ports default install

2008-06-30 Thread Sahil Tandon
Tim DeBoer [EMAIL PROTECTED] wrote:

 I've been working on a new server, and I'd like to install apache from ports
 to make maintenance easier.
 The problem is the default layout drives me nuts. I'd like to use a more
 intuitive layout. Is it possible to pass a custom layout file during make
 build? Something like make build WITH_LAYOUT=/path/to/layout/file  or
 something along those lines?

Look into --enable-layout.  See the various options in config.layout; if none 
of them suit you, you can add your custom rules.  I believe you can also 
point to a file that contains your custom layout if you are uncomfortable 
editing the config.layout.

[...]

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


Re: Configuring an older server for speed...

2008-06-30 Thread Sahil Tandon
Ryan Coleman [EMAIL PROTECTED] wrote:

 Kurt Buff wrote:

[...]

 I would recommend fBSD 6.3 instead of 7. You don't need it, unless you have 
 a documented reason it has to be 7.0

Please qualify that recommendation; as it stands, it is pure FUD.

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


Re: mysql 5.0.51b and ssl

2008-06-23 Thread Sahil Tandon
kalin m [EMAIL PROTECTED] wrote:

 i just installed openssl 0.9.8h and trying to build mysql 5.0.51b with it 
 on a freebsd 7 machine. i get this:

 /usr/bin/ld: /usr/local/ssl/lib/libssl.a(t1_srvr.o): relocation R_X86_64_32 
 can not be used when making a shared object; recompile with -fPIC
 /usr/local/ssl/lib/libssl.a: could not read symbols: Bad value

 any ideas?

You have a 64-bit system, yes?  Try recompiling OpenSSL with the appropriate 
CFLAGS as suggested in the error output.  Google portions of what you pasted 
above for more background on this issue.

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


Re: please don't shoot me , but... [YAOTP]

2008-06-22 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

 yes, this is yet another off-topic post,, but 1) i can't find where to
 post on the GIMP list [or forum], 2), can't find anything that makes
 sense to my way of thinking.
 
 how, oh how, do i use these gimp 'layers'??

[...]

Your initial intuition was spot on; please don't post these type of questions 
on this list.  Thanks.

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


Re: Portsnap behind proxy squid not update

2008-06-21 Thread Sahil Tandon
Edgardo Nuevo [EMAIL PROTECTED] wrote:

 I have a proxy (squid) that gives Internet to a set of pcs, one of
 them is a FreeBSD 6.2, when wanting to upgrade ports (
 portsnap fetch)  gives me the messages following:
 
 PC1 # fetch portsnap

Did you mean (and actually type) 'portsnap fetch'?

[...]

 But I fail to upgrade ports, then modify the
 file. cshrc and leave it well
 # ee. cshrc
 setenv HTTP_PROXY http://10.0.1.1:3128

No need to specify the port in your case; 3128 is default for HTTP_PROXY.  
Does your proxy server require authentication?  If so, you need to specify 
authorization parameters as outlined in man fetch(3).

 setenv FTP_PROXY ftp://10.0.1.1:3128
 setenv FTP_PASSIVE_MODE ftp://10.0.1.1:3128
  
BTW, although FTP_PASSIVE_MODE is enabled by setting it to anything other 
than 'no', you probably want to set it to something logical like YES 
instead of just re-listing the proxy URL. :-)

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


Re: FreeBSD based web hosting?

2008-06-18 Thread Sahil Tandon
Maxim Khitrov [EMAIL PROTECTED] wrote:

 I'm currently with JohnCompanies. Overall, it's been a positive
 experience, though I wish they offered FreeBSD 7. Beta testing for it
 was supposed to begin last month, but so far no news.

+1 for JC.  The tech support and availability is unparalleled.  Satisfied 
customer for over three years.

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


Re: /var full

2008-06-18 Thread Sahil Tandon
Paul Schmehl [EMAIL PROTECTED] wrote:

 At 10PM (local time) this evening, a server started reporting that /var was 
 full.  When I ssh'd in to the server to investigate, df said /var was at 2% 
 full (5.1G) and dh reported the same (5.1G).  /var/log/dmesg.today is full 
 of messages listing multiple entries with the same inode number followed by 
 one entry listing dd as the culprit.

 +pid 730 (mysqld), uid 88 inumber 7089166 on /var: filesystem full

[...]

 Was this some sort of temporary glitch?  Or something more ominous?  Why 
 would toor be running dd?  Is it some sort of file recovery routine 
 triggered by filesystem full messages?

This appears to be mysql-related:

http://dev.mysql.com/doc/refman/5.0/en/temporary-files.html

Also, what is the output of 'df -i /var'?

See recent thread on FreeBSD Forums for context:

http://www.freebsdforums.org/forums/printthread.php?t=58071

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 install pphpBB2? [WAS: Re: okay, it's time to ask....]

2008-06-14 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

   The only thing I seemto remember is that in 2003, phpBB2 was
   installed withthe data directory, /usr/local/www/data/
   Now itis installed in theweb ``root'' irectory, /usr/local/www
 
   Below is what happened with lynx.
 
 p4 22:05 Jail:: aristotle [2672] lynx http://localhost/phpBB2/
   404 Not Found
  Not Found
 
   The requested URL /phpBB2/ was not found on this server.

What do your apache logs say about this?  Look for an error associated with 
trying to find this phpBB2 location.  Does it exist?  Is your httpd.conf 
configured to make that location available?

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


Re: ports/net/asterisk build problem

2008-06-14 Thread Sahil Tandon
Wojciech Puchar [EMAIL PROTECTED] wrote:

 undefined reference to `__sync_fetch_and_add_4'

 anyone know where these __sync_* functions are?

Do you set CPUTYPE in /etc/make.conf?  There has been some discussion about 
this before; check the archives for some commonly suggested solutions.

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


Re: 64-bit?

2008-06-14 Thread Sahil Tandon
Ryan Coleman [EMAIL PROTECTED] wrote:

 I'm full of questions, I know... And I haven't been googling well lately 
 but there seem to be a lot of you with a lot of knowledge and you're 
 willing to share (as am I).

 This machine is running a D2C E4600 which (as I understand) is a 64-bit 
 cpu, but I'm running fBSD 6.3 which is *not* 64-bit? Might this have 
 anything to do with the crashes? Is there a stable 64-bit version of fBSD I 
 should install? Will it upgrade the 32-bit or should I go from scratch?

6.3 supports 64-bit.  http://www.freebsd.org/releases/6.3R/announce.html

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


Re: 64-bit?

2008-06-14 Thread Sahil Tandon
Ryan Coleman [EMAIL PROTECTED] wrote:

 Kris Kennaway wrote:
 Ryan Coleman wrote:
 I'm full of questions, I know... And I haven't been googling well lately 
 but there seem to be a lot of you with a lot of knowledge and you're 
 willing to share (as am I).

 This machine is running a D2C E4600 which (as I understand) is a 64-bit 
 cpu, but I'm running fBSD 6.3 which is *not* 64-bit? Might this have 
 anything to do with the crashes? Is there a stable 64-bit version of fBSD 
 I should install? Will it upgrade the 32-bit or should I go from scratch?

 6.3 supports 64-bit amd64-compatible CPUs, and stability is on par with 
 the 32-bit version.  Besides which, amd64 CPUs are full backwards 
 compatible when run in 32-bit mode, so this is not the source of your 
 problems.

 Kris

 But will it upgrade or do I have to strike the current install and go again?

An upgrade may be possible, but a new installation is recommended.  Search 
the archives at http://lists.freebsd.org/pipermail/freebsd-amd64/ for context.

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


Re: sendmail's outgoing IPs

2008-06-14 Thread Sahil Tandon
Wojciech Puchar [EMAIL PROTECTED] wrote:

 is it possible to make sendmail choose it's outgoing IP when sending mail 
 from list of four in random or round-robin way?

What problem are you trying to solve?  And this really is a question for the 
sendmail mailing list. :-)

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 install pphpBB2? [WAS: Re: okay, it's time to ask....]

2008-06-14 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

 Directory /usr/local/www/jottings
 AllowOverride None
 Order Allow,deny
 Allow from all
 /Directory
 
 Directory /usr/local/www/bsd
 AllowOverride None
 Order Allow,deny
 Allow from all
 /Directory
 
 Directory /usr/local/www/philosophy
 AllowOverride None
 Order Allow,deny
 Allow from all
 /Directory
 
 
 .
 
 
   so, doi set up myphpbb[23] here??

Perhaps.

 32327:[Wed Jun 11 17:20:18 2008] [error] [client 10.47.0.250] File does
 not exist: /usr/local/www/thought.org/phpbb

That seems pretty clear to me.  Apache is looking for phpbb in 
/usr/local/www/thought.org/phpbb, where it does not exist.  Fix that or 
configure apache to look in the appropriate location.

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


Re: how to view environment variables

2008-06-14 Thread Sahil Tandon
Chris Whitehouse [EMAIL PROTECTED] wrote:

 sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment 
 variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they are 
 set to? set and printenv don't find them. I'm using standard csh and  
 FreeBSD 7.0-STABLE, fuse.ko is loaded and ntfs-3g works except it seems 
 very slow.
  
Did you read the csh(1) man page?

setenv [name [value]]

Without  arguments,  prints  the names and values of all environment 
variables.  Given name, sets the environment variable name to value or,  
without value, to the null string.
   
-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Restoring freeBSD boot loader

2008-06-13 Thread Sahil Tandon
Lionel [EMAIL PROTECTED] wrote:

   I've had to install Windows XP in dual boot on a freeBSD box, and of
 course it erased the bootloader to replace it with its own. Now I'd like
 to restore the freeBSD bootloader.
 
   I've tried booting with the install CD and I use the fdisk utility to
 mark the fbsd partition bootable and then said I wanted to install the
 freeBSD bootloader, but I didn't know how to make it actually write the
 changes to the disk.
 
   So... is it possible to restore the bootloader this way? Maybe I could
 install lilo from a live CD but I don't want to install grub from
 windows because I'll probably remove it soon, but I think lilo just
 places itself in the boot segment so it should be fine.

3.8 in http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/install.html

-- 
Sahil Tandon [EMAIL PROTECTED]
___
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 install pphpBB2? [WAS: Re: okay, it's time to ask....]

2008-06-13 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

   After a long time, I've got phpbb configured into mysql.
   I've downloaded phpBB2 and installed it.  My notes from 
   2003 fail here; it may be because my apache-2 isn't configured.

What notes?  What fails and how?  Show error output and logs.

   Cann anybody clue me in?

Only if you provide background, a better description of the problem and the 
steps you've taken to troubleshoot it.  When seeking help on this list, you 
should follow this advice:

http://www.lemis.com/questions.html
http://www.catb.org/~esr/faqs/smart-questions.html

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


Re: need mysql help setting passwd

2008-06-11 Thread Sahil Tandon
Gary Kline [EMAIL PROTECTED] wrote:

 the question is: how do I set the root password on mysql?  this is a 
 first step in getting phpbb3 up.   i have other CMS tools installed 
 on aristotle, m jail where my webserver runs.
 
 this failed:
 
 
 mysqladmin -u root password
 mysqladmin: connect to server at 'localhost' failed
 error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Start here: http://dev.mysql.com/doc/refman/5.1/en/access-denied.html

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


Re: two monitors, two displays, one PC

2008-06-11 Thread Sahil Tandon
John Wynstra [EMAIL PROTECTED] wrote:

 In the last 4 months I bought a new monitor to replace the one that clunked 
 out in me.  I am currently using it with an old PS2 type keyboard and mouse 
 attached to a creaky old desktop that will eventually be replaced.  Likely 
 I will want to replace it with a laptop with wifi and a lot more memory and 
 hard drive so that I can take it with me.  Can I still use the old monitor 
 as a second display?

Yes.
  
 Can this be done?  Is it done?  What are the issues?

You can search for FreeBSD + dual monitors on google and find some examples + 
usual pitfalls.

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


Re: stunnel not running? (check /var/run/stunnel/stunnel.pid)

2008-06-07 Thread Sahil Tandon
Noah [EMAIL PROTECTED] wrote:

 Okay I am not understanding something with stunnel. it appears that stunnel 
 cant start because it cant create a pid file.  It happens every time I 
 upgrade it.

 # /usr/local/etc/rc.d/stunnel restart
 stunnel not running? (check /var/run/stunnel/stunnel.pid).
 Starting stunnel.
 # /usr/local/etc/rc.d/stunnel restart
 stunnel not running? (check /var/run/stunnel/stunnel.pid).
 Starting stunnel.
 #

 Anybody help me understand things here.  so here is the relevent output 
 which I can provide some clues.

I notice below that you have modified the rc script, but even after mimicking 
your changes, I cannot reproduce your problem -- stunnel starts (and creates 
a pid) just fine.  What is logged to /var/log/messages by stunnel?

[...]

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


Re: stunnel not running? (check /var/run/stunnel/stunnel.pid)

2008-06-07 Thread Sahil Tandon
Noah [EMAIL PROTECTED] wrote:

 2008.06.07 10:37:55 LOG3[27646:134664192]: Cannot create pid file 
 /tmp/stunnel.pid

It should not be trying to create a pid file in /tmp.  There is a 
configuration file being read that is directly stunnel to that location.

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


Re: Denyhost

2008-06-05 Thread Sahil Tandon
Andrea Venturoli [EMAIL PROTECTED] wrote:

 Anyone using this?
 I've used it for a long time on a 6.x box and it worked fine.
 Recently I had to deactivate it since it seems to lock away every IP which 
 is listed in the logs.
 Any hint?

Give more information.  Which logs?  Give an example.  Show relevant excerpts 
from your denyhosts configuration.  Which version of denyhosts are you 
running?  How and where in /etc/hosts.allow is the denyhosts list being 
referenced?

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


Re: Flickr client

2008-06-02 Thread Sahil Tandon
Derek Graham [EMAIL PROTECTED] wrote:

 I was curious is there a client that works in FreeBSD in which a flickr 
 client that allows large bulk uploads to flickr? I am wanting to upload 
 more then 5 at a time and tried jUploadr(alot of errors) and kflickr(wont 
 build). Those two are only linux but any advice would be greatly 
 appreciated.

graphics/f-spot is a photo management tool for GNOME and includes an 'export 
to flickr' feature.  

www/p5-Flickr-Upload is a command-line tool that works quite well if you 
don't need the GUI.

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


Re: Looking for gurus willing to help write Freebsd tutorials

2008-05-30 Thread Sahil Tandon
Steve Lake [EMAIL PROTECTED] wrote:

 Hi everyone.  I was wondering if anybody here might be interested 
 in writing and donating a few Freebsd tutorials or articles to Raiden's 
 Realm to help us boost the number of Freebsd related articles on the site.  
 A lot of what we have is Linux oriented right now because most of the 
 people there are Linux oriented.  I'm one of the few who's Freebsd 
 oriented.  And since my goal is to help people learn both Linux and 
 Freebsd, I'm looking for people willing to help out by writing long or 
 short tutorials on doing a variety of simple and complex tasks in Freebsd.

These type of tutorials already exist on the FreeBSD web site.  There is a 
Handbook which contains links to various articles.  Also, there is a section 
designed specifically for the newbies to which your site caters:

http://www.freebsd.org/projects/newbies.html

[...]

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


Re: Need to build a new mail server

2008-05-29 Thread Sahil Tandon
Patrick Baldwin [EMAIL PROTECTED] wrote:

 Hi all, I've got an older Solaris system running Sendmail for my
 mail server right now.  It's about time to replace it, and I'm
 thinking FreeBSD might be the best choice of OS for the replacement.

FreeBSD == good choice. :)
  
 However, it's been some time since I looked into options for mail
 servers.  I'm interested in both suggestions for hardware and mail
 servers that would make for the best FreeBSD based mail server.

 I've only got about two dozen users, though they are all very heavy
 users of email.  I'm using IMAP, and I'd like to continue to do so.
 
That's a small user base, so you don't need to invest much in hardware.  
For the server, I highly recommend Postfix.

 Finally, we have quite a few aliases I'd want to port over to a
 new server.
   
That should be fairly straightforward; for hints, see the mailing list 
archive for your MTA, or ask them the question.

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


Re: service (torque) not starting at boot time on 7.0

2008-05-29 Thread Sahil Tandon
joe park [EMAIL PROTECTED] wrote:

 I've searched the mailing list, but it didn't help the issue I'm seeing. I 
 did fresh install of 7.0, downloaded latest ports.tar.gz, and installed 
 torque (portable batch system) from ports.  Everything works fine once the 
 deamon is running, but the services (namely, pbs_mom, pbs_server, and 
 pbs_sched) are not started automatically when the system boots.  I can 
 manually start them without a problem with 
 
 /usr/local/etc/rc.d/pbs_mom start
 /usr/local/etc/rc.d/pbs_server start
 /usr/local/etc/rc.d/pbs_sched start
 
 The /etc/rc.conf file correctly has following entries :
 
 pbs_mom_enable=YES
 pbs_server_enable=YES
 pbs_sched_enable=YES
 
 When I added rc_debug=YES, I see that it's not processing any of pbs 
 related process.

I cannot reproduce this problem on a fresh install of 7.0 with the latest 
version of torque.  Do you see any clues in /var/log/messages?  On my system, 
with rc_debug=YES in /etc/rc.conf (with some truncation to allow for 
wrapping):

% awk '/DEBUG/  /pbs/  /check/' /var/log/messages
beast root: /etc/rc: DEBUG: checkyesno: pbs_server_enable is set to YES.
beast root: /etc/rc: DEBUG: checkyesno: pbs_sched_enable is set to YES.
beast root: /etc/rc: DEBUG: checkyesno: pbs_mom_enable is set to YES.
  
The pbs_* lines are processed at boot. 

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


Re: where is FreeBSD on ftp.uk.freebsd.org?

2008-05-24 Thread Sahil Tandon
* Chris Whitehouse [EMAIL PROTECTED] [05-24-2008]:

 Also UK is not in the list of countries at 
 http://mirrorlist.freebsd.org/FBSDsites.php.

Several UK mirrors listed here:

http://www.freebsd.org/doc/en/books/handbook/mirrors-ftp.html

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


Re: Uninstall Webmin

2008-05-24 Thread Sahil Tandon
* Ruel Luchavez [EMAIL PROTECTED] [05-24-2008]:

 but how do you uninstall the setup.sh? i have uninstall the webmin through
 its ports (deinstall) but every time i use again the setup.sh to finish the
 installation of webmin the server still read the old setup.sh configuration
 ( i can't set anymore the port,logs directory,username, etc.)

It is difficult to understand your exact problem or question, but does 
/usr/local/etc/webmin/ exist by any chance?  It was probably (since you 
modified its contents, this is a good thing) not deleted by 'make deinstall'. 
 So:

# rm -rf /usr/local/etc/webmin  /usr/local/lib/webmin/setup.sh

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


Re: Uninstall Webmin

2008-05-23 Thread Sahil Tandon
* Ruel Luchavez [EMAIL PROTECTED] [05-24-2008]:

 Guys, how do you uninstall the setup of webmin (setu.sh)? i allready search
 all the directory of
 my webmin but i cant find the unistall.sh?
 
setup.sh would have created uninstall.sh, but files/patch-aa disables this:

/usr/ports/sysutils/webmin/files/patch-aa:+nouninstall=yes 

Look in setup.sh and you can see the few commands executed by the uninstall 
script.

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


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
On May 19, 2008, at 4:17 PM, Montag wrote:

 host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:

Are you sure it wasn't mx1.freebsd.org?  And are you mangling 
my.mywebsite.com or is that really the hostname with which your server is 
configured to EHLO/HELO?  The FreeBSD MXs also run Postfix and employ the 
reject_unknown_helo_hostname restriction; it rejects HELO and EHLO hostnames 
that lack DNS A or MX records.  Your log excerpt looks suspicious because 
my.mywebsite.com does have a valid DNS A record:   

my.mywebsite.com.   96  IN  A   208.87.33.150
 
 Any thoughts?  I typed sendmail -bp to print that, which is curious, 
 because I'm pretty sure sendmail is not running; Postfix should be handling 
 everything.

It is actually Postfix behind the scenes!  See man mailwrapper(8) and the 
contents of /etc/mail/mailer.conf.

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


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
* Paul Schmehl [EMAIL PROTECTED] [05-19-2008]:

 Macintosh:~ pauls$ telnet my.mywebsite.com 25
 Trying 209.181.247.105...
 Connected to nullmx.mywebsite.com.
 Escape character is '^]'.
 220 nullmx SMTP
 EHLO testing.mydomain.com
 220 Hello
 quit
 220 Buh-bye!
 Connection closed by foreign host

 Why nullmx.mywebsite.com?  Which resolves to an entirely different IP 
 address.

Perhaps the admin routes all port 25 traffic to nullmx.

 So I've got no idea why he's having this problem, unless it's because the 
 MX record doesn't point to my.mywebsite.com.

Pure conjecture, but I think in trying to avoid exposing his machine's real 
hostname, he just wrote my.mywebsite.com, which just so happens to be an 
actual hostname.  Otherwise, I am similarly perplexed.

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


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
* Sahil Tandon [EMAIL PROTECTED] [05-19-2008]:

 * Paul Schmehl [EMAIL PROTECTED] [05-19-2008]:
 
  Macintosh:~ pauls$ telnet my.mywebsite.com 25
  Trying 209.181.247.105...
  Connected to nullmx.mywebsite.com.
  Escape character is '^]'.
  220 nullmx SMTP
  EHLO testing.mydomain.com
  220 Hello
  quit
  220 Buh-bye!
  Connection closed by foreign host
 
  Why nullmx.mywebsite.com?  Which resolves to an entirely different IP 
  address.
 
 Perhaps the admin routes all port 25 traffic to nullmx.

Actually, I am wrong here.  This is happening on your machine because you are 
using telnet on OS X Leopard:

http://chip-miller.net/2008/03/14/solving-a-dns-mystery-on-os-x/

Try telnet from a FreeBSD (or any other) machine, and you will get:

# telnet my.mywebsite.com 25
Trying 208.87.33.150...
telnet: connect to address 208.87.33.150: Connection refused
telnet: Unable to connect to remote host

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


Re: another problem

2008-05-18 Thread Sahil Tandon
* John Wynstra [EMAIL PROTECTED] [05-17-2008]:

 I am getting the impression this is very filthy code.
   
Doubt it.

[...]

 c++: Internal error: Killed: 9 (program cc1plus)

Google this.  You probably have RAM issues.  Also, as Glyn already suggested, 
please stop top-posting (google if you do not know what this is).  And in the 
future, for posterity if nothing else, please set subject lines that are 
related to your question.  See:

http://www.lemis.com/questions.html#submit

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


  1   2   >