webmin
I got some problems using webmin, this is the first time i use it and i just cand'tstart it. i done the following: # /usr/local/lib/webmin/setup.sh After this i tried to start it manual but it's not working: nyana# /usr/local/etc/rc.d/webmin start nyana# ps -aux|grep web nyana# Do you have any idea? Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
On Wednesday 12 September 2007, Danielisz Laszlo said: I got some problems using webmin, this is the first time i use it and i just cand'tstart it. i done the following: # /usr/local/lib/webmin/setup.sh After this i tried to start it manual but it's not working: nyana# /usr/local/etc/rc.d/webmin start nyana# ps -aux|grep web nyana# Do you have any idea? Make sure you have: webmin_enable=YES in /etc/rc.conf Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
Thank you Bleech! Now it starts but I can't acces the 127.0.0.1:1000 (I tied with Firefox and Opera) [Firefox can't establish a connection to the server at 127.0.0.1:1000.] nyana# /usr/local/etc/rc.d/webmin start Starting webmin. nyana# webmin status webmin is running as pid 9801. there is any other application I should install? Like apache? - Original Message From: Beech Rintoul [EMAIL PROTECTED] To: freebsd-questions@freebsd.org; Danielisz Laszlo [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 10:34:53 AM Subject: Re: webmin On Wednesday 12 September 2007, Danielisz Laszlo said: I got some problems using webmin, this is the first time i use it and i just cand'tstart it. i done the following: # /usr/local/lib/webmin/setup.sh After this i tried to start it manual but it's not working: nyana# /usr/local/etc/rc.d/webmin start nyana# ps -aux|grep web nyana# Do you have any idea? Make sure you have: webmin_enable=YES in /etc/rc.conf Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
Then I really have no idea why it doesn't works. Do you met with the same problem? I refer to Firefox can't establish a connection to the server at 127.0.0.1:1000 - Original Message From: Chris [EMAIL PROTECTED] To: Danielisz Laszlo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Beech Rintoul [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Thursday, September 13, 2007 10:57:04 AM Subject: Re: webmin On Thu, 13 Sep 2007 00:48:26 -0700 (PDT) Danielisz Laszlo [EMAIL PROTECTED] wrote: Thank you Bleech! Now it starts but I can't acces the 127.0.0.1:1000 (I tied with Firefox and Opera) [Firefox can't establish a connection to the server at 127.0.0.1:1000.] nyana# /usr/local/etc/rc.d/webmin start Starting webmin. nyana# webmin status webmin is running as pid 9801. there is any other application I should install? Like apache? No - unless of course you wish to. Webmin does not use Apache. It has it's own engine however, via Webmin you can configure things such as DNS, DHCP, MySQL, Apache, Postfix etc. -- Best regards, Chris Registerd Linux user number 448639 Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
On Wednesday 12 September 2007, Danielisz Laszlo said: Thank you Bleech! Now it starts but I can't acces the 127.0.0.1:1000 (I tied with Firefox and Opera) [Firefox can't establish a connection to the server at 127.0.0.1:1000.] nyana# /usr/local/etc/rc.d/webmin start Starting webmin. nyana# webmin status webmin is running as pid 9801. there is any other application I should install? Like apache? No, it has it's own webserver. Did you install it as a secure server? If so reach it at https://localhost:1 Also, are you sure about port 1000? Unless you changed that during install it should be 1. - Original Message From: Beech Rintoul [EMAIL PROTECTED] To: freebsd-questions@freebsd.org; Danielisz Laszlo [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 10:34:53 AM Subject: Re: webmin On Wednesday 12 September 2007, Danielisz Laszlo said: I got some problems using webmin, this is the first time i use it and i just cand'tstart it. i done the following: # /usr/local/lib/webmin/setup.sh After this i tried to start it manual but it's not working: nyana# /usr/local/etc/rc.d/webmin start nyana# ps -aux|grep web nyana# Do you have any idea? Make sure you have: webmin_enable=YES in /etc/rc.conf Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
Thank you very much! that Was a problem, accessing with https everything works fine ;) - Original Message From: Beech Rintoul [EMAIL PROTECTED] To: freebsd-questions@freebsd.org; Danielisz Laszlo [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 11:06:09 AM Subject: Re: webmin On Wednesday 12 September 2007, Danielisz Laszlo said: Thank you Bleech! Now it starts but I can't acces the 127.0.0.1:1000 (I tied with Firefox and Opera) [Firefox can't establish a connection to the server at 127.0.0.1:1000.] nyana# /usr/local/etc/rc.d/webmin start Starting webmin. nyana# webmin status webmin is running as pid 9801. there is any other application I should install? Like apache? No, it has it's own webserver. Did you install it as a secure server? If so reach it at https://localhost:1 Also, are you sure about port 1000? Unless you changed that during install it should be 1. - Original Message From: Beech Rintoul [EMAIL PROTECTED] To: freebsd-questions@freebsd.org; Danielisz Laszlo [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 10:34:53 AM Subject: Re: webmin On Wednesday 12 September 2007, Danielisz Laszlo said: I got some problems using webmin, this is the first time i use it and i just cand'tstart it. i done the following: # /usr/local/lib/webmin/setup.sh After this i tried to start it manual but it's not working: nyana# /usr/local/etc/rc.d/webmin start nyana# ps -aux|grep web nyana# Do you have any idea? Make sure you have: webmin_enable=YES in /etc/rc.conf Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
On Thu, 13 Sep 2007 00:48:26 -0700 (PDT) Danielisz Laszlo [EMAIL PROTECTED] wrote: Thank you Bleech! Now it starts but I can't acces the 127.0.0.1:1000 (I tied with Firefox and Opera) [Firefox can't establish a connection to the server at 127.0.0.1:1000.] nyana# /usr/local/etc/rc.d/webmin start Starting webmin. nyana# webmin status webmin is running as pid 9801. there is any other application I should install? Like apache? No - unless of course you wish to. Webmin does not use Apache. It has it's own engine however, via Webmin you can configure things such as DNS, DHCP, MySQL, Apache, Postfix etc. -- Best regards, Chris Registerd Linux user number 448639 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: webmin
On Thu, 13 Sep 2007 01:04:47 -0700 (PDT) Danielisz Laszlo [EMAIL PROTECTED] wrote: Then I really have no idea why it doesn't works. Do you met with the same problem? I refer to Firefox can't establish a connection to the server at 127.0.0.1:1000 Did you install Webmin via the ports tree? See below for location. Port: webmin-1.360 Path: /usr/ports/sysutils/webmin Info: Web-based interface for system administration for Unix Maint: [EMAIL PROTECTED] B-deps: perl-5.8.8 R-deps: p5-Authen-PAM-0.16_1 p5-Net-SSLeay-1.30_1 perl-5.8.8 WWW:http://www.webmin.com/webmin/ If you did not, it's as easy as typeing (as root) cd /usr/ports/sysutils/webmin make install clean -- Best regards, Chris Registerd Linux user number 448639 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
On Thursday 13 September 2007 03:46, Jack Stone wrote: We're switching our MTA from postfix to sendmail on a purely mail relay server and all is running just fine except for one minor essential. Is there any way to have sendmail perform the same service as the recipient_bcc.map and sender_bcc.map on postfix? Those using postfix know this is used to send bcc of certain emails in order to monitor things like users who might want to know what their kids are up to. I've spent several days going through sendmail docs and trying other tools like procmail to make extra copies from the sender and/or the recip -- but, no joy. [Wild answer off the top of my head] I have a feeling that sendmail very specifically *doesn't* have an easy way to do this because the sendmail people regard it as an invasion of privacy (this may even be a FAQ). I can't instantly think of a way round it, but if I do I'll let you know. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount_ntfs as normal user
On Wednesday 12 of September 2007 21:49:15 Mel wrote: What is the output of: ls -al `which mount_ntfs` under your user id? It is: $ ls -al `which mount_ntfs` -r-xr-xr-x 1 root wheel 10316 Sep 8 22:36 /sbin/mount_ntfs* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
On Thursday 13 September 2007 03:46, Jack Stone wrote: We're switching our MTA from postfix to sendmail on a purely mail relay server and all is running just fine except for one minor essential. Is there any way to have sendmail perform the same service as the You'll have to look for an external milter. Search google for sendmail+milter+bcc. http://www.snertsoft.com/sendmail/milter-bcc/ is a good one to start with (may or may not fit your needs). Kind regards, Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: netcraft uptime
Manolis Kiagias wrote: Evren Yurtesen wrote: Hi, I see that netcraft uptime doesnt function because the kernel timer is set to 1000 by default in freebsd 6.x So perhaps setting kern.hz=100 fixes the problem? What about things getting wrapped in 497 days? How are there some FreeBSD hosts which have 1600+days uptime? how do they manage it? I am just trying to figure out how to do the same in my systems :) Thanks, Evren Yes, I believe the problem is the kernel timer. Older versions of FreeBSD had a 100Hz timer. A Debian server of mine started showing uptime again in Netcraft when I recompiled the kernel with 100Hz timer setting. As for the 497 days problem, I think this is Linux specific. I don't know however if it will exist in FreeBSD 6.X with timer set to 100Hz. Managing to get 1600 days uptime requires very solid hardware, possibly with redundant (maybe hot swap) components and stable power. A UPS is necessary and probably a generator, as during this time there is going to be a blackout that will probably outlast your battery. FreeBSD is actually the easiest (and less costly) part of the setup: It will, simply, run all this time, From what I can see, the 32bit timer part used in TCP rolls over after 497 days. That is why they can not detect usage over 497 days. Netcraft says Additionally HP-UX, Linux, NetApp NetCache, Solaris and recent releases of FreeBSD cycle back to zero after 497 days, no sweat :) Well, I could do over 500 days with a small ups and a 10 year old machine. There is almost no blackouts around here. When there is, it doesnt last more than 1-3 minutes once in 2-3 years. Anyway, we will see if netcraft will show 0 days after 497 but it would be a shame really :) Thanks, Evren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount_ntfs as normal user
On Thursday 13 September 2007 11:27:43 Zbigniew Komarnicki wrote: On Wednesday 12 of September 2007 21:49:15 Mel wrote: What is the output of: ls -al `which mount_ntfs` under your user id? It is: $ ls -al `which mount_ntfs` -r-xr-xr-x 1 root wheel 10316 Sep 8 22:36 /sbin/mount_ntfs* Well, that kills that. Only thing I could think of is setuid mount_ntfs. It's really weird, cause I can't get ntfs to mount under normal userid even with correct permissions. What you can do shouldn't be possible for 2 or 3 reasons. I wonder if it's just ntfs, can you mount another partition as normal user? Like, unmount /usr and remount as normal user or if you have a less busy partition like /data or whatever. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache22 web root directive
On Thursday 13 September 2007 03:15:25 Rong-En Fan wrote: On Wed, Sep 12, 2007 at 10:58:24PM +0200, Mel wrote: On Monday 10 September 2007 14:58:13 Rong-En Fan wrote: On Mon, Sep 10, 2007 at 07:16:15AM -0500, Eric wrote: Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric wrote: close, but I am not running in a non standard DocumentRoot as far as I know. its set to apache22's /usr/local/www/apache22/data, which is the default, but if you look at the mailgraph Makefile, it uses /usr/local/www/data for the install. the more i look at it, the more it seems like its a mailgraph issue. i guess I am curious of the apache20 default of /usr/local/www/data was around so long its just what everyone assumes, but from what I can tell, thats not the recommended practice. isnt it better to install to /usr/local/www/mailgraph and then alias things? Web-based applications will generally install into a subdirectory of /usr/local/www independent of what web server you use. There are some exceptions -- eg. cacti installs into /usr/local/share/cacti This means that you will have to make provision in your httpd.conf (or whatever the equivalent is for the webserver you're using) so that the filesystem space the application lives in is mapped into the URL-space provided by your webserver. In apache, that typically means setting up an alias and then applying appropriate access controls in a Location or Directory block. Formerly many web applications installed into the apache specific directory /usr/local/www/data but this behaviour is now discouraged. It's not, AFAIK, absolutely forbidden, but you'ld have a hard time getting a new port through committal if it behaved like that. I don't think there has been a concerted effort to find all of the older ports that install under /usr/local/www/data and modify them; rather individual maintainers are expected to modify their ports as the occasion arises. Cheers, Matthew - -- yes, and this is how i would prefer to see mailgraph operate as well. I was just pointing out the fact that mailgraph didnt work this way. Just to be clear, I am not doing anything out of the ordinary or using a non-recommended DocumentRoot. The patch at http://people.freebsd.org/~rafan/mailgraph.diff appears to work properly, but shouldnt mailgraph be installed to /usr/local/www/mailgraph as per the recommendations and an alias added to apache for access to mailgraph? As I said in previous mail, I want minimal user interaction for such a simple script. I asked on ports@ before committing. So why don't ports use the convenient etc/apache*/Includes? Defaults: WWWNAME ?= ${PORTNAME} WWWDIR ?= ${LOCALBASE}/www/${PORTNAME} post-install: ${ECHO_CMD} Alias /${WWNAME}/ ${WWDIR} \ ${PREFIX}/etc/apache*/Includes/${WWWNAME}.conf User can override, minimal user interaction... Apache is not the only http server. No really. /usr/local/www/data is hardly ever the document root in the real world as well. What's in ports now: - some use /usr/local/www/portname, some use /usr/local/www/data/portname, some make efforts to look for the real document root (inconsistent) - installing into the assumed document root fails when it's not the actual document root (user interaction required) - user cannot override install location beyond $LOCALBASE/$PREFIX mechanisms Any self-respecting webserver supports aliases in one way or another, the above was an example. A 'bsd.www.mk' activated by WWWPORT=yes in a ports Makefile, that installs targets for aliasing in a detected webserver, should resolve all of the above. Anyway, wishful thinking maybe. Sure would be nice to do ls -al /usr/local/www and instantly see what packages one can offer to a virtual host. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
On 2007-09-12 20:46, Jack Stone [EMAIL PROTECTED] wrote: We're switching our MTA from postfix to sendmail on a purely mail relay server and all is running just fine except for one minor essential. Is there any way to have sendmail perform the same service as the recipient_bcc.map and sender_bcc.map on postfix? Those using postfix know this is used to send bcc of certain emails in order to monitor things like users who might want to know what their kids are up to. Yes. Sendmail supports a mail filtering mechanism called milter, and there are several popular milter tools out there. One of the milters which can do what you seem to need is: http://www.snertsoft.com/sendmail/milter-bcc/index.shtml Having said that, Postfix bundles a lot of the functionality of many milters. If you are happy with the way Postfix works, why do you have to switch to Sendmail? I'm a great fan of Sendmail myself, but if Postfix does what you want to do, if you are more familiar with Postfix, and it will be much easier for you to maintain a Postfix installation, it may be a good idea to use Postfix :-) - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
Having said that, Postfix bundles a lot of the functionality of many milters. If you are happy with the way Postfix works, why do you have to switch to Sendmail? I use both (on different machines) and they both have their 'charms' :-) Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: F11 in Firefox
On Wed, Sep 12, 2007 at 10:43:15AM -0700, David Benfell wrote: Hello all, Having long fingers, I occasionally hit F11 while typing into a text box in Firefox. F11 does something truly horrible that I never under any circumstances want. It moves the window partially off screen such that the window controls are inaccessible. As I said, I NEVER EVER want this function. It is, in my view, a damnable bug. The only way I can get control back is to exit Firefox. How do I kill it? Thanks! $ mkdir ~/tmp $ cp /usr/local/lib/firefox/chrome/toolkit.jar ~/tmp $ cd ~/tmp $ jar -xf toolkit.jar $ vim ./content/global/platformHTMLBindings.xml add: handler event=keypress keycode=VK_F11 command= / somewhere under: binding id=inputFields $ jar -cf toolkit.jar content/ # mv toolkit.jar /usr/local/lib/firefox/chrome/ Restart firefox. Hope that works. Haven't tested it but I change some of the keybindings to be more vi-like in that way. -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
enabling SMP
I've just got a new box, an HP DC5750 with an Athlon X2 3800 but I can't get SMP working. It *was* cheap :) My kernel config: machine i386 cpu I686_CPU ident MELON_SMP # To statically compile in device wiring instead of /boot/device.hints #hints GENERIC.hints # Default places to look for devices. #makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols #optionsSCHED_ULE # ULE scheduler options SMP options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET# InterNETworking options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFS_ROOT# NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_GPT# GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. device apic# I/O APIC # Bus support. device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering #scsi (iPod) device scbus device da device cd device pass # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver #device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc # Enable this for the pcvt (VT220 compatible) console driver #device vt #optionsXSERVER # support for X server on a vt console #optionsFAT_CURSOR # start with block cursor #device agp # support several AGP chipsets # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. #device pmtimer # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer #device plip# TCP/IP over parallel #device ppi # Parallel port interface device #device vpo # Requires scbus and da # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') device bge # Broadcom BCM570xx Gigabit Ethernet # Pseudo devices. device loop# Network loopback
Re: Problem with logs
Hello Derek, I don't use hosts.allow. I use the AllowUsers directive in the sshd.conf file to limit the actual username/ip combinations. As a rule, I also close port 22 on the router. When I need external access (e.g. when I am travelling) I will open some other port and have sshd Listen on that port as well. At that time, I will add an obscure username to AllowUsers with any ip address. Of course, I use the custom port to login. Prior to implementing this setup, I used to get frequent daily login attempts. Now I don't get any. Thanks for your feedback. Abid On 12-Sep-07 9:33 AM, Derek Ragona wrote: How are you limiting this ssh access? Are you using hosts.allow? If you are not using hosts.allow, I would suggest you do so. -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
From: Peter Boosten [EMAIL PROTECTED] To: Jonathan McKeown [EMAIL PROTECTED] CC: [EMAIL PROTECTED], freebsd-questions@freebsd.org Subject: Re: fbsd sendmail as MTA Date: Thu, 13 Sep 2007 11:00:59 +0200 (CEST) On Thursday 13 September 2007 03:46, Jack Stone wrote: We're switching our MTA from postfix to sendmail on a purely mail relay server and all is running just fine except for one minor essential. Is there any way to have sendmail perform the same service as the You'll have to look for an external milter. Search google for sendmail+milter+bcc. http://www.snertsoft.com/sendmail/milter-bcc/ is a good one to start with (may or may not fit your needs). Kind regards, Peter -- Blush... I was so focused on procmail as a tool, I completely forgot snert's great milters. I use the regex-milter as a front-line wall against junk. Thanks for reminding me as that sounds like what I'm looking for. BTW: I'm much better at sendmail than postfix (although it doesn't sound like it) and as I am the server guy for an ISP, we are moving several postfix machines to sendmail which may answer that question coming from G. I find it hard to master more than one MTA, although far from a master of sendmail yet. Used it for 10+ years. Really appreciate the response! Jack _ Can you find the hidden words? Take a break and play Seekadoo! http://club.live.com/seekadoo.aspx?icid=seek_hotmailtextlink1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Business Partnership - Free BSD
Good day, Hi there I came across your site and more specifically your page http://www.freebsd.org/commercial/consult.ht%6Dl seeing that you provide/offer an operating system online, I would like to exchange links, my site http://www.datadetect.co.za/data-recovery.htm provides data recovery online. Could you please send me your details so I can put up your link, my details are as follows: Title: Data Recovery Description: Data Recovery solutions available from SA's leading recovery experts, Data Detect, free quote and booking online option available URL: http://www.datadetect.co.za/data-recovery.htm Kind Regards Webmaster ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: enabling SMP
Hi, Frank Shute wrote: I've just got a new box, an HP DC5750 with an Athlon X2 3800 but I can't get SMP working. It *was* cheap :) my family's comment to this is: ' we are too poor to buy cheap. CPUTYPE?=athlon-mp You run 32 bits on a 64 bit machine? Are you aware of it? I've had problems getting ACPCI working, I just get a panic, so I'm booting with it disabled. Then you will not get SMP running. cpu0 on motherboard Nothing else about CPUs in dmesg. This is expected. Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CPU utilization
Hello, Is there a tool similar to mpstat (or mpstat itself) available to track CPU utilization on FreeBSD? I am looking for something more elaborate than top, and was wondering if anyone could help. Thanks, -- Preethi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount_ntfs as normal user
On Thursday 13 of September 2007 12:13:46 Mel wrote: Well, that kills that. Only thing I could think of is setuid mount_ntfs. It's really weird, cause I can't get ntfs to mount under normal userid even with correct permissions. What you can do shouldn't be possible for 2 or 3 reasons. I wonder if it's just ntfs, can you mount another partition as normal user? Like, unmount /usr and remount as normal user or if you have a less busy partition like /data or whatever. Yes, this is only for ntfs. For ufs or msdosfs partitions (slices) it is not posible. Only ntfs I can mount and unmount as normal user. What I should to do with ntfs_mount? Remove the setuid? Thank hou very much Mel. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: enabling SMP
On Thu, Sep 13, 2007 at 09:03:05PM +0800, Erich Dollansky wrote: Hi, Frank Shute wrote: I've just got a new box, an HP DC5750 with an Athlon X2 3800 but I can't get SMP working. It *was* cheap :) my family's comment to this is: ' we are too poor to buy cheap. I was tempted by a Sun box but I got mean! CPUTYPE?=athlon-mp You run 32 bits on a 64 bit machine? Are you aware of it? Yep. I don't plan on using more than 4GB of memory on this machine for some time to come. When I install 7.0, I'll build 64 bit. I've had problems getting ACPCI working, I just get a panic, so I'm booting with it disabled. Then you will not get SMP running. Blast! It seems spritely enough with 1 core though. cpu0 on motherboard Nothing else about CPUs in dmesg. This is expected. Erich Thanks for the information Erich. I might file a pr for the ACPCI if I get time. -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fbsd sendmail as MTA
On 2007-09-13 13:49, Peter Boosten [EMAIL PROTECTED] wrote: Having said that, Postfix bundles a lot of the functionality of many milters. If you are happy with the way Postfix works, why do you have to switch to Sendmail? I use both (on different machines) and they both have their 'charms' :-) No argument there, at least from me :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/dev/random question
Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). Thanks! Per olof ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
vpn which freeBSD 6.2
Hi, i tryed to make a VPN between 2 freeBSD 6.2 like this : 10.0.1.0/24 ---GW1: 10.0.0.1 = 10.0.0.2 GW2 --- 10.0.2.0/24 whith GENERIC kernel i can ping from either subnet. i compiled a custom kernel with options IPSEC and IPSEC_ESP . the ping dont work ? Thanks for ur help ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount_ntfs as normal user
Thank hou very much Mel. I'm very sorry for the misspell. Thank you very much Mel. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPU utilization
Preethi Natarajan wrote: Hello, Is there a tool similar to mpstat (or mpstat itself) available to track CPU utilization on FreeBSD? I am looking for something more elaborate than top, and was wondering if anyone could help. Thanks, Have you used vmstat? there are a lot of pages that reveal important information in regards to the status of a system. -Scott Oertel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPU utilization
In response to Preethi Natarajan [EMAIL PROTECTED]: Hello, Is there a tool similar to mpstat (or mpstat itself) available to track CPU utilization on FreeBSD? I am looking for something more elaborate than top, and was wondering if anyone could help. Depending on what you mean by track, you might find SNMP+MRTG useful. For example, I track: http://www.potentialtech.com/mrtg/cpu.html -- 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]
natd / ipfw services on internal interface
I figured out what the problem was. I had compiled my dhcp server with USE_SOCKETS and am NOT running in a jail. After a lot of searching the bug reports I came across an old bug that said that USE_SOCKETS was added for jailed dhcp servers, because they do not have access to bpf. It also said that compiling USE_SOCKETS into a non jailed dhcp server will have unpredictable results. I found out that the server will behave badly like it is being sent through nat out our the wrong port. gt; You should specify more information about your setup, but generally you gt; should be able to just insert a rule like quot;ipfw add xxx allow ip from gt; mynet/mask to mynet/maskquot;, where quot;xxxquot; is the rule-number BEFORE your gt; natd redirection rule-number and mynet/mask describes your internal network. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/random question
On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). FreeBSD uses the yarrow algorithm, as mentioned in random(4). See http://en.wikipedia.org/wiki/Yarrow_algorithm http://www.schneier.com/yarrow.html Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpzcROhIeW5m.pgp Description: PGP signature
iconv.h and ruby-libxml
Hi, When I try to install libxml-ruby-0.5.1.0, I get this error message: gcc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I. -I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=\extconf.h\ -I/usr/local/libexec/iconv/include -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I. -I/usr/local/include/libxml2 -c cbg.c In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:28:19: iconv.h: No such file or directory In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:136: error: syntax error before iconv_t *** Error code 1 I search for iconv.h, and it's in /usr/local/include/iconv.h I'm running 6.2-STABLE FreeBSD, i386 Charlie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Bridging and port mirroring
I've poked around on the web, but come up empty. And I find it hard to believe there's not a simple way to do this, if it hasn't been done before. I've got a server with two nics configured for bridging and running bunches of ipfw rules. I'd like to add a 3rd NIC and have it mirror the 2nd NIC (so all traffic into and out of nic2 goes to nic3), so I can run an IDS on another server. Yes, I know that has the potential to overload nic3 if there is a lot of traffic going in and out of nic2, but that's not an issue for me. Has anyone done this before, or know how to do this? Thanks, --Brian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/random question
On Thu, 13 Sep 2007 17:36:30 +0200 Roland Smith [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). FreeBSD uses the yarrow algorithm, as mentioned in random(4). See http://en.wikipedia.org/wiki/Yarrow_algorithm http://www.schneier.com/yarrow.html Yarrow is reseeded with interrupt entropy, and is supposedly good enough not to require the amount of entropy to be tracked. So /dev/random need not block, and there's no need for a separate non-blocking device. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Plz, Help! /usr/sbin/sendmail: No such file or directory
Hi there I have some weird problems in running Postfix. I have installed it on my FreeBSD 6.2 Box. Postfix starts normally as shown from maillog: Sep 13 16:28:37 veejay postfix/postfix-script[18197]: starting the Postfix mail system Sep 13 16:28:37 veejay postfix/master[18198]: daemon started -- version 2.4.0, configuration /usr/local/etc/postfix But I am unable to send an email from the command prompt as shown here: veejay# mail Mail version 8.1 6/6/93. Type ? for help. /var/mail/christensen: 0 messages m [EMAIL PROTECTED] Subject: Test message it is workinng . EOT mail: /usr/sbin/sendmail: No such file or directory q veejay# I thought its path/configuration problem but veejay# /usr/local/sbin/postconf –nshows settings as follow, which seems to be OK? I don't know L command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix debug_peer_level = 2 html_directory = no mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop unknown_local_recipient_reject_code = 550 Could you please help to discover problem? What is wrong? Why this Error mail: /usr/sbin/sendmail: No such file or directory keeps coming? Thank you very much! -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 6.2 and VMWare ESX 3.x
Hi, Has anyone successfully been able install FreeBSD on a ESX server? I have gotten it to work fine on VMWare Workstation, however when trying to install on ESX it will not find the ESX SCSI controller and not allow an install. Thanks, Bret J. Esquivel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Immense Networks, L.L.C. http://www.immense.net http://www.immense.net Ofc: (225) 754-9005 Cell: (504) 301-7413 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vpn which freeBSD 6.2
ckd ckd wrote: Hi, i tryed to make a VPN between 2 freeBSD 6.2 like this : 10.0.1.0/24 ---GW1: 10.0.0.1 = 10.0.0.2 GW2 --- 10.0.2.0/24 whith GENERIC kernel i can ping from either subnet. i compiled a custom kernel with options IPSEC and IPSEC_ESP . the ping dont work ? You don't mention having installed e.g. racoon (in security/ipsec-tools) so you don't have any software to actually set up and negotiate a tunnel. AFAIK, IPSEC and IPSEC_ESP are just options to enable those specific protocols, but you still need software to do IKE and all the other acronyms that VPN comes with. Here's a bunch of links I found useful when setting up VPN: http://www.mail-archive.com/[EMAIL PROTECTED]/msg19089.html http://www.lacave.net/~fred/racoon/config.html http://www.netbsd.org/docs/network/ipsec/ --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
On 2007-09-13 11:23, Bret J. Esquivel wrote: Has anyone successfully been able install FreeBSD on a ESX server? I have gotten it to work fine on VMWare Workstation, however when trying to install on ESX it will not find the ESX SCSI controller and not allow an install. I've got FreeBSD 6.2-STABLE running on ESX 3.0.2. The SCSI controller shown to FreeBSD on my setup is 'LSI Logic'. HTH -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Scripting question
I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. I don't have the perl skills, though that would be ideal. Any help out there? Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. Seems like this is right up sort's alley. Is the first string always separated from the rest by white space or does your first string sometimes include white space. jerry I don't have the perl skills, though that would be ideal. Any help out there? Kurt ___ 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: fbsd sendmail as MTA
On Sep 12, 2007, at 8:46 PM, Jack Stone wrote: Is there any way to have sendmail perform the same service as the recipient_bcc.map and sender_bcc.map on postfix? Those using postfix know this is used to send bcc of certain emails in order to monitor things like users who might want to know what their kids are up to. I've used the mime-defang milter for this. I was already using MIME- Defang for other things, and I wouldn't recommend going with it if your only need is to add blind recipients to various messages. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Plz, Help! /usr/sbin/sendmail: No such file or directory
On 9/13/07, VeeJay [EMAIL PROTECTED] wrote: Hi there Hi! I have some weird problems in running Postfix. I have installed it on my FreeBSD 6.2 Box. Postfix starts normally as shown from maillog: Sep 13 16:28:37 veejay postfix/postfix-script[18197]: starting the Postfix mail system Sep 13 16:28:37 veejay postfix/master[18198]: daemon started -- version 2.4.0, configuration /usr/local/etc/postfix But I am unable to send an email from the command prompt as shown here: veejay# mail Mail version 8.1 6/6/93. Type ? for help. /var/mail/christensen: 0 messages m [EMAIL PROTECTED] Subject: Test message it is workinng . EOT mail: /usr/sbin/sendmail: No such file or directory q veejay# I thought its path/configuration problem but veejay# /usr/local/sbin/postconf –nshows settings as follow, which seems to be OK? I don't know L command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix debug_peer_level = 2 html_directory = no mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man mynetworks_style = host newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop unknown_local_recipient_reject_code = 550 Could you please help to discover problem? What is wrong? Why this Error mail: /usr/sbin/sendmail: No such file or directory keeps coming? Thank you very much! Because in your configuration appears another path: sendmail_path = /usr/local/sbin/sendmail And you are looking in: /usr/sbin/sendmail. -- Thanks! You're welcome. -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/random question
On Thu, Sep 13, 2007 at 05:31:55PM +0100, RW wrote: On Thu, 13 Sep 2007 17:36:30 +0200 Roland Smith [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). FreeBSD uses the yarrow algorithm, as mentioned in random(4). See http://en.wikipedia.org/wiki/Yarrow_algorithm http://www.schneier.com/yarrow.html Yarrow is reseeded with interrupt entropy, and is supposedly good enough not to require the amount of entropy to be tracked. So /dev/random need not block, and there's no need for a separate non-blocking device. On the website it says that the original yarrow algorithm is no longer supported. It seems to have been replaced by the fortuna algorithm. I can't see from the source if /usr/src/sys/dev/random/yarrow.* use the original yarrow algorithm, or the improved yarrow-160 aka fortuna. The use of crypto/rijndael/rijndael-api-fst.h and crypto/sha2/sha2.h seem to indicate the latter though. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpXZKYBA2fP9.pgp Description: PGP signature
Re: Scripting question
First, please always make sure your responses go to the list. It is both list etiquette and of practical value. Follow-ups to only an individual may not reach the person who can provide real help. Most Email clients have a group reply which will do the trick. On Thu, Sep 13, 2007 at 10:32:34AM -0700, Kurt Buff wrote: On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. Seems like this is right up sort's alley. Is the first string always separated from the rest by white space or does your first string sometimes include white space. jerry The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Plz, Help! /usr/sbin/sendmail: No such file or directory
On Thu, Sep 13, 2007 at 06:34:25PM +0200, VeeJay wrote: Hi there I have some weird problems in running Postfix. I have installed it on my FreeBSD 6.2 Box. Postfix starts normally as shown from maillog: Sep 13 16:28:37 veejay postfix/postfix-script[18197]: starting the Postfix mail system Sep 13 16:28:37 veejay postfix/master[18198]: daemon started -- version 2.4.0, configuration /usr/local/etc/postfix But I am unable to send an email from the command prompt as shown here: veejay# mail Mail version 8.1 6/6/93. Type ? for help. /var/mail/christensen: 0 messages m [EMAIL PROTECTED] Subject: Test message it is workinng . EOT mail: /usr/sbin/sendmail: No such file or directory q veejay# /usr/sbin/sendmail should be a symbolic link to /usr/sbin/mailwrapper. When you install Postfix, it asks if you want to activate postfix in mailwrapper. You should say yes there. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpTkq5MOD6H7.pgp Description: PGP signature
Running process on startup as a user
Using FreeBSD 6.2 x86. I have a script called: /home/foo/scripts/MyScript.sh The user is 'foo'. The password is 'bar'. What I'm trying to do is run the MyScript.sh command on startup (that way if the box reboots, then this users process also re-starts it's self). thoughts? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Running process on startup as a user
Using FreeBSD 6.2 x86. I have a script called: /home/foo/scripts/MyScript.sh The user is 'foo'. The password is 'bar'. What I'm trying to do is run the MyScript.sh command on startup (that way if the box reboots, then this users process also re-starts it's self). thoughts? Create a crontab entry for the 'foo' user that reads: @reboot /home/foo/scripts/MyScript.sh http://www.freebsd.org/cgi/man.cgi?query=crontabsektion=5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Running process on startup as a user
On Thu, 13 Sep 2007 at 13:15 -0500, [EMAIL PROTECTED] confabulated: Using FreeBSD 6.2 x86. I have a script called: /home/foo/scripts/MyScript.sh The user is 'foo'. The password is 'bar'. What I'm trying to do is run the MyScript.sh command on startup (that way if the box reboots, then this users process also re-starts it's self). thoughts? You could put the script in a crontab for that user: @reboot /bin/sh /home/foo/scripts/MyScript.sh According to 'man 5 crontab', @reboot runs the script once at startup. -- _|_ (_| | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. jerry Ya know, it's really easy to get wrapped around the axle on this stuff. I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. Sigh. Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Running process on startup as a user
Jack Barnett wrote: Using FreeBSD 6.2 x86. I have a script called: /home/foo/scripts/MyScript.sh The user is 'foo'. The password is 'bar'. What I'm trying to do is run the MyScript.sh command on startup (that way if the box reboots, then this users process also re-starts it's self). thoughts? Looks like a good job for a user crontab: Login as the foo user, type: crontab -e Insert the line: @reboot /home/foo/scripts/MyScript.sh Save, exit, you are done. Look at man 5 crontab for more details and possible caveats. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPU utilization
Preethi Natarajan wrote: Hello, Is there a tool similar to mpstat (or mpstat itself) available to track CPU utilization on FreeBSD? I am looking for something more elaborate than top, and was wondering if anyone could help. Thanks, I forgot also to mention systat, personally to keep track of CPU utilization, as in graphs, I use cacti which queries the servers using snmp, we also have a script which collects data from vmstat and stores it into a rrd, then we use rrdcgi to make pretty graphs with the data. -Scott Oertel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: First, please always make sure your responses go to the list. It is both list etiquette and of practical value. Follow-ups to only an individual may not reach the person who can provide real help. Most Email clients have a group reply which will do the trick. Yup - that's my fault, and contrary to my intent - I was using the web interface, and it's too easy to just hit the reply button instead of reply to all - mea culpa. On Thu, Sep 13, 2007 at 10:32:34AM -0700, Kurt Buff wrote: On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. Seems like this is right up sort's alley. Is the first string always separated from the rest by white space or does your first string sometimes include white space. jerry The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. Tried that, and it doesn't work the way I expect, or else I'm doing it wrong, which is definitely possible. My first difficulty is that I can't figure out how to specify the space as the field delimiter, assuming that -t is the correct parameter for that. I've tried specifying '@' for -t, but that doesn't work either. Next, my suspicion is that the -u parameter will simply output the first line of a set of non-unique lines, which is what it does normally - it doesn't seem to eliminate all non-unique lines, it just makes the first line the unique one. Am I making sense? Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPU utilization
In the last episode (Sep 13), Preethi Natarajan said: Is there a tool similar to mpstat (or mpstat itself) available to track CPU utilization on FreeBSD? I am looking for something more elaborate than top, and was wondering if anyone could help. I don't think there are any per-cpu statistics available from the kernel currently. All you get is the aggregate total from things like top and vmstat. It'd be interesting to see Solaris-style mpstat output from a FreeBSD kernel. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. I don't have the perl skills, though that would be ideal. Any help out there? #!/usr/bin/perl while () { # Assuming no whitespace in addresses; kill everything after the first space s/ .*$//; # Store the name count in a hash $names{$_}++; } # Go over the hash while (($name,$count) = each(%names)) { if ($count == 1) { # print unique names. print $name, \n; } } Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpjohzJDWDRW.pgp Description: PGP signature
CDRW Stopped Working Moving to 6.x
I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? -- Crist J. Clark | [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PT_PAUSE ?
Hi all, I want to pause a ptraced process which had been PT_CONTINUE, Can I just send SIGSTOP, or re-attach ? Is there better way? -Buganini ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
From: Mak Kolybabi [EMAIL PROTECTED] Date: September 13, 2007 11:53:52 AM CDT To: Bret J. Esquivel [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 6.2 and VMWare ESX 3.x On 2007-09-13 11:23, Bret J. Esquivel wrote: Has anyone successfully been able install FreeBSD on a ESX server? I have gotten it to work fine on VMWare Workstation, however when trying to install on ESX it will not find the ESX SCSI controller and not allow an install. I've got FreeBSD 6.2-STABLE running on ESX 3.0.2. The SCSI controller shown to FreeBSD on my setup is 'LSI Logic'. HTH Can you outline the hardware you are using that is successful in running FreeBSD 6.2 Thanks Troy Kocher _ Scanned by IBM Email Security Management Services powered by MessageLabs. _ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On Sep 13, 2007, at 1:19 PM, Kurt Buff wrote: I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. Instead of grep -v take a look at comm. -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. jerry Ya know, it's really easy to get wrapped around the axle on this stuff. I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. Sigh. Kurt It sounds like you've found your solution, but how about the below shell script? Probably woefully inefficient, but should work. - Craig ### begin script ## #!/bin/sh # Read in an input list of 2 column data pairs and output the pairs where the first columns are unique. INPUT_FILE=list.txt OUTPUT_FILE=new_list.txt NON_UNIQ_LIST= for NON_UNIQ in `cat $INPUT_FILE | awk '{print $1}' | sort | uniq -c | grep -vE '^ *1' | awk '{print $2}'` do NON_UNIQ_LIST=$NON_UNIQ_LIST|$NON_UNIQ done NON_UNIQ_LIST=`echo $NON_UNIQ_LIST | sed 's/^.//'` cat $INPUT_FILE | grep -vE $NON_UNIQ_LIST $OUTPUT_FILE ### end script ## ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bridging and port mirroring
On Sep 13, 2007, at 9:29 AM, Brian McCann wrote: I've got a server with two nics configured for bridging and running bunches of ipfw rules. I'd like to add a 3rd NIC and have it mirror the 2nd NIC (so all traffic into and out of nic2 goes to nic3), so I can run an IDS on another server. Yes, I know that has the potential to overload nic3 if there is a lot of traffic going in and out of nic2, but that's not an issue for me. Has anyone done this before, or know how to do this? You might get some traction from the ipfw tee command, although that is intended for use together with a divert socket (ie, such as bouncing the packets through natd). Otherwise, try looking into the netgraph ng_tee node: DESCRIPTION The tee node type has a purpose similar to the tee(1) command. Tee nodes are useful for debugging or ``snooping'' on a connection between two net- graph nodes. Tee nodes have four hooks, right, left, right2left, and left2right. All data received on right is sent unmodified to both hooks left and right2left. Similarly, all data received on left is sent unmod- ified to both right and left2right. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
On 2007-09-13 13:41, Troy Kocher wrote: On 2007-09-13 11:23, Bret J. Esquivel wrote: Has anyone successfully been able install FreeBSD on a ESX server? I have gotten it to work fine on VMWare Workstation, however when trying to install on ESX it will not find the ESX SCSI controller and not allow an install. I've got FreeBSD 6.2-STABLE running on ESX 3.0.2. The SCSI controller shown to FreeBSD on my setup is 'LSI Logic'. HTH Can you outline the hardware you are using that is successful in running FreeBSD 6.2 Here's all the information I have. [EMAIL PROTECTED] root]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 3 model name : Intel(R) Xeon(TM) CPU 2.80GHz stepping: 4 cpu MHz : 2800.244 cache size : 1024 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm lm bogomips: 5583.66 [EMAIL PROTECTED] root]# lspci 00:00.0 Host bridge: Intel Corporation: Unknown device 3590 (rev 0c) 00:00.1 Class ff00: Intel Corporation: Unknown device 3591 (rev 0c) 00:02.0 PCI bridge: Intel Corporation: Unknown device 3595 (rev 0c) 00:04.0 PCI bridge: Intel Corporation: Unknown device 3597 (rev 0c) 00:05.0 PCI bridge: Intel Corporation: Unknown device 3598 (rev 0c) 00:06.0 PCI bridge: Intel Corporation: Unknown device 3599 (rev 0c) 00:08.0 System peripheral: Intel Corporation: Unknown device 359b (rev 0c) 00:1d.0 USB Controller: Intel Corporation 82801EB USB (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB USB (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB USB2 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801BA/CA/DB/EB PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB LPC Interface Controller (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB Ultra ATA Storage Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB SMBus Controller (rev 02) 01:06.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE] 02:00.0 PCI bridge: Intel Corporation: Unknown device 0329 (rev 09) 02:00.2 PCI bridge: Intel Corporation: Unknown device 032a (rev 09) 03:03.0 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) 03:03.1 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) 04:04.0 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) 04:04.1 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) 05:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet (rev 11) 06:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet (rev 11) 07:00.0 PCI bridge: Intel Corporation: Unknown device 0330 (rev 07) 07:00.2 PCI bridge: Intel Corporation: Unknown device 0332 (rev 07) 08:0e.0 RAID bus controller: Adaptec ServeRAID Controller (rev 07) 09:01.0 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) 09:01.1 Ethernet controller: Intel Corporation 8254NXX Gigabit Ethernet Controller (rev 03) -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Roland Smith [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. I've got a sorted file of SMTP addresses, and want to eliminate the lines that are the same up to a space character within the line. Example: [EMAIL PROTECTED] NO [EMAIL PROTECTED] OK The above lines *both* need to be eliminated from output - I don't want the first or second of them, I want them both gone. I've looked at sort and uniq, and I've googled a fair bit but can't seem to find anything that would do this. I don't have the perl skills, though that would be ideal. Any help out there? #!/usr/bin/perl while () { # Assuming no whitespace in addresses; kill everything after the first space s/ .*$//; # Store the name count in a hash $names{$_}++; } # Go over the hash while (($name,$count) = each(%names)) { if ($count == 1) { # print unique names. print $name, \n; } } Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) I can follow the logic in that. I'll definitely try incorporating that. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Craig Whipp [EMAIL PROTECTED] wrote: On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. jerry Ya know, it's really easy to get wrapped around the axle on this stuff. I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. Sigh. Kurt It sounds like you've found your solution, but how about the below shell script? Probably woefully inefficient, but should work. - Craig ### begin script ## #!/bin/sh # Read in an input list of 2 column data pairs and output the pairs where the first columns are unique. INPUT_FILE=list.txt OUTPUT_FILE=new_list.txt NON_UNIQ_LIST= for NON_UNIQ in `cat $INPUT_FILE | awk '{print $1}' | sort | uniq -c | grep -vE '^ *1' | awk '{print $2}'` do NON_UNIQ_LIST=$NON_UNIQ_LIST|$NON_UNIQ done NON_UNIQ_LIST=`echo $NON_UNIQ_LIST | sed 's/^.//'` cat $INPUT_FILE | grep -vE $NON_UNIQ_LIST $OUTPUT_FILE ### end script ## I'll fiddle with this too, but I like the perl better. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On 9/13/07, Jeffrey Goldberg [EMAIL PROTECTED] wrote: On Sep 13, 2007, at 1:19 PM, Kurt Buff wrote: I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. Instead of grep -v take a look at comm. -j Interesting! I just looked at the man page, and while I don't think it it's going to be directly useful (or I'm just not reading the page correctly), it's a new utility to me - I'll keep it in mind for other things. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On Sep 13, 2007, at 2:38 PM, Kurt Buff wrote: Instead of grep -v take a look at comm. Interesting! I just looked at the man page, and while I don't think it it's going to be directly useful (or I'm just not reading the page correctly), it's a new utility to me - I'll keep it in mind for other things. Maybe I haven't understood what you are after. If you want to get lines that exist in either file1 or file2 but not both (and if the files are already sorted) then comm -3 file1 file2 will do that. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
parameter setgid_group: unknown group name: postdrop
Hello there Could anyone help me? I have installed Postfix on my freebsd 6.2 box but still not able to make it work after spending whole day and night I have added a group with name postdrop but when I try to send a mail, I get this error logged in maillog: #pw groupadd postfix #pw useradd postfix -c Postfix SMTP Server -d /dev/null -g postfix -s /sbin/nologin *#pw groupadd postdrop * # tail /var/log/maillog *Sep 13 20:54:35 veejay postfix/sendmail[1315]: fatal: file /usr/local/etc/postfix/main.cf: parameter setgid_group: unknown group name: postdrop* #ll /etc/group shows *-rw-r- 1 root wheel 582 Sep 13 19:13 /etc/group* Is there pemission problem? I have run set-permissions command too but still no luck! :( *#/usr/local/sbin/postfix set-permissions * why it is not able to find the group in the /etc/group? Any help will be really apprecaited! -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Getting vm_map of a ptraced process
I want to get vm_map of a ptraced process, but process structure is prerequisite to getting vm_map How can I get the process structure? I saw FOREACH_THREAD_IN_PROC in the source, but this need superuser's power, right? Is PT_READ from memory a good way? (seems to be dirty) Or this way? (not bad, I think, but not yet standard) http://www.e.kth.se/~lha/patches/netbsd/gdb-core/ptrace-patch any better idea is welcome, thanks -Buganini ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
Yes, we have it running, on 3.0.2, but I remember it taking a bit of fiddling, and can't remember the details. I'll see if I can go back and take a look at my notes on how that was done. On 9/13/07, Bret J. Esquivel [EMAIL PROTECTED] wrote: Hi, Has anyone successfully been able install FreeBSD on a ESX server? I have gotten it to work fine on VMWare Workstation, however when trying to install on ESX it will not find the ESX SCSI controller and not allow an install. Thanks, Bret J. Esquivel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Immense Networks, L.L.C. http://www.immense.net http://www.immense.net Ofc: (225) 754-9005 Cell: (504) 301-7413 ___ 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: CDRW Stopped Working Moving to 6.x
Make sure you add atapicam into your kernel it is not in generic! I had the same problem. /etc/loader.conf atapicam_load=YES Crist J. Clark wrote: I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: parameter setgid_group: unknown group name: postdrop
On Sep 13, 2007, at 1:19 PM, VeeJay wrote: Could anyone help me? I have installed Postfix on my freebsd 6.2 box but still not able to make it work after spending whole day and night I have added a group with name postdrop but when I try to send a mail, I get this error logged in maillog: Take a look at /usr/ports/mail/postfix/pkg-install. Unless you really want to deal with resolving all of these integration issues yourself, doing a cd /usr/ports/mail/postfix make install is likely to work better... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
Yes, we have it running, on 3.0.2, but I remember it taking a bit of fiddling, and can't remember the details. Does 6.2 still have that time- and ACPI issue in ESX3? I've got it running in ESX2.5, but it indeed needed some (or much) fiddling :-) - disable ACPI in the VM - kernel frequency at 100 hz - the vmxnet-driver (even the one from workstation 6) crashes freebsd, but IIRC this driver can be replaced with e1000 in esx3. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Scripting question
On Thursday 13 September 2007 20:19, Kurt Buff wrote: On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote: The only space is the one separating the SMTP address from the OK or NO. Then you should be able to tell it to sort on the first token in the string with white space as a separator and to eliminate duplicates. It has been a long time since I had need of sort. I don't remember the arguments/flags but am sure that type of thing can be done. You can use uniq if the file is already sorted (if not, put a sort at the start of the pipe) - after using awk to pick the first field: awk '{print $1}' inputfile | uniq -u Ya know, it's really easy to get wrapped around the axle on this stuff. I think I may have a better solution. The file I'm trying to massage has a predecessor - the non-unique lines are the result of a concatenation of two files. Silly me, it's better to 'grep -v' with the one file vs. the second rather than trying to merge, sort and further massage the result. The fix will be to use sed against the first file to remove the ' NO', thus providing a clean argument for grepping the other file. If it's two files and you want to select or reject common lines, look at comm(1) as another technique. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 4TB Raid Setup
Hi, I have a problem I've been pulling my hair out over the past few days. I'm building a server that's going to house a very large database. For it, I've build a RAID 5 with 4TB of space (3.5TB usable). It's running on an HighPoint RocketRAID 1820A 8-channel SATA Controller. Since this is for a database, it's most likely going to be a few very large files, so splitting up the partition to multiple mounts isn't an option for me. When FreeBSD boots up, dmesg shows the card detected correctly, and all channels started successfully. However when it actually loads it into the device, it shows: da0: 1241428MB (2542444544 512 byte sectors: 255H 63S/T 158259C) That equates to about 1.1TB, rather than the 3.5TB the controller bios shows as usable space. The motherboard on this server is an Asus P5M2 serverboard, which can easily handle 4TB, if that's even a concern at all. Regardless of this note on boot, I've still gone ahead and configured GPT to see, and when mounted, df -h reports 1.1TB as well. I've heard of FreeBSD servers handling multiple-terabytes without issue, and 1.1 seems to be an odd number to truncate on. I'm very devoted to FreeBSD and would very much like to figure out how to make this work, however as time is important, if I can't resolve this I'll be forced to look into alternative OS choices. As of now, I can't find much information online pertaining to my specific issue, and I'm out of ideas myself. Thank you for your time (and replies). :) -- -Harry Maugans http://www.desktopnexus.com Join the wallpaper revolution! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fatal: Recipient addresses must be specified on the command line or via the -t option
Hello there Could someone help me? I am really tired now spending 24 hours continously makeing it work... I have installed Postfix on my 6.2 freebsd box. Now, whenever, I try to run a php script to send mail out, this error is logged into /var/log/maillog *Sep 13 21:17:28 veejay postfix/sendmail[1396]: fatal: Recipient addresses must be specified on the command line or via the -t option* What is wrong there? Here is the php script. there is address: $to = [EMAIL PROTECTED]; $from = [EMAIL PROTECTED]; $subject = Hi!; $from_header = From: $from; $contents = this is email test\n\nDoes it work?; if (mail($to, $subject, $contents, $from_header)) { echo(pMessage successfully sent!/p); } else { echo(pMessage delivery failed.../p); } -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 6.2 and VMWare ESX 3.x
On Thu, Sep 13, 2007 at 11:23:49AM -0500, Bret J. Esquivel wrote: Has anyone successfully been able install FreeBSD on a ESX server? I Yes, I have successfully installed FreeBSD i386 and amd64 on ESX 3.x. The only problem I know of is that SMP only works with FreeBSD/amd64. to install on ESX it will not find the ESX SCSI controller and not allow an install. When creating a new virtual machine I always choose Other or Other(64-bit) as guest OS. The virtual SCSI Controller is LSI Logic, FreeBSD is version 6.x. Once the virtual system is running, I install the VMware Tools from VMware Server 1.x. Uwe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/random question
Roland Smith wrote: On Thu, Sep 13, 2007 at 05:31:55PM +0100, RW wrote: On Thu, 13 Sep 2007 17:36:30 +0200 Roland Smith [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). FreeBSD uses the yarrow algorithm, as mentioned in random(4). See http://en.wikipedia.org/wiki/Yarrow_algorithm http://www.schneier.com/yarrow.html Yarrow is reseeded with interrupt entropy, and is supposedly good enough not to require the amount of entropy to be tracked. So /dev/random need not block, and there's no need for a separate non-blocking device. On the website it says that the original yarrow algorithm is no longer supported. It seems to have been replaced by the fortuna algorithm. I can't see from the source if /usr/src/sys/dev/random/yarrow.* use the original yarrow algorithm, or the improved yarrow-160 aka fortuna. The use of crypto/rijndael/rijndael-api-fst.h and crypto/sha2/sha2.h seem to indicate the latter though. Should I conclude then that randomness is sufficient and performance is a non-issue? ___ 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 next boot from windows to freebsd?
On Wed, Sep 12, 2007 at 12:16:35PM +0300, Georgi Iovchev wrote: Hello guys Hi. But the problem is how to switch next boot when I am at windows via remote desktop??! I need something like boot0cfg but for windows, but it doesnt exist ) Attached is the source to a program that I wrote about 4 and a half years ago. It performs the function of a dumbed-down boot0cfg for Windows, only understanding the -s option, or giving you an interactive menu to choose from. It also is hardcoded to use PhysicalDrive0, but that's usually what you would boot from. I compile it using the devel/mingw32-gcc port. You can probably also use the version of mingw that's available through cygwin to compile it on the Windows side. Or you can be lazy and download the binary that I just posted to http://www.severious.net/nextboot.exe You should really compile it yourself though, rather than trusting random executables from strangers :-) I'll probably delete the binary after a week or so, but the source should live on in the list archives. The usual disclaimers: This program changes your MBR, I'm not responsible if it eats your partition table, your lunch, or your dog's lunch. Requires administrator rights to run. TTL not included. Hope this helps, Craig /* vim: set sts=4 sw=4: */ #include windows.h #include stdio.h #include string.h #define MBR_SIZE 512 #define OFF_VERSION 0x1b0 /* offset: version number */ #define OFF_OPT 0x1b9 /* offset: default boot option */ #define OFF_DRIVE 0x1ba /* offset: setdrv drive */ #define OFF_FLAGS 0x1bb /* offset: option flags */ #define OFF_TICKS 0x1bc /* offset: clock ticks */ #define OFF_PTBL0x1be /* offset: partition table */ #define OFF_MAGIC 0x1fe /* offset: magic number */ #define DOSPARTOFF 446 #define NDOSPART4 struct dos_partition { unsigned char dp_flag;/* bootstrap flags */ unsigned char dp_shd; /* starting head */ unsigned char dp_ssect; /* starting sector */ unsigned char dp_scyl;/* starting cylinder */ unsigned char dp_typ; /* partition type */ unsigned char dp_ehd; /* end head */ unsigned char dp_esect; /* end sector */ unsigned char dp_ecyl;/* end cylinder */ unsigned intdp_start; /* absolute starting sector number */ unsigned intdp_size;/* partition size in sectors */ }; int s_opt = 0; int mbrread = 0; unsigned char mbr[MBR_SIZE]; int errormsg(const char *msg) { LPVOID msgbuf; if (!FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) msgbuf, 0, NULL )) return 2; fprintf(stderr, %s: %s\n, msg, (char*)msgbuf); LocalFree(msgbuf); return 1; } const char *getptype(unsigned char typ) { switch(typ) { case 0x1: case 0x11: return FAT12; case 0x2: return Xenix root; case 0x3: return Xenix /usr; case 0x4: case 0x14: return FAT16 (Old school); case 0x5: return DOS Extended; case 0x6: case 0x16: return FAT16; case 0x7: case 0x17: return NTFS; case 0x8: return OS/2 or AIX; case 0x9: return QNX; case 0xa: return OS/2 Boot Manager; case 0xb: case 0x1b: return FAT32; case 0xc: case 0x1c: return FAT32 LBA; case 0xe: case 0x1e: return FAT16 LBA; case 0xf: return Extended LBA; case 0x12: return Compaq Diagnostics; case 0x18: return AST Suspend-to-disk; case 0x24: return NEC DOS; case 0x35: return OS/2 Warp; case 0x38: case 0x3a: return THEOS; case 0x39: return Plan 9; case 0x3c: return PartitionMagic Recovery; case 0x40: return Venix; case 0x41: case 0x42: case 0x43: return DRDOS Cruft; case 0x44: return GoBack; case 0x45: return Boot-US; case 0x46: case 0x47: case 0x48: return EUMEL/Elan; case 0x4a: return AdaOS; case 0x4c: case 0x4f: return Oberon; case 0x4d: case 0x4e: return QNX; case 0x50: return OnTrack Disk Manager; case 0x51: return Novell; case 0x52: return CP/M; case 0x53: return Disk Manager; case 0x54:
Re: /dev/random question
On Sep 13, 2007, at 1:57 PM, Per olof Ljungmark wrote: On the website it says that the original yarrow algorithm is no longer supported. It seems to have been replaced by the fortuna algorithm. I can't see from the source if /usr/src/sys/dev/random/yarrow.* use the original yarrow algorithm, or the improved yarrow-160 aka fortuna. The use of crypto/rijndael/rijndael-api-fst.h and crypto/sha2/sha2.h seem to indicate the latter though. Should I conclude then that randomness is sufficient and performance is a non-issue? The randomness is considered to be strong, but you can perform the NIST FIPS-140 tests against /dev/random and decide for yourself. As for performance, I get about 12MB/s out of /dev/random on a ~1 GHz CPU, which seems to be quite decent... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/random question
On Thu, Sep 13, 2007 at 10:57:57PM +0200, Per olof Ljungmark wrote: Roland Smith wrote: On Thu, Sep 13, 2007 at 05:31:55PM +0100, RW wrote: On Thu, 13 Sep 2007 17:36:30 +0200 Roland Smith [EMAIL PROTECTED] wrote: On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote: Hi, Could someone on the list point me to a document that explains the functionality of /dev/random in FreeBSD in a little more depth than the man page? In other OS's I've looked at random and urandom are different, here it's a symlink (talking about RELENG-6 onwards). FreeBSD uses the yarrow algorithm, as mentioned in random(4). See http://en.wikipedia.org/wiki/Yarrow_algorithm http://www.schneier.com/yarrow.html Yarrow is reseeded with interrupt entropy, and is supposedly good enough not to require the amount of entropy to be tracked. So /dev/random need not block, and there's no need for a separate non-blocking device. On the website it says that the original yarrow algorithm is no longer supported. It seems to have been replaced by the fortuna algorithm. I can't see from the source if /usr/src/sys/dev/random/yarrow.* use the original yarrow algorithm, or the improved yarrow-160 aka fortuna. The use of crypto/rijndael/rijndael-api-fst.h and crypto/sha2/sha2.h seem to indicate the latter though. Should I conclude then that randomness is sufficient and performance is a non-issue? Performance isn't an issue, AFAICT. Whether randomness is sufficient depends on what you're using it for. I'd say yes, unless you want to generate one-time pads. There are some test programs that you can download to test for randomness. E.g. http://www.fourmilab.ch/random/ Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp9SahE7s7rm.pgp Description: PGP signature
Re: CDRW Stopped Working Moving to 6.x
On Thu, Sep 13, 2007 at 01:21:09PM -0700, Predrag Punosevac wrote: Make sure you add atapicam into your kernel it is not in generic! I had the same problem. /etc/loader.conf atapicam_load=YES I did a, # kldload /boot/kernel/atapicam.ko And to reinitiallize the drive, # atacontrol detach ata1 # atacontrol attach ata1 I got the same console message, acd0: detached (cd0:ata1:0:0:0): lost device (cd0:ata1:0:0:0): removing device entry atapicam1: detached stray irq15 acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 And still get, # burncd -f /dev/acd0 -t -s 32 data ~cjc/hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Crist J. Clark wrote: I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? -- Crist J. Clark | [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: CDRW Stopped Working Moving to 6.x
I know where is your problem the burning device is always cd0 you must give the device node /dev/cd0 Take care! Crist J. Clark wrote: On Thu, Sep 13, 2007 at 01:21:09PM -0700, Predrag Punosevac wrote: Make sure you add atapicam into your kernel it is not in generic! I had the same problem. /etc/loader.conf atapicam_load=YES I did a, # kldload /boot/kernel/atapicam.ko And to reinitiallize the drive, # atacontrol detach ata1 # atacontrol attach ata1 I got the same console message, acd0: detached (cd0:ata1:0:0:0): lost device (cd0:ata1:0:0:0): removing device entry atapicam1: detached stray irq15 acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 And still get, # burncd -f /dev/acd0 -t -s 32 data ~cjc/hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Crist J. Clark wrote: I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CDRW Stopped Working Moving to 6.x
I forgot to tell you assuming that you will do it your self Just add link acd0 cd0 but you have to use cd0. Pedja Crist J. Clark wrote: On Thu, Sep 13, 2007 at 01:21:09PM -0700, Predrag Punosevac wrote: Make sure you add atapicam into your kernel it is not in generic! I had the same problem. /etc/loader.conf atapicam_load=YES I did a, # kldload /boot/kernel/atapicam.ko And to reinitiallize the drive, # atacontrol detach ata1 # atacontrol attach ata1 I got the same console message, acd0: detached (cd0:ata1:0:0:0): lost device (cd0:ata1:0:0:0): removing device entry atapicam1: detached stray irq15 acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 And still get, # burncd -f /dev/acd0 -t -s 32 data ~cjc/hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Crist J. Clark wrote: I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bridging and port mirroring
On Thu, Sep 13, 2007 at 12:29:30PM -0400, Brian McCann wrote: I've poked around on the web, but come up empty. And I find it hard to believe there's not a simple way to do this, if it hasn't been done before. I've got a server with two nics configured for bridging and running bunches of ipfw rules. I'd like to add a 3rd NIC and have it mirror the 2nd NIC (so all traffic into and out of nic2 goes to nic3), so I can run an IDS on another server. Yes, I know that has the potential to overload nic3 if there is a lot of traffic going in and out of nic2, but that's not an issue for me. Has anyone done this before, or know how to do this? Are you using if_bridge? If so, it supports creating span interfaces. It's easy to set up, and it almost does what you describe (instead of only showing traffic into/out of nic2, it's going to show all traffic on bridge0.) Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fatal: Recipient addresses must be specified on the command line or via the -t option
On Thu 13 Sep 2007 22:09, VeeJay wrote: Hello there Could someone help me? I am really tired now spending 24 hours continously makeing it work... I have installed Postfix on my 6.2 freebsd box. Now, whenever, I try to run a php script to send mail out, this error is logged into /var/log/maillog *Sep 13 21:17:28 veejay postfix/sendmail[1396]: fatal: Recipient addresses must be specified on the command line or via the -t option* What is wrong there? Here is the php script. there is address: $to = [EMAIL PROTECTED]; $from = [EMAIL PROTECTED]; $subject = Hi!; $from_header = From: $from; $contents = this is email test\n\nDoes it work?; if (mail($to, $subject, $contents, $from_header)) { echo(pMessage successfully sent!/p); } else { echo(pMessage delivery failed.../p); } -- Thanks! BR / vj The script is fine, just tested it to be sure (lighttpd 1.4.18, php 5.2.3, postfix 2.4.5) Does postfix work at all? What hapens when you try to send mail with mail(1)? Can you attach you postfix and php configuration? Regards, Martin Tournoij ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iconv.h and ruby-libxml
On Thu, 13 Sep 2007 09:19:45 -0700 Charlie Caroff [EMAIL PROTECTED] wrote: Hi, When I try to install libxml-ruby-0.5.1.0, I get this error message: gcc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I. -I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=\extconf.h\ -I/usr/local/libexec/iconv/include -fPIC -g -O2 -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I. -I/usr/local/include/libxml2 -c cbg.c In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:28:19: iconv.h: No such file or directory In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:136: error: syntax error before iconv_t *** Error code 1 I search for iconv.h, and it's in /usr/local/include/iconv.h I'm running 6.2-STABLE FreeBSD, i386 Charlie, You are obviously trying to install Ruby gem that is not ported. So you can try to imitate a port: install devel/ruby-gems port and do something like this (in (t)csh): # setenv CONFIGURE_ARGS --with-opt-dir=/usr/local # /usr/bin/env /usr/local/bin/gem install --no-ri \ --install-dir /usr/local/lib/ruby/gems/1.8 libxml-ruby-0.5.1.0.gem This will install the gem (try 'gem list'), but you can easily experience some problems: please note that gem ports (rubygem-*) use bsd.ruby.mk and devel/ruby-gems/Makefile.common files which contain a lot of sophistication needed for proper FreeBSD integration. This is just a very general advice... For details and the right answer, you could probably ask FreeBSD Ruby person, Akinori Musha ([EMAIL PROTECTED]) -- that's what I'd do. :) Nikola Lečić ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Running process on startup as a user
On Sep 13, 2007, at 1:15 PMSep 13, 2007, Jack Barnett wrote: Using FreeBSD 6.2 x86. I have a script called: /home/foo/scripts/MyScript.sh The user is 'foo'. The password is 'bar'. What I'm trying to do is run the MyScript.sh command on startup (that way if the box reboots, then this users process also re- starts it's self). thoughts? /etc/crontab allows you to actually specify the user to run the process as in the 6th field. An entry such as: @reboot foo /home/foo/scripts/MyScript.sh Would work for running the process at startup. The following entry is an example for running a script as user for every Monday on 3pm: 00 03* * 1 foo /home/foo/scripts/MyScript.sh And, as others have already said, you can just put the following entry in user foo's crontab: * Note, you can access that user's crontab by loggin in as that user and typing crontab -e, or as root by typing crontab -e -u foo: @reboot /home/foo/scripts/MyScript.sh HTH - Eric F Crist Secure Computing Networks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CDRW Stopped Working Moving to 6.x
On Thu, Sep 13, 2007 at 03:15:10PM -0700, Predrag Punosevac wrote: I know where is your problem the burning device is always cd0 Huh? Burncd(8) is explicitly for ATAPI CD-R/RW. From the man page, DESCRIPTION The burncd utility is used to burn CD-R/RW media using the ATAPI cd driver. All of the examples on the manpage use /dev/acd0. you must give the device node /dev/cd0 If I try it, # burncd -f /dev/cd0 -v -s 32 data hw.iso fixate burncd: ioctl(CDRIOCGETBLOCKSIZE): Device not configured Crist J. Clark wrote: On Thu, Sep 13, 2007 at 01:21:09PM -0700, Predrag Punosevac wrote: Make sure you add atapicam into your kernel it is not in generic! I had the same problem. /etc/loader.conf atapicam_load=YES I did a, # kldload /boot/kernel/atapicam.ko And to reinitiallize the drive, # atacontrol detach ata1 # atacontrol attach ata1 I got the same console message, acd0: detached (cd0:ata1:0:0:0): lost device (cd0:ata1:0:0:0): removing device entry atapicam1: detached stray irq15 acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 And still get, # burncd -f /dev/acd0 -t -s 32 data ~cjc/hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Crist J. Clark wrote: I just tried to burn a CD for the first time in a long time on a machine. The burncd(8) command worked fine on this machine in FreeBSD 5.x (or was it 4.x?), but now in 6.2, I get, # burncd -f /dev/acd0 -s 32 data hw.iso fixate burncd: ioctl(CDIOCSTART): Input/output error Looking at the dmesg(1) from the last boot, # fgrep cd0 /var/run/dmesg.boot acd0: CDROM CRD-8400B/1.06 at ata1-master UDMA33 Makes me think the system is not recognizing the device as CDRW, only CDROM. I get this from atacontrol(8), # atacontrol info ata1 Master: acd0 CRD-8400B/1.06 ATA/ATAPI revision 0 Slave: no device present # atacontrol cap acd0 Protocol ATA/ATAPI revision 0 device model CRD-8400B serial number 1999/10/12 firmware revision 1.06 cylinders 0 heads 0 sectors/track 0 lba supported lba48 not supported dma supported overlap not supported Feature Support EnableValue Vendor write cacheno no read ahead no no Tagged Command Queuing (TCQ) no no 0/0x00 SMART no no microcode download no no security no no power management no no advanced power management no no 0/0x00 automatic acoustic management no no 0/0x00 0/0x00 How can I restore burning capability? -- Crist J. Clark | [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
hplip and freebsd-7.0 current problem
After installing hplip on FreeBSD 7.0-Current I get the following error from hpiod: can't open or create : m io/hpiod/hpiod.cpp 195 How do I fix it? --Aryeh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Please Help me...
I want to download Free BSD This Link http://www.freebsd.org/where.html i386 [Distribution] [ISO] but I can't download because I don't know User and Password please help me Thank you. KaeW r. 34 - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CDRW Stopped Working Moving to 6.x
On Thu, 13 Sep 2007, Predrag Punosevac wrote: I know where is your problem the burning device is always cd0 you must give the device node /dev/cd0 /dev/cd0 is provided by the atapicam kernel module, and used with Linux-type utilities that need it. However, burncd is FreeBSD native, and works fine with /dev/acd0. (please stop top posting) -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
qmail help
I just make qmail from port and killed sendmail. I can send mail out but can't recvice it. I think that the mailboxes is not made,, --- Bill Banks 508-829-2005 Wachusett Programming Ourweb http://www.ourweb.net http://www.ourwebtemplates.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
multiple flash movies on same page fail
I have linux-flashplugin9 installed with firefox 2.0.0.6 on FreeBSD 7.0-Current when I view a page that has a single flash file on it there is no problem but if there are multiple flash movies I get grayed out windows. See screen shot at http://www.flosoft-systems.com/flash.jpg --Aryeh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Scripting question
Kurt Buff wrote: I'm trying to do some text file manipulation, and it's driving me nuts. ... I don't have the perl skills, though that would be ideal. Any help out there? Buy Learning Perl, Fourth Edition, read it, and do the exercises: http://www.oreilly.com/catalog/learnperl4/index.html Investing the effort to become proficient with Perl will serve you well in the long run. HTH, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
nVidia driver with Xorg 7.3?
Anyone tried the current nVidia-driver with the new X.org 7.3? I heard that there was a general (non-FreeBSD-specific) incompatibility, but just saw that 7.3 was now in the ports system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hplip and freebsd-7.0 current problem
On Thursday 13 September 2007, Aryeh Friedman wrote: After installing hplip on FreeBSD 7.0-Current I get the following error from hpiod: can't open or create : m io/hpiod/hpiod.cpp 195 How do I fix it? We need more details. dmesg, syslog output, etc. -- Anish Mistry [EMAIL PROTECTED] AM Productions http://am-productions.biz/ pgprqPmd69AMe.pgp Description: PGP signature
Re: hplip and freebsd-7.0 current problem
On Fri, 14 Sep 2007, Aryeh Friedman wrote: After installing hplip on FreeBSD 7.0-Current I get the following error from hpiod: can't open or create : m io/hpiod/hpiod.cpp 195 How do I fix it? It is not clear to me: are you trying to make the port? Or are you trying to run hplip after it is successfully installed? If you are trying to make the port, you must do so as root. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Good FreeBSD Supported Gigabit Ethernet Card?
I'm looking to eventually upgrade my home network to all gigabit so I'm going to start by purchasing a few NICs for some old servers I just received. I know there are quite a few supported by FreeBSD6 which I found ( http://www.freebsd.org/releases/6.0R/hardware-i386.html#ETHERNET ) but I'm wondering if there is any real benefit in buying a $40 or $50 NIC like the Netgear GA311 or just get a $20 NIC like the D-Link DFE-530TX+. The use will probably be a firewall, proxy, file server, and DVR. http://www.EagleBit.com/Netgear_GA311_Gigabit_PCI_Card_p/eb-400-00357.htm -- Oliver Hansen http://www.oliverhansen.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]