Re: NGE Network Driver Problem.

2006-08-25 Thread Jeremy Karlson

On 25-Aug-06, at 14:37, Robert Huff wrote:
 After doing some digging, I've found that there was a patch  
applied to

 RELENG_6, modifying the sk driver to ignore my revision of card, and
 instructing the re driver to attach.  This is probably why it  
works for
 Robert and not for me; he's probably running 6 , while  
I'm

 still on 5 STABLE.

That machine is -CURRENT, and was at the time of the hardware
change.  NB: at the time this happened, the pci scan code did not
automagically connect the card to the re driver; however, forcing
the loading of if_re.ko did the trick.


Just for archival purposes, in case others need this; I solved my  
problem by pulling the modifications from RELENG_6 into my local  
source, and recompiling my kernel with the drivers included.  I don't  
seem to require the kernel module like Robert does, as the driver  
attaches and initializes when compiled right in.  The files to look  
at are: if_re.c, if_sk.c, if_skreg,h, and if_rlreg.h.


Thanks for your help Robert.

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


Re: Too many Xorg modes

2006-08-25 Thread Perry Hutchison
> > In 6.1, how would I set up xorg.conf to restrict Xorg to a few
> > specific modes?  The Xorg.8.log created during xorgcfg shows 24
> > modelines, but when I cycle through the modes using CtrlAltPlus
> > there are two which don't work at all and the remaining 22 cover
> > only 8 resolutions (of which only about 3 seem likely to actually
> > be useful.)
> 
> I don't know if there is an easier way, but I just copy the modelines
> I like from the log and paste them in the xorg.conf file. Put them in
> the "Monitor" section.

That is exactly what I did.

> To address your second paragraph: in my case at least, including
> explicit modelines suppresses the automatic modes. I only get the
> ones explicitly listed. This has worked in both XFree86 and Xorg.

In my case, using 6.1 Xorg, the only automatic modes suppressed
were those whose resolutions matched one of the explicit modelines
(and this is consistent with my reading of the 6.1 xorg.conf(5)
manpage).  Perhaps this behavior is different than earlier releases.

The primary problem is that the highest-resolution automatic mode
(1280x960) does not work:  the (LCD) monitor displays a message
to the effect that the input sync frequency is out of range, and
goes into standby after about 20 seconds.

This bad mode is used as the initial mode since it has the highest
resolution, and there is no correct modeline that I can provide
to override it because the resolution exceeds the monitor's
capabilities; so the server always starts up in a non-working
mode.  I can get to a working mode with CtrlAltPlus, but then
the desktop (which was sized according to the initial, invalid,
resolution) is too big for the screen.

I suspect I may have run into an Xorg (or driver) bug -- the
probe did correctly identify the monitor as a Gateway FPD1530,
and this should have caused all resolutions exceeding 1024x768
to be discarded -- but how do I get around it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Code beautifiers, anyone?

2006-08-25 Thread James Long
> Date: Fri, 25 Aug 2006 21:27:03 +0300
> From: "Matti J. Karki" <[EMAIL PROTECTED]>
> Subject: Re: Code beautifiers, anyone?
> To: " Kyrre Nyg?rd " <[EMAIL PROTECTED]>
> Cc: "W. D." <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 8/25/06, Kyrre Nyg?rd <[EMAIL PROTECTED]> wrote:
> >
> > In your script, do these comments look alright then?
> >
> > (I simplified them a bit)
> >
> > inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # Move curly brackets
> > to the end of lines
> > inbuffer = re.sub('\) *?{', ') {', inbuffer) # Remove spaces between
> > closing brackets and opening curly brackets
> > inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # Fix curly
> > brackets in `else' clauses
> > inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Break up the
> > content of curly brackets
> > inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # Take care of
> > closing brackets from the above rule
> 
> Looks OK, except...
> 
> > inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace
> 
> This will strip spaces at the _beginning_ of line (leading spaces).

Except, possibly, lines that begin at the first byte of the buffer, 
such as the first line of the file, and any other lines that happen to 
land across the buffer boundary just so.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Slapd 2.3.24 on 98 to 100 percent most of the time ...

2006-08-25 Thread Feczák Szabolcs
FreeBSD cstech.hu 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 
07:00:26 UTC 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64


It kills the machine, and I have no idea why. Close after restart it 
operates
normally later on starts eating up the processor time although the load 
remains

under 2. Queries still returning data, but slows down the whole machine.

slapd.conf :


include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/cyrus.schema
include /usr/local/etc/openldap/schema/dyngroup.schema
include /usr/local/etc/openldap/schema/eduorg.schema
include /usr/local/etc/openldap/schema/eduperson.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/maildrop.schema
include /usr/local/etc/openldap/schema/kerberosobject.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/sendmail.schema
include /usr/local/etc/openldap/schema/squirrelmail.schema
include /usr/local/etc/openldap/schema/uoa.schema
include /usr/local/etc/openldap/schema/uoademouser.schema
include /usr/local/etc/openldap/schema/uoamailrecipient.schema
include /usr/local/etc/openldap/schema/uoasendmail.schema
include /usr/local/etc/openldap/schema/rfc2739.schema
include /usr/local/etc/openldap/schema/horde.schema

pidfile /var/run/openldap/slapd.pid
argsfile/var/run/openldap/slapd.args

modulepath  /usr/local/libexec/openldap
moduleload  back_bdb
databasebdb

suffix  "dc=cstech,dc=hu"
rootdn  "cn=manager,dc=cstech,dc=hu"
rootpw  {SSHA}-

access to *
   by dn="cn=admin,ou=people,dc=cstech,dc=hu" write
   by * read

access to *
   by * write

directory   /var/db/openldap-data
index   objectClass eq

nsswitch.conf :

group: files ldap
group_compat: nis
hosts: files dns
networks: files
passwd: files ldap
nasswd_compat: nis
shells: files


ports installed:

nss_ldap-1.250, oniguruma-2.5.2, openjade-1.3.2_7, 
openldap-client-2.3.24, openldap-server-2.3.25, openssl-0.9.8b_1, 
p5-Archive-Tar-1.29, p5-Archive-Zip-1.16, p5-Authen-SASL-2.10_1, 
p5-BerkeleyDB-0.27_3, p5-Compress-Zlib-1.41, p5-Convert-ASN1-0.20, 
p5-Convert-BinHex-1.119, p5-Convert-TNEF-0.17, p5-Convert-UUlib-1.06, 1, 
p5-Crypt-PasswdMD5-1.3, p5-DBD-Pg-1.49, p5-DBI-1.50, p5-Digest-1.15, 
p5-Digest-HMAC-1.01, p5-Digest-MD5-2.36, p5-Digest-SHA1-2.11, 
p5-File-Temp-0.16_4, p5-GSSAPI-0.21, p5-Geography-Countries-1.4, 
p5-HTML-Parser-3.54, p5-HTML-Tagset-3.10, p5-IO-Multiplex-1.08, 
p5-IO-Socket-INET6-2.51_1, p5-IO-Socket-SSL-0.97, p5-IO-String-1.08, 
p5-IO-Zlib-1.04_1, p5-IO-stringy-2.110, p5-IP-Country-2.21, 
p5-MIME-Base64-3.07, p5-MIME-Tools-5.420, 2, 
p5-Mail-SpamAssassin-3.1.1_4, p5-Mail-Tools-1.74, p5-Net-1.19, 1, 
p5-Net-DNS-0.57, p5-Net-IP-1.24, p5-Net-SSLeay-1.30_1, 
p5-Net-Server-0.93_1, p5-Net-XWhois-0.90_3, p5-PathTools-3.18, 
p5-Pod-Parser-1.34, p5-Scalar-List-Utils-1.18, 1, p5-Socket6-0.19, 
p5-Storable-2.15, p5-Term-ReadKey-2.30, p5-Test-Harness-2.60, 
p5-Time-HiRes-1.87, 1, p5-URI-1.35, p5-Unix-Syslog-0.100, 
p5-XML-NamespaceSupport-1.09_1, p5-XML-SAX-0.14, p5-gettext-1.05_1, 
p5-libwww-5.805, p5-perl-ldap-0.33, pam_ldap-1.8.0, pcre-6.6_1, 
pdflib-6.0.3, pear-1.4.6, pear-Auth-1.2.4, pear-Auth_SASL-1.0.1_1, 
pear-Cache-1.5.4_1, pear-DB-1.7.6, 1, pear-Date-1.4.6, pear-File-1.2.2, 
1, pear-File_Passwd-1.1.6, pear-HTTP_Request-1.3.0, pear-Log-1.9.3, 
pear-Mail-1.1.9, pear-Mail_Mime-1.3.1, pear-Net_SMTP-1.2.7, 
pear-Net_Sieve-1.1.2, pear-Net_Socket-1.0.6, pear-Net_URL-1.0.14, 
pear-SOAP-0.9.1, pear-XML_Parser-1.2.7, pear-XML_Serializer-0.16.0, 
pear-XML_Util-1.1.1, pecl-PDO-1.0.3, pecl-fileinfo-1.0.3, 
pecl-zip-1.3.1, perl-5.8.8, php5-5.1.4, php5-ctype-5.1.4, 
php5-dom-5.1.4, php5-ftp-5.1.4, php5-gd-5.1.4, php5-gettext-5.1.4, 
php5-iconv-5.1.4, php5-imap-5.1.4, php5-ldap-5.1.4, php5-mbstring-5.1.4, 
php5-mcrypt-5.1.4, php5-mysql-5.1.4, php5-openssl-5.1.4, 
php5-pcre-5.1.4, php5-session-5.1.4, php5-xml-5.1.4, php5-zlib-5.1.4, 
phpldapadmin-1.0.1, 1, pkgconfig-0.20_2, png-1.2.8_3, portaudit-0.5.11, 
portupgrade-2.0.1_1, 1, postfix-2.2.10_1, 1, postgresql-client-8.1.4, 
postgresql-server-8.1.4_1, pure-ftpd-1.0.21_1, python-2.4.3, 
razor-agents-2.81, recode-3.6_6, rpm2cpio-1.2_2, ruby-1.8.4_8, 1, 
ruby18-bdb1-0.2.2, screen-4.0.2_3, sgmlformat-1.7_2, sudo-1.6.8.12_1,

t1lib-5.1.0_1, 1, texinfo-4.8_3, tidy-lib-051026_2, turba-2.1.1,
unarj-2.65_1, unrar-3.60.b4, 3, unzip-5.52_2, unzoo-4.4, vim-lite-6.4.9,
webcpp-0.8.4, xmlcatmgr-2.2, zoo-2.10.1_2, zsh-4.3.2

I have tried to put higher logging level on slapd, no success to see 
anything suspicious ...


Any ideas what can be the problem ?
_

pptp networking question

2006-08-25 Thread gahn
hi:

i got ppptp working or not? basically i got it
configured and it seems to be working but i can'yt
connect to anything on that subnet:

C:\Documents and Settings\johndo>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . :
192.168.1.104
Subnet Mask . . . . . . . . . . . :
255.255.255.0
Default Gateway . . . . . . . . . :
192.168.1.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media
disconnected

PPP adapter home:

Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . :
192.168.2.10
Subnet Mask . . . . . . . . . . . :
255.255.255.255
Default Gateway . . . . . . . . . :
192.168.2.10

wiht two default gateways, of course i could not
connect to anywhere. how could i fix this? i just want
to connect pptp server and get one ip address
(192.168.2.10/24) with no default route on the pptp
interface.

thanks a million.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: driver source compilation question

2006-08-25 Thread Jim Stapleton

In my case, I'm trying to compile the HDA audio driver for an Intel
HDA sound card, I checked this driver makefile here:

/usr/ports/audio/aureal-kmod/Makefile

but I've no clue where to start, there's a lot of stuff in there. I'll
look again in the morning, but any suggestions on an easier driver?

Thanks,
-Jim Stapleton

On 8/25/06, Derek Ragona <[EMAIL PROTECTED]> wrote:


 The simplest thing is to copy a make file from a port, or other driver
source directory and edit it for your driver.

 -Derek



 At 08:20 PM 8/25/2006, Jim Stapleton wrote:


I've found some driver source, it's just got the .c and .h files for
 the drivers, and no makefile. "make" and "make install" do nothing
 (I've extracted them to a folder in my home directory).

 How do I install them?

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

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: "Hostile" vs. "Friendly" instances of Sendmail

2006-08-25 Thread Brett Glass
At 02:32 PM 8/25/2006, Chuck Swiger wrote:
 
>You should consider configuring a firewall to limit the number of  
>incoming SMTP connections permitted to something less than the max  
>number of sendmail processes you want to run in parallel, so internal  
>users will always have some sendmail instances available to service  
>their requests.

I've been looking at an IPFW "limit" rule to do this. The only issue
here is that turning on "statefulness" in IPFW introduces extra
overhead, and the last time I tried a "limit" rule (admittedly, it
was in FreeBSD 4.x or 5.x), it didn't seem to work correctly.
Besides, I want to do more than set a connection limit.

>You could also configure an external and an internal mailservers,  

That's sort of the idea. But I'd do it on one machine. And the
advantage would be that I could have very different Sendmail 
options (not just connection limits) on the internal and external
server processes. For example, the external one could have REALLY 
heavy safeguards against spam. 

>There is no issue with setting up as many additional queue groups and  
>queue runners as you need to; 

I don't want to set up many queue groups and queue runners,
necessarily. I really just want two SMTP servers: inward-facing,
for outgoing mail, and outward-facing, for incoming mail. If
the messages dropped into a single queue for delivery, that 
would be OK; I just want the SMTP server that faces internal
clients to have different settings than the one that faces the
slime pit known as the Internet. ;-)

>>And where's the option that tells Sendmail to listen only on a  
>>particular interface? (This should be on the man page, but isn't.)
>
>The complete docs for sendmail don't really fit into even the 1044  
>page O'Reilly book; surely you jest if you expect to find complete  
>docs within the manpage.

I don't. But the man page for ANY daemon should always include certain
basic things, such as a list of the command line arguments and options; 
information on how to get it to listen on a specific address, port, or
interface; and how it responds to signals. Other things can be in
other documentation, but these are essential in the man page for a
daemon, IMHO.

--Brett Glass

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


Re: Has Anyone Else Tried mha-mhedit?

2006-08-25 Thread Martin McCormick
Giorgos Keramidas writes:
>It looks like mha-mhedit tries to run the www/w3m browser to dump a
>text-only version of the HTML document, and then quote this as the
>original.  Do you have the w3m port installed?  If not, there is probably
>an option to tell mha-mhedit to use another browser with similar
>capabilities.

Thank you very much.  That was the problem but the text
of the error message threw me off.  I did not have w3m installed
but it all worked as soon as I did that.  I have lynx installed
and maybe some experimentation is in order to see if lynx would
work, but it appears to work properly with w3m.

Again, many thanks.  That will certainly save some
typing energy in the future.

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


Re: Has Anyone Else Tried mha-mhedit?

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 16:03, Martin McCormick <[EMAIL PROTECTED]> wrote:
>   I use nmh and recently wanted to not have to manually
> clean up all the garbage that gets in to the quoted text if you
> quote a HTML message or one that has a lot of 8-bit junk like
> Microsoft OUtlook messages do.
>
>   It looked like I needed  mhonarc so I installed the port with
> no problem.  Each time I try to use mha-mhedit to reply to a
> message full of mime and 8-bit characters, I get the following
> error:
>
> open2: exec of w3m -dump -cols 76 -T text/html failed at 
> /usr/local/etc/mha-mhedit line 104

It looks like mha-mhedit tries to run the www/w3m browser to dump a
text-only version of the HTML document, and then quote this as the
original.  Do you have the w3m port installed?  If not, there is probably
an option to tell mha-mhedit to use another browser with similar
capabilities.

FWIW, I use a similar trick to let mutt(1) handle HTML-only messages posted
by Outlook users.  In my ~/.mailcap file I have (all in one line):

text/html ; /usr/local/bin/elinks \
-dump -dump-charset greek '%s' ; copiousoutput

Maybe mha-mhedit can use a similar trick?

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


Re: driver source compilation question

2006-08-25 Thread Derek Ragona
The simplest thing is to copy a make file from a port, or other driver 
source directory and edit it for your driver.


-Derek


At 08:20 PM 8/25/2006, Jim Stapleton wrote:

I've found some driver source, it's just got the .c and .h files for
the drivers, and no makefile. "make" and "make install" do nothing
(I've extracted them to a folder in my home directory).

How do I install them?

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Problems booting HP Proliant DL-320 G4 & 6.1-RELEASE

2006-08-25 Thread Derek Ragona
I would check the BIOS settings, and perhaps turn off any peripherals not 
used.  You may need to try setting the hyperthreading on or off if your CPU 
supports that.


-Derek


At 08:14 PM 8/25/2006, [EMAIL PROTECTED] wrote:

Having problems booting my new 320 G4 after successfully
installing from CD.   The CD install went fine, the first boot was
normal, but the second and all subsequent boots hang right
after the  WARNING setting entropy source to blocking mode.

Keyboard is dead and the machine appears locked up.  Right
now it's on the screen wanting to enter the seed for SSHD, but
it hangs on even when you don't enable SSHD during install.

any suggestions?

I've tried to disable ILo by turning off the Legacy USB support.
FYI,  VGA console and regular PS2 keyboard hooked up.

Any help would be most appreciated.  Just bought 4 of these
guys for a project.

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: I915 3d acceleration - picture shifts

2006-08-25 Thread Jonathan Horne
On Friday 25 August 2006 14:14, vvp wrote:
> Hello!
>
> I use FreeBSD 6.1 on HP nx6110 laptop. After fresh installation the drm
> module for i915 didn't work.
> I've found a patch for i915 to make it work. After that 3d acceleration is
> works, but I've got another issue:when running KDE screensavers, picture is
> shifted up. That is probably not a drm driver issue as I saw similar thing
> on a SuSE linux box with i810 graphics chipset.
> Have anyone ever seen a solution?


what version of kde are you running?  ive been fighting my screen savers for a 
while now, as mine dont even run.  (and i too have a i915)

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


driver source compilation question

2006-08-25 Thread Jim Stapleton

I've found some driver source, it's just got the .c and .h files for
the drivers, and no makefile. "make" and "make install" do nothing
(I've extracted them to a folder in my home directory).

How do I install them?

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


Problems booting HP Proliant DL-320 G4 & 6.1-RELEASE

2006-08-25 Thread BHarris
Having problems booting my new 320 G4 after successfully
installing from CD.   The CD install went fine, the first boot was
normal, but the second and all subsequent boots hang right
after the  WARNING setting entropy source to blocking mode.

Keyboard is dead and the machine appears locked up.  Right
now it's on the screen wanting to enter the seed for SSHD, but
it hangs on even when you don't enable SSHD during install.

any suggestions?

I've tried to disable ILo by turning off the Legacy USB support.
FYI,  VGA console and regular PS2 keyboard hooked up.

Any help would be most appreciated.  Just bought 4 of these
guys for a project.

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


csup of ports failing

2006-08-25 Thread stan
I just set up a new cvsup server. It has ginished it's inital update, and
the base system, crypto and doc all seem to work fine when I try to cvsup
from it. However, the ports cvsup keeps failing like this:

 Edit ports/emulators/qemu/Makefile
   Add delta 1.56 2006.08.25.21.16.20 miwi
   Detailer failed: Premature EOF from server
   Will retry at 20:38:47

This is repeatable on 2 client machines (one of which is the cvsup servr
itself).

Any sugestions?


-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


AMD64 make buildworld failure

2006-08-25 Thread stan
I'm trying to do a buildworld (AMD64) on a Sum Ultra 40, but it's failing
like this:

cc -O2 -fno-strict-aliasing -pipe  -DRRESTORE -DRESCUE  -c
/usr/src/sbin/restore
/restore.c
cc -O2 -fno-strict-aliasing -pipe  -DRRESTORE -DRESCUE  -c
/usr/src/sbin/restore
/dirs.c
/usr/src/sbin/restore/dirs.c: In function `extractdirs':
/usr/src/sbin/restore/dirs.c:192: internal compiler error: Segmentation
fault: 1
1
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/src/sbin/restore.
*** Error code 1

Stop in /usr/obj/usr/src/rescue/rescue.
*** Error code 1

This is installed from the 6.1 Release CD, and then cvsup'd

Can anyone tell me where I should start looking.

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


When will KDE4 be in the ports tree?

2006-08-25 Thread Steven Lake
Just curious when to start expecting to see KDE4 in the ports tree for 
Freebsd.  From the reports I've been seeing, it's pretty close to being 
released soon.  So the curiosity bug bit me and I decided to ask here.  :)

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


6.1-RELEASE-amd64 portsnap fetch fails

2006-08-25 Thread Charles Bacon

8/25/06
I have tried to use portsnap; it seems like a good way to get my feet wet into
the world of incremental updates.

Environment: Home LAN fed by DSL service; ISP's dhcp to a Netopia router;
fixed 192.168.1/28 on LAN.
DAISY is made of the following:
EVGA 133-K8-NF41 Socket 939 MoBo with AMD Athlon 64 3000+
/var is 1GB 7%full

uname -a:
FreeBSD daisy.local 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon Aug 14 21:46:21 EDT
2006 [EMAIL PROTECTED]:/usr/src/sys/amd64/compile/DAISY  amd64

PROBLEM: portsnap fetch fails in the following manner reliably (well, 2 tries):

DAISY:/var/db Aug24 19:19:44> sudo portsnap fetch
Password:
Looking up portsnap.FreeBSD.org mirrors... using portsnap2.FreeBSD.org
Fetching public key... done.
Fetching snapshot tag... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Wed Aug 23 20:31:33 EDT 2006:
a6a4a76827c593099eadbff71a3788f9cd9eaf0264c343100% of   43 MB   89 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag... done.
Fetching snapshot metadata... done.
Updating from Wed Aug 23 20:31:33 EDT 2006 to Thu Aug 24 17:20:00 EDT 2006.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files... /usr/sbin/portsnap: cannot open 
a4ec457a31b3ec590ff47e11d7bf481f4ff4e0aa0564879639a2ef3196d91811.gz: No such 
file or directory
metadata is corrupt.
DAISY:/var/db Aug24 19:29:22>

ll /var/db/portsnap reveals:
total 2660
drwxr-xr-x  3 root  wheel  512 Aug 25 17:29 .
drwxr-xr-x  7 root  wheel  512 Aug 25 18:12 ..
-rw-r--r--  1 root  wheel  1323343 Aug 25 17:28 INDEX
-rw-r--r--  1 root  wheel  260 Aug 25 17:29 filelist
drwxr-xr-x  3 root  wheel  1341440 Aug 24 21:54 files
-rw-r--r--  1 root  wheel  520 Aug 25 17:29 patchlist
-rw-r--r--  1 root  wheel  451 Aug 25 16:54 pub.ssl
-rw-r--r--  1 root  wheel   54 Aug 25 17:19 serverlist
-rw-r--r--  1 root  wheel  299 Aug 24 21:58 tINDEX
-rw-r--r--  1 root  wheel  299 Aug 25 16:54 tINDEX.new
-rw-r--r--  1 root  wheel   85 Aug 25 17:19 tag
-rw-r--r--  1 root  wheel   85 Aug 25 17:29 tag.new

Monstrous directory size is result of 15719 files present, each with
hideously long filenames.

I have done  rm -r /var/db/portsnap  and repeated the above; same result.

I believe there were no errors in both downloads.

Possible cause ??: Bad "KEYPRINT" in /etc/portsnap.conf (unchanged except for
uncommenting the two REFUSE statements).  In any case, here's portsnap.conf
(except for stripped comments):
SERVERNAME=portsnap.FreeBSD.org
KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330
REFUSE arabic chinese hebrew hungarian japanese
REFUSE korean polish russian ukrainian vietnamese
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Too many Xorg modes

2006-08-25 Thread Bob Johnson

On 8/25/06, Bob Johnson <[EMAIL PROTECTED]> wrote:

On 8/24/06, Perry Hutchison <[EMAIL PROTECTED]> wrote:
> In 6.1, how would I set up xorg.conf to restrict Xorg to a few
> specific modes?  The Xorg.8.log created during xorgcfg shows 24
> modelines, but when I cycle through the modes using CtrlAltPlus
> there are two which don't work at all and the remaining 22 cover
> only 8 resolutions (of which only about 3 seem likely to actually
> be useful.)

I don't know if there is an easier way, but I just copy the modelines
I like from the log and paste them in the xorg.conf file. Put them in
the "Monitor" section.


To address your second paragraph: in my case at least, including
explicit modelines suppresses the automatic modes. I only get the ones
explicitly listed. This has worked in both XFree86 and Xorg.

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


KDE Help index file missing

2006-08-25 Thread doug
If I try to build an help index for the application manual I get the following
error message:

   INDEXDIR: /home/doug/.kde/share/apps/khelpcenter/index/
   Creating index for 'kde_application_manuals'
   FINDCMD: find /usr/local/share/doc/HTML/en/ -name index.docbook
   htdig failed

In checking the packing lists for kde there is no index.docbook in the
../HTML/en/ directory.

This comes from /usr/local/bin/khc_docbookdig.pl, lines 92-100

  my $findpath = "$kdeprefix/share/doc/HTML/$lang/";
  my $findcmd = "find $findpath -name index.docbook";

  print STDERR "FINDCMD: $findcmd\n";

  if ( !open FIND, "$findcmd|" ) {
print STDERR "Unable to find docs.\n";
  exit 1;
  }

The setup looks okay and the file is really not there. Anyone else with this
problem. Does anyone know where I can get a copy of the file? Thanks

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


a bit OT, but stumped

2006-08-25 Thread Chris Knipe

Hi,

Just a quick question - especially valid in regards to VPN (L2TP / PPTP).

I know this will depend solely on the NAS, but considering a normal *nix 
pppd process, and a windows based RAS client... Is it at all possible to get 
PPP to assign static routes to the CLIENT during the authentication process?


Let's say I have a DMZ with 10/8 and 20/8 used for addressing.  A client 
connects to a VPN server on a.b.c.d  Unless I tell the client to use the VPN 
as a Default Gateway, the client will not have routes to route 10/8 and 20/8 
over the VPN link... What needs to be done to tell Windows this?


Sure, I know I can always add these routes manually, but I'm trying to avoid 
it :)


Just a general q... Sorry for OT


Regards,
Chris. 


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


Re: NGE Network Driver Problem.

2006-08-25 Thread Robert Huff

Jeremy Karlson writes:

>  After doing some digging, I've found that there was a patch applied to
>  RELENG_6, modifying the sk driver to ignore my revision of card, and
>  instructing the re driver to attach.  This is probably why it works for
>  Robert and not for me; he's probably running 6 , while I'm
>  still on 5 STABLE.

That machine is -CURRENT, and was at the time of the hardware
change.  NB: at the time this happened, the pci scan code did not
automagically connect the card to the re driver; however, forcing
the loading of if_re.ko did the trick.


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


Re: Too many Xorg modes

2006-08-25 Thread Bob Johnson

On 8/24/06, Perry Hutchison <[EMAIL PROTECTED]> wrote:

In 6.1, how would I set up xorg.conf to restrict Xorg to a few
specific modes?  The Xorg.8.log created during xorgcfg shows 24
modelines, but when I cycle through the modes using CtrlAltPlus
there are two which don't work at all and the remaining 22 cover
only 8 resolutions (of which only about 3 seem likely to actually
be useful.)


I don't know if there is an easier way, but I just copy the modelines
I like from the log and paste them in the xorg.conf file. Put them in
the "Monitor" section.
E.g.:

ModeLine "1600x1200"  162.00  1600 1664 1856 2160  1200 1201 1204 1250
+hsync +vsync

I use modelines that give 60Hz vertical sync because there is a
transformer sitting next to my monitor, and at 70Hz sync rate the
display wiggles at 10 Hz.

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


Has Anyone Else Tried mha-mhedit?

2006-08-25 Thread Martin McCormick
I use nmh and recently wanted to not have to manually
clean up all the garbage that gets in to the quoted text if you
quote a HTML message or one that has a lot of 8-bit junk like
Microsoft OUtlook messages do.

It looked like I needed  mhonarc so I installed the port with
no problem.  Each time I try to use mha-mhedit to reply to a
message full of mime and 8-bit characters, I get the following
error:

open2: exec of w3m -dump -cols 76 -T text/html failed at 
/usr/local/etc/mha-mhedit line 104

mha-mhedit is a perl script.  The results form a
blankrepl form that looks like:


To: Recipient.com
Subject: Re: FW: Budget Cuts

>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
/home/martin/Mail/draft: unmodified: line 1

I am not sure if I am doing something wrong or there is
some sort of bug at work here.  I launch it using the example
from the mha-mhedit man page:

  repl -editor mha-mhedit

Any constructive suggestions are much appreciated.

Thank you.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: I915 3d acceleration - picture shifts

2006-08-25 Thread Erik Nørgaard
vvp wrote:

> I use FreeBSD 6.1 on HP nx6110 laptop. After fresh installation the drm 
> module 
> for i915 didn't work.
> I've found a patch for i915 to make it work. After that 3d acceleration is 
> works, but I've got another issue:when running KDE screensavers, picture is 
> shifted up. That is probably not a drm driver issue as I saw similar thing on 
> a SuSE linux box with i810 graphics chipset.
> Have anyone ever seen a solution?

You gotta be more specific with what you do and what you have: Did you
update sources? when? have you tried to load the load modules? (should
be in /boot/kernel.old/). Version of X? updated? did it work before
updating?

It might be a passing error, try to update again and see if it has been
resolved. Things can also be related to xorg. Versions? updates?

I use i915/drm xorg loads the modules automatically, I don't even need
to think, it just works, from a fresh install of 6.1 and since then
regular updates - to solve other problems. I don't know about 3D
accelleration - I don't even know if it is enabled, but things look
good... and supposedly I can share memory to make use of RAM, I don't
know if I have that - really I don't care as long as things look good...

Cheers, Erik

-- 
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9


smime.p7s
Description: S/MIME Cryptographic Signature


Re: NGE Network Driver Problem.

2006-08-25 Thread Jeremy Karlson
> On 24-Aug-06, at 22:17, Robert Huff wrote:
>>  Probably.  The chip name means a Realtek  8169, and that
>> takes the re() driver.
> Unfortunately, this didn't work out for me.  I tried a bit of other
> fiddling as well and didn't get any change in behaviour.  I'll just
> take the card back and maybe try a D-Link  one with a
> different chipset.

After doing some digging, I've found that there was a patch applied to
RELENG_6, modifying the sk driver to ignore my revision of card, and
instructing the re driver to attach.  This is probably why it works for
Robert and not for me; he's probably running 6 , while I'm
still on 5 STABLE.

Applying the patch to these drivers myself is not a problem, but I'm just
wondering if this can / will / will ever be pushed into the RELENG_5
branch.  Does anyone know, or at the very least, who I should be talking
to?

Thanks.

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Kyrre Nygård

At 20:27 25.08.2006, Matti J. Karki wrote:


A word of warning. Above, I mentioned that it's important to remember
that my example will remove _all_ tabulator characters from text. This
means that - for example - all lines with indentation inside the code
comments will be messed up (remember, usually a tab character equals 8
spaces and I'm removing tabs all together). This leads me to my point:
my code does not handle multi-line comments at all. They may look
messed-up. A single curly bracket inside of a comment will throw the
indentation code out of sync. Also the code does not address line
breaks "\", so for example the macro definitions will not be indented
correctly. So, it will take some additional work to be able to run the
script without any side effects.


Seems we gotta give this baby some sessions :)

Have you seen this yet?

http://www.arachnoid.com/ruby/rubyBeautifier.html

All the best,
Kyrre

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


Re: Too many Xorg modes

2006-08-25 Thread Derek Ragona

Run the xorgconfig interactively in text mode and choose what you want.

-Derek


At 05:43 PM 8/24/2006, Perry Hutchison wrote:

In 6.1, how would I set up xorg.conf to restrict Xorg to a few
specific modes?  The Xorg.8.log created during xorgcfg shows 24
modelines, but when I cycle through the modes using CtrlAltPlus
there are two which don't work at all and the remaining 22 cover
only 8 resolutions (of which only about 3 seem likely to actually
be useful.)

A search for "modeline" in the docs and manpages turned up nothing
applicable beyond xorg.conf(5), which does not describe how to
prevent the implicit inclusion of built-in modes whose names do
not match any explicitly-specified modes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: "Hostile" vs. "Friendly" instances of Sendmail

2006-08-25 Thread Chuck Swiger

On Aug 25, 2006, at 12:57 PM, Brett Glass wrote:
A company for whom I do consulting has a FreeBSD mail server.  
Because they're being deluged with connections from spammers (who  
have responded to the increasing use of "graylisting" by ordering  
their armies of bots to try again and again even when spam is  
rejected), they've subscribed to some DNS blacklists and set  
Sendmail to limit the number of processes it can spawn at any one  
time. This reduces the load on the system due to spamming, but also  
prevents internal users from getting the mail server's attention  
when they want to send legitimate outgoing mail.


What's the best way to set things up so that more trusted, internal  
users can access their own instance of Sendmail (with less  
restrictive process limits, no blacklist checks, etc.) while the  
outside world sees an instance of Sendmail with blacklisting,  
process limits, connection limits, load limits, etc.? Will there be  
problems with file locking, queues, etc. if a third instance of  
Sendmail is started on a standard FreeBSD install (which normally  
runs two)?


You should consider configuring a firewall to limit the number of  
incoming SMTP connections permitted to something less than the max  
number of sendmail processes you want to run in parallel, so internal  
users will always have some sendmail instances available to service  
their requests.


You could also configure an external and an internal mailservers,  
have the internal mailserver be entirely firewalled from outside so  
that internal users and internal email are handled there without  
issues, and just worry about tuning the external mailserver which  
will then only need to do SMTP relaying and anti-spam stuff for the  
external mail traffic rather than serve dual-duty as a reader box.


There is no issue with setting up as many additional queue groups and  
queue runners as you need to; there are some significant advantages  
to switching to deferred delivery mode and using queue groups tuned  
for legit internal mail and for mail that they exchange with well- 
known places like MSN or AOL and with their main clients.


And where's the option that tells Sendmail to listen only on a  
particular interface? (This should be on the man page, but isn't.)


The complete docs for sendmail don't really fit into even the 1044  
page O'Reilly book; surely you jest if you expect to find complete  
docs within the manpage.  Wander by /usr/src/contrib/sendmail/cf/ 
README, and look for the DAEMON_OPTIONS() section or perhaps the  
confDONT_PROBE_INTERFACES config options...


--
-Chuck

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


Re: A webhosting script?

2006-08-25 Thread Andy Greenwood

I certainly didn't mean to troll :-) I was just trying to say that
it's more than doable in perl. Unfortunately, I'm constricted by
non-disclosure agreements I had to sign before I took on my current
position. Glad you got what you were looking for though :-)

On 8/25/06, Paul Schmehl <[EMAIL PROTECTED]> wrote:

--On Friday, August 25, 2006 17:45:08 +0200 Kyrre Nygård
<[EMAIL PROTECTED]> wrote:

> At 17:30 25.08.2006, Andy Greenwood wrote:
>> We use perl scripts here. Unfortunately, I can't provide any
>> specific examples.
>
> So stop trolling :)
>
> Perl is obsolete anyway, thanks though.
>
You must be kidding.  I have a server that runs a message board built on
perl, and it does very nicely.

When's the last time a web-based perl application had all the problems that
php has routinely?

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/



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


Re: "Hostile" vs. "Friendly" instances of Sendmail

2006-08-25 Thread Derek Ragona
Use MailScanner and configure it to use blacklists and to delete not bounce 
SPAM.


-Derek


At 02:57 PM 8/25/2006, Brett Glass wrote:
A company for whom I do consulting has a FreeBSD mail server. Because 
they're being deluged with connections from spammers (who have responded 
to the increasing use of "graylisting" by ordering their armies of bots to 
try again and again even when spam is rejected), they've subscribed to 
some DNS blacklists and set Sendmail to limit the number of processes it 
can spawn at any one time. This reduces the load on the system due to 
spamming, but also prevents internal users from getting the mail server's 
attention when they want to send legitimate outgoing mail.


What's the best way to set things up so that more trusted, internal users 
can access their own instance of Sendmail (with less restrictive process 
limits, no blacklist checks, etc.) while the outside world sees an 
instance of Sendmail with blacklisting, process limits, connection limits, 
load limits, etc.? Will there be problems with file locking, queues, etc. 
if a third instance of Sendmail is started on a standard FreeBSD install 
(which normally runs two)? And where's the option that tells Sendmail to 
listen only on a particular interface? (This should be on the man page, 
but isn't.)


--Brett Glass

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Mailgraph on free 6.1

2006-08-25 Thread Aguiar Magalhaes
Hi list,

My email server has postfix 2.2.10 + postgrey + amavis
+ uvscan + mailgraph 1.12

During the mailgraph instalation on debian exists the
question "Count incoming mail as outgoing mail?". So,
If we have integrated a content filter like amavisd
(for spam and virus scanning) into Postfix, then we
answer "No" to avoid that Mailgraph counts our emails
twice (because Postfix delivers emails to amavisd
which then - after successful scanning - delivers the
mails back to Postfix). 

On free how can i do it ??

Thanks,

Aguiar






___ 
O Yahoo! está de cara nova. Venha conferir! 
http://br.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"Hostile" vs. "Friendly" instances of Sendmail

2006-08-25 Thread Brett Glass
A company for whom I do consulting has a FreeBSD mail server. 
Because they're being deluged with connections from spammers (who 
have responded to the increasing use of "graylisting" by ordering 
their armies of bots to try again and again even when spam is 
rejected), they've subscribed to some DNS blacklists and set 
Sendmail to limit the number of processes it can spawn at any one 
time. This reduces the load on the system due to spamming, but also 
prevents internal users from getting the mail server's attention 
when they want to send legitimate outgoing mail.


What's the best way to set things up so that more trusted, internal 
users can access their own instance of Sendmail (with less 
restrictive process limits, no blacklist checks, etc.) while the 
outside world sees an instance of Sendmail with blacklisting, 
process limits, connection limits, load limits, etc.? Will there be 
problems with file locking, queues, etc. if a third instance of 
Sendmail is started on a standard FreeBSD install (which normally 
runs two)? And where's the option that tells Sendmail to listen 
only on a particular interface? (This should be on the man page, but isn't.)


--Brett Glass

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


Re: How can I configure SFTP options? Can't find out where..

2006-08-25 Thread Dan Nelson
In the last episode (Aug 25), Robert Gabaree said:
> I would like to use SFTP and have the following in /etc/ssh/sshd_config:
> 
> Subsystem sftp /usr/libexec/sftp-server
> 
> It works, but I was wondering how do I go about enabling specific
> options for it, such as specifying a new port.  I can't seem to
> figure out where to put the arguments.

That's the "Port" line in sshd_config.  From the manpage:

 PortSpecifies the port number that sshd listens on.  The
 default is 22.  Multiple options of this type are
 permitted.  See also ListenAddress.

-- 
Dan Nelson
[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: A webhosting script?

2006-08-25 Thread Paul Schmehl
--On Friday, August 25, 2006 17:45:08 +0200 Kyrre Nygård 
<[EMAIL PROTECTED]> wrote:



At 17:30 25.08.2006, Andy Greenwood wrote:

We use perl scripts here. Unfortunately, I can't provide any
specific examples.


So stop trolling :)

Perl is obsolete anyway, thanks though.

You must be kidding.  I have a server that runs a message board built on 
perl, and it does very nicely.


When's the last time a web-based perl application had all the problems that 
php has routinely?


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


I915 3d acceleration - picture shifts

2006-08-25 Thread vvp
Hello!

I use FreeBSD 6.1 on HP nx6110 laptop. After fresh installation the drm module 
for i915 didn't work.
I've found a patch for i915 to make it work. After that 3d acceleration is 
works, but I've got another issue:when running KDE screensavers, picture is 
shifted up. That is probably not a drm driver issue as I saw similar thing on 
a SuSE linux box with i810 graphics chipset.
Have anyone ever seen a solution?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A webhosting script?

2006-08-25 Thread Kyrre Nygård

At 19:47 25.08.2006, Greg Barniskis wrote:


 And that's not trolling? ;)


I'd say check the facts. Though I know a lot of people are 
emotionally attached to things of the past and I'm sorry if anybody 
feels offended.



Without getting into a way-OT "my favorite language is better'n 
yours" flamefest, if you really want inspiration for the "pure 
shell" way, look at ports/sysutils/ezjail and its "flavours" 
framework for templating new jails with users, ports, post-install 
scripts, etc. All shell.


Man, just the words you gave me has already made my mouth all watery. 
I'll surely check it out, and thanks a whole lot.


All the best,
Kyrre

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Matti J. Karki

On 8/25/06, Kyrre Nygård <[EMAIL PROTECTED]> wrote:

At 21:09 24.08.2006, Matti J. Karki wrote:

>Well, my scripts aren't magic. They are pretty simple. Here's few (not
>scripts, these are valid Vim regexps):

Those are great regexps, Matti, thank you so much.

They have been noteworthy recorded!

Say, could I use these with Sed let's say in a Bash script?



Yes, I guess, with some minor modifications. I don't do Sed, so I
can't help with that.


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


Re: The Regents of the University of California. All rights reserved.

2006-08-25 Thread andrew clarke
On Fri, Aug 25, 2006 at 05:50:04AM -0500, David J Brooks wrote:

> > The difference for you with untrained eyes is the double spacing after
> > the dot instead of the standard single spacing.
> >
> > I was just curious if there's a reason to this or not.
> 
> Back in the Jurassic era, when typewriters still roamed the earth, it was a 
> convention to leave a double-space following a period so that the reader 
> could more easily distinguish the end of a sentence. With the advent of word 
> processors (and proportional fonts) this double-spacing convention lapsed.

For those playing at home, this is called "French spacing":

http://en.wikipedia.org/wiki/French_spacing_(English)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Code beautifiers, anyone?

2006-08-25 Thread Matti J. Karki

On 8/25/06, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:

On 2006-08-25 15:24, Kyrre Nyg?rd <[EMAIL PROTECTED]> wrote:
> At 21:09 24.08.2006, Matti J. Karki wrote:
>
> >Well, my scripts aren't magic. They are pretty simple. Here's few (not
> >scripts, these are valid Vim regexps):
>
> Those are great regexps, Matti, thank you so much.
>
> They have been noteworthy recorded!
>
> Say, could I use these with Sed let's say in a Bash script?
>
> One more question about :%s/^ *$//g versus :%s/ *$//g,
> won't the latter here perform the job of the former?

They are different for a reason, I guess:

The first one matches lines that only have spaces (it fails
spectacularly with lines that have a mix of TAB vs. SPACE characters
though, unless you pre-expand TABs).

The second one only removes trailing SPACEs from a line.



Yes, you are correct.

However, the latter of those regexps should do the job of the former,
so Kyrre was also right.

I just play safe with regexps.


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


Re: sendmail

2006-08-25 Thread a
On Fri, Aug 25, 2006 at 04:00:08PM +0100, eoghan wrote:
> Hello
> Im using sylpheed for my mail (its work mail). Having some issues sending 
> from 
> their smtp server to non-work accounts.
> I have sendmail installed but I have never used it before and am wondering if 
> I 
> can use this through my local machine to send my mail?
> Thanks
> Eoghan

Yes, you can.
You should define smart host for your sendmail, if I understand your task
right.
The standartd way is to include

define(`SMART_HOST', `smart.host')

where smart.host is your mail server
into the .mc file in /etc/mail (by default), recompile .cf file with
new .mc source, and restart sendmail.

Then your sendmail will send all outgoing mail through smart.host.

You should also set up proper authentication data, if your mail server wants
you to authenticate youself.

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Matti J. Karki

On 8/25/06, Kyrre Nygård <[EMAIL PROTECTED]> wrote:


In your script, do these comments look alright then?

(I simplified them a bit)

inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # Move curly brackets
to the end of lines
inbuffer = re.sub('\) *?{', ') {', inbuffer) # Remove spaces between
closing brackets and opening curly brackets
inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # Fix curly
brackets in `else' clauses
inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Break up the
content of curly brackets
inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # Take care of
closing brackets from the above rule


Looks OK, except...



inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace


This will strip spaces at the _beginning_ of line (leading spaces).



inbuffer = re.sub('\t+', '', inbuffer) # Strip trailing tabs


And this will strip _all_ tabs. This is important to remember. More of
that later...




And also, I noticed you put <'\n +', '\n', inbuffer> twice,
is one enough like in the above example?



Yes and no. I have used to do this operation in two steps. First,
before anything, I'll strip all leading spaces from every line of
code. Then I'll apply all other rules. And after everything else in
place, I'll strip all leading spaces _again_, because some of my rules
will produce spaces that will mess up the indentation process later.




After that, I can't wait to run it over the FreeBSD codebase and watch
the added value it gets. Then I can start selling the script to governments.
Just kidding :) But it would be nice to reverse engineer all those commercial
code parsers that hunt for bugs and create my own that I'll eventually
hook up with some artificial intelligence.



Well, it's good to have ambitious goals...

A word of warning. Above, I mentioned that it's important to remember
that my example will remove _all_ tabulator characters from text. This
means that - for example - all lines with indentation inside the code
comments will be messed up (remember, usually a tab character equals 8
spaces and I'm removing tabs all together). This leads me to my point:
my code does not handle multi-line comments at all. They may look
messed-up. A single curly bracket inside of a comment will throw the
indentation code out of sync. Also the code does not address line
breaks "\", so for example the macro definitions will not be indented
correctly. So, it will take some additional work to be able to run the
script without any side effects.

The script was meant to be run on a source code with poor style and
with no (or very few) comments.


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


Re: The Regents of the University of California. All rights reserved.

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 19:46, Kyrre Nyg?rd <[EMAIL PROTECTED]> wrote:
> At 12:50 25.08.2006, David J Brooks wrote:
> > Back in the Jurassic era, when typewriters still roamed the earth,
> > it was a convention to leave a double-space following a period so
> > that the reader could more easily distinguish the end of a
> > sentence. With the advent of word processors (and proportional
> > fonts) this double-spacing convention lapsed.
> > 
> > My guess is that the code for SSH was written by someone who learned
> > to type on a typewriter, or was taught by someone who learned to
> > type that way.
> 
> I just hope somebody with the know-how can submit a patch.

A patch?  There's nothing wrong, so why "fix" it :-)

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


How can I configure SFTP options? Can't find out where..

2006-08-25 Thread Robert Gabaree

I would like to use SFTP and have the following in /etc/ssh/sshd_config:

Subsystem sftp /usr/libexec/sftp-server

It works, but I was wondering how do I go about enabling specific  
options for it, such as specifying a new port.  I can't seem to  
figure out where to put the arguments.


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


Re: sendmail

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 18:40, eoghan <[EMAIL PROTECTED]> wrote:
>On 25 Aug 2006, at 18:35, Giorgos Keramidas wrote:
>>On 2006-08-25 16:00, eoghan <[EMAIL PROTECTED]> wrote:
>>> Hello
>>> Im using sylpheed for my mail (its work mail). Having some issues
>>> sending from their smtp server to non-work accounts.
>>>
>>> I have sendmail installed but I have never used it before and am
>>> wondering if I can use this through my local machine to send my
>>> mail?
>>
>> Yes, of course :-)
>>
>> This is what I usually do.
>
> Heh, thanks. I guess youre saying I should have said: how would i go
> about doing this...

If someone was to re-write a step by step guide for Sendmail on FreeBSD,
it would take far more than a single email response.

You should definitely start by reading, at least, the following:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sendmail.html

For available configuration options and the functionality they
implement, you can also look at: /usr/share/sendmail/cf/README

The Sendmail FAQ is also a valuable resource, and it is available online
at: http://www.sendmail.org/faq/index.html

In general, what you have as a goal is something that works like this:

  work
+--+  related+--+
|  |  messages   |  |
|   Sendmail   |  >  |  Company's Mail  |
|  | | Gateway  |
|   Running| |  |
| as   | +--+
|   a local|
| MTA  |
|  |  ==.
|  || other  +--+
+--+| messages   |  |
||   Mail Gateway   |
`=>  | of your  |
 | Internet |
 | Provider |
 |  |
 +--+

This is very easy to do in FreeBSD.  You just have to run `make' once in
the `/etc/mail' directory.  This will create two files, called:

HOSTNAME.mc
HOSTNAME.submit.mc

where `HOSTNAME' is your local host name.  You can configure Sendmail,
by following the instructions in the Handbook, the help in the README
file of the Sendmail macros, at `/usr/share/sendmail/cf/README', and
making configuration changes to `HOSTNAME.mc'.

You can direct all outgoing email from `localhost' to the mail gateway
of your ISP, by reading the comments in `/etc/mail/HOSTNAME.mc' and
enabling the `SMART_HOST' feature.

Extra bonus points, if you don't want company email to pass through the
MTA of your ISP, if you set up a `mailertable' entry to direct all
company-related email to the mail gateway of your company, you can use
the `mailertable' feature.  Note that some ISPs do not allow outgoing
connections to port 25 of any random host, so this may not be always
possible though.

Attached below are two descriptions of the steps I took to set up
Sendmail, from two of my older posts to the list.  See if these are of
any help too.

The second one describes the configuration I use on my workstation at
work, to do something similar to the "two-way output" (work email to the
email gateway of work, all the rest to the default mail gateway) which
is shown in the ASCII-diagram above.

==

Date: Fri, 26 Mar 2004 07:34:45 +0200
From: Giorgos Keramidas <[EMAIL PROTECTED]>
To: David Bear
Cc: freebsd-questions@freebsd.org
Subject: Re: sendmail local mta mode only
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>

On 2004-03-25 19:24, David Bear <[EMAIL PROTECTED]> wrote:
> Not sure how to phrase this to limit the number of google hits ..
>
> I would like to run the stock sendmail freebsd has as a local MTA
> only... ie I don't want to listening on ANY real/public interface for
> mail.  I do want it to handle delivery of local messages to local
> accounts -- and handle sending messages destined for external systems.

I think that what you need is something similar to my setup at home,
where sendmail doesn't listen on any public interfaces:

$ sockstat | { read head ; echo "$head"; grep :25; }
USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN ADDRESS
root sendmail   458   4  tcp4   127.0.0.1:25  *:*

Delivery of local messages is handled nicely by the "submit" daemon
that I run, and mail submitted by local programs into the clientmqueue
is pushed along by an msp_queue daemon:

$ ps xa | grep -v grep | grep sendmail
  458  ??  Ss 0:01.17 sendmail: accepting

Re: A webhosting script?

2006-08-25 Thread Greg Barniskis

Duane Hill wrote:

On Friday, August 25, 2006 at 3:45:08 PM, Kyrre confabulated:


At 17:30 25.08.2006, Andy Greenwood wrote:
We use perl scripts here. Unfortunately, I can't provide any 
specific examples.



So stop trolling :)



Perl is obsolete anyway


 And that's not trolling? ;)

Without getting into a way-OT "my favorite language is better'n 
yours" flamefest, if you really want inspiration for the "pure 
shell" way, look at ports/sysutils/ezjail and its "flavours" 
framework for templating new jails with users, ports, post-install 
scripts, etc. All shell.


Requires 6.1-RELEASE-p3 or later due to a jail-related rc bug.

--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: The Regents of the University of California. All rights reserved.

2006-08-25 Thread Kyrre Nygård

At 12:50 25.08.2006, David J Brooks wrote:


Back in the Jurassic era, when typewriters still roamed the earth, it was a
convention to leave a double-space following a period so that the reader
could more easily distinguish the end of a sentence. With the advent of word
processors (and proportional fonts) this double-spacing convention lapsed.

My guess is that the code for SSH was written by someone who learned to type
on a typewriter, or was taught by someone who learned to type that way.

David
--
Sure the Almighty created the world in only six days,
but He didn't have an established user-base.


Thanks for the information Mr. Brooks, and I see you messed up the 
subject line :)


I just hope somebody with the know-how can submit a patch.

All the best,
Kyrre


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


RE: A webhosting script?

2006-08-25 Thread Kyrre Nygård

At 19:09 25.08.2006, Tamouh H. wrote:

There are many control panels that do these sort of things. Some are 
free, others are not.


Check WebMin, cPanel, DirectAdmin, Plesk, H-Sphere, RAQdevil.and 
tons more.


Hello Tamouh, yeah I know man but this is exactly what I'm trying to avoid.

Not only are the visual and cognitive designs of these solutions so 
bad I'd rather get

shot in the head than using them, they're also highly unnecessary. I agree that
some of the tasks they help people do might be too advanced for the 
average Joe but

this is really not the way to go.

Thanks,
Kyrre

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


Re: A webhosting script?

2006-08-25 Thread Scott Oertel

For some reason the script doesn't really show up, ill just paste it here:

#!/usr/local/bin/python
#
# Site managment tool
# Written by: Scott Oertel
#


# imports
import os, sys, re, pwd
from crypt import crypt
import time, commands

global httpd_conf
httpd_conf = '/usr/local/etc/apache22/vhosts.conf'

class AddSite:
   def __init__(self, username, password, domain):
   self.username = username
   self.password = password
   self.domain = domain
   def run(self):
   self.AddUser()
   self.AddVhost()
   apacheStatus = 
commands.getstatusoutput('/usr/local/etc/rc.d/apache22.sh reload')

   if apacheStatus[0] != 0:
   print "Apache reload failed!"
   print apacheStatus[1]
   sys.exit()
  
   def losuj_salt (self, lenght = 8):

   '''Generate random salt from letters and digits. '''
   import random
   # pool for random bytes
   # pool = range (48, 127)
   pool = []
   for x in range (48, 127):
   pool.append (chr (x))
   s = [ '$1$' ] # start of salt indicating md5 encryption
   i = 0
   # check whether salt is between 0 and 8 (including both)
   if lenght < 0:
   lenght = 0
   if lenght > 8:
   lenght = 8
   # Generate up to 8 random, printable characters
   while i < lenght:
   s.append (s[i] + random.choice ( pool ))
   i += 1
   return s[lenght] + '$'
  
  
   def AddVhost(self):

   vhostDirective = '''
  
   ### vhost for #domain# ###
  
   

   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot #domainDir#
   ServerName #domain#
   ServerAlias www.#domain#
   ErrorLog /var/log/apache/#domain#-error_log
   CustomLog /var/log/apache/#domain#-access_log common
   SuexecUserGroup #user# #user#
   
  
   ### end vhost for #domain# ###
  
   '''

   confObj = open(httpd_conf, 'a')
   os.mkdir(self.homeDir + "/html", 0775)
   os.chown(self.homeDir + "/html", pwd.getpwnam(self.username)[2], 
pwd.getpwnam(self.username)[3])

   vhostDirective = re.sub("#domain#", self.domain, vhostDirective)
   vhostDirective = re.sub("#domainDir#", self.homeDir + "html", 
vhostDirective)

   vhostDirective = re.sub("#user#", self.username, vhostDirective)
   vhostObj = open(httpd_conf, 'a')
   vhostObj.write(vhostDirective)
  
   def AddUser(self):

 #check if site exists
 vhost_fileObj = open(httpd_conf, 'r')
 vhost_file = vhost_fileObj.read()
 try:
   pwd.getpwnam(self.username)
   sys.stderr.write("That username is already in use!\n")
   sys.exit()
 except KeyError:
   pass
 if re.search(r'[#]{3}[\s]+vhost\sfor\s(%s)[\s][#]{3}' % 
self.domain, vhost_file) != None:

   sys.stderr.write("That domain already has a vhost entry.\n")
   sys.exit()
 else:
   ## add the user/vhost ##
   # generate home directory
   name, tld = self.domain.split('.')
   self.homeDir = "/home/" + tld + "/" + name + "/"
   hash = crypt(self.password, self.losuj_salt())
   tmpfile = open("/root/tmp/jsiIKw23", "w")
   tmpfile.write(hash)
   tmpfile.close()
   # add the user
   groupStatus = commands.getstatusoutput("pw groupadd %s" % self.username)
   pwStatus = commands.getstatusoutput("pw user add -n %s -G %s -d %s 
-s /bin/date -m -H 0 < /root/tmp/jsiIKw23" % (self.username, 
self.username, self.homeDir))

   if groupStatus[0] != 0 or pwStatus[0] != 0:
   print "User creation failed."
   print groupStatus
   print pwStatus
   sys.exit()
   # remove the temp file
   #os.remove("/tmp/jsiIKw23")
   # permissions setup
   try:
   os.chown(self.homeDir, pwd.getpwnam(self.username)[2], 
pwd.getpwnam(self.username)[3])

   except KeyError:
   print "Setting folder permissions failed, trying again..",
   time.sleep(3)
   os.chown(self.homeDir, pwd.getpwnam(self.username)[2], 
pwd.getpwnam(self.username)[3])

   print "Success!"
  


class DeleteSite:
   def __init__(self, username, domain):
   self.username = username
   self.domain = domain
   def run(self):
   rmuserStatus = commands.getstatusoutput("/usr/sbin/rmuser -y %s" % 
self.username)

   if rmuserStatus[0] != 0:
   print "Ran into trouble deleting the username!"
   print rmuserStatus[1]
   sys.exit(2)
   else:
   self.deleteVhost()
   apacheStatus = 
commands.getstatusoutput('/usr/local/etc/rc.d/apache22.sh reload')

   if apacheStatus[0] != 0:
   print "Apache reload failed!"
   print apacheStatus[1]
   sys.exit()
  
   def deleteVhost(self):

   vhostFile = open(httpd_conf, "r")
   vhostFileData = vhostFile.read()
   vhostFileData = re.sub(r'[#]{3}[\s]+vhost\sfor\s(' + self.domain + 
')[\s][#]{3}[\n\t\n\t<>@A-Za-z\*\s0-9:\./\-_]+[#]{3}\send\svhost\sfor\s(' 
+ self.domain + ')\s[#]{3}[\n\t]+'

  , '', vhostFileData)
   vhostFile.close()
   vhostFile = open(httpd_conf, "w")
   vhostFile.write(vhostFileData)
   vhostFile.close()
  
def usage():

   print '''Site Management Tool v1.0

Usage:

./site.py -a --user= --pass= --domain=
./site.py -d --user= --domain=
./site.py -s --domain=

-s to suspend a site. (Not implemente

Re: sendmail

2006-08-25 Thread eoghan

On 25 Aug 2006, at 18:35, Giorgos Keramidas wrote:


On 2006-08-25 16:00, eoghan <[EMAIL PROTECTED]> wrote:

Hello
Im using sylpheed for my mail (its work mail). Having some issues
sending from their smtp server to non-work accounts.

I have sendmail installed but I have never used it before and am
wondering if I can use this through my local machine to send my mail?


Yes, of course :-)

This is what I usually do.


Heh, thanks. I guess youre saying I should have said: how would i go  
about doing this...

Eoghan

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


Re: A webhosting script?

2006-08-25 Thread Scott Oertel
I wrote a simple one that could use improvement a while back for a 
FreeBSD box I had, you could use it as a reference point. It's developed 
in python though.


-Scott

Duane Hill wrote:

On Friday, August 25, 2006 at 3:45:08 PM, Kyrre confabulated:

  

At 17:30 25.08.2006, Andy Greenwood wrote:

We use perl scripts here. Unfortunately, I can't provide any 
specific examples.
  


  

So stop trolling :)



  

Perl is obsolete anyway, thanks though.



So, if Perl is obsolete, what does a guy use for a replacement?

  


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

RE: A webhosting script?

2006-08-25 Thread fbsd
Check the questions archives for subject "Scripts to Manage Virtual
Hosts" and
subject "Apache 2 hosts" and "apache www/data directory" and
"directory structuer for a web server" and "Apache vhost directive
problem" and "Virtual Host".

Bottom line here is search the archives for answers.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kyrre
Nygard
Sent: Friday, August 25, 2006 9:13 AM
To: [EMAIL PROTECTED]
Subject: A webhosting script?



Hello!

Does anybody run a webhosting business, where they've written
a simple Bash script to add new users to the system and set up their
domains, Apache virtual hosts, databases etc. all in one go?

I am looking for inspiration for my own script.

Thank you!

I truly wish to keep it real and avoid solutions like cPanel or
Webmin.

All the best,
Kyrre

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[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

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 16:00, eoghan <[EMAIL PROTECTED]> wrote:
> Hello
> Im using sylpheed for my mail (its work mail). Having some issues
> sending from their smtp server to non-work accounts.
>
> I have sendmail installed but I have never used it before and am
> wondering if I can use this through my local machine to send my mail?

Yes, of course :-)

This is what I usually do.

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 15:24, Kyrre Nyg?rd <[EMAIL PROTECTED]> wrote:
> At 21:09 24.08.2006, Matti J. Karki wrote:
> 
> >Well, my scripts aren't magic. They are pretty simple. Here's few (not
> >scripts, these are valid Vim regexps):
> 
> Those are great regexps, Matti, thank you so much.
> 
> They have been noteworthy recorded!
> 
> Say, could I use these with Sed let's say in a Bash script?
> 
> One more question about :%s/^ *$//g versus :%s/ *$//g,
> won't the latter here perform the job of the former?

They are different for a reason, I guess:

The first one matches lines that only have spaces (it fails
spectacularly with lines that have a mix of TAB vs. SPACE characters
though, unless you pre-expand TABs).

The second one only removes trailing SPACEs from a line.

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


Re: The Regents of the University of California. All rights reserved.

2006-08-25 Thread Giorgos Keramidas
On 2006-08-25 05:50, David J Brooks <[EMAIL PROTECTED]> wrote:
>On Friday 25 August 2006 04:19, Kyrre Nyg?rd wrote:
>> Hello!
>>
>> I am just wondering why it says:
>>
>>   "The Regents of the University of California. All rights reserved."
>>
>> when I log in locally, but:
>>
>>   "The Regents of the University of California.  All rights reserved."
>>
>> when I log in via SSH? The difference for you with untrained eyes is the
>> double spacing after the dot instead of the standard single spacing.
>>
>> I was just curious if there's a reason to this or not.
> 
> Back in the Jurassic era, when typewriters still roamed the earth, it was a 
> convention to leave a double-space following a period so that the reader 
> could more easily distinguish the end of a sentence. With the advent of word 
> processors (and proportional fonts) this double-spacing convention lapsed.

Which is very unfortunate, since none of the, so called, word "processors"
can get it right(TM).  Only TeX is a typesetting program that I have found
smart enough to deal with properly spacing sentences, without the need for
this doubled space character :-(

> My guess is that the code for SSH was written by someone who learned to
> type on a typewriter, or was taught by someone who learned to type that
> way.

A lot of people still use non-proportional fonts; especially when reading
and/or writing program sources ;-)

You really hit the mark with typewriter habits vs. word processors though :)

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


RE: A webhosting script?

2006-08-25 Thread Tamouh H.
> 
> Hello!
> 
> Does anybody run a webhosting business, where they've written 
> a simple Bash script to add new users to the system and set 
> up their domains, Apache virtual hosts, databases etc. all in one go?
> 
> I am looking for inspiration for my own script.
> 
> Thank you!
> 
> I truly wish to keep it real and avoid solutions like cPanel 
> or Webmin.
> 
> All the best,
> Kyrre
> 

There are many control panels that do these sort of things. Some are free, 
others are not.

Check WebMin, cPanel, DirectAdmin, Plesk, H-Sphere, RAQdevil.and tons more.

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


"The Complete FreeBSD": errata and addenda

2006-08-25 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

"The Complete FreeBSD" has been through a total of five editions, including its
predecessor "Installing and Running FreeBSD".  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2006-08-25 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the "newcomers"), and also those who answer the
questions (the "hackers").

   Note that the term "hacker" has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is "cracker", but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for "[EMAIL PROTECTED]").  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send "how to" questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  Fr

Re: Suggestions for Recovering from messed up upgrade

2006-08-25 Thread Derek Ragona
If the NIC being disabled is your only problem, check your /etc/rc.conf 
settings.


-Derek


At 07:38 AM 8/25/2006, Malcolm Fitzgerald wrote:
When I upgraded from 5.x to 6 I messed things up. The first problem that I 
had was that I couldn't access localhost in my web browser. I made changes 
to many config files as I followed suggestions. Now it is worse, the NIC 
is disabled at startup, so I have to pop into KDE control center and 
enable it if I want to access the net.


Everything else works nicely.

What is the easiest way for me to start with a clean slate?

malcolm

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: TIMEOUT - WRITE_DMA errors

2006-08-25 Thread Derek Ragona

Run diagnostics from Dell and from the hard drive manufacturer.

-Derek


At 07:32 AM 8/25/2006, [EMAIL PROTECTED] wrote:


Hi:

I just installed FreeBSD 6.1 on a new Dell desktop that's going to act as
a temporary server while I migrate two older servers (4.10-STABLE) over to
all new software, the reconfigure it to act as a remote amanda server when
that's complete.

I've noticed a bunch of these errors in the syslog:

Aug 25 11:15:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031
Aug 25 11:27:09 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=12168863
Aug 25 11:30:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=8026047
Aug 25 11:50:24 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031

I did some googling, and found some seem to think it could be a problem
with the disk, whereas others think it's nothing.  Before I put this thing
into production, even if it's only going to be there for a couple of days,
I'd like to make sure.

Please reply directly, as I am not subscribed.

Thanks!

James Smallacombe PlantageNet, Inc. CEO and Janitor
[EMAIL PROTECTED] 
http://3.am
=

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: A webhosting script?

2006-08-25 Thread Duane Hill
On Friday, August 25, 2006 at 3:45:08 PM, Kyrre confabulated:

> At 17:30 25.08.2006, Andy Greenwood wrote:
>>We use perl scripts here. Unfortunately, I can't provide any 
>>specific examples.

> So stop trolling :)

> Perl is obsolete anyway, thanks though.

So, if Perl is obsolete, what does a guy use for a replacement?

-- 
"This message was sent using 100% recycled electrons."

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


Re: compress films

2006-08-25 Thread Girish Venkatachalam

On 8/25/06, Tsu-Fan Cheng <[EMAIL PROTECTED]> wrote:

Hi BSDers,
   I am running freebsd 6.1/amd64. I sometimes download films and they are
quite large, like 1.4GB or something. I want to make it smaller by using
mencoder, the script I use is as such:
>mencoder ddd.avi -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=352:240 -oac
lavc -lavcopts acodec=mp3:abitrate=48 -o ggg.avi

But sometimes the ggg.avi can still be a little larger than 700mB, is there
any more optimization I can do, or use other app to do this better??

many thanks!!


ffmpeg -i ddd.avi ggg.flv
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rubygems in ports

2006-08-25 Thread Philip Hallstrom

I've been meaning to ask this for a while... what is the motivation for
including individual Ruby gems in ports?  It strikes me as unnecessary
duplication, as the gem tool works well on its own, even for gems with C
code.  Are there many gems with FreeBSD-specific extensions or dependencies?

And which is preferable - pure gems or ports+gems?


I was just wondering the same thing.  I don't think it hurts to have both 
though...  I would assume that the port version has been a little better 
tested to work with the rest of the ruby world as well as make sure it 
picks up any c extensions (mysql, gd gems for example that need external 
libs) automatically...


maybe?

___
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)

2006-08-25 Thread Derek Ragona
What that statement means is the network daemons will be running.  If you 
don't have a NIC in the box, they won;t do much.


Yes you can run dumb terminals if you want, but make sure if you use a 
mutliport serial card it is supported.  You may also need to enable the 
gettys to run on those ports.


-Derek

At 08:18 PM 8/24/2006, Joseph Markarian wrote:

Hi,

I have been reading on FreeBSD 6.1 with a view of installing in our 10 
user shop.

The book is: FreeBSD 6 Unleashed, by Michael Urban and Brian Tiemann (SAMS).

On Page 93: BSD VS SYS 5 RUN CONTROL , I quote

"There is no multiuser mode without network support (in FreeBSD 6.1)  as 
there is in SYS V  run levels". Is this correct? This would mean that I 
can not install FreeBSD in a small 10 user office without network support?


I have work with all versions of unix (ATT, SCO, AIX, SUN) etc and they 
all have multiuser mode without network support. It should be possible to 
get an Intel processor and 10 dumm terminals, hook them up by wire and 
you'd be in business. This is true for the unix I mentioned above. Is it 
also true for ANY version of BSD (free or otherwise)?


Thank you.

Joe Markarian

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


rubygems in ports

2006-08-25 Thread Ashley Moran
Hi

I've been meaning to ask this for a while... what is the motivation for 
including individual Ruby gems in ports?  It strikes me as unnecessary 
duplication, as the gem tool works well on its own, even for gems with C 
code.  Are there many gems with FreeBSD-specific extensions or dependencies?

And which is preferable - pure gems or ports+gems?

Ta
Ashley

-- 
"If you do it the stupid way, you will have to do it again"
  - Gregory Chudnovsky
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A webhosting script?

2006-08-25 Thread Kyrre Nygård

At 17:30 25.08.2006, Andy Greenwood wrote:
We use perl scripts here. Unfortunately, I can't provide any 
specific examples.


So stop trolling :)

Perl is obsolete anyway, thanks though.

All the best,
Kyrre


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


Re: A webhosting script?

2006-08-25 Thread Andy Greenwood

We use perl scripts here. Unfortunately, I can't provide any specific examples.

On 8/25/06, Kyrre Nygård <[EMAIL PROTECTED]> wrote:


Hello!

Does anybody run a webhosting business, where they've written
a simple Bash script to add new users to the system and set up their
domains, Apache virtual hosts, databases etc. all in one go?

I am looking for inspiration for my own script.

Thank you!

I truly wish to keep it real and avoid solutions like cPanel or Webmin.

All the best,
Kyrre

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


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


pear does not compile

2006-08-25 Thread dick hoogendijk
Does anyboy also has issues with the latest PEAR-1.4.11 ?

[errors]=

===>  Installing for pear-1.4.11
===>   pear-1.4.11 depends on file: /usr/local/include/php/main/php.h -
found
===>   pear-1.4.11 depends on
file: /usr/local/lib/php/20020429/pcre.so - found ===>   pear-1.4.11
depends on file: /usr/local/lib/php/20020429/xml.so - found
===>
Generating temporary packing list ===>  Checking if devel/pear already
installed *** Error code 254

Stop in /usr/ports/devel/pear.
*** Error code 1

Stop in /usr/ports/devel/pear.
[end error code]

What is this error 254 about?

-- 
dick -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


OpenSAML installation

2006-08-25 Thread velotiaray toto-zarasoa

Hello!

I'm trying to install OpenSaml on my FreeBSD but I've ot the following error.
I already managed to install OpenSSL, Curl, Log4Cpp, XercesC,  
XMLSecurity. I am using opensaml-1.0.1.tar.gz.


"./configure --prefix=/opt/shibboleth-sp  
--with-log4cpp=/opt/shibboleth-sp --with-curl=/opt/shibboleth-sp  
--with-xerces=/opt/shibboleth-sp --with-xmlsec=/opt/shibboleth-sp  
--with-openssl -C"

 does not crash, the error happens when I type "make" (or "gmake")

The error is :

../lbtool: line 1: cd: yes/lib: No such file or directory
libtool: link: cannot determine absolute directory name of 'yes/lib'
*** Error code 1

Stop in  ...

If somebody has already fixed this error, please help!

Regards.


Quoting Paul Schmehl <[EMAIL PROTECTED]>:


--On Thursday, August 24, 2006 10:59:19 +0200 Velotiaray
<[EMAIL PROTECTED]> wrote:


Hi!

I would like to install a shibboleth service provider on my freebsd 6.1.
Unfortunately it seems that there is no ports available (*.tbz) and the
compilation is a hard ... :(
I'd like to know if  someone has already installed such a shibboleth
(with opensaml). My problem is my C compiler refuses to compile :( When I
try to compile a program, it says (./configure) "Cannot run C compiled
programs".


Is this what you are referring to?


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/




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


Re: NGE Network Driver Problem.

2006-08-25 Thread Jeremy Karlson

On 24-Aug-06, at 22:17, Robert Huff wrote:


Probably.  The chip name means a Realtek  8169, and that
takes the re() driver.


That's pretty much the same way I feel about 'em.


Shouldn't hurt.  I fixed mine by
a) removing both re and skc from the kernel config file
and
b) adding
if_re_load="YES"
to /boot/loader.conf.  Your mileage may vary.


Unfortunately, this didn't work out for me.  I tried a bit of other  
fiddling as well and didn't get any change in behaviour.  I'll just  
take the card back and maybe try a D-Link  one with a  
different chipset.


Thanks a lot for your suggestions.

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


sendmail

2006-08-25 Thread eoghan

Hello
Im using sylpheed for my mail (its work mail). Having some issues  
sending from their smtp server to non-work accounts.
I have sendmail installed but I have never used it before and am  
wondering if I can use this through my local machine to send my mail?

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


Intel 64bit / AMD 64 bit advantage

2006-08-25 Thread Martin Miedema
I hope that I'm not starting some sort of holy war  with this question, 
but here I'll go.


I'm planning to set-up some e-mail / file servers running FreeBSD 6.1 in 
the near future and I'm wondering if it will be worth the cost to use 64 
but CPU's for this.


Also I would like to know which brand CPU would be best for these 
applications.

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


compress films

2006-08-25 Thread Tsu-Fan Cheng

Hi BSDers,
  I am running freebsd 6.1/amd64. I sometimes download films and they are
quite large, like 1.4GB or something. I want to make it smaller by using
mencoder, the script I use is as such:

mencoder ddd.avi -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=352:240 -oac

lavc -lavcopts acodec=mp3:abitrate=48 -o ggg.avi

But sometimes the ggg.avi can still be a little larger than 700mB, is there
any more optimization I can do, or use other app to do this better??

many thanks!!

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


XML transformation and processing with Zope -- or something better suggestions welcome

2006-08-25 Thread backyard
I have a client who wishes to automate their order
processing system for their online business. presently
they download reports from their business frontend and
upload them manually to their shipper.

Both systems can use XML and a precursory look at the
document tags suggests a simple XSLT transform should
be able to translate the tags fairly simply.

I was thinking of using Zope to setup a server that
will get the orders from the website, transform them,
and then upload them to the shipper. I built Zope3
last night and went to bed...

In the morning I tried to build the zope-xml*
pluggins. However they start building python 2.3.5-1,
despite python 2.4.x that was built for zope3. I'm
fairly certain I can't have more then one version of
python but maybe I'm mistaken. I didn't want to deal
with it when I woke up so I stopped the builds.

Just wondering if anyone has any familiarity with
Zope, its pitfalls and merits, or if there is an
easier way to do what I described above. My client
doesn't care about keeping a local copy of the orders
but I want to for error control and checking purposes.
I was going to use xmlcatmgr for this purpose. I would
setup two catalogs one for raw and processed orders.
At this point I care more about keeping each order
processing unit if you will in its own little
compartment, perhaps a simple db by date would be more
in order with XML as the content.

any kind of pointers would be appreciated as this is
my first real task building a system that does
something real...

-brian



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


Re: Code beautifiers, anyone?

2006-08-25 Thread Kyrre Nygård

At 14:31 25.08.2006, Matti J. Karki wrote:


No doubt :)

There's no comments in the code, because usually my scripts are
disposable. As I said, I do those case by case.

The code should be quite clear for most parts, but the bunch of
regexps at the beginning of the code do the following things:

inbuffer = re.sub('\n +', '\n', inbuffer) # This strips all spaces
from the beginning of every line of code.

inbuffer = re.sub('\t+', '', inbuffer) # This does the same for tab 
characters.


inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # This moves all curly
braces where I want them to be, i.e. at the end of the line.

inbuffer = re.sub('\) *?{', ') {', inbuffer) # This removes all extra
spaces between the closing bracket ) and the opening curly bracket {.

inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # This fixes
curly brackets in the else clauses.

inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Sometimes
there is code where curly brackets are all in the same line and the
contents of the brackets are between the brackets. This moves the
contents to new line.

inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # This takes care
of the closing bracket at the above case.

inbuffer = re.sub('\n +', '\n', inbuffer) # This just cleans up all
spaces that may appear when arranging the code.

The rest of the script is just a simple indenting machine, which
indents the code using four spaces as a single level of indentation.
The indentation will be placed after every newline character and
indentation will be increased and decreased based on the occurrences
of curly brackets.

So, basically (and now I'm just trying to remember from top of my
head, it's been some time, I dealt with this particular source code)
the script will do the following steps with the code:

step 1) the original piece of code

int main()
{
   char *c = {'a', 'b', 'c'};

   print("hello, world");
   if (true)
   {
 printf("ok");
   }
   else
   {
   printf("umm...");
   }
}

step 2) stripping all indentation

int main()
{
char *c = {'a', 'b', 'c'};

print("hello, world");
if (true)
{
printf("ok");
}
else
{
printf("umm...");
}
}

step 3) applying the rest of the regexp rules and indenting with the for loop

int main() {
   char *c = {
   'a', 'b', 'c'
   };

   print("hello, world");
   if (true) {
   printf("ok");
   }
   else {
   printf("umm...");
   }
}

Hope this clears my script a little bit.


   -Matti


Very amazing man, I'm impressed by your enthusiasm for correctness.

In your script, do these comments look alright then?

(I simplified them a bit)

inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # Move curly brackets 
to the end of lines
inbuffer = re.sub('\) *?{', ') {', inbuffer) # Remove spaces between 
closing brackets and opening curly brackets
inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # Fix curly 
brackets in `else' clauses
inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Break up the 
content of curly brackets
inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # Take care of 
closing brackets from the above rule

inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace
inbuffer = re.sub('\t+', '', inbuffer) # Strip trailing tabs

And also, I noticed you put <'\n +', '\n', inbuffer> twice,
is one enough like in the above example?

Thank you man, your script has taught me a lot already about Python.

I brought this case up at the OpenBSD mailinglist as well
and they pointed me to http://en.wikipedia.org/wiki/Kernel_Normal_Form

So now I have two more steps in my search for the perfect tools to 
beautify all my code:


01 Design a normal form for all my languages
02 Convert your script to Ruby

After that, I can't wait to run it over the FreeBSD codebase and watch
the added value it gets. Then I can start selling the script to governments.
Just kidding :) But it would be nice to reverse engineer all those commercial
code parsers that hunt for bugs and create my own that I'll eventually
hook up with some artificial intelligence.

All the best,
Kyrre

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


freebsd nis and solaris

2006-08-25 Thread rchitecture

freebsd 6.1   solaris9

questions on the freebsd side:( internal machine running no firewall)   
- soalris 9 is the yp server, and two ypslaves are also on solaris 9


built a freebsd 6.1 and i am running into some problems

***

when i initiate ypcat command, all results return correctly

i have standard nis map, like auto_volume/auto_home/packages..pretty 
standard


all i need from this yp services is to be able to

ie cd /home/  and /volume/, and its not showing up, it just 
hang, control c to get out


also i've mande a mount point on the freebsd machine, ie 
/raid7.already setup in the yp auto_volume, but from
a solaris machine, if I go ...cd /volume/raid7, i got permission denied, 
but its completely open!


does anyone have some howto?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Code beautifiers, anyone?

2006-08-25 Thread Kyrre Nygård

At 06:01 25.08.2006, Matti J. Karki wrote:


Yes. I know, that this is reinventing the wheel. Also, home-made
scripts tend to be less reliable compared to dedicated tools. But I
have to deal with C, C++, Java, Visual Basic and XML files and also
some pretty obscure internal data files. With my own scripts I have
total control over the style. I use scripting quite a lot to help me
with my work and in addition to readability or style, I also use
scripts for generating documentation and even to generate pieces of
the final files from other data sources.

So, in my case, I just have found out that instead of using bunch of
ready-made tools and spending time tweaking the settings and learning
to run them, I reach my goal faster and with desired results by doing
things myself.


Nice wording Matti :)

Indeed, we are seeking total control over multiple languages.

So yeah, we do it ourselves for simpler and faster solutions.
Custom tools only contain about 5% of what dedicated tools would.

I know there's a lot of other people out there feeling the way we do,
I just hope that they can get on up and reply to this thread :)

All the best,
Kyrre

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Kyrre Nygård

At 21:09 24.08.2006, Matti J. Karki wrote:


Well, my scripts aren't magic. They are pretty simple. Here's few (not
scripts, these are valid Vim regexps):


Those are great regexps, Matti, thank you so much.

They have been noteworthy recorded!

Say, could I use these with Sed let's say in a Bash script?

One more question about :%s/^ *$//g versus :%s/ *$//g,
won't the latter here perform the job of the former?

Normally I do sed -E -e 's/[[:space:]]+$//' to remove my trailing whitespace.

Thanks again man!

All the best,
Kyrre

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


Re: BSDstats Project: A quick reminder ...

2006-08-25 Thread Ivan Levchenko

Ukraine is on 3rd place!!! now thats what i call yahoo! =)
On 8/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Marc,

On 8/25/06, Marc G. Fournier <[EMAIL PROTECTED]> wrote:
> 

> And, Canada (my country) is woefully in 5th place with 4% ... come on
> folks, we need to get all of the numbers up ...

i just beat Hungary by 1 point!

regards,

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




--
Best Regards,

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


A webhosting script?

2006-08-25 Thread Kyrre Nygård


Hello!

Does anybody run a webhosting business, where they've written
a simple Bash script to add new users to the system and set up their
domains, Apache virtual hosts, databases etc. all in one go?

I am looking for inspiration for my own script.

Thank you!

I truly wish to keep it real and avoid solutions like cPanel or Webmin.

All the best,
Kyrre

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


Re: apache & Jails

2006-08-25 Thread Don Munyak

On 8/25/06, albi <[EMAIL PROTECTED]> wrote:

On Fri, 25 Aug 2006 01:15:52 -0400
"Don Munyak" <[EMAIL PROTECTED]> wrote:

> I want to build a FreeBSD webserver to replace a M$ IIS web server.
> I've started researching using Jails but am a little confused.
>
> Given I am hosting four(4) websites, would I have four separate jails.
> each jail having a separate install of apache + php + mysql ?
>
> or would I be installing apache + php + mysql at the base system, and
> then have four separate jails for each web site and database files ??

there are even more possibilities :
- 1 host, 1 jail, apache with virtual hosts
- 1 host, 1 "build-jail", 4 apache-jails
- 1 host, apache with virtual hosts

do you have different ip-addresses for those websites ?


No for different IP's. Each will share a common IP. Apache would do
hostname redirecting for incoming requests...I presume. I guess in
this case the following would be the direction I'm headed


- 1 host, 1 jail, apache with virtual hosts


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


Re: TIMEOUT - WRITE_DMA errors

2006-08-25 Thread DAve

[EMAIL PROTECTED] wrote:

Hi:

I just installed FreeBSD 6.1 on a new Dell desktop that's going to act as
a temporary server while I migrate two older servers (4.10-STABLE) over to
all new software, the reconfigure it to act as a remote amanda server when
that's complete.

I've noticed a bunch of these errors in the syslog:

Aug 25 11:15:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031
Aug 25 11:27:09 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=12168863
Aug 25 11:30:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=8026047
Aug 25 11:50:24 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031

I did some googling, and found some seem to think it could be a problem
with the disk, whereas others think it's nothing.  Before I put this thing
into production, even if it's only going to be there for a couple of days,
I'd like to make sure.

Please reply directly, as I am not subscribed.



I have a stack of SATA drives that all exhibited that behavior just 
prior to barfing on three mail toasters and a web server. I think I 
changed 8 drives in 10 months (all new servers). We went back to only 
ordering SCSI now for production servers. SATA might be nice for gamers 
and desktops, but I would not use them for heavy activity production 
such as mail queues.


Yes, we went back and forth with the supplier, cables, connections, 
vibration, NOC temperature, etc. The replacements would still fail 
within a few months. We since replaced the Maxtor and Fitzy drives with 
a specific model Seagate which seems to survive.


Just one guys 2cents worth.

DAve
--
Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for
Veterans?

Maybe they forgot who made that choice possible.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSDstats Project: A quick reminder ...

2006-08-25 Thread usleepless

Marc,

On 8/25/06, Marc G. Fournier <[EMAIL PROTECTED]> wrote:





And, Canada (my country) is woefully in 5th place with 4% ... come on
folks, we need to get all of the numbers up ...


i just beat Hungary by 1 point!

regards,

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


Suggestions for Recovering from messed up upgrade

2006-08-25 Thread Malcolm Fitzgerald
When I upgraded from 5.x to 6 I messed things up. The first problem 
that I had was that I couldn't access localhost in my web browser. I 
made changes to many config files as I followed suggestions. Now it is 
worse, the NIC is disabled at startup, so I have to pop into KDE 
control center and enable it if I want to access the net.


Everything else works nicely.

What is the easiest way for me to start with a clean slate?

malcolm

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


scribes

2006-08-25 Thread eoghan

Hi there
I was wondering if anyone had any information on whether this has or  
is being ported to freeBSD

http://scribes.sourceforge.net/
I have looked through the ports and dont see...
Thanks
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


TIMEOUT - WRITE_DMA errors

2006-08-25 Thread up

Hi:

I just installed FreeBSD 6.1 on a new Dell desktop that's going to act as
a temporary server while I migrate two older servers (4.10-STABLE) over to
all new software, the reconfigure it to act as a remote amanda server when
that's complete.

I've noticed a bunch of these errors in the syslog:

Aug 25 11:15:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031
Aug 25 11:27:09 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=12168863
Aug 25 11:30:15 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=8026047
Aug 25 11:50:24 testbed kernel: ad0: TIMEOUT - WRITE_DMA retrying (1 retry
left) LBA=29736031

I did some googling, and found some seem to think it could be a problem
with the disk, whereas others think it's nothing.  Before I put this thing
into production, even if it's only going to be there for a couple of days,
I'd like to make sure.

Please reply directly, as I am not subscribed.

Thanks!

James Smallacombe PlantageNet, Inc. CEO and Janitor
[EMAIL PROTECTED]   
http://3.am
=

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


Re: Code beautifiers, anyone?

2006-08-25 Thread Matti J. Karki

On 8/25/06, W. D. <[EMAIL PROTECTED]> wrote:

At 17:00 8/24/2006, Matti J. Karki wrote:
>On 8/24/06, Kyrre Nygård <[EMAIL PROTECTED]> wrote:
>>
>> Perhaps you could share with us whatever scripts you've written?
>>
>
>Totally forgot to include the actual intendation script.
>
>There should be a Python script attached to this mail. Please note,
>that the script is not a silver bullet! It was designed to clean up
>some pretty messed up C code.

Comments would be nice.



No doubt :)

There's no comments in the code, because usually my scripts are
disposable. As I said, I do those case by case.

The code should be quite clear for most parts, but the bunch of
regexps at the beginning of the code do the following things:

inbuffer = re.sub('\n +', '\n', inbuffer) # This strips all spaces
from the beginning of every line of code.

inbuffer = re.sub('\t+', '', inbuffer) # This does the same for tab characters.

inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # This moves all curly
braces where I want them to be, i.e. at the end of the line.

inbuffer = re.sub('\) *?{', ') {', inbuffer) # This removes all extra
spaces between the closing bracket ) and the opening curly bracket {.

inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # This fixes
curly brackets in the else clauses.

inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Sometimes
there is code where curly brackets are all in the same line and the
contents of the brackets are between the brackets. This moves the
contents to new line.

inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # This takes care
of the closing bracket at the above case.

inbuffer = re.sub('\n +', '\n', inbuffer) # This just cleans up all
spaces that may appear when arranging the code.

The rest of the script is just a simple indenting machine, which
indents the code using four spaces as a single level of indentation.
The indentation will be placed after every newline character and
indentation will be increased and decreased based on the occurrences
of curly brackets.

So, basically (and now I'm just trying to remember from top of my
head, it's been some time, I dealt with this particular source code)
the script will do the following steps with the code:

step 1) the original piece of code

int main()
{
   char *c = {'a', 'b', 'c'};

   print("hello, world");
   if (true)
   {
 printf("ok");
   }
   else
   {
   printf("umm...");
   }
}

step 2) stripping all indentation

int main()
{
char *c = {'a', 'b', 'c'};

print("hello, world");
if (true)
{
printf("ok");
}
else
{
printf("umm...");
}
}

step 3) applying the rest of the regexp rules and indenting with the for loop

int main() {
   char *c = {
   'a', 'b', 'c'
   };

   print("hello, world");
   if (true) {
   printf("ok");
   }
   else {
   printf("umm...");
   }
}

Hope this clears my script a little bit.


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


Re: Hardware Recomendation

2006-08-25 Thread Shane Ambler
The hardware requirements for the web server can be quite low, you can run a
pretty busy website from on old PIII.

Some more info would be needed to predict the sort of needs you may expect
for your database. Will it be a forum (such as phpBB) or a banner exchange?

Is this to replace an existing server (with a known amount of traffic) or a
new setup for a new site?
 
What size database do you expect? (you may have 2-5K per record and
anticipate 100 records a day or you may have 2GB of data that you want to
share)

Is reliable (RAID) storage a necessity? Or will you have automated backups
to another machine that would be sufficient to restore when needed?

Is this an internal database for 10 users or a busy website that you hope to
have 1000 users accessing at the same time?

Some indication of the amount of data that would be read/written to the
database and how many users will access it can help give an idea of  what
would be needed to keep up with the traffic.

A good plan is to have some idea of a budget and necessary components (such
as raid) and go with the fastest CPU you can get with what's left.
You may have something faster than you need now but will be adequate in 3
months time.

On 25/8/2006 17:00, "VeeJay" <[EMAIL PROTECTED]> wrote:

> Hello
> 
> What are the Hardware recomendation for a dedicated FreeBSD Web/Database
> Server with Data Security?
> 
> What is the flow of Setup/ or major steps to setup?

-- 

Shane Ambler
007Marketing.com
[EMAIL PROTECTED]

Get Sheeky @ http://Sheeky.Biz


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


phones with USB and TAPI

2006-08-25 Thread Matthias Apitz

Hi,

When I am in my office I have next to my laptop a phone device
of German Telekom, type T-Octophon. This comes with an USB
connector and some TAPI software to integrate it in the Windows
crap. Plugging it in into my 6.0-REL it says:

Aug 25 14:00:12 rebelion kernel: ugen1: Deutsche Telekom AG T-Octophon F, rev 
2.00/1.09, addr 2

and a usbdevs shows the device as:

 port 1 addr 2: full speed, self powered, config 1, T-Octophon F(0x001f), 
Deutsche Telekom AG(0x0681), rev 1.09

Of course it gets attached to 'ugen' because there is no driver
claiming the device. Does anyone know of support for this in
FreeBSD? It would be nice to dial directly from the command line
or even from the browser where you see some number to call.

Thx

matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC PICA GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[EMAIL PROTECTED]> - w http://www.oclcpica.org/ http://guru.UnixLand.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Code beautifiers, anyone?

2006-08-25 Thread W. D.
At 17:00 8/24/2006, Matti J. Karki wrote:
>On 8/24/06, Kyrre Nygård <[EMAIL PROTECTED]> wrote:
>>
>> Perhaps you could share with us whatever scripts you've written?
>>
>
>Totally forgot to include the actual intendation script.
>
>There should be a Python script attached to this mail. Please note,
>that the script is not a silver bullet! It was designed to clean up
>some pretty messed up C code. 

Comments would be nice.

>Usually I study the coding style before
>creating this kind of clean-up-scripts. Also, the code is not very
>clean itself (pretty ironic, I guess) :) It's just a hack to take care
>of one step of the cleaning process.
>
>
>-Matti
>
>Content-Type: text/plain; name=indent.py; charset=ANSI_X3.4-1968
>X-Attachment-Id: f_er9oh0mn
>Content-Disposition: attachment; filename="indent.py"
>
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/
$8.77 Domain Names -> http://domains.us-webmasters.com/

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


panic: driver error: busdma dflt_lock called

2006-08-25 Thread Karim Nogas

Hello,

I was wondering if someone could explain this error message, and where I 
should look for a resolution.


I installed FreeBSD 6.1, configured my NIC, and was using it for a 
couple days without problems.  Now, even after a fresh install, I keep 
getting this error.  The only resolution I've found is to login in 
Single-User Mode, run fsck, and mount -a.  Unfortunately, this 'fix' is 
temporary as the problem occurs again with a reboot.


Any ideas would be greatly appreciated.  Thank-you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: The Regents of the University of California. All rights reserved.

2006-08-25 Thread David J Brooks
On Friday 25 August 2006 04:19, Kyrre Nygård wrote:
> Hello!
>
> I am just wondering why it says:
>
>   "The Regents of the University of California. All rights reserved."
>
> when I log in locally, but:
>
>   "The Regents of the University of California.  All rights reserved."
>
> when I log in via SSH? The difference for you with untrained eyes is the
> double spacing after the dot instead of the standard single spacing.
>
> I was just curious if there's a reason to this or not.

Back in the Jurassic era, when typewriters still roamed the earth, it was a 
convention to leave a double-space following a period so that the reader 
could more easily distinguish the end of a sentence. With the advent of word 
processors (and proportional fonts) this double-spacing convention lapsed.

My guess is that the code for SSH was written by someone who learned to type 
on a typewriter, or was taught by someone who learned to type that way.

David
-- 
Sure the Almighty created the world in only six days,
but He didn't have an established user-base.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to change kernel version tag?

2006-08-25 Thread Yuan, Jue
Hi all.

Could I change the kernel version tag manually? say, I have a kernel which is 
7.0-CUREENT, but for some reasons I wanna it be something like 6.1-RELEASE, 
while the kernel itself does't change from 7.0-CURRENT to 6.1-RELEASE. All I 
want is the change of tag. For example, if this works, then when I 
type "uname -a" in console, I would get "6.1-RELEASE ..." instead 
of "7.0-CURRENT ...".

I guess some config files in src/sys/ could take care of this. But I cannot 
find it out. Anybody knows how to get this job done?

Any ideas are really appreciated. :-)

-- 
Best Regards
Yuan, Jue @ http://www.yuanjue.net
___
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 mfsroot.flp ?

2006-08-25 Thread Yuan, Jue
On Friday 25 August 2006 01:13, Niclas Zeising wrote:
> Yuan, Jue wrote:
> > Hi all.
> >
> > I just wonder where mfsroot.flp is going now. It seems it has been
> > replaced by boot.flp and kernX.flp. why?
> >
> > What I really want is to get a mfsroot to embed into a FreeBSD kernel,
> > since kernel has option MD_ROOT to support this. I have found mfsroot.gz
> > in boot/, but after uncompressing, it turns out to be as big as 4.2MB,
> > which is too big for me. :-( Does anyone knows how to create a custom
> > mfsroot, say which files do I need to put in to it, to make it not larger
> > than 4MB?
> >
> > Any idea would be greatly appreciated. :-)
>
> The mfsroot.flp has been replaced in favour of kernX.flp. It was
> sometime when the mfsroot grew bigger that the 1.44KiB-limit. What
> someone did was making the kernel splitable over multiple floppies, and
> still bootable, iirc.
>
Thanks for the info. :-)

> Why do you need a mfsroot instead of an ordinary /? Are you planing on
> making a live cd? Just out of curiosity.
>
I need a kernel with mfsroot embedded in it so that I could have the ability 
to install FreeBSD after booting from that kernel.

-- 
Best Regards
Yuan, Jue @ http://www.yuanjue.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Differences between vim and vim-lite ports

2006-08-25 Thread Niclas Zeising

Alberto Rizzi wrote:

What are the differences between vim and vim-lite ports?


The vim port compiles both vim and gvim. Gvim is the graphical version 
of vim, for use with x. It has ogot some menues and stuff... vim-lite is 
only the cli-part of vim.


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


Re: Differences between vim and vim-lite ports

2006-08-25 Thread Alexey Mikhailov

Alberto Rizzi wrote:

What are the differences between vim and vim-lite ports?
  

TCL/Perl/Python scripting, "devel/cscope" support, I18N features
and GUI are missing in "vim-lite".
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache & Jails

2006-08-25 Thread albi
On Fri, 25 Aug 2006 01:15:52 -0400
"Don Munyak" <[EMAIL PROTECTED]> wrote:

> I want to build a FreeBSD webserver to replace a M$ IIS web server.
> I've started researching using Jails but am a little confused.
> 
> Given I am hosting four(4) websites, would I have four separate jails.
> each jail having a separate install of apache + php + mysql ?
> 
> or would I be installing apache + php + mysql at the base system, and
> then have four separate jails for each web site and database files ??

there are even more possibilities :
- 1 host, 1 jail, apache with virtual hosts
- 1 host, 1 "build-jail", 4 apache-jails
- 1 host, apache with virtual hosts

do you have different ip-addresses for those websites ?

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


The Regents of the University of California. All rights reserved.

2006-08-25 Thread Kyrre Nygård

Hello!

I am just wondering why it says:

 "The Regents of the University of California. All rights reserved."

when I log in locally, but:

 "The Regents of the University of California.  All rights reserved."

when I log in via SSH? The difference for you with untrained eyes is the
double spacing after the dot instead of the standard single spacing.

I was just curious if there's a reason to this or not.

Thanks,
Kyrre

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


Differences between vim and vim-lite ports

2006-08-25 Thread Alberto Rizzi
What are the differences between vim and vim-lite ports?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache & Jails

2006-08-25 Thread Ivailo Tanusheff
Yes, it's better to have 4 jails for each system with their own apache, 
php and mysql.
You can also install the same in the base system and then create on the 
base system packages for all updates needed by ports installed on the 
jails and just update with those packages.

Regards,

Ivailo Tanusheff
Deputy Head of IT Department
ProCredit Bank (Bulgaria) AD





"Don Munyak" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
25.08.2006 08:15

To
freebsd-questions@freebsd.org
cc

Subject
apache & Jails






I want to build a FreeBSD webserver to replace a M$ IIS web server.
I've started researching using Jails but am a little confused.

Given I am hosting four(4) websites, would I have four separate jails.
each jail having a separate install of apache + php + mysql ?

or would I be installing apache + php + mysql at the base system, and
then have four separate jails for each web site and database files ??

Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[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   >