Re: FreeBSD questions
Si Thu wrote: Dear freeBSD, I am running FreeBSD 6.2-RELEASE on my staging server and having one problem about FFmpeg. I have read a lot of documentation and google on the web to get the solution for how to customize installation for ffmpeg utility. Normally, freeBSD provides s lot of packages and ports that can be covered the average requirements. On my server, I have installed ffmpeg from the provided port with the command "make install clean". After installation, I am able to encode the input files from some location of server such "usr/local/bin" and cannot implement with PHP(I used exec() command). FFmpeg-php is a object oriented API for PHP and ffmpeg implementation. I was not able to install that API on freeBSD. And there are some other configuration such "--enable-shared --enable-gpl" and other libraries they can use in ffmpeg by configuration with ./configure command. But I was not able to find how to configure before install ffmpeg. If you would be able to give me a solution that would be great. I will really appreciate. Don't know about ffmpeg-php or anything, as I've never used them. However, you could do a few different things to change the configure arguments. You could just edit the Makefile in the port's directory, or you could define some make variables either through /etc/make.conf or by defining them on the command line like make -DWITH_SWSCALER which will do the same thing as configure --enable-swscaler. Look through the Makefile for the defaults (both switches you mentioned are on by default in my ports tree) and all availible switches. Make syntax is simple enough, so you should be able to figure it out without much trouble. Also, you might want to run make configure instead of make install or even just make, since that will run the configure script and then stop, so you can look over the output and adjust as necessary before continuing the build. Looking forward to get an answer kind regards, Sithu [EMAIL PROTECTED] ___ 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: FreeBSD questions
Si Thu wrote: Hi Andy, Thanks for your answer. No problem, but please remember to include the list in any replies unless the person you're talking with spefically asks to take the conversation off-list. This will ensure that you get the widest possible audience for your questions, and generally, the best possible answers as well. Also, please remember to bottom-post your replies, since it makes the conversation easier to read for people joining in the middle. Again let me have one more question, I cannot encode the .wmv to .flv. It seems ffmpeg of port is outdated, but I downladed the port from the http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/ffmpeg/?only_with_tag =RELEASE_6_2_0 If you want the newer versions of software from the ports tree, don't limit your results by the tag. Basically, you're saying (IIRC) "I want the version of the port that was included with this release" instead of "I want the most recent version of this port." the release versions of the ports will only be updated for bug fixes, etc. Not new features. I'd suggest that you just use portsnap to update your local ports tree and go from there. If you've never used portsnap before, do the following portsnap fetch extract If you have already done the extract step above, then use this portsnap fetch update from now on. Every time you run this command, your ports tree is updated with the latest software. As long as you aren't on a really ancient release, software from the ports tree will ALMOST always compile and install fine. After your ports tree is updated, just cd /usr/ports/multimedia/ffmpeg make deinstall<- to remove the older version make install clean <-to install the new version Now you should have the latest version and all it's capabilities. I don't know specifically if this will solve your wmv -> flv problem, but if not, you will be at a better place to ask questions. You would probably want to ask your questions about specific software at the developer's forums or mailing lists though, since this list is supposed to be mainly for questions about freebsd itself. Good Luck! Does it not update? Sithu -Original Message- From: Andy Greenwood [mailto:[EMAIL PROTECTED] Sent: Thursday, November 08, 2007 10:44 PM To: Si Thu Cc: freebsd-questions@FreeBSD.org Subject: Re: FreeBSD questions Si Thu wrote: Dear freeBSD, I am running FreeBSD 6.2-RELEASE on my staging server and having one problem about FFmpeg. I have read a lot of documentation and google on the web to get the solution for how to customize installation for ffmpeg utility. Normally, freeBSD provides s lot of packages and ports that can be covered the average requirements. On my server, I have installed ffmpeg from the provided port with the command "make install clean". After installation, I am able to encode the input files from some location of server such "usr/local/bin" and cannot implement with PHP(I used exec() command). FFmpeg-php is a object oriented API for PHP and ffmpeg implementation. I was not able to install that API on freeBSD. And there are some other configuration such "--enable-shared --enable-gpl" and other libraries they can use in ffmpeg by configuration with ./configure command. But I was not able to find how to configure before install ffmpeg. If you would be able to give me a solution that would be great. I will really appreciate. Don't know about ffmpeg-php or anything, as I've never used them. However, you could do a few different things to change the configure arguments. You could just edit the Makefile in the port's directory, or you could define some make variables either through /etc/make.conf or by defining them on the command line like make -DWITH_SWSCALER which will do the same thing as configure --enable-swscaler. Look through the Makefile for the defaults (both switches you mentioned are on by default in my ports tree) and all availible switches. Make syntax is simple enough, so you should be able to figure it out without much trouble. Also, you might want to run make configure instead of make install or even just make, since that will run the configure script and then stop, so you can look over the output and adjust as necessary before continuing the build. Looking forward to get an answer kind regards, Sithu [EMAIL PROTECTED] ___ 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: Upper limit on make -j ?
Aryeh Friedman wrote: Before I file a PR I just want to know if it is worth it to file a PR for: make -j1000 buildworld buildkernel installkernel seg faulting I thought that the kernel builds couldn't be built using parallel jobs, that it might break something. Is that not true? ___ 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: In the spirit of Godwin's law - I propose Beastie's law
Ted Mittelstaedt wrote: -Original Message- From: Aryeh M. Friedman [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 10:20 PM To: Ted Mittelstaedt Cc: freebsd-questions@freebsd.org; FreeBSD chat Subject: Re: In the spirit of Godwin's law - I propose Beastie's law -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ted Mittelstaedt wrote: Beastie's Law: Any demand of a modification of FreeBSD or it's website using political incorrectness as the justification is automatically wrong. Political Incorrectness is very subjective though. It doesen't matter. What constitutes a Nazi comparison is also very subjective. However, Godwin's law works anyway. According to wikipedia (I am aware this isn't a real source) Godwin's law is defined thusly. As an online discussion grows longer, the probability of a comparison involving Nazis or Hitler approaches one. The law isn't subjective at all. It specifically requires the comparison of one of the points or platforms to those of Nazis or Hitler himself. The comparison itself could be as oblique or subjective as you want, but the fact is that it must DIRECTLY involve Nazis or Hitler. However, I don't agree that the proposed Beastie's Law is subjective either. It states that the person making the demands is using political incorrectness as one of their points as to why the change should be made. Whether or not everyone will agree on the political (in)correctness of the proposed change is irrelevant. Ted ___ 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]"
ssmtp
I'm having some trouble setting up ssmtp. I want to use logrotate to compress and email my server's logs to my gmail account. I can echo text directly to ssmtp and have it send the message ok, but when I try to use /usr/bin/mail, I get logs in my maillog trying to use sendmail, which is set to none in rc.conf. How do I set this up so that all mail sends out through ssmtp? /usr/local/etc/ssmtp/ssmtp.conf # # /etc/ssmtp.conf -- a config file for sSMTP sendmail. # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. [EMAIL PROTECTED] # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=mail.myisp.net # Example for SMTP port number 2525 # mailhub=mail.your.domain:2525 # Example for SMTP port number 25 (Standard/RFC) # mailhub=mail.your.domain # Example for SSL encrypted connection # mailhub=mail.your.domain:465 # Where will the mail seem to come from? rewriteDomain=myisp.net # The full hostname hostname=behemoth.mydomain.com # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. #FromLineOverride=YES # Use SSL/TLS to send secure messages to server. #UseTLS=YES # Use SSL/TLS certificate to authenticate against smtp host. #UseTLSCert=YES # Use this RSA certificate. #TLSCert=/usr/local/etc/ssmtp/ssmtp.pem Here's an example: #mail -s test message [EMAIL PROTECTED] < Some_File #tail /var/log/maillog Mar 29 10:58:47 behemoth sendmail[41971]: k2TFwkuV041971: from=root, size=3948, class=0, nrcpts=2, msgid=< [EMAIL PROTECTED]>, [EMAIL PROTECTED] Mar 29 10:58:47 behemoth sendmail[41971]: k2TFwkuV041971: to=message, [EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=63948, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Obviously I don't get anything coming through with this example but #echo test | ssmtp [EMAIL PROTECTED] #tail /var/log/maillog Mar 29 11:03:24 behemoth sSMTP[42000]: Sent mail for [EMAIL PROTECTED](221 ibm58aec.myisp.net ESMTP server closing connection) I do recieve this message I'd be happy to provide any other information to anyone who can help me set this up. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Why are so many people using 4.x?
On 3/29/06, Kris Kennaway <[EMAIL PROTECTED]> wrote: > > On Wed, Mar 29, 2006 at 02:17:31PM +0200, Vaaf wrote: > > At 22:34 28.03.2006, Joseph Vella wrote: > > >I notice a lot of references to version 4.x. Is there any > > >overwhelming reason > > >why its use seems to be still popular. I'm wanting to set up a server > > >(just > > >for play) on my home network using a PII machine. Am I better off > using an > > >older version for such old equipment? If so, do any particular > versions > > >stand out? > > > > FreeBSD, and UNIX for that matter, is based off 30-year-old concepts. > > Noboy can deny this. I don't, and I don't think anyone would deny that statement. However, that doesn't necessarily mean that those concepts are not solid ground on which to build an OS. Hammurabi wrote the first set of laws for a civilized nation, and those laws have been under refinement for the past ~2200 years. Granted there are some problems with current laws, but just like in (most first-world) countries where the public has a say in how they are governed, so does the open source community have a say in the development of thier projects. That being said, you can compare the development > > of FreeBSD to building a skyscraper on shallow grounds. Naturally, the > more > > you build the more building is likely to collapse. Please explain how building an OS on solid techniquies and with a mind towards usability, stability, and scalability constitutes building on shallow grounds. Furthermore, please explain what shallow ground actually means. I was under the impression that all grounds are pretty deep, going through the core of the Earth and all This is now the case with > > the old FreeBSD (in which a couple of smart guys decided to savior into > > DragonFly) versus the new FreeBSD. I think the same thing is happening > > with Windows versus Vista. As OS development progresses, this little > > theory of mine will become more and more obvious. If anyone on this list > can > > contribute with facts and observations to strenghten this theory, I > would > > really appreciate it. > > ...because you have none of your own. > > Kris > > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: flp wont load to floppies
right, if you are trying to copy the image directly to a fat16 (windows format) floppy disk, you might run out of room because the fat16 fs takes up some space on the disk. Also, the disks might be bad and be covered with bad sectors that you can't use. Make sure you are doing it the right way and try some other disks too. The last time I installed, I had to boot from floppy and went through about 4 or 5 disks before I had enough good ones. On 3/31/06, Jon Krause <[EMAIL PROTECTED]> wrote: > > > - Original Message - > From: "A B" Sent: Friday, March 31, 2006 12:02 PM > Subject: flp wont load to floppies > > > > 1) either by copying to destop, then floppy, > > or directly from FTP site, > > the floppy disks does not have enough space for the > > release 6.0 disks... boot, fixit, kern1.suggestions? > > > > 2) I'm using a IBM Thinkpad 600e 400mHz without much sucess. > > Will FreeBSD install on this machine? > > > > Are you attempting to prepare these floppies on a "Windows * " machine? > Are you following the directions in the handbook? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-pre.html > > Specifically, using "fdimage" to copy the .flp files to (floppy)disk? > > > > > > > - > > New Yahoo! Messenger with Voice. Call regular phones from your PC for > low, > low rates. > > ___ > > 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]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/proc/loadavg?
Does FreeBSD have a location that stores the load average information, similarly to /proc/loadavg in Linux? I've got a php site that displays this info, but I'm not sure where to point it to. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: make buildword problem/documentation
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html On 4/11/06, Jim Stapleton <[EMAIL PROTECTED]> wrote: > > First of all, where do I find "make buildworld" documentation? It's > mantioned a lot, but I can't find it in the handbook. I'm assuming the > process is just "make buildworld", "make installworld", and that's it, > which will update all the non-ports core software packages on a > machine, but not the kernel itself. > > The second part is, when I have this in my make.conf file, > uncommented, make buildworld fails, when it is commented, make > buildworld works fine (when it fails, it complains about not being > able to find/load various header files): > #CFLAGS=-finline-functions -msse -msse2 -msse3 -m3dnow -mfpmath=sse > #CXXFLAGS=-finline-functions -msse -msse2 -msse3 -m3dnow -mfpmath=sse > > > 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]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Wanted: Flash player for ....
On 4/12/06, Paul Schmehl <[EMAIL PROTECTED]> wrote: > > Ashley Moran wrote: > > On Wednesday 12 April 2006 02:37, Eric Schuele wrote: > >> Either way... I hope somehow they see fit to loosen the language a bit > >> in the future. > > > > Can't we petition Adobe somehow? I'm a bit stuck now - my company's > main > > application is written in Flash! > > > Petition? How about we sue them? How can a vendor dictate what > platform they allow their software to run on? Just because they > designed it for some other OS doesn't mean, if I can figure out a way to > make it work, that they can tell me I can't run it on that platform. With the Current EULA, that's exactly what they CAN do I'm not a lawyer either, but frankly I think their EULA is unenforceable > and their attitude ought to cost them customers. I'll agree with you here. Hopefully they'll see the light and change the EULA. -- > 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: /usr/ports/www/p5-Apache-MP3
Glad you got it all working, I really like this module On 4/13/06, Shawn Guillemette <[EMAIL PROTECTED]> wrote: > Thank you that worked out great ... I had added most of that but was missing > a few entries. > > Thanks again > > > -Original Message- > From: Andy Greenwood [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 12:42 PM > To: Shawn Guillemette > Subject: Re: /usr/ports/www/p5-Apache-MP3 > > Have you tried http://search.cpan.org/~lds/Apache-MP3-3.05/MP3.pm > > On 4/13/06, Shawn Guillemette <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > I installed p5-Apache-MP3 after reading about it and wanting > to > > try it out and seem to have run in to a snag.. I installed the port with > out > > any issues and now that it is installed Im looking for a read me or a link > > of some sort that might point in the direction of the next step. > > > > > > > > I see that apache is loading mod_perl just fine. I just not sure where to > go > > next. > > > > > > > > Any help would be greatly appreciated. > > > > > > > > > > > > Thanks > > > > Shawn > > > > ___ > > 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: Torrentflux, PHP, and Apache
torrentflux has it's own forum for problems like this. Please consult http://www.torrentflux.com/forum for help. I don't check that forum anymore as I'm a dev for b4rt's mod. If you can't get any help from the official TF folks, email me off-list and I'll see what I can do. On 9/10/06, Ryan Winograd <[EMAIL PROTECTED]> wrote: Hi all, I have a strange problem here. I just installed torrentflux on my freebsd6.1 box and it was working great for a few minutes. Then, for some reason i can't figure out, i was no longer able to view index.php. Other php files were parsed by the server just fine, but for some reason when i tried to access index.php I either got actual php code or a blank file. Let me reiterate that the other php pages for just fine...so I am a little confused. Any advice? Ideas on what could be causing this? Thanks in advance, ryan ___ 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: pci modem question
not to mention that winmodems are utter crap, even on windows. On 9/13/06, Derek Ragona <[EMAIL PROTECTED]> wrote: Be sure to get a real full modem. Not a winmodem. A full modem will cost considerably more, like double the price because it has all the modem hardware on the card. Winmodems rely on Windows to do much of the hardware functions. -Derek At 09:05 PM 9/12/2006, musashi miyamoto wrote: >FreeBSD mori.ranmaru 6.1-STABLE FreeBSD 6.1-STABLE #0: Tue Sep 5 02:09:57 >PHT 2006 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/SHOGUN i386 > > >is there a dialup pci modem that is compatible with FreeBSD? >___ >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]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
CLI text editor recommendation
I need a CLI text editor I can use over ssh, which does NOT append newlines to the end of files as I save them. I am using this to edit PHP files, and my PHP doesn't like newlines outside the last ?>. ee and vi both do so, I tried nano which also does the same. I haven't installed emacs to try that yet, since the man page says that it also does the same thing. Does anyone have any ideas? Another question: Why do so many text editors have this behavior? Should a text editor really add text that I don't tell it to add to my file? It seems that there must be some reason. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: CLI text editor recommendation
Thanks for the advice everyone. I will certainly check out my php and see if I can figure out why it's giving me errors as-is. On 9/13/06, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > I need a CLI text editor I can use over ssh, which does NOT append > newlines to the end of files as I save them. I am using this to edit > PHP files, and my PHP doesn't like newlines outside the last ?>. ee > and vi both do so, I tried nano which also does the same. I haven't > installed emacs to try that yet, since the man page says that it also > does the same thing. Does anyone have any ideas? Not an editor, but why not just do this: --- . php will treat the rest of the file as php --- ___ 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, interesting returns from OpenBSD
What about making it a sysinstall option? Not in the base install, but the option is presented when setting up a new box. On 9/14/06, Kris Kennaway <[EMAIL PROTECTED]> wrote: On Thu, Sep 14, 2006 at 12:53:04PM -0400, Gerard Seibert wrote: > On Thursday 14 September 2006 12:09, Kris Kennaway wrote: > > > One should not conclude anything until the numbers are much larger > > than they are now, because small fluctuations from e.g. regional > > promotion of bsdstats in one country but not another, or one large > > company deploying it on all machine, will dramatically change your > > "conclusions". > > I was just wondering if there is any consensus on adding BSDStats to the > base system? If would appear to be a logical step to take so as to insure > that all users of FBSD would be counted. An end user could always disable > the sending of data by disabling it in the /etc/rc.file. I feel that unless > it is part of the base system and turned on by default, too many users will > never take part in the reporting process. I highly doubt that it would be enabled by default in FreeBSD, since many of our users (or their employers) would consider it a privacy breach to have their systems reporting back automatically. Kris -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Processors
well, without more information. I can definitively say "maybe" FreeBSD works just fine on many multi-cpu machines. On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: To whom it may concern I have a computer with a dual-core processor. Will FreeBSD operate on this machine? Please answer this at my e-mail address [EMAIL PROTECTED] (mailto:[EMAIL PROTECTED]) . (short and sweet will suffice) Thank you Bill Wilson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
sendmail won't start
I modified my local freebsd.mc file to add support for spamhaus. After I compilied the sendmail.cf file, sendmail won't start. What am I doing wrong here? [EMAIL PROTECTED] mail]# m4 freebsd.mc > sendmail.cf [EMAIL PROTECTED] mail]# /etc/rc.d/sendmail start 554 5.0.0 /etc/mail/sendmail.cf: line 2: invalid argument to V line: "ERSIONID(FreeBSD: s" 451 4.0.0 /etc/mail/sendmail.cf: line 6: fileclass: cannot open 'ATURE(access_db,': No such file or directory 451 4.0.0 /etc/mail/sendmail.cf: line 7: fileclass: cannot open 'ATURE(blacklist_recipients)': No such file or directory 451 4.0.0 /etc/mail/sendmail.cf: line 8: fileclass: cannot open 'ATURE(local_lmtp)': No such file or directory 451 4.0.0 /etc/mail/sendmail.cf: line 9: fileclass: cannot open 'ATURE(mailertable,': No such file or directory 451 4.0.0 /etc/mail/sendmail.cf: line 10: fileclass: cannot open 'ATURE(virtusertable,': No such file or directory 451 4.0.0 /etc/mail/sendmail.cf: line 11: fileclass: cannot open 'ATURE(dnsbl,': No such file or directory 554 5.0.0 /etc/mail/sendmail.cf: line 25: MAILER(local): A= argument required 554 5.0.0 /etc/mail/sendmail.cf: line 26: MAILER(smtp): A= argument required 554 5.0.0 No local mailer defined 554 5.0.0 QueueDirectory (Q) option must be set You can see my freebsd.mc file at http://agreenftp.no-ip.com/crap/freebsd.mc -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: minimum requirements
On 10/9/06, free bsd <[EMAIL PROTECTED]> wrote: Thank you everyone for responding to my initial question. In hindsight I realize I worded my original inquiry inaccurately. What I am attempting to determine is how well or if ver 6.1 will work on a 4GB hard drive with a Pentium 4 - 3.06GHz cpu and 1GB ram? The machine has a 232GB hard drive but I have another 4GB drive sitting around being unused that I was thinking of adding to the machine to configure in a dual boot setup with the 4GB drive being totally allocated to FreeBSD. You certainly can do this. I used to have freebsd installed on a 4 GB drive myself (6.0 and 6.1) Keep in mind thought, that you probably won't be able to have a whole desktop environment with all the ammenities. You could, however, install the base system on the smaller drive, then mount the larger drive and install stuff on there. However, before attempting that task I am trying to determine whether or not it would be even feasible to use a 4GB drive to install v 6.1 or should I use a larger drive to install the many of FreeBSD's features? And if a larger drive how large of a drive would I need to utilize many or any of its features without limiting myself to a bare bones setup? Additionally, if the 4GB drive will work how limited would the install/capabilities/features be? If you don't need a GUI or anything like that, you could probably do lots with this drive, without touching the larger drive. I ran my 4 GB machine as a router/firewall/apache/mysql server for months. Keep in mind too, that my machine's specs were considerably below yours. It all really depends on what you want to do with the machine. If you want KDE, good luck, it's not going to happen. If you want a router or something, it'll be easy. I am not at all opposed to using a larger drive but at the present time do not have a clue as to what size drive I should use for the most flexibility regarding type of installation options. -art - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bittorrent consuming 100% cpu
I'd recommend transmission. You can get the source from http://transmission.m0k.org/. You can configure it for console use with ./configure --disable-gtk && gmake. It needs GNU make, BSD make won't work. Uses very little resources as it's written in C, so your python port won't matter. On 10/16/06, Matthew Rench <[EMAIL PROTECTED]> wrote: Hello, Due to the recent security advisor, I upgraded my python port. Foolishly, I managed to upgrade from version 2.4 to 2.5, which forced me to also upgrade my bittorrent port (from version 3.x to 4.20.2_1,1). Unfortunately, I now find that the bittorrent console app (/usr/local/bin/bittorrent-console) now consumes 100% of my CPU, according to top. I am quite sure that even 5-10 instances of the previous version did not together use this much CPU. So, I ktrace'd a running copy of bittorrent, and found the following, repeated more or less continually: 493 python 1161045605.243985 CALL poll(0x8138000,0x5,0xe) 493 python 1161045605.272699 RET poll 0 493 python 1161045605.272750 CALL gettimeofday(0x281dd788,0) 493 python 1161045605.272783 RET gettimeofday 0 493 python 1161045605.273029 CALL gettimeofday(0xbfbfec94,0) 493 python 1161045605.273097 RET gettimeofday 0 493 python 1161045605.273865 CALL gettimeofday(0xbfbfdf34,0) 493 python 1161045605.273955 RET gettimeofday 0 493 python 1161045605.274837 CALL gettimeofday(0xbfbfe014,0) 493 python 1161045605.274920 RET gettimeofday 0 493 python 1161045605.275304 CALL gettimeofday(0xbfbfdd14,0) 493 python 1161045605.275375 RET gettimeofday 0 493 python 1161045605.276452 CALL gettimeofday(0xbfbfec94,0) 493 python 1161045605.276543 RET gettimeofday 0 493 python 1161045605.276758 CALL poll(0x87ede20,0x3,0) 493 python 1161045605.276845 RET poll 0 493 python 1161045605.276909 CALL poll(0x8138000,0x4,0) 493 python 1161045605.276956 RET poll 0 493 python 1161045605.276998 CALL poll(0x8138000,0x5,0x14) 493 python 1161045605.302720 RET poll 0 Since I don't know much about python, I'm at a loss to explain this. Has anyone else had similar issues with newer versions of bittorrent? Is there a different client I should be using? mdr ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports collection issue
Is it possible to use csup with my existing cvsup files? I skimmed the man page and it looks very similar. Is there any advantage to using cvsup over csup? On 10/27/06, Roger 'Rocky' Vetterberg <[EMAIL PROTECTED]> wrote: Lane wrote: > Adrian, > > Use /usr/ports/net/cvsup-without-gui and create a cvsupfile. You can then > selectively install src-all, src-contrib, ports-all and any of the various > ports sub-trees that you need (but stick with ports-all). > > cvsup will get the proper Makefiles and whatnot for you. > > Email me if you need help setting that up. > > lane I would recommend using csup instead of cvsup. It has fewer dependencies, is very lightweight and works very well if you just want to occasionally checkout ports or src. I believe that csup is also part of the basesystem in newer releases. -- R ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports collection issue
On 10/27/06, Roger 'Rocky' Vetterberg <[EMAIL PROTECTED]> wrote: Andy Greenwood wrote: > Is it possible to use csup with my existing cvsup files? I skimmed the > man page and it looks very similar. Is there any advantage to using > cvsup over csup? I use the same files for csup as I used for cvsup. You should not have to change anything except removing the 'v' after the 'c' in 'cvsup' on the command-line. :) Csup is basically cvsup rewritten in C instead of Modula-3. While cvsup is an excellent program that certainly makes exactly what it was designed to do, it unfortunately has some dependencies that are not common on most installations. I do not know of any advantages that cvsup might have over csup, more then the fact that it is a thoroughly tested program that has performed well for several years, while csup is a relatively new program. AFAIK there has not been any reports of problem with csup though, so I would say its safe to use. Thanks for the info! Anything I can do to reduce dependancies on my underpowered frankenstein box is a good thing! -- R -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: IPFW and PF
PF, for two reasons. Firstly, because I don't have to mess with arbitrary rule numbers; I can just scroll down the page and know that rules will be executed in that order. Secondly becuase I can easily integrate bruteforceblocker. On 10/28/06, David Schulz <[EMAIL PROTECTED]> wrote: Hi all, IPFW seems to be the same IPFW that is used on MacOSX, so it seems to make sense to learn and lean on IPFW when using in a mixed Machine Environment. On the other side, many People seem to say PF is easier to manage once a setup gets complicated. As usual, both sides have their own valid points. My question though is not whether any of the two , IPFW of PF is better then the other, but which of the two do you use, and why? Thanks, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: IPFW and PF
On 10/30/06, Lowell Gilbert <[EMAIL PROTECTED]> wrote: "Andy Greenwood" <[EMAIL PROTECTED]> top-posted: > On 10/28/06, David Schulz <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> IPFW seems to be the same IPFW that is used on MacOSX, so it seems to >> make sense to learn and lean on IPFW when using in a mixed Machine >> Environment. On the other side, many People seem to say PF is easier >> to manage once a setup gets complicated. As usual, both sides have >> their own valid points. My question though is not whether any of the >> two , IPFW of PF is better then the other, but which of the two do >> you use, and why? >> > PF, for two reasons. Firstly, because I don't have to mess with > arbitrary rule numbers; I can just scroll down the page and know that > rules will be executed in that order. Secondly becuase I can easily > integrate bruteforceblocker. Wow. I can see some advantages either way, but I can't see any differences on those grounds. After all, rule numbers *aren't* required in ipfw (even the example script doesn't use them). And bruteblock works with ipfw in *very* much the same way that bruteforceblock does with pf. Sorry, that should've been Altq, not bruteforceblocker. I wasn't aware that rule numbers weren't required in IPFW. Oh well, you learn something new everyday. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /var corrupted.....
couldn't you do something like this? 1) install all your "big" ports (leafs with lots of dependancies) 2) run this to get a list of depedancy ports which should already be there, just not in /var/db/pkg # pkg_info -ar | awk '/Dependency:/ {print $2}'|sort|uniq 3) "install" these ports so that they get added to /var/db/pkg. Seems like this should work, am I missing something? On 11/2/06, Eric Schuele <[EMAIL PROTECTED]> wrote: On 11/02/2006 10:21, [EMAIL PROTECTED] wrote: > On 11/2/06, Eric Schuele <[EMAIL PROTECTED]> wrote: >> On 11/01/2006 11:05, Karol Kwiatkowski wrote: >> > On 01/11/2006 17:40, Eric Schuele wrote: >> >> Hello, >> >> >> >> [Running 6.2-PRERELEASE as of Oct 30th] >> >> >> >> My /var filesystem on my laptop died this morning. > . . . >> >> 2) If I have destroyed it what can I do at this point? I have no full >> >> backup of /var. I had nothing of any real importance on there. Some >> >> MySQL data... but I've got that. My package database comes to mind. >> >> but nothing of any personal value... just stuff to keep the OS on its >> >> feet. So... if its gone... is there anyway to create a functional >> /var >> >> filesystem that will allow me to "get back to work as usual"? Or >> is my >> >> only option a complete reinstall of everything? > . . . >> > The downside of this (option 2) is you'll loose some important >> > information about your system, /var/db/pkg comes first to my mind. >> >> With respect to the package database... >> I've seen plenty of threads from folks having lost theirs in some form >> or fashion, and the solution always seems to be "reinstall everything". >> Well, ok... sounds like a PITA, but how hard can it really be. I only >> had 30-40 "apps" installed anyway. With their deps it weighs in around >> 350 ports total. So I started to do just that. Figured I'd reinstall >> in the order I originally installed in the first place. Starting with >> Xorg. I go to the port dir and `make install`, thinking it would >> reinstall it and all its deps. No go. It does in fact reinstall Xorg, >> but none of its deps because it finds them present. Reinstalling 30-40 >> apps is one things, having to manually go in and do 350... now thats a >> PITA! > > You might be able to force mount the dirty filesystem via > mount -f > You can also try > dd if=/dev/ad0s1d of=some_dang_file_name* > And then using mdconfig to play with the resulting file. > mdconfig -t vnode -f some_dang_file_name -u 0 && \ > mount -f /dev/md0c /mnt (maybe?) > If you can get the /var/db/pkg dir off nicely, good luck. Thanks. Good ideas. I'll play with this when I have time. But after using mtree to recreate the structure in /var (off the / filesystem), things came back online pretty well. I'll most likely get things put back together and then just recreate the /var filesystem and copy everything back into it. > > *(Note that this could take a long time on a 1 or 2G /var > as it reads all of the empty blocks as well, you might want > to hand it a bs= and a count= if you know about how much > of /var was full at the time, man dd for more details. Also > note that I have had faster results using sdd from ports) > > I had a similar problem a while back and both methods > were able to read some of the data from the former /var, > however the /var/db/pkg directory was trashed and I ended > up having to fall back on the "reinstall everything" method. > My method ended up consisting of: > 1) reinstalling portupgrade > 2) reinstalling several high level programs (opera, mplayer, > gnumeric, any window managers, & so on) > 3) pkgdb -F which one at a time reinstalls everything depended > on. Make sure you have backups of any important files in > /usr/local/etc as they may get overwritten. > I'm presently doing this now. I have reinstalled most, if not all, top level ports and will be running through `pkgdb -F` tomorrow. I suspect that will take a fair amount of time. Thanks. -- Regards, Eric ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: periodic, short freezes
On 11/10/06, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, On Fri, 10 Nov 2006, Karol Kwiatkowski wrote: > Just a shot in the dark, but I haven't seen it mentioned yet: > > have you used any variables affecting kernel compilation, especially > CPUTYPE, CFLAGS, COPTFLAGS? I remember seeing some strange effects > when I messed with them too much (we've all been there, haven't we? ;) Thank you for this hint. I have checked the conf file. I do not have any of the options you mention. The only reference to CPU that I have is: cpu I686_CPU the CPUTYPE, CFLAGS and COPTFLAGS are make.conf variables, not kernel config options. But that's probably too obvious, isn't it? BTW - I put your domain on a whitelist as your email to me was rejected by my MTA (sorry about that). Thank you again for your help! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Blocking SSH Brute-Force Attacks: What Am I Doing Wrong?
On 11/13/06, Gerard Seibert <[EMAIL PROTECTED]> wrote: On Monday November 13, 2006 at 04:10:58 (AM) Frank Staals wrote: > I had the same 'problem'. As said it's not realy a problem since FreeBSD > will hold just fine if you don't have any rather stupid user + pass > combinations. ( test test or something like that ) Allthough I thought > it was annoying that my intire log was clouded with those brute force > attacks so I just set sshd to listen at an other port then 22. Maybe > that's a acceptable solusion for you ? You can change the ssd port in > /etc/ssh/sshd_config Security through obscurity is a bad idea. Rather, use SSH key based authentication exclusively. Turn off all of the password stuff in sshd_config. Laugh at the poor fools trying to break in. I second this notion. I had bruteforceblocker running and recently switched to key based auth only. The good news is no one is breaking in. the bad news is that my server is remote and difficult to get physical access to and the only key I uploaded initially was my work PC. Tried to get in from home over the weekend and found that I had locked myself out! doh! Just make sure that you have at least one PC you can get to from anywhere which has a key to get into your server. -- Gerard Mail from '@gmail' is rejected and/or discarded here. Don't waste your time! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: changing swap size
On 11/13/06, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, Following the advice about periodic freezes, I am going to add some RAM to my system. However, currently my swap size is 512MB. If I increase RAM to, say, 1GB, would I need to change the swap size to 2GB? If so, is it a safe process (I assume this can be done using FIPS)? Would I need to boot first in single-user mode? As has already been said, you don't really need to change your swap size unless you're going to be using all of your physical memory and need the additional space. Since it doesn't sound like you're going to be putting any more load on the server, it's unnecessary. However, if you want to do it, you could, without going to single-user mode: 1) create an empty file somewhere. This will make a 1 MB file, adjust bs and count as you need to. # dd if=/dev/zero of=/path/to/some.file bs=1k count=1024 2) create a file based device with mdconfig like this. # mdconfig -a -t vnode -f /path/to/some.file 3) swapon your shiny new md device. Use the md device that was given as output from the above command. # swapon /dev/md0 4) verify that your device is now working as a swap device with # swapinfo -h 5) now you can swapoff your main swap, change it as you need, and swapon it back # swapoff /dev/ad0s1b # swapon /dev/ad0s1b 6) now that you new, improved swap is working, you can swapoff your temporary swap, remove the md device, delete the file, and verify that your swap is right # swapoff /dev/md0 # mdconfig -d -u md0 # rm /path/to/some.file # swapinfo -h Any other thoughts? BTW - is there any easy way to make sure how much RAM is currently installed other than looking into the hardware? Top: Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free Which would seem to suggest I have 345 MB RAM. But from what I recall this machine uses 320 MB RAM. Thanks! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
uhci.ko keeps showing up
I've commented out device uhci in my kernel config, but I keep getting uhci.ko loaded on boot. I'm not using usb at all. I understand that I should be able to disable usb in my bios, but it's difficult to get to, as the server is remote. Is there anything I can do to prevent the uhci.ko from being loaded? -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: solutions for web hosting server
On 11/16/06, Dan Catana <[EMAIL PROTECTED]> wrote: Hello to all, I have a question about what software is best for a good web hosting server on freeBSD, for one site hosting and for multiple site. The server I like to be secure. Programs I think is best for a web hosting are: - Apache 2 - MySQL 5 - PHP 5 - awstat - ftp server ... I don't really know what to install, proftpd it's good ? - iptables -- for firewall There are of course, lots of options, but as for your firewall, AFAIK you can't use iptables. It's a Linux thing. Look into pf (my favorite) ipf and ipfw. they are the main choices for firewalls on FreeBSD. If anybody have experience and have a suggestions or a simple documentation only for this I like to share it. PS: I work in most of my time with gentoo, I'm new in the freeBSD world. Thank you very much and have a nice day ! -- Dan, Catana Network Engineer @ Server Department RCS & RDS - Bucharest Branch Tel. +4031.400.4440, Fax. +4031.400.4441 http://www.rcs-rds.ro Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such a case, you should destroy this message and kindly notify the sender by reply e-mail. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Password Security
I've used geli to encrypt my swap partition following the instructions in the handbook and it went quite well. If you really need to secure the data on the machine, mark the terminal as insecure and encrypt all the disks, including swap. Keep in mind though, that no system is completely secure. It may be secure enough, but there is *always* a way in for the determined individual. On 11/22/06, Jeff Hinrichs - DM&T <[EMAIL PROTECTED]> wrote: Although I haven't used either, gbde and geli are possible methods. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: looking for an OS and wanting to know if this is the one.
Bob Middaugh wrote: From: Brooks Lackey <[EMAIL PROTECTED]> Okay i have a Dell Inspiron 9300 with centrino mobil technology at 1.86GHZ, 512MB of memory and a 60Gig HDD. Basically I need to know which of the OS from freebsd will be the best for me to use? Can i use Yahoo Messanger, Itunes, & AOL Messanger. I am just looking around as i am now tired of Windows. I dont know everything about OS but i like to learn new things and if there is something better out there i def. would like to use it. Site's with laptops and their compatiblity with FreeBSD: http://www.soe.ucsc.edu/~dkulp/fbsd/laptop.html http://laptop.bsdgroup.de/freebsd/ http://www.zapatec.com/freebsd/laptop/ If you go here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html You get a list of mirror sites to download from. like this: ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.2 If you have a decent internet connection, cable or better, you can download just the bootonly.iso and burn that to CD. You have to burn it as an .iso file so your CD is bootable. If you go this route, most of your install will be over the net. You'll have the option to pick your source, ie: CD, FTP, etc... during the install. If you download all the .iso's, then you can pick CD during install and you should be good to go. This is invaluable for you to get started: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html There's even a section on laptops: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/laptop/index.html Read the relevant sections on installing, etc... FreeBSD is not a GUI desktop, you'll need to install X-Server for that and then pick a window manager/desktop like Gnome, KDE, xfce etc... I'm pretty sure there are alternatives to AIM and Yahoo Messenger, but I don't do that so I dunno for sure. iTunes? I have no idea. try net-im/gaim from ports If you want a "live" CD that you can boot from and it will come up complete with desktop, etc... to get used to the feel of FreeBSD, try this: http://www.freesbie.org/. Bob ___ 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: fusefs-sshfs compilation error
Boris Samorodov wrote: On Fri, 17 Aug 2007 06:26:15 -0400 Dave wrote: I'm running 6.2 with a ports tree cvsupped and kernel sources from about half an hour ago. Do you keep base system and kernel in sync? It's always a good idea. Did you compile and install the kernel? It's not a good idea use a recent kernel sources to build modules but use an old kernel itself. I'm trying to install the sysutils/fusefs-sshfs port. During the compilation of the dependency fusefs-kmod i am getting an error that opt_global.h file can not be found and compilation stops. You didn't show the platform. The output of "uname -a" is OK. And it's always a good idea to show the error message. (BTW usually two or tree good lines are showed followed by a full error message.) Did you try to locate the file? May be at another computer? Here it is for me: - srv# locate opt_global.h /usr/obj/usr/src/sys/GENERIC/opt_global.h - For the fusefs-kmod port i did select create a global autofile setup. I just tried to compile fusefs-kmod with a global autofile setup. It succeeded at: - # uname -a FreeBSD srv.sem.ipt.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Jul 24 19:30:05 MSD 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 - Any suggestions welcome. Since the file opt_global.h is found (at my system) only at /usr/obj directory I'd quess you dodn't have kernel sources and kernel binary at sinc (i.e. didn't compile the kernel after cvsupping). HTH, WBR Just installed fine here. [EMAIL PROTECTED] fusefs-sshfs]$ uname -a FreeBSD zeus.agreenftp.no-ip.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Aug 9 17:11:53 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ZEUS i386 [EMAIL PROTECTED] fusefs-sshfs]$ pkg_info | grep fusefs fusefs-kmod-0.3.9.p1 Kernel module for fuse fusefs-libs-2.7.0_1 FUSE allows filesystem implementation in userspace fusefs-sshfs-1.8Mount remote directories over ssh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Swap size
Jerry McAllister wrote: On Fri, Aug 17, 2007 at 02:05:57AM +0200, Nicholas Wieland wrote: I was reading tuning(7), and I found that I should size my swap double the size of my physical memory. AFAIK that was true some years ago, when memory was not as cheap as now, and following that guideline I should set my swap to 2GB, which seems far too much for swap (at least to me ...). I will never need this much memory as 1GB RAM and 2GB swap. Is it still correct ? How can I resize with bsdlabel if I already used all my disk space during install ? Remember, disk sizes have shot up too. No, 2 GB is not excessive. You can get by with less, but you're not likely to be using proportionately as much disk now as you used to by going with 2X - I aim for a little over 2X. Remember that swap gets used for crash dumps and also for paging. Now, you may think that you want to keep your machine from paging and in one sense that is true. If you are so memory bound that it has to page just to run, you're going to be so slow that it seems to have froze (by today's standards). But, the system does write stuff to page space and for processes that are often called it can speed things up. So, it is not really a waste to assign that much to swap. jerry TIA, ngw -- Nicholas Wieland [EMAIL PROTECTED] ___ 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]" My understanding was that you should estimate swap size based on the sizes of the programs which might be paged out. However, when I first set up my system, I didn't know this and created 1G swap slices (one on each disk) but I am not convinced that this was the best thing to do, since my system almost never uses a noticible percentage of the swap space. right now, I've got [EMAIL PROTECTED] fusefs-sshfs]$ swapinfo Device 1K-blocks UsedAvail Capacity /dev/ad0s1b.eli 1048576 1148 1047428 0% /dev/ad1s1b.eli 1048576 1096 1047480 0% Total 2097152 2244 2094908 0% And the system is under normal load. This system has 1G of RAM. Is there any sense in having this much swap space when it's not being used? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to block 200K ip addresses?
Aminuddin wrote: Will give this a try. Since my server is a remote server that I can accessed only by ssh, what are other rules do I need to add in? I don't want to have a situation where I will lock myself out. Is it correct to say that the rules that I put in will only block those in the rules and allow all that are not in the rules? Thanks -Original Message- From: Dan Nelson [mailto:[EMAIL PROTECTED] Sent: Sunday, August 26, 2007 2:15 PM To: Aminuddin Cc: freebsd-questions@freebsd.org Subject: Re: How to block 200K ip addresses? In the last episode (Aug 26), Aminuddin said: From: Dan Nelson [mailto:[EMAIL PROTECTED] In the last episode (Aug 26), Aminuddin said: From: Dan Nelson In the last episode (Aug 26), Aminuddin said: How do you block this large range of ip addresses from different subnet? IPFW only allows 65536 rules while this will probably use up a few hundred thousands of lines. I'm also trying to add this into my proxy configuration file, ss5.conf but it doesn't allow me to add this large number. IS this the limitation of IPF or FreeBSD? How do I work around this? Even though there are 65536 rule numbers, each number can actually have any amount of rules assigned to it. What you're probably looking for, though, is ipfw's table keyword, which uses the same radix tree lookup format as the kernel's routing tables, so it scales well to large amounts of sparse addresses. man ipfw, search for "lookup tables". I intend to create a ruleset file consisting of this statement: Ruleset add 2300 skipto 2301 ip from 0.0.0.0/6 to any add 2400 skipto 2401 ip from any to 0.0.0.0/6 add 2300 skipto 2302 ip from 4.0.0.0/6 to any add 2400 skipto 2402 ip from any to 4.0.0.0/6 [...] add 2300 skipto 2363 ip from 248.0.0.0/6 to any add 2400 skipto 2463 ip from any to 248.0.0.0/6 add 2300 skipto 2364 ip from 252.0.0.0/6 to any add 2400 skipto 2464 ip from any to 252.0.0.0/6 add 2301 deny ip from 3.0.0.0/8 to any add 2401 reject ip from any to 3.0.0.0/8 add 2302 deny ip from 4.0.25.146/31 to any add 2402 reject ip from any to 4.0.25.146/31 [...] add 2302 deny ip from 4.18.37.16/28 to any add 2402 reject ip from any to 4.18.37.16/28 add 2302 deny ip from 4.18.37.128/25 to any add 2402 reject ip from any to 4.18.37.128/25 end ruleset Will the above rules block me from ssh into my remote server if the ip addresses of my local pc (dynamic ip) not within any of the above rules ip range as well as block my snmpd services? Yes; it's a little convoluted but should work. You want to drop incoming packets from the listed IP ranges, and return a "host unreachable" to internal machines sending outgoing packets to the listed IP ranges? Wouldn't it be easier to use ipfw's table feature and have something like this: add table 1 3.0.0.0/8 add table 1 4.0.25.146/31 add table 1 4.0.25.148/32 [...] add table 1 4.18.37.16/28 add table 1 4.18.37.128/25 add 2300 deny ip from table 1 to any add 2400 reject ip from any to table 1 That way you only have two ipfw rules, both of which use a single table lookup. My complete list has about 300K of lines. It takes about a few hours just to load the rules. Will it be faster to load using the table? I did a quick test myself by fetching the safepeer ip list and adding it via rules and tables. This was a quick hack, so I'm just adding the first IP in each line, not the whole netblock (I didn't want to write a range->netmask converter). On my heavily-loaded box (currently doing a buildworld and some mrtg sweeps), I'm only able to insert about 60 ipfw "deny ip from 4.0.25.146 to any"-format rules per second. By contrast: ([EMAIL PROTECTED]) /tmp># head -3 splist1.table table 1 add 0.0.0.0 table 1 add 4.0.25.146 table 1 add 4.0.26.14 ([EMAIL PROTECTED]) /tmp># wc -l splist1.table 191637 splist1.table ([EMAIL PROTECTED]) /tmp># time ipfw /tmp/splist1.table ipfw /tmp/splist1.table: U:3.30s S:1.75s E:6.74s CPU:75% Faults:0/95 I/O:0/0 Swaps:0 ([EMAIL PROTECTED]) /tmp># ipfw table 1 list | wc -l 191637 Under 7 seconds to load all 191k entries :) Please don't top-post. My understanding is that anything not blocked by these rules will be allowed, unless it is blocked somewhere else in your firewall config. An easy way to make sure you don't lock yourself out (at least permanently) is to write up a shell script that will revert your rules to your current ruleset and enter it as a cron job set to be run every 5 minutes or so. That way, even if you do lock yourself out, it'll only be a few minutes. If it works and you're not locked out, remove the cron job. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Important Message...
Bill Moran wrote: In response to Duane Hill <[EMAIL PROTECTED]>: On Thu, 30 Aug 2007 at 11:24 -0400, [EMAIL PROTECTED] confabulated: I must reply to about 25 of these per week... but I never hear anything back. Stop responding to them. No! You really need to contact them to help them launder your money! It's all on the level, they'd never kidnap you or steal anything from you or anything like that. http://www.thescambaiter.com Fun fun stuff. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ports collection background-fetch
[EMAIL PROTECTED] wrote: Bahman M. wrote: > [EMAIL PROTECTED] wrote: >> Is it possible to do automatic fetching of source files in the >> background while other parts are being compiled? > > > Just login on multiple consoles or use multiple x terminals (if running > X) and on each one run 'make' for the port you want to compile. The > port(s) will be fetched and compiled simultaneously. Then all you need > to do is to run 'make install' for each port. > > Note: I'm not sure but I think it's not a good practice to issue more > than one 'make install' at a time. > > Bahman > Mel wrote: > On Wednesday 05 September 2007 18:46:39 [EMAIL PROTECTED] wrote: >> Is it possible to do automatic fetching of source files in the background >> while other parts are being compiled? > > Not automatically, but if you know which ports need to be done next, nothing > stops you from doing: > cd /usr/ports/category/port && make fetch > on a different terminal. > OK... If you know the full list of leaf ports you want installed, you could do something like this for each port, which should fetch and allow you to config all your ports. You could run this on a seperate terminal for each port. # cd /usr/ports/category/port && make config-recursive fetch-recursive Downloading should never interference with compiling (other than faster consumption of disk space :) ), so this is an improvement that can/should be made. Send the recommendation to the commiters? ___ 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: Onpening and Closing ports
On 2/13/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, Peter N. M. Hansteen wrote: > You can head them off rather easily with a short PF rule set, see > eg http://home.nuug.no/~peter/pf/en/bruteforce.html. > > They can actually be fun to watch :) It was funny for me because I set the max con rule to 10 and then logged in 10 times to see if that would work. Of course that did (silly me!) and as a result I blocked myself the access to the machine. I logged in from another IP and commented out the pf.conf file entries for the bruteforce but wonder how to empty the table (so that it does not contain my ip) and enable the bruteforce defence again. man pfctl. Specifically the -T switch. Thank you very much! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Poll: What's the best audio player
On 2/13/07, Chris <[EMAIL PROTECTED]> wrote: What is the best audio (MP3/OGG/Etc) to use under Gnome? I've always liked Pink Floyd, Mark Knopfler, and am currently listening to some Journey. Format isn't so important as long as the quality is good. ;-) As for audio players, I've always used xmms and have never seen any reason to use another. -- Best regards, Chris Nothing is ever accomplished by a reasonable man. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: GMail [and other free email] and these lists?
On 2/14/07, Christian Walther <[EMAIL PROTECTED]> wrote: On 14/02/07, Andrew Pantyukhin <[EMAIL PROTECTED]> wrote: > On 2/14/07, Jeff Rollin <[EMAIL PROTECTED]> wrote: > > I haven't yet found the perfect email service/client, > > though. Maybe I should post here when I do! > > A personal dedicated box with a dozen of webmail clients > set up, accessible via IMAPv4 + mutt or whatever when you > are tired of web?.. Been there, done that I'd say... But it's a pain to do system administration all the day. Years ago this was fun, but nowadays you have to waste your time with staying up to date with firewall configurations, bugs and their exploits. New ways for spammers to get their unwanted mails into my inbox so I need to install new products, applying patches... I'm a (Solaris) Sysadmin responsible for several hundred boxes, so when I come home i want to have some fun with my private machines. "Fighting another round in the war for security in the Internet" isn't fun for me. Yes, I know, in this case I have to trust that the companies i sign up with do their job, but I hope that they have departments that dedicate their time to their tasks. I consider gmail to be one of the best free mail providers on this planet. I get more then I paid for. That is to say, I can store nearly 3GB of data on their servers, leaving enough room for even the biggest mails - and a nice mailing list archive. :-D I agree completely.I rolled a script that emails my bzipped log files to gmail too, so I can rotate them out sooner and save that much more space on my ancient PII. Most important is that they don't append commercials to sent mail. And the ads displayed while in the inbox aren't that noticable. I had accounts with mail providers such as gmx.net, yahoo, web.de (a german provider who has won over 40 prices for his freemail service -- don't ask me why). I've seen freemail web sites that were crowded with ads, or account being limited to 500 mails in total. Ridiculus limits for attachment sizes. The list goes on and on. What I really like with google is the label-thing. I don't like mails being sorted in folders, so it suits me perfectly. On the other side it's what google can do with my data that makes me nervous. So nothing is perfect, but for me gmail is the service that comes closest to it. Regards Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
weird routing problem
My network looks like this: +--+ +--+ +-+ +--+ | Internet | <-> | Tiny | <-> | linksys | <-> | Behemoth | +--+ +--+ +-+ +--+ \ (WiFi) \ +-+ | various | +-+ Tiny is my firewall, and it forwards all ssh and http traffic to Behemoth. I also forward port 3389 to one of the clients on the wireless network. I can get into the remote desktop on my machine running XP and ssh to behemoth from there, but can't from the outside. Once I am logged into Behemoth, I can't ping anything on the outside. If I try to ping my default gateway, 192.168.2.1, I get "Ping: Sendto: Host is down" If I try to ping anything else, I get "Ping: Sendto: No route to host" [EMAIL PROTECTED] ~]$ ifconfig dc0: flags=8843 mtu 1500 options=8 inet 192.168.2.10 netmask 0xff00 broadcast 192.168.2.255 ether 00:0c:41:e2:ae:75 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=108810 mtu 1500 pflog0: flags=0<> mtu 33208 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff00 [EMAIL PROTECTED] ~]$ netstat -rn Routing tables Ineternet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.2.1UGS 0 447dc0 127.0.0.1 127.0.0.1 UH 0 604lo0 192.168.2 link#1 UC 00dc0 192.168.2.1link#1 UHLW22dc0 192.168.2.10 00:0c:41:e2:ae:75 UHLW1 10lo0 168.168.2.100 00:12:17:6a:32:7e UHLW1 2239dc0623 [EMAIL PROTECTED] ~]$ ping google.com ping: cannot resolve google.com: Host name lookup failure [EMAIL PROTECTED] ~]$ ping 64.233.167.99 PING 64.233.167.99 (64.233.167.99): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C --- 64.233.167.99 ping statistics --- 2 packets transmitted, 0 packets recieved, 100% packet loss The weird thing is that I'm logged into this box over ssh. I shouldn't be able to connect to the box if there's something wrong with the routing, correct? I have already tried setting the mtu to 1400 with no result and rebooting, also with no result, but I'm really not sure where to go from here. Any help on this would be much appreciated. I've attached my pf.conf, but it hasn't changed in a few weeks and this just started happening a couple days ago. It coincided with me adding my new Wii to the wireless network, but I can't see how that could've messed up the routing on Behemoth. -- -- I'm nerdy in the extreme and whiter than sour cream # Macro definitions ext_if = "dc0" # replace with actual external interface name i.e., dc0 int_if = "dc1" # replace with actual internal interface name i.e., dc1 local_net = "192.168.0.0/16"# IP addresses used internally table persist file "/var/db/ssh-bruteforce" # Table of IP addresses blocked by bruteforce set skip on lo0 scrub all # Scrub Everything altq on $ext_if bandwidth 250Kb priq queue { tcp_ack, dns, ssh_fast, lan, http, ssh_bulk, torrent } # outgoing queues for prioritzation queue tcp_ack priority 7 priq # Queue for Tcp ack packets - low volume, high speed queue dns priority 6 priq # queue for dns queries and responses queue ssh_fast priority 4 priq # interactive ssh traffic queue lan priority 3 priq(default)# queue for lan clients queue http priority 2 priq # queue for http traffic queue ssh_bulk priority 1 priq # Queue for bulk (sftp, scp) ssh traffic queue torrent priority 0 qlimit 100 # The torrent queue nat on $ext_if from $local_net -> ($ext_if) # nat localnet's packets to the firewall's external interface rdr on $ext_if proto tcp from any to any port { 22, 80 } -> 192.168.2.10 rdr on $int_if proto tcp from $local_net to ($int_if) port 22 -> 192.168.1.1 rdr on $int_if proto tcp from any to ($ext_if) port { 80, 3150, 49160:49300 } -> 192.168.2.10 rdr on $ext_if proto tcp from any to any port { 32459, 4662 } -> 192.168.2.100 rdr on $ext_if proto udp from any to any port 4672 -> 192.168.2.100 rdr on $ext_if proto { tcp, udp } from any to any port 3389 -> 192.168.2.100 block log all # Default block rule block in log quick proto tcp from to any port { 22, 80 } # Antispoof rules antispoof for $ext_if # General Rules pass in log quick on $ext_if inet proto tcp from any to any port 22 \ flags S/SA keep state queue (ssh_bulk, ssh_fast) # pass in ssh logins pass in log quick on $ext_if inet proto tcp from any to any port { 80, 3150 } \ flags S/SA keep state queue http # pass i
Re: How to retrieve installed version ?
On 3/29/07, Bruno Costacurta <[EMAIL PROTECTED]> wrote: Hello, how to retrieve installed FreeBSD version ? $ uname see man uname for details. Thanks. -Bruno ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
send error with perl and unix domain sockets
I'm working on getting a script to work (see below). It is a perl daemon associated with a bittorent client that I am helping develop. The daemon uses unix domain sockets to commincate with the php pages. However, anytime a message is sent via php, the script dies with send: Cannot determine peer address at /usr/local/www/root/tf-b4rt/trunk/html/bin/fluxd/fluxd.pl line 1256 I did some reasearch and found a similar problem with OpenBSD's perl http://www.nntp.perl.org/group/perl.perl5.porters/2007/02/msg121151.html and tried to apply that fix to my own Socket.pm's. I modified these files [EMAIL PROTECTED] p5-IO]$ locate Socket.pm /usr/home/andy/.cpan/build/IO-1.2301/IO/Socket.pm /usr/home/andy/.cpan/build/IO-1.2301/blib/lib/IO/Socket.pm /usr/local/lib/perl5/5.8.8/mach/IO/Socket.pm /usr/local/lib/perl5/5.8.8/mach/Socket.pm and re-started my process, but no effect. the bug report above suggests that this was a problem for OpenBSD due to differences in struct sockaddr_un. Could that be a problem here as well? the php code which communicates with the socket is below -begin php-- /** * send command * * @param $command * @param $read does this command return something ? * @return string with retval or null if error */ function instance_sendCommand($command, $read = 0) { if ($this->state == FLUXD_STATE_RUNNING) { // create socket $socket = -1; $socket = @socket_create(AF_UNIX, SOCK_STREAM, 0); if ($socket < 0) { array_push($this->messages , "socket_create() failed: reason: "[EMAIL PROTECTED]($socket)); $this->state = FLUXD_STATE_ERROR; return null; } //timeout after n seconds @socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => $this->_socketTimeout, 'usec' => 0)); // connect $result = -1; $result = @socket_connect($socket, $this->_pathSocket); if ($result < 0) { array_push($this->messages , "socket_connect() failed: reason: "[EMAIL PROTECTED]($result)); $this->state = FLUXD_STATE_ERROR; return null; } // write command @socket_write($socket, $command."\n"); // read retval $return = ""; if ($read != 0) { do { // read data $data = @socket_read($socket, 4096, PHP_BINARY_READ); $return .= $data; } while (isset($data) && ($data != "")); } // close socket @socket_close($socket); // return return $return; } else { // fluxd not running return null; } } -end php--- and the perl daemon's socket code is below --begin perl-- sub checkConnections { # Get the readable handles. timeout is 0, only process stuff that can be # read NOW. my $return = ""; my @ready = $select->can_read(0); foreach my $socket (@ready) { if ($socket == $server) { my $new = $socket->accept(); $select->add($new); } else { my $buf = ""; my $char = getc($socket); while ((defined($char)) && ($char ne "\n")) { $buf .= $char; $char = getc($socket); } $return = processRequest($buf); $socket->send($return); $select->remove($socket); close($socket); } } } -end perl-- I can provide the full text of the appropriate files on request or you can view them at http://svn.berlios.de/wsvn/tf-b4rt/trunk/?rev=0&sc=0 perl-5.8.8 apache-2.2.4_2 php5-5.2.1_3 php5-gd-5.2.1_3 php5-pcre-5.2.1_5 php5-pgsql-5.2.1_3 php5-posix-5.2.1_3 php5-session-5.2.1_3 php5-simplexml-5.2.1_3 php5-sockets-5.2.1_3 php5-spl-5.2.1_3 php5-sqlite-5.2.1_3 FreeBSD zeus.agreenftp.no-ip.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Mar 31 23:12:40 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ZEUS i386 -- -- I'm nerdy in the extreme and whiter than sour cream ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to create torrent files?
I haven't used that port in a while, but I'm pretty sure it includes a maketorrent-console.py script. I'm not anywhere I can check to ensure that though. On 12/18/06, Erik Norgaard <[EMAIL PROTECTED]> wrote: Hi: Which tools are available for creating torrent files? I am looking for a commandline tool or a perl module that would permit creating a torrent file like this $ maketorrent -t -o .torrent path But it seems only py-torrent provides a tool and it's GUI based. Thanks, Erik -- Ph: +34.666334818 web: http://www.locolomo.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: My recent Epiphany about operating systems
On 12/20/06, Terabyte Pete <[EMAIL PROTECTED]> wrote: 7:04 AM, Wednesday, December 20, 2006 In Winblow$, the release & bundling of IE was purposely as crippleware, virus, & bug delivery system 2 trap people into constantly 'upgrading'. A simple comparisson of Windows 95 side-by-side with the final Windows ME & various IE 'upgrades' illustrates how the supposedly 'new & improved' stuff is actually about 1/5 the speed, & about 10X less reliable. The Ephiphany: A similar crippleware model exists in UNIX & Linux, BSD, Dragonfly, IRIX, Open VMS, etc! But what is the method of crippling? The USER INTERFACE is purposely difficult to use, requiring vast tracts of arcane code & 'switches' the user is 'supposed' to be able to remember. The OS Kernels are designed to require constant patching or nothing runs properly when 'upgrading' softwares. What is the result? Well, the OS & applications may be free, but the system administrator type costs are not. I have concluded, in a flash of insight, that all of the non-windows OSes, save perhaps TRON (which is a Jap OS that is actually designed to simply WORK - runs most cell phones, anti-lock brakes, etc.) - the function of most free OSes & softwares is to create a market for engineering services to create a functional environment with them. While even though WInblow$ is crippled & slowed down artificially like molasses in a 'stock' install, at least it FUNCTIONS. Free operating systems never do. It's hell even trying to convigure the hardware, on which Windows everything in that respect is done automatically. If a bunch of morons at Micro$hit can make drivers automatically load, & systems automatically configure, damn sure a bunch of tweaky inventors at 'god-knows-what-or-another' linux could do it to. Truth is, they simply have no interest in making things configure easily. It would put the 'sysadmins' who wrote the programs out of a job! When I approached Dragonfly & BSD about simply offering a menu-driven interface, like WIndow$, so things could be easily configured & installed, those who didn't simply ignore me made a point of laughing at me & mocking me. They are simply not even interested in making it easy. They WANT it 2 B hard 2 use. It is done BY DESIGN! Sick - but true. Rather like how doctors in America inject people over & over with mercury in vaccines, so they get 'disseasses' like 'autism' & 'altzheimers' (just different names for mercury poisoning). I have no desire to get involved in a flame war, but are you sure on this one? http://www.cdc.gov/od/science/iso/concerns/thimerosal.htm Free operating systems, on average, are written specificaly to work well once configured, but the configuration to be a complete nightmare so as to create a need for 'system administrator' employees. They write it 2 B a pain in the ass, 2 assure their own job security. Just like M$ writes Windoze 2 B full of bugs, so they can keep selling the same crap over & over "oh but we fixed it this time" - yeah right :)) I am still using the shell from Windows95. It's the only stable, AND fast shell that Microsoft has released. Even their own services like MSN & Hotmail don't use their own shit. THey use BSD! & I am sure, over at Hurricane Internet (their subcontractor), those BSD guys are happy to spend their days 'configuring' things for a pretty penny! HAHAHAHA - the 'unix' geeks R laughing all the way 2 the bank! They're not ripping people off via software per se, but 'services' What the world needs is a single OS that will run all softwares. Short of that, at least an OS that will run all versions of Windows software. The very first pre-IE Windows95 shell comes very close - few bugs in it, but relatively minor. It is the best product Microsoft has ever produced. We should get together & release a 'toolkit' to upgrade the kernel from this early 1995 release, so it will be compatable with things like 'get special folders path' and '.net' & other bullshit that 3rd programmers have written into their code 2 look 4 in the shell. Basically, take those few elements REQUIRED from the last shells, & make a way 2 import only those NON-crippling functions into the first shell. 'Get special folders path' is a particularly common error, as incompatability goes. About 1 in 5 new programs expect that 'function call' or whatever. It is easy enough 2 switch shells while installing or using those programs, but it incapacitates the functionality of the other kernel things - like being able 2 move vast tracts of files around without the whole OS locking up LOL Oh notice also how if you take Windows98 & upgrade it to the 'latest greatest' IE, it will lock up the computer even MORE often LOL!!! I mean, just trying 2 move some files around- & everything freezes! So people are saying 'get me XP NOW!' - haha - if they just put the 95 shell on there, the fucking machines SCREAM! :) OOOH 30,000 files - can I have some more? Oh nice, 55,000 folders - yum! Yes th
Re: How do I install ports hands-off?
On 1/4/07, Atom Powers <[EMAIL PROTECTED]> wrote: For most ports I can pkg_add them to get them installed without prompts. But for some ports I special make configurations that require me to build the port from source. Usually I use portinstall for this, but this causes problems if the make process requires additional input. How can I build a port using the default options, except those defined in make.conf, without requiring me to confirm the option for each port? If you're refering to the port dependancy configs, you can try # make config-recursive which will present you with all the config options for all the dependancies, then you can # make && make install -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Permissions Question
I've never used them, but wasn't ACL written just for this scenario? On 1/8/07, Kirk Strauser <[EMAIL PROTECTED]> wrote: On Monday 08 January 2007 12:07 pm, Jay Chandler wrote: > I've got a user who needs to be able to view (read only) the aliases > file. We'll grant him root access a few weeks after the eventual > heat-death of the universe, so how would you all go about doing this? You could configure sudo to give him access to run that one command as root. -- Kirk Strauser -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: filesystem size
On 1/9/07, Simon Gao <[EMAIL PROTECTED]> wrote: Hi, What's largest filesystem size supported by FreeBSD 5.2.1 i386? You might want to read this: http://www.freebsd.org/projects/bigdisk/index.html Simon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How dangerous a Standard User could be to a FreeBSD box?
On 1/12/07, Chuck Swiger <[EMAIL PROTECTED]> wrote: On Jan 12, 2007, at 11:48 AM, Lamont Granquist wrote: >> That cat is rather fortunate the server didn't kill the cat at the >> same time. > > I haven't lived with a cat in awhile, but don't they tend to > 'spray' rather than 'stream' so that a direct line of current would > not be established from the PSU to the cat? male (non-neutered) cats spray to mark territory, but as for normal urination, it would be a stream. Um. While I grew up with a pair of cats, I must admit that I've never paid sufficiently close attention to know one way or the other. Nah, you don't have to watch them or anything. Just scoop the litterbox. I wouldn't like my cat to test either spraying or streaming a live PSU unit... :-) -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd realtime network usage limiter?
On 1/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: That is, I have a router connecting to the internet through PPP. There are 4 computers (and a DSL modem) connected to the router. The router does not limit or share internet speed evenly, so if I download via TCP at full speed, others complain about slow loading web pages. My comp has a FreeBSD OS. How can I limit my upload and download speed to, say, 0.333 of the speed permitted by my provider? Also, if I had a FreeBSD router, how could I share speed evenly? You can pretty easily set up a FBSD router to shpe bandwidth like this. I have done exactly that using the PF firewall with ALTQ. Unfortunately, ALTQ is not availible as a loadable module, so if you want to use it, you'll have to recompile the kernel with support enabled. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html http://www.openbsd.org/faq/pf/ that should get you started BTW: Is it true that are some types of traffic that need higher priority, such as games using UDP, so that data does not lag? Absolutely it is true. I don't run any gaming through my firewall, but one great example is TCP ACK packets. If you are on an asymmetrical connection (up/down bandwith aren't equal) you should prioritize outgoing TCP ACK packets to the highest level, since this will improve download performance. You might want to look at ports/security/pfw if you're not familiar with pf syntax, and it can make building a ruleset a lot easier, at least for the first time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Messy ports, how to clean them up?
On 1/26/07, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > Well, > I use portsnap and portupgrade on a regular basis and therefore I could > watch very often the rebuild of ports - a nice and neat thing of FreeBSD. > > Bit sometimes I or someone else installs ports an they install > dependencies and then he/she or I decide to kill/delete a specific port, > but very often dependencies remains on the system and doing this > deletion a couple of times will end in some 'zombie' remains of ports. > > Is there a way cleaning up automatically a messy ports collection? Like > portupgrade does, only the opposite way, not rebuilding/reinstalling a > rebuilt/upgraded port, looking for stale ports never used anymore by > another port? > > Thanks a lot in advance, > Oliver > > P.S. I'm not very familiar with the complexicity of the pkgtoolset and > ports collection, sorry. I prefer portmanager -slid. I've always used pkg_rmleaves... pops up a nice little dialog listing all the ports that aren't required by any other ports... check the ones you want to get rid of... on my non-serious boxes I tend to check anything I don't recognize and/or things I know I want gone. Then it repeats the process with any new ports that are no longer required due to anything you just removed. Seems to work pretty well for me... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
free memory
On 2/9/07, Яцко Эллад Геннадьевич (ws44) <[EMAIL PROTECTED]> wrote: Hello! Are there some utils to release Inact memory, which can be viewed by top-utility? In time all Free Memory flows to Inact Memory, and we have real problem with performance of our router. After I reboot server, problem disapears for one or two days. I REALLY need any way to clean up router's memory and move it from Inact to Free state without rebooting.. You might want to read this. Basically, that is what it's supposed to do. I suspect that you have some other problem. http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM And also this. http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/x114.html Kind regards, with hope, Ellad Yatsko. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Memory >3.5GB not used?
On 4/24/07, Don O'Neil <[EMAIL PROTECTED]> wrote: Thanks for all who pointed out the obvious PAE option... When I went to rebuild the kernel I got this message: +++ cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -DHAVE_KERNEL_OPTION_HEADERS -include /usr/src/sys/i386/compile/KERMIT/opt_global.h -I. -I@ -I@/contrib/altq -I/usr/include -finline-limit=8000 -fno-common -g -I/usr/src/sys/i386/compile/KERMIT -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/aha/../../dev/aha/aha.c /usr/src/sys/modules/aha/../../dev/aha/aha.c: In function `ahaaction': /usr/src/sys/modules/aha/../../dev/aha/aha.c:848: warning: cast from pointer to integer of different size *** Error code 1 Stop in /usr/src/sys/modules/aha. *** Error code 1 Stop in /usr/src/sys/modules. *** Error code 1 Stop in /usr/src/sys/i386/compile/KERMIT. +++ Why would it be complaining about the aha module when I have it commented out as a device? commenting it from the kernel config will only prevent it from being built staticlly in the kernel. If you want to prevent the module from being built, look at the MODULES_OVERRIDE or WITHOUT_MODULES options to make.conf. man 5 make.conf for more details. -Original Message- From: Bill Moran [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 11:05 AM To: Don O'Neil Cc: freebsd-questions@freebsd.org Subject: Re: Memory >3.5GB not used? In response to "Don O'Neil" <[EMAIL PROTECTED]>: > I just built a new server with an Athlon 64 x2, 4GB Ram and a > Gigabyte/Nvidia motherboard. > > When I boot the system up it says on the console that 532888K will be > ignored. > > Of course it isn't put in any of the log files. Dmesg shows this: > > real memory = 3724476416 (3551 MB) > avail memory = 3649908736 (3480 MB) > > Any reason the extra 1/2 GB isn't showing up or usable? Is there > something I need to specify in the kernel to get to the other 1/2 GB? > What if I want to install more than 4GB? This mobo supports up to 16 > GB... Do I need to go to the AMD64 platform to get >4GB? > > I'm running FreeBSD 6.1 i386 SMP kernel. http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#PAE -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Tagging email subject line with something like [fbsd-questions]
On 4/25/07, Alex Zbyslaw <[EMAIL PROTECTED]> wrote: Amarendra Godbole wrote: > I subscribe to many fbsd lists through gmail, and am not able to > visually detect which email was sent to which fbsd list. Is it > possible to add a tag in the subject line, something like, [fbsd-q], > or [fbsd-questions], or similar so that emails can be visually > classified? > > Given that these lists have been around for a long time, was there a > discussion on this? If the idea of tagging was dropped, can someone > inform me about the rationale behind this decision? Thanks in advance! All messages are already tagged with a List-ID e.g. List-Id: User questions Can gmail not filter on that? it's not documented, but you can filter like this listid:freebsd-questions.freebsd.org under the "has the words" section of the filter creation page. Visual tagging of subject lines is a poor solution. Either you tag at the front "[fbsd-questions] Really long subject line that gets truncated even earlier thanks to the tag" or at the end "Really long subject line where the tag disappears in a haze of ... [fbsd-questions]" Neither of which is satisfactory, and for most people with sensible email environments that can filter of Header lines, an unnecessary inconvenience. Not to mention the question of how on earth you co-ordinate unique tags across mailing lists. Since the List-ID isn't constrained by length it can contain the email address of the list, which is already unique. If you can't filter on the List-ID then filter on To and Cc lines which contain [EMAIL PROTECTED] or [EMAIL PROTECTED] Not as good, but it would do. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: send error with perl and unix domain sockets
Sent this a while back and never got a response. Any ideas would be very appreciated! Thanks! I'm working on getting a script to work (see below). It is a perl daemon associated with a bittorent client that I am helping develop. The daemon uses unix domain sockets to commincate with the php pages. However, anytime a message is sent via php, the script dies with send: Cannot determine peer address at /usr/local/www/root/tf-b4rt/trunk/html/bin/fluxd/fluxd.pl line 1256 I did some reasearch and found a similar problem with OpenBSD's perl http://www.nntp.perl.org/group/perl.perl5.porters/2007/02/msg121151.html and tried to apply that fix to my own Socket.pm's. I modified these files [EMAIL PROTECTED] p5-IO]$ locate Socket.pm /usr/home/andy/.cpan/build/IO-1.2301/IO/Socket.pm /usr/home/andy/.cpan/build/IO-1.2301/blib/lib/IO/Socket.pm /usr/local/lib/perl5/5.8.8/mach/IO/Socket.pm /usr/local/lib/perl5/5.8.8/mach/Socket.pm and re-started my process, but no effect. the bug report above suggests that this was a problem for OpenBSD due to differences in struct sockaddr_un. Could that be a problem here as well? the php code which communicates with the socket is below -begin php-- /** * send command * * @param $command * @param $read does this command return something ? * @return string with retval or null if error */ function instance_sendCommand($command, $read = 0) { if ($this->state == FLUXD_STATE_RUNNING) { // create socket $socket = -1; $socket = @socket_create(AF_UNIX, SOCK_STREAM, 0); if ($socket < 0) { array_push($this->messages , "socket_create() failed: reason: "[EMAIL PROTECTED]($socket)); $this->state = FLUXD_STATE_ERROR; return null; } //timeout after n seconds @socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => $this->_socketTimeout, 'usec' => 0)); // connect $result = -1; $result = @socket_connect($socket, $this->_pathSocket); if ($result < 0) { array_push($this->messages , "socket_connect() failed: reason: "[EMAIL PROTECTED]($result)); $this->state = FLUXD_STATE_ERROR; return null; } // write command @socket_write($socket, $command."\n"); // read retval $return = ""; if ($read != 0) { do { // read data $data = @socket_read($socket, 4096, PHP_BINARY_READ); $return .= $data; } while (isset($data) && ($data != "")); } // close socket @socket_close($socket); // return return $return; } else { // fluxd not running return null; } } -end php--- and the perl daemon's socket code is below --begin perl-- sub checkConnections { # Get the readable handles. timeout is 0, only process stuff that can be # read NOW. my $return = ""; my @ready = $select->can_read(0); foreach my $socket (@ready) { if ($socket == $server) { my $new = $socket->accept(); $select->add($new); } else { my $buf = ""; my $char = getc($socket); while ((defined($char)) && ($char ne "\n")) { $buf .= $char; $char = getc($socket); } $return = processRequest($buf); $socket->send($return); $select->remove($socket); close($socket); } } } -end perl-- I can provide the full text of the appropriate files on request or you can view them at http://svn.berlios.de/wsvn/tf-b4rt/trunk/?rev=0&sc=0 perl-5.8.8 apache-2.2.4_2 php5-5.2.1_3 php5-gd-5.2.1_3 php5-pcre-5.2.1_5 php5-pgsql-5.2.1_3 php5-posix-5.2.1_3 php5-session-5.2.1_3 php5-simplexml-5.2.1_3 php5-sockets-5.2.1_3 php5-spl-5.2.1_3 php5-sqlite-5.2.1_3 FreeBSD zeus.agreenftp.no-ip.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Mar 31 23:12:40 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ZEUS i386 -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to know total number of bytes of a directory
DSA - JCR wrote: Hi all I would like to know the total number of bytes of a directory and its related subdirs, occupied by the files inside it. I haven't found any command for knowning it. # du -s /etc 17008 /etc You need read privs to all the subdirectories, otherwise you'll get permission errors and it'll skip those. Note that this displays usage in 512-byte blocks, not bytes, but you should be able to figure it out from there. Thanks in advance!! Sincerely Juan Coruña Desarrollo de Software Atlantico ___ 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: How to know total number of bytes of a directory
DAve wrote: Andy Greenwood wrote: DSA - JCR wrote: Hi all I would like to know the total number of bytes of a directory and its related subdirs, occupied by the files inside it. I haven't found any command for knowning it. # du -s /etc 17008 /etc You need read privs to all the subdirectories, otherwise you'll get permission errors and it'll skip those. Note that this displays usage in 512-byte blocks, not bytes, but you should be able to figure it out from there. -h provides human readable output. du -sh /etc 3.8M/etc DAve Ahh, I had forgotten about -h. I ususally use du -s * | sort -rn | head to find the biggest files/directories in a given directory, and if you use -h, you'll get stuff out of order, since 3.8M will come after 4.2K in a reversed numerical sort. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Paging Matthew Seaman
Paul Schmehl wrote: --On Friday, January 04, 2008 10:03:45 -0600 Tim Daneliuk <[EMAIL PROTECTED]> wrote: Paul Schmehl wrote: I figure if anyone knows the answer to this off the top of their head, Matthew will. I've been reading the man pages for du and df, but I can't find the right combination. I'd like to get the type of output that df -h gives you but only for one mount point or even one directory. Is there a tool that can do that? (IOW, I'd like to run du -h but only get the totals for directories.) du -hd1 That's not what I'm looking for. That will return *files* and directories one level deep. I want directories *only* all levels deep. what about "find . -type d | xargs du -h" Not exactly one command, but you could easily alias it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
syslogd not reading messages from a remote machine
I have recently set up a Fortigate-60 to run as a firewall/vpn on my home network. I have a FreeBSD 7.0-prerelease machine sitting behind it in the DMZ which is running ssh/web/etc. I'm trying to get the FG to log to the BSD box's syslog. I have set up the necessary stuff on the FG, and can send test logs from there to the bsd box. Running tcpdump on the bsd box gives me this when sending those test logs: [EMAIL PROTECTED] ports]$ tcpdump -n -e -ttt -vv -i dc0 port 514 tcpdump: listening on dc0, link-type EN10MB (Ethernet), capture size 96 bytes 00 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 468: (tos 0x0, ttl 64, id 53661, offset 0, flags [none], proto UDP (17), length 454) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 426 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000196 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 337: (tos 0x0, ttl 64, id 53662, offset 0, flags [none], proto UDP (17), length 323) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 295 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000227 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 337: (tos 0x0, ttl 64, id 53663, offset 0, flags [none], proto UDP (17), length 323) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 295 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000292 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 447: (tos 0x0, ttl 64, id 53664, offset 0, flags [none], proto UDP (17), length 433) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 405 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000230 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 324: (tos 0x0, ttl 64, id 53665, offset 0, flags [none], proto UDP (17), length 310) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 282 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000143 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 247: (tos 0x0, ttl 64, id 53666, offset 0, flags [none], proto UDP (17), length 233) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 205 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000152 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 279: (tos 0x0, ttl 64, id 53667, offset 0, flags [none], proto UDP (17), length 265) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 237 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] 000152 00:09:0f:12:11:41 > 00:00:e8:13:b3:5c, ethertype IPv4 (0x0800), length 299: (tos 0x0, ttl 64, id 53668, offset 0, flags [none], proto UDP (17), length 285) 10.10.10.1.3023 > 10.10.10.2.514: SYSLOG, length: 257 Facility local7 (23), Severity warning (4) Msg: date=2008-01-11 time=18:37:10 devname=Fortigate-6[|syslog] ^C So I know that the packets are getting to the machine. I've set up syslogd to accept packets from 10.10.10.1/32 in rc.conf, and confirmed that the FG's IP should be accepted by syslogd [EMAIL PROTECTED] ports]$ grep syslogd /etc/rc.conf syslogd_flags="-a 10.10.10.1/32" [EMAIL PROTECTED] ports]$ ps auxww | grep syslogd root 8538 0.0 0.1 3156 1088 ?? Ss 10:44AM 0:00.02 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -a 10.10.10.1/32 the FG is set to log via local7, and I've set that up too. [EMAIL PROTECTED] ports]$ grep local7 /etc/syslog.conf local7.*/var/log/fortigate and the log file exists also. [EMAIL PROTECTED] ports]$ ls -l /var/log/fortigate -rw-r- 1 root wheel 0 Jan 11 07:22 /var/log/fortigate In desperation I even added this to my /etc/syslog.conf, trying to get the messages to appear anywhere, but they aren't showing up in all.log either. *.* /var/log/all.log I've restarted syslogd after every change I've made, but no dice. Can anyone shed some light on why these messages aren't logging and what I need to do to fix it? Thanks so much! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: syslogd not reading messages from a remote machine
[snip] > To disable that behavior, just put -a 10.10.10.1/32:* in your syslogd_flags > and you should be good to go (if your problem was the same as mine :) > Thanks, that helped a lot. for the record, I had to set the syslogd_flags as Jon described, as well as adding "+@" and "+fortigate" lines to syslog.conf above the local and remote sections respectively. Leaving those lines out resulted in the logs getting appended to /var/log/messages in addition to the logfile I wanted them to go to. Thanks again everyone! -- -- I'm nerdy in the extreme and whiter than sour cream ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "lock screen" does not works at 6.3 + gnome2
Frank Bonnet wrote: Frank Bonnet wrote: Hello I've installed 6.3 on my machine with gnome2 and the "lock screen" function does not work with the standard install of GNOME2, is there some feature to install to make this available ? Thanks a lot. ___ the screen saver does not work too ( and crash !) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" I had the same problem with my 7.0-Beta3 box. I used xscreensaver instead of the default gnome-screensaver. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
wierd output from pfctl -vvsq
I've got all my queuing working like I want it to, but when I run pfctl -vvsq, I get this (sample) output queue root_dc0 bandwidth 256Kb priority 0 cbq( wrr root ) {tcp_ack, dns, ssh, http, std, p2p} [ pkts: 1018 bytes: 768010 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured:19.6 packets/s, 117.77Kb/s ] queue tcp_ack bandwidth 44Kb priority 7 cbq( borrow ) [ pkts: 32 bytes: 1888 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 0.6 packets/s, 305.57 b/s ] queue dns bandwidth 44Kb priority 6 cbq( borrow ) [ pkts: 11 bytes:969 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 0.2 packets/s, 140.95 b/s ] queue ssh bandwidth 42Kb priority 4 {ssh_fast, ssh_bulk} [ pkts: 0 bytes: 0 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 0.0 packets/s, 0 b/s ] queue ssh_fast bandwidth 21Kb priority 4 cbq( borrow ) [ pkts:147 bytes: 54638 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 2.8 packets/s, 8.64Kb/s ] queue ssh_bulk bandwidth 21Kb [ pkts: 7 bytes: 3518 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 0.1 packets/s, 538.69 b/s ] queue http bandwidth 42Kb priority 3 cbq( borrow ) [ pkts: 45 bytes: 41622 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 0 suspends: 0 ] [ measured: 0.9 packets/s, 6.69Kb/s ] queue std bandwidth 42Kb priority 2 cbq( borrow default ) [ pkts:327 bytes: 176278 dropped pkts: 0 bytes: 0 ] [ qlength: 0/ 50 borrows: 89 suspends: 0 ] [ measured: 6.2 packets/s, 26.89Kb/s ] queue p2p bandwidth 42Kb priority 0 qlimit 100 cbq( borrow ) [ pkts:449 bytes: 489097 dropped pkts: 0 bytes: 0 ] [ qlength: 0/100 borrows:439 suspends: 0 ] [ measured: 8.7 packets/s, 74.57Kb/s ] My actual question is reguarding the ssh queue. It is the parent for ssh_fast and ssh_bulk, so I'm thinking that it should show the total bandwidth usage for those two queues, but it shows 0 Kb/s. Like I said everything appears to be working fine, but I just want to make sure that it is. the queueing section from my pf.conf is as follows altq on $ext_if bandwidth 256Kb cbq queue { std, ssh, http, tcp_ack, dns, p2p } queue tcp_ack bandwidth 44Kb priority 7 cbq(borrow) queue dns bandwidth 44Kb priority 6 cbq(borrow) queue ssh bandwidth 42Kb priority 4 cbq { ssh_bulk, ssh_fast } queue ssh_fast bandwidth 21Kb priority 4 cbq(borrow) queue http bandwidth 42Kb priority 3 cbq(borrow) queue std bandwidth 42Kb priority 2 cbq(default borrow) queue ssh_bulk bandwidth 21Kb priority 1 cbq queue p2p bandwidth 42Kb priority 0 qlimit 100 cbq(borrow) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Installation date ?
If it's actually been running the entire time (no reboots) you can use the uptime command (this info is also displayed in top). If you've rebooted since install, I'm not sure how you could determine that. On 5/2/06, S t i n g r a y <[EMAIL PROTECTED]> wrote: Its been a long time since i installed my FreeBSD server & its been running since then , how can i find the installation date & time of my server ? *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ __ 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]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't boot kern.flp on thinkpad 750
I'm trying to install 4.11 on an old IBM Thinkpad 750, but can't get the kern.flp disk to boot. I know that the floppy drive on this machine isn't exactly standard (it's a 2.88M drive, if that makes a difference), but I'm not sure what the differences are. In any case, when it tries to load the kernel from the floppy, I get this output.. Disk error 0x4 (lba=0x38) FreeBSD/i386 BOOT Default: 0:fd(0,a)/boot/loader boot: I've tried googling this, but can't seem to come up with anything. If anyone has any pointers, I'd appreciate it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't boot kern.flp on thinkpad 750
Don't really think so. http://www.freebsd.org/cgi/query-pr.cgi?pr=32830 On 5/3/06, Chris Howells <[EMAIL PROTECTED]> wrote: Andy Greenwood wrote: > I'm trying to install 4.11 on an old IBM Thinkpad 750, but can't get > the kern.flp disk to boot. I know that the floppy drive on this > machine isn't exactly standard (it's a 2.88M drive, if that makes a > difference), but I'm not sure what the differences are. In any case, > when it tries to load the kernel from the floppy, I get this output.. > > Disk error 0x4 (lba=0x38) Likely a faulty disk or drive. ___ 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: FTPd recommendation?
I've used pure-ftpd for some time and really like it's virtual user implementation. Doesn't hurt that (from thier site) "Unlike other popular FTP servers, the number of root exploits found since the very first released version is zero." On 5/4/06, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > What are people using for their ftpd these days? I am looking for something > easy to initiailize, configure, and is very secure. pure-ftpd http://pureftpd.sourceforge.net/ I've got it set up with my own SSL cert and dissallow plain text FTP. You can also configure it to use completely virtual users... Works for me. ___ 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: ftp server with no shell accounts
I much prefer the pure-ftpd implementation of virtual users. However, both will get the job done effectively. The only reason I really prefer pure over pro is that pure has never had one root exploit found since release number 1. That's reason enough for me :) On 5/10/06, Beech Rintoul <[EMAIL PROTECTED]> wrote: On Wednesday 10 May 2006 16:20, Sean Murphy wrote: > I tried the default ftp server with FreeBSD 5.4 and users with no shell > accounts but it does not work. > > Does anyone know of a ftp server that users would still have home > directories but no shell access /sbin/nologin and that could still > upload files to there home directories. Try proftpd in the ports. Beech -- --- Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED] /"\ ASCII Ribbon Campaign | Alaska Paradise \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Copying a file system w/ tar - symbolic links not copied right.
# man tar specifically, the -L option On 5/10/06, Don O'Neil <[EMAIL PROTECTED]> wrote: Hi all... I'm trying to move a file system from one disk to another, and when I do this: tar cf - /source/* | ( cd /destination && tar xfv - ) It copies all the files, but the symbolic links are copied as files of 0 length, rather than re-established as links. What am I doing wrong here, or is my tar broken? ___ 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: 1 cpu + 2 monitors + 2 keybord/mouse is it possible
Seems like the easiest thing to do would be to either get some serial consoles (or serial console emulators) or provide ssh access to the box. On 5/11/06, Andrea Venturoli <[EMAIL PROTECTED]> wrote: NAOD TSIGHE wrote: > Hi, > Is it possible to attach two monitors, 2keybord and 2 > mouse to one PC, by just buying some card that will > connect with a PC. AFAIK yes, at least theorically, but I never tried this myself. bye av. ___ 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: Newbie File system
On my system at least, /home is a symlink to /usr/home. I belive this is the default. On 5/15/06, Maan Jee <[EMAIL PROTECTED]> wrote: Hi Can someone explane that at which filesystem is my "/home" directory located? Filesystem 1K-blocksUsedAvail Capacity Mounted on /dev/ad0s1a50763055002 412018 12%/ devfs 1 1 0 100%/dev /dev/ad0s1e507630 12 467008 0%/tmp /dev/ad0s1f 34336100 1564298 30024914 5%/usr /dev/ad0s1d 150619024892 1360804 2%/var thanks/mj ___ 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: Newbie File system
or even easier... cd pwd On 5/15/06, Atom Powers <[EMAIL PROTECTED]> wrote: On 5/15/06, Bill Moran <[EMAIL PROTECTED]> wrote: > On Mon, 15 May 2006 17:20:33 +0200 > "Maan Jee" <[EMAIL PROTECTED]> wrote: > > > > Can someone explane that at which filesystem is my "/home" directory > > located? > > > > Not reliably. Folks could guess. > > Post again and include the output of "ls -l /" this time. > It's so much easier than that. cd ~ pwd -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ 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]"
C coding question
I am helping someone work on porting some code to Freebsd, and the code below works on Linux, but not on FreeBSD (compiles, but gives Segmentation Fault: 11). I'm not sure where the problem is, and any pointers would be much appreciated. /* Check if we must stop */ if(tf_stat_file != NULL) { tf_stat = fopen(tf_stat_file, "r"); if (tf_stat != NULL) { /* Get state */ stat_state=fgetc(tf_stat); /* Torrentflux asked to shutdown the torrent */ if (stat_state == '0') { mustDie = 1; } } fclose(tf_stat); } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: C coding question
That did it! thanks so much! On 5/17/06, Lorin Lund <[EMAIL PROTECTED]> wrote: Andy Greenwood wrote: > I am helping someone work on porting some code to Freebsd, and the > code below works on Linux, but not on FreeBSD (compiles, but gives > Segmentation Fault: 11). I'm not sure where the problem is, and any > pointers would be much appreciated. > >/* Check if we must stop */ >if(tf_stat_file != NULL) >{ >tf_stat = fopen(tf_stat_file, "r"); >if (tf_stat != NULL) >{ >/* Get state */ >stat_state=fgetc(tf_stat); > >/* Torrentflux asked to shutdown the torrent */ >if (stat_state == '0') >{ >mustDie = 1; >} >} >fclose(tf_stat); >} > ___ I think I would move the fclose( tf_stat) up a line. No need to close a file that failed to open. The fclose( ) acting on a NULL pointer might be your error. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to change roots shell
You should be able to boot into single-user mode and change it there. On 5/18/06, unixforums 1 <[EMAIL PROTECTED]> wrote: Hi, I did a completely newbie move and changed the root's shell to something that doesn't work. So, needless to say now I can't su to root or even login as root. Is there a way I can fix this without rebuilding the server? Thanks for any help you can provide. - Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. ___ 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: how to change roots shell
can you not link /bin/sh to change? On 5/18/06, Izwan Mohd <[EMAIL PROTECTED]> wrote: Hope you have "sudo" you can do "sudo -u root bash" if don't nothing came cross my mine yet how to deal with it :-\ unixforums 1 wrote: > tried it and i get the following error: > > su: change: No such file or directory > > What happened originally is I accidently changed the shell to "change" > and now i get the following error when I su. > > su: change: No such file or directory > > This is a remote system so if at all possable i need to do it through ssh. > > Thanks > > */Izwan Mohd <[EMAIL PROTECTED]>/* wrote: > > unixforums 1 wrote: > > >Hi, > > I did a completely newbie move and changed the root�s shell to > something that doesn�t work. So, needless to say now I can�t > su to root or even login as root. Is there a way I can fix this > without rebuilding the server? > > > > Thanks for any help you can provide. > > > > > >- > >Sneak preview the all-new Yahoo.com. It's not radically > different. Just radically better. > >___ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > > > > > > > su root -c chsh root > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > > > __ > 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]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to change roots shell
how is he supposed to complete step one? Single-user mode is going to be the best way to get this fixed, IMHO On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Login as root, type "vipw" hich puts you into vi on thwe password file, and change the root's shell to whatever you want (provided the path is legal). ___ 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]"
named always binds to "*"
I'm trying to set up my first jail, and I've got the below named.conf. However, even with the query-source line below, it always binds to the wildcard address! Anyone seen this behavior before and what can I do to fix it? // Specify the subnets we're going to serve acl homenet { 192.168.0.0/16; } ; options { directory "/etc/namedb"; allow-query { homenet; }; listen-on { 192.168.1.1; }; query-source address 192.168.1.1; }; // Provide reverse mapping for the loopback IP zone "0.0.127.in-addr.arpa" { type master; file "localhost.rev"; notify no; }; When I execute named -u bind -fg I get this [EMAIL PROTECTED] ~]$ named -u bind -fg 19-May-2006 08:28:11.570 starting BIND 9.3.1 -u bind -fg 19-May-2006 08:28:11.583 loading configuration from '/etc/namedb/named.conf' 19-May-2006 08:28:11.586 listening on IPv4 interface dc1, 192.168.1.1#53 19-May-2006 08:28:11.591 none:0: open: /etc/namedb/rndc.key: file not found 19-May-2006 08:28:11.592 couldn't add command channel 127.0.0.1#953: file not found 19-May-2006 08:28:11.592 none:0: open: /etc/namedb/rndc.key: file not found 19-May-2006 08:28:11.592 couldn't add command channel ::1#953: file not found 19-May-2006 08:28:11.592 ignoring config file logging statement due to -g option 19-May-2006 08:28:11.594 zone 0.0.127.in-addr.arpa/IN: loading master file localhost.rev: file not found 19-May-2006 08:28:11.596 running ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: named always binds to "*"
that didn't do it. I meant to include this with my first post, but forgot to. I just now noticed that it's udp6, not udp4, so I'm recompiling with --disable-ipv6 [EMAIL PROTECTED] ~]$ sockstat | grep "\*:[0-9]" bind named 89293 23 udp6 *:58084 *:* On 5/19/06, Fremlins <[EMAIL PROTECTED]> wrote: Andy Greenwood wrote: > I'm trying to set up my first jail, and I've got the below named.conf. > However, even with the query-source line below, it always binds to the > wildcard address! Anyone seen this behavior before and what can I do > to fix it? Yes, add the following under options: listen-on port 53 { 192.168.1.1; }; > // Specify the subnets we're going to serve > acl homenet { 192.168.0.0/16; } ; > options { > directory "/etc/namedb"; > allow-query { homenet; }; > listen-on { 192.168.1.1; }; > query-source address 192.168.1.1; > }; Frem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pflog
This is discussed in the openbsd pf page http://www.openbsd.org/faq/pf/logging.html#syslog On 5/22/06, Albert Shih <[EMAIL PROTECTED]> wrote: Le 22/05/2006 à 16:59:02+0300, Iantcho Vassilev a écrit > On 5/22/06, Albert Shih <[EMAIL PROTECTED]> wrote: > > When you write your rules, you put "log" in them.. > > > example: > pass in quick log proto tcp from any to any keep state > > > then you have to have pflogd started(pflog_enable="YES" in /etc/rc.conf). > > When pflog is started your binary log is lcated on /var/log/pflog > > you can read it witH: > tcpdump -n -t -r /var/log/pflog > > if you want real time(because pflog is where is written with some delay) > tcpdump -n -t -i pflog0 Thanks. But I known this thing. The problem is with this method the log is first write on the hard-disk. And I don't want do that (well I don't like...) I prefer the pflogd directly log to a central server. It's possible ? Regards. -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. 7 ième étage, plateau D, bureau 10 Heure local/Local time: Mon May 22 16:08:02 CEST 2006 ___ 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]"
can't build perl-5.8.8 in a jail
I'm trying to build perl 5.8.8 inside a jail and it won't build. I always error at the same spot. Below is the last 100 lines out of make. Anyone have any ideas? Finding dependencies for pp_ctl.o. Finding dependencies for pp_sys.o. Finding dependencies for regcomp.o. Finding dependencies for regexec.o. Finding dependencies for utf8.o. Finding dependencies for gv.o. Finding dependencies for sv.o. Finding dependencies for taint.o. Finding dependencies for toke.o. Finding dependencies for util.o. Finding dependencies for deb.o. Finding dependencies for run.o. Finding dependencies for universal.o. Finding dependencies for xsutils.o. Finding dependencies for pad.o. Finding dependencies for globals.o. Finding dependencies for perlio.o. Finding dependencies for perlapi.o. Finding dependencies for numeric.o. Finding dependencies for locale.o. Finding dependencies for pp_pack.o. Finding dependencies for pp_sort.o. Finding dependencies for miniperlmain.o. Finding dependencies for perlmain.o. Finding dependencies for opmini.o. echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' .shlist Updating makefile... test -s perlmain.c && touch perlmain.c cd x2p; make depend sh ../makedepend MAKE=make echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist Finding dependencies for hash.o. Finding dependencies for str.o. Finding dependencies for util.o. Finding dependencies for walk.o. echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist Updating makefile... Now you must run 'make'. If you compile perl5 on a different machine or from a different object directory, copy the Policy.sh file from this object directory to the new one before you run Configure -- this will help you with most of the policy defaults. ===> Building for perl-5.8.8 `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" miniperlmain.o` -DPIC -fPIC miniperlmain.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perl.o` -DPIC -fPIC perl.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" malloc.o` -DPIC -fPIC malloc.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" gv.o` -DPIC -fPIC gv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" toke.o` -DPIC -fPIC toke.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perly.o` -DPIC -fPIC perly.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" op.o` -DPIC -fPIC op.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pad.o` -DPIC -fPIC pad.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regcomp.o` -DPIC -fPIC regcomp.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" dump.o` -DPIC -fPIC dump.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" util.o` -DPIC -fPIC util.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" mg.o` -DPIC -fPIC mg.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" reentr.o` -DPIC -fPIC reentr.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" hv.o` -DPIC -fPIC hv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" av.o` -DPIC -fPIC av.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" run.o` -DPIC -fPIC run.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_hot.o` -DPIC -fPIC pp_hot.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" sv.o` -DPIC -fPIC sv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp.o` -DPIC -fPIC pp.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" scope.o` -DPIC -fPIC scope.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_ctl.o` -DPIC -fPIC pp_ctl.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_sys.o` -DPIC -fPIC pp_sys.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doop.o` -DPIC -fPIC doop.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doio.o` -DPIC -fPIC doio.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regexec.o` -DPIC -fPIC regexec.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" utf8.o` -DPIC -fPIC utf8.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" taint.o` -DPIC -fPIC taint.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" deb.o` -DPIC -fPIC deb.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" universal.o` -DPIC -fPIC universal.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" xsutils.o` -DPIC -fPIC xsutils.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" globals.o` -DPIC -fPIC globals.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perlio.o` -DPIC -fPIC perlio.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perlapi.o` -DPIC -fPIC perlapi.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" numeric.o` -DPIC -fPIC numeric.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" locale.o` -DPIC -fPIC locale.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_pack.o` -DPIC -fPIC pp_pack.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_sort.o` -DPIC -fPIC pp_sort.c cc -o libperl.so -shared -
Re: MESS (statically compiled vi )
well, it looks like my sh has some dependancies too, so I wouldn't worry about it really. [EMAIL PROTECTED] /usr/ports/lang/php5]# ldd `which sh` /bin/sh: libedit.so.5 => /lib/libedit.so.5 (0x2808c000) libncurses.so.6 => /lib/libncurses.so.6 (0x280a) libc.so.6 => /lib/libc.so.6 (0x280df000) On 5/22/06, Bill Schoolcraft <[EMAIL PROTECTED]> wrote: At Mon, 22 May 2006 it looks like Jerry McAllister composed: > > > > At Mon, 22 May 2006 it looks like Jerry McAllister composed: > > > > > Yup. It is in /usr/bin > > > I guess, I am so used to putting a copy of vi in /bin shortly after > > > installing a new system that I assume it is always there. > > > > > > > Can we actually 'de-install' then 're-install' vi(m) from PORTS with > > it statically compiled? > > > > Then we can move it to /bin (?) > > You don't really need to de-install it. > Just cp /usr/bin/vi /bin/. > Make sure you are happy with the permissions. > > It will work. vi is pretty well self contained. Hmm, not sure if we are talking about in single user mode with only / mounted, here is what my version does with a dependency check... I see it need libs in /lib, which I'm sure is not on it's own partition, but I was hoping to get vi statically compiled. ### [EMAIL PROTECTED] /usr/ports/editors]-> ldd `which vi` /usr/bin/vi: libncurses.so.5 => /lib/libncurses.so.5 (0x280b9000) libc.so.5 => /lib/libc.so.5 (0x280f8000) ### -- Bill Schoolcraft | http://wiliweld.com "If your life was full of nothing but sunshine, you would just be a desert." ___ 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: can't build perl-5.8.8 in a jail
Not sure what I did, but It's compiled now. Sorry for the noise On 5/22/06, Andy Greenwood <[EMAIL PROTECTED]> wrote: I'm trying to build perl 5.8.8 inside a jail and it won't build. I always error at the same spot. Below is the last 100 lines out of make. Anyone have any ideas? Finding dependencies for pp_ctl.o. Finding dependencies for pp_sys.o. Finding dependencies for regcomp.o. Finding dependencies for regexec.o. Finding dependencies for utf8.o. Finding dependencies for gv.o. Finding dependencies for sv.o. Finding dependencies for taint.o. Finding dependencies for toke.o. Finding dependencies for util.o. Finding dependencies for deb.o. Finding dependencies for run.o. Finding dependencies for universal.o. Finding dependencies for xsutils.o. Finding dependencies for pad.o. Finding dependencies for globals.o. Finding dependencies for perlio.o. Finding dependencies for perlapi.o. Finding dependencies for numeric.o. Finding dependencies for locale.o. Finding dependencies for pp_pack.o. Finding dependencies for pp_sort.o. Finding dependencies for miniperlmain.o. Finding dependencies for perlmain.o. Finding dependencies for opmini.o. echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlist Updating makefile... test -s perlmain.c && touch perlmain.c cd x2p; make depend sh ../makedepend MAKE=make echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist Finding dependencies for hash.o. Finding dependencies for str.o. Finding dependencies for util.o. Finding dependencies for walk.o. echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist Updating makefile... Now you must run 'make'. If you compile perl5 on a different machine or from a different object directory, copy the Policy.sh file from this object directory to the new one before you run Configure -- this will help you with most of the policy defaults. ===> Building for perl-5.8.8 `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" miniperlmain.o` -DPIC -fPIC miniperlmain.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perl.o` -DPIC -fPIC perl.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" malloc.o` -DPIC -fPIC malloc.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" gv.o` -DPIC -fPIC gv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" toke.o` -DPIC -fPIC toke.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" perly.o` -DPIC -fPIC perly.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" op.o` -DPIC -fPIC op.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pad.o` -DPIC -fPIC pad.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regcomp.o` -DPIC -fPIC regcomp.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" dump.o` -DPIC -fPIC dump.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" util.o` -DPIC -fPIC util.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" mg.o` -DPIC -fPIC mg.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" reentr.o` -DPIC -fPIC reentr.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" hv.o` -DPIC -fPIC hv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" av.o` -DPIC -fPIC av.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" run.o` -DPIC -fPIC run.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_hot.o` -DPIC -fPIC pp_hot.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" sv.o` -DPIC -fPIC sv.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp.o` -DPIC -fPIC pp.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" scope.o` -DPIC -fPIC scope.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_ctl.o` -DPIC -fPIC pp_ctl.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" pp_sys.o` -DPIC -fPIC pp_sys.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doop.o` -DPIC -fPIC doop.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" doio.o` -DPIC -fPIC doio.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" regexec.o` -DPIC -fPIC regexec.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" utf8.o` -DPIC -fPIC utf8.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" taint.o` -DPIC -fPIC taint.c `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe'" deb.o` -DPIC -fPIC deb.c `sh cflags "optimize=
can't start apache 1.3 inside jail
I've built and installed apache13 from ports in my jail, but apachectl start just gives me [EMAIL PROTECTED] ~]# apachectl start /usr/local/sbin/apachectl start: httpd could not be started and httpd -X exits immediately with no output. I've tried to run truss on apachectl start, but I'm not really sure on how to interpret the output (attached). Any help would be much appreciated. [EMAIL PROTECTED] ~]# uname -a FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 21 08:46:15 EDT 2006 [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH i386 # truss httpd -X mmap(0x0,3608,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671715328 (0x28099000) munmap(0x28099000,0xe18) = 0 (0x0) __sysctl(0xbfbfe778,0x2,0x28095998,0xbfbfe774,0x0,0x0) = 0 (0x0) mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 671715328 (0x28099000) issetugid() = 0 (0x0) open("/etc/libmap.conf",0x0,0666)= 3 (0x3) fstat(3,0xbfbfde90) = 0 (0x0) read(0x3,0x2809d000,0x1000) = 0 (0x0) close(3) = 0 (0x0) open("/var/run/ld-elf.so.hints",0x0,00) = 3 (0x3) read(0x3,0xbfbfe740,0x80)= 128 (0x80) lseek(3,0x80,SEEK_SET) = 128 (0x80) read(0x3,0x2809f000,0x24)= 36 (0x24) close(3) = 0 (0x0) access("/usr/local/lib/libcrypt.so.3",0) ERR#2 'No such file or directory' access("/usr/local/lib/mysql/libcrypt.so.3",0) ERR#2 'No such file or directory' access("/lib/libcrypt.so.3",0) = 0 (0x0) open("/lib/libcrypt.so.3",0x0,00)= 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,16384,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671748096 (0x280a1000) mprotect(0x280a3000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x280a3000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x280a4000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0x3000) = 671760384 (0x280a4000) close(3) = 0 (0x0) access("/usr/local/lib/libexpat.so.6",0) = 0 (0x0) open("/usr/local/lib/libexpat.so.6",0x0,027757763770) = 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,122880,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671764480 (0x280a5000) mprotect(0x280bf000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x280bf000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x280c,12288,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0x1b000) = 671875072 (0x280c) close(3) = 0 (0x0) access("/usr/local/lib/libc.so.6",0) = 0 (0x0) open("/usr/local/lib/libc.so.6",0x0,027757763770) = 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,856064,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671887360 (0x280c3000) mprotect(0x2817b000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x2817b000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x2817c000,20480,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0xb9000) = 672645120 (0x2817c000) mmap(0x28181000,77824,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0) = 672665600 (0x28181000) close(3) = 0 (0x0) mmap(0x0,36864,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 672743424 (0x28194000) sysarch(0xa,0xbfbfe7f0) = 0 (0x0) mmap(0x0,4696,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x1258)= 0 (0x0) mmap(0x0,520,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x208) = 0 (0x0) mmap(0x0,936,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x3a8) = 0 (0x0) mprotect(0x280c3000,757760,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mmap(0x0,21800,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x5528)= 0 (0x0) mprotect(0x280c3000,757760,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) sigprocmask(0x1,0x28094820,0xbfbfe7c0) = 0 (0x0) sigprocmask(0x3,0x28094830,0x0) = 0 (0x0) readlink("/etc/malloc.conf","A<",63) = 2 (0x2) issetugid() = 0 (0x0) mmap(0x0,4096,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 672780288 (0x2819d000) break(0x80
Re: can't start apache 1.3 inside jail
Doh! it was a DNS issue. Put an entry for my jail in the /etc/hosts file in both the host and jail and it works like a charm. Thanks for the help. Sorry I'm such a noob and thanks for the help! On 5/25/06, Cheng-Lung Sung <[EMAIL PROTECTED]> wrote: Have you checked log file? On Wed, May 24, 2006 at 01:53:35PM -0400, Andy Greenwood wrote: > I've built and installed apache13 from ports in my jail, but apachectl > start just gives me > > [EMAIL PROTECTED] ~]# apachectl start > /usr/local/sbin/apachectl start: httpd could not be started > > and httpd -X exits immediately with no output. I've tried to run truss > on apachectl start, but I'm not really sure on how to interpret the > output (attached). Any help would be much appreciated. > > [EMAIL PROTECTED] ~]# uname -a > FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May > 21 08:46:15 EDT 2006 > [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH i386 -- Cheng-Lung Sung - clsung@ ___ 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 operating system and with root password
I don't know what you mean by kernel errors on boot, but you can recover your root password by booting into single user mode and then running passwd. On 5/26/06, Polina Mnouskina <[EMAIL PROTECTED]> wrote: Hello. I am working for the company, that is using FreeBSD on the server mashins. At the moment we have two problems: First, one of the mashins give no kernael error on the boot. Second, we have lost our root password to the second one. Is there a way to fix any of this two problems without reinstaling the system. Please, answer asap. Any help (free or paid) will be highly appriciated. - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. ___ 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]"
posix_getpwuid() not in php5 base install?
I'm trying to use posix_getpwuid(), but it doesn't appear to be there in php5.1.4 Does anyone know if it's availible as part of the php5-XXX ports? If not, where can I find it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Getting Source Code after Installing the Software
You can get the source code at any time with cvsup, which is availible through ports. check out http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html On 6/16/06, Mayo, Richard A RDECOM CERDEC STCD SRI <[EMAIL PROTECTED]> wrote: I installed FreeBSD on a couple of computers without installing any source code. Now (naturally), I want to get a hold of the kernel source so I can re-compile and enable support for PIM and Multicast Routing. However, I can't figure how to get the source off my CDs. I downloaded the ISO's for Disk 1 and Disk 2 of FreeBSD 6.1--RELEASE. Can anybody tell me where I can find the source code on these disks so I don't have to run a re-installation just to get it?? Thanks, Rich Mayo ___ 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: make buildworld errors
memtest is a good start, but isn't definate. I would recommend running memtest86, which you can get at http://www.memtest86.com/, overnight or longer and see if it comes up with anything. I had some wierd problems with compilling and this let me know that one of my sticks was bad. replaced them and everything works like a champ now. On 6/19/06, Jacob Jennings <[EMAIL PROTECTED]> wrote: Hello, I am attempting to update my FreeBSD 6.0 installation's source tree directly after the install. I have cvsup'ed "src-all" and run "make buildworld" in /usr/src. However, this command fails in a different spot each time with a segmentation fault. Once the error message was "Internal compiler error: Segmentation fault: 11" and another time it was "Segmentation fault: (core dumped): Error 139", and I simply cannot find a solution to this on google or freebsd forums. I read that it may be linked to bad memory, but I installed memtest and ran it with no complaints therefrom. What could possibly be the problem? ___ 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: How to find files that are eating up disk space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Almberg wrote: > Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... > > I've got a smallish server that is suddenly out of disk space in the '/' partition. > > Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! > > Is there a command line tool that will help me figure out where the problem is? > > Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? > > Any hints, much appreciated. > John, try man du. It will give you file sizes of all the files in a directory tree, which you can then pass to sort and head to pull out the biggest offenders, like this # cd / # du | sort -rn | head -10 for monitoring my system, I use tripwire, but that might be a bit much just for watching disk usage. Try putting a "df -h" in your periodic scripts to have the output of that command mailed to you each day. > -- John > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklJOE0ACgkQEStKVA82Z+1tNgCdHSAYcm5A6sTjbjjHmzL3ynS2 C+0Anim0sf0yIz/l7TVNtdA5a5JbM+Jz =xetm -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Nagios & Jail
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albert Shih wrote: > Hi all. > > I'm trying to install a nagios server in a jail. > > I've a problem with check_ping. > > [r...@]# /usr/local/libexec/nagios/check_ping -H some_host -w 3000.0,80% -c 5000.0,100% -p 5 > CRITICAL - You need more args!!! > Could not open pipe: > > So I think it's become the «ping problem». So I put > > sysctl -w security.jail.allow_raw_sockets=1 > > in the host-jail-server. > > In the jail I can make a ping but the nagios check_ping don't work. > > Anyone have succefully install a nagios server in a jail ? > > Regards. I'm not exactly sure how I did it, but I remember having to change something from the defaults when I built the net-mgmt/nagios-plugins port because the check_ping command wasn't working right. I'd suggest going back and re-making that port to see if you get any error messages. I want to say that it wasn't finding the ping binary, but I don't think that's what it was. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklKW8gACgkQEStKVA82Z+0C8ACfX5tAleQZJwkyd4/B6PCyieKj 98IAoKOKSYqguLuecO828//KN8eHWsv1 =CaW0 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Simple DNS For Private LAN
If you're getting a static IP, then you can become master for your domain, but you'll still need a secondary NS, and most (if not all) registrars will require that the secondary NS be on a different IP. I prefer to have mine on a completely seperate Class A, but that's just personal. I'd leave ns3.zoneedit.com as the secondary NS. Both name servers will be master for the domain. Master just means that the name server won't try to look elsewherefor the info, IIRC, and you don't want these name servers to look elsewhere. Yes you can break a lot of stuff with wrong DNS, but it really isn't that complicated. Don't worry. As a side note, if you really are a DNS newb, here's some (hopefully funny) reading. I can take no credit for this, and I don't have the original link. http://agreenftp.no-ip.com/dns On 6/23/06, Drew Tomlinson <[EMAIL PROTECTED]> wrote: I'm having a hard time understanding what I need to do. I have a small home network that uses a 3Com DSL modem/router as the last hop to the Internet. Currently, the DSL modem/router to provides DNS for both my home network and the Internet. Basically I have a few static entries for machines on my home network and then the DSL modem/router queries my ISPs name servers for everything else. When I registered my domain, I used ZoneEdit as my name servers. 'whois mykitchentable.net' gives this output: domain: mykitchentable.net owner-name: Drew Tomlinson nserver:ns3.zoneedit.com 209.61.140.1 nserver:ns4.zoneedit.com 216.98.150.236 Now I'm changing ISPs and the DSL modem/router will be removed. I am going to use a FBSD 6.x box to be my router, firewall, and DNS server. I read the handbook regarding DNS but remain confused. Should I be a master for mykitchentable.net? I'm thinking not because ZoneEdit is the master, correct? So should I be a slave? And if I'm a slave, will my DNS get it's updates from ZoneEdit? Or should I become master for my zone and make ZoneEdit a backup DNS? I'm a complete newbie to DNS but know that it's important to get it right or lots of stuff gets broken. Can someone please guide me in the right direction? I don't mind reading if you send me a link. :) Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ 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: Wire pickups.
the only thing I've ever seen in a wireless router that caused it to not work with other operating systems was a flaw in it's dhcp server. It seems that windows doesn't conform to the DHCP standard and some of the packets transmitted were flawed. the DHCP server on the router had been configured to expect these flawed packets and when a standards conformant dhcpclient tried to get connection info, the router didn't work right. Of course, I no longer have the router (I belive it was a linksys) and this was many years ago, so any of that might be wrong. Just try it out and see if it works. It probably will. On 6/30/06, Erik Nørgaard <[EMAIL PROTECTED]> wrote: Goerge Smith wrote: > I am making a computer, and I will be using FreeBSD for the OS. Well I > have a router that works for Windows only, is there a way to get a > wireless plugin to pick up the signal? If I understand you correctly that router is an independent device? In that case "windows only" means that they have only tested it with windows and will only ask support requests for users using that use other operating systems. It does not mean that it won't work. Rather than looking at OS' required look at protocols supported. It is most likely standard protocols and there will be no problem at all. So, just move ahead and see if you actually have a problem. If so, you need to be more specific about the details of your wireless router etc. 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: dvd image
IIRC, there aren't any official dvd images. However, it's not too difficult to make your own. Check out this site http://www.pa.msu.edu/~tigner/bsddvd.html On 7/5/06, eoghan <[EMAIL PROTECTED]> wrote: Hi I was wondering if there was any dvd images of freebsd releases? Thanks Eoghan ___ 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: Apache
after you appropriately edit your conf file, you can start the server with # apachectl start You can test by going to http://127.0.0.1. should display an apache page basically saying that the server is running. Once you get it how you want it, you can start it at boot by adding this to your rc.conf apache_enable="YES" On 7/12/06, Mihir Sanghavi <[EMAIL PROTECTED]> wrote: Hi, I have installed apache20 using the pckg_add -r apache. How do i run it, where and how do i test it.. I have FreeBSD 5.5 and am connected to internet. -- What we see depends mainly on what we look for. -MIHIR ___ 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: TIME loss
IIRC, ntpdate only syncs your time at boot. You want something like ntpd_enable="YES" On 7/13/06, Jean-Paul Natola <[EMAIL PROTECTED]> wrote: -Original Message- From: Peter A. Giessel [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 2:33 PM To: Jean-Paul Natola Cc: freebsd-questions@freebsd.org Subject: Re: TIME loss On 7/13/2006 10:13, Jean-Paul Natola seems to have typed: > I do have the ntpd running, what does ntpq -p say? No association ID's returned ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" Here's my rc.conf entry ntpdate_enable="YES" ntpdate_program="ntpdate" ntpdate_flags="-b 192.168.1.3" ___ 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: Adding a (non default) route via rc.conf
in rc.conf, put something like this: static_routes="legacy" route_legacy="-net 192.168.2 192.168.1.150" the static_routes line is a list of network names that you want to put routes in for, then each name gets its own route_name line. As for your sanity check, I don't see why it would be a problem. On 7/18/06, stan <[EMAIL PROTECTED]> wrote: What's th sytax for addid a static (non default) route via rc.conf? And while I'm here, how about a sanity check to make certain this is really what I want to do. Historicaly, the machine in question has lived on a network with only one gateway off that net. Now, as part of a transition, I'm changing the default route to point to a new address, but the old (ex default troute machine) still is the only way to certain legacy networks. Is this the best way to handle this? -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967 ___ 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: ln -s in FreeBSD 6.1
If you typed ls -l var, that would display the contents of the var directory. I think what you want is (while in your home) ls -l | grep var On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: In FreeBSD 6.1 , there was created a directory named /var . I created a subdirectory in it named homes , and in that more subdirectories, one per user in /home . As a plain user , I tried to create (while in my home directory) a subdirectory named var by typing ln -s /var/homes/me var Then I checked it by typing 'ls -l var' and got /compat/linux/var as the destination of the link. What is happening? Is this a bug in FreeBSD 6.1 ? ___ 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: A webhosting script?
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]"
Re: A webhosting script?
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: Forceig a resolution in xorg server
I haven't used X in a lng time, but IIRC you should be able to just remove all the other modes from the .conf file. If there's only one availilbe mode, X will have to use it :-) On 8/28/06, stan <[EMAIL PROTECTED]> wrote: I'm (huridelly) building a new machine to replaced my (just failed) main workstation at work. I have Xorg installed, and when I type X it starts up OK. KDE, and kdm work also. But, at way too high a resolution. I tried doing X -configure to generate a config file, but the resultant file contains no resolution settings. How can I force X to run in 1280x1024 x 24 bit color mode? -- 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]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"