How to eject an USB disk on FreeBSD
Hello, Is there a command in FreeBSD that ejects a USB disk like in Windows? I mount the USB disk with automount daemone (amd). I have a script that access this disk and force an umount at the end of the script. But anyone accessing the disk will have amd re'mount the disk and at the time I unplu the disk, problem may occur because the disk is still mounted and in use. I would like to have a command that makes the disk/USB port physically inaccessible, so at the end of the script a user cannot access the disk again. Like in Windows after stopping a USB mass storage device, one has to unplg and replug the disk if he wants to access it again. TIA, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
PF rules evaluation
Hello. Is there some tool to test rules-file for PF with arbitrary packets without need for real traffic? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Free BSD 7 - Not able to receive messages
On Thu, 28 Aug 2008 11:17:59 +0530, Blessan <[EMAIL PROTECTED]> wrote: > I have installed free bsd 7 on on Intel Xeon Machine with 1 Gb ram. > But i cant use the mailing facility .. i can send mail by typing [mail > username] then follows the subject and message then EOF. but i when i check > mail of that particular user it shows No mail for that user ?? > Why is it so .. ? Be sure to have the correct sendmail command in /etc/rc.conf (see /etc/defaults/rc.conf), sendmail_enable="YES" or sendmail_submit_enable="YES". If you sent a mail to a user, check if his mailbox has gotten the massage, it is /var/mail/$USER. > Do i have to reinstall .. I don't think so. > Also i have to configure my network card each time i reboot.. Did you put the proper ifconfig line in /etc/rc.conf? -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Free BSD 7 - Not able to receive messages
I have installed free bsd 7 on on Intel Xeon Machine with 1 Gb ram. But i cant use the mailing facility .. i can send mail by typing [mail username] then follows the subject and message then EOF. but i when i check mail of that particular user it shows No mail for that user ?? Why is it so .. ? Do i have to reinstall .. Also i have to configure my network card each time i reboot.. Plz reply -- Bye N Regards Blessan P Varghese ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: mysql-server-5.1.22 system administration docs onFreeBSD7.0-RELEASE-i386 ?
To autostart mysql at boot add this to /etc/rc.conf mysql_enable="YES" Add this to /etc/rc.conf to direct to use this location where there is disk space to hold your databases mysql_dbdir="/usr/local/mysql" To start or stop mysql server do this /usr/local/share/mysql/mysql.server start /usr/local/share/mysql/mysql.server stop You have to tell mysql to create its internal control db by running this command one time first before trying to create databases. mysql_install_db --user=mysql To verify mysql is operational issue these commands mysqladmin version mysqladmin variables To start command line session with mysql server to create a DB enter mysql -u root The online mysql manual is at http://dev.mysql.com/doc/refman/5.0/en/index.html The mysql databases and log files are written here /var/db/mysql -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Christensen Sent: Thursday, August 28, 2008 1:47 PM To: freebsd-questions@freebsd.org Subject: RE: mysql-server-5.1.22 system administration docs onFreeBSD7.0-RELEASE-i386 ? Fraser Tweedale wrote: > put the following line in /etc/rc.conf: > mysql_enable="YES" > and run (as root): > /usr/local/etc/rc.d/mysql-server start # echo 'mysql_enable="YES"' >> /etc/rc.conf # /usr/local/etc/rc.d/mysql-server start Starting mysql. # mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.22-rc FreeBSD port: mysql-server-5.1.22 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> Ahhh -- much better. :-) The explanation is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.h tml Since the rc.d system is primarily intended to start/stop services at system startup/shutdown time, the standard start, stop and restart options will only perform their action if the appropriate /etc/rc.conf variables are set. For instance the above sshd restart command will only work if sshd_enable is set to YES in /etc/rc.conf. ... [EMAIL PROTECTED] wrote: > Try adding mysql_enable="YES" to /etc/rc.conf after this is done try > starting again via the rc script. In the future pass the parameter > rcvar to the rc script. > Eg. /usr/local/etc/rc.d/mysql-server rcvar > mysql_enable="YES" this would indicate what to add to rc.conf # /usr/local/etc/rc.d/mysql-server rcvar # mysql mysql_enable=YES The explanation is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.h tml It is easy to check if a service is enabled in /etc/rc.conf by running the appropriate rc.d script with the option rcvar. Thus, an administrator can check that sshd is in fact enabled in /etc/rc.conf by running: # /etc/rc.d/sshd rcvar # sshd $sshd_enable=YES Thanks! David ___ 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: mysql-server-5.1.22 system administration docs on FreeBSD7.0-RELEASE-i386 ?
Fraser Tweedale wrote: > put the following line in /etc/rc.conf: > mysql_enable="YES" > and run (as root): > /usr/local/etc/rc.d/mysql-server start # echo 'mysql_enable="YES"' >> /etc/rc.conf # /usr/local/etc/rc.d/mysql-server start Starting mysql. # mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.22-rc FreeBSD port: mysql-server-5.1.22 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> Ahhh -- much better. :-) The explanation is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html Since the rc.d system is primarily intended to start/stop services at system startup/shutdown time, the standard start, stop and restart options will only perform their action if the appropriate /etc/rc.conf variables are set. For instance the above sshd restart command will only work if sshd_enable is set to YES in /etc/rc.conf. ... [EMAIL PROTECTED] wrote: > Try adding mysql_enable="YES" to /etc/rc.conf after this is done try > starting again via the rc script. In the future pass the parameter > rcvar to the rc script. > Eg. /usr/local/etc/rc.d/mysql-server rcvar > mysql_enable="YES" this would indicate what to add to rc.conf # /usr/local/etc/rc.d/mysql-server rcvar # mysql mysql_enable=YES The explanation is here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html It is easy to check if a service is enabled in /etc/rc.conf by running the appropriate rc.d script with the option rcvar. Thus, an administrator can check that sshd is in fact enabled in /etc/rc.conf by running: # /etc/rc.d/sshd rcvar # sshd $sshd_enable=YES Thanks! David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: OT:KVM Switch
Mark Busby wrote: > Looking at a Trendnet KVM TK-407K switch. It shows to work with linux. Has > anyone had success using it with FreeBSD? I hate to waste time and money, > even with the option of resale on eslay. Thanks for your time. I've had good luck with my IOGear Miniview GCS 78 -- 8-port VGA, PS/2 keyboard, PS/2 mouse. I've used it with Win2k, WinXP, Win2003SBS, Debian GNU/Linux, Damn Small Linux, and FreeBSD, in recent memory, and probably several more in the past. I've also used the GUC100KM PS/2 keyboard and mouse to USB converter successfully with several platforms. Sometimes I wish the KVM had sound, but what I really need to do is build a matrix mixer/ distribution amp that sends each of eight line inputs to the other seven outputs (e.g. no feedback loop)... Erik Trulsson wrote: > All KVM-switches I have encountered so far do not really interact at > all with the OS, and therefore will work equally well with any OS. > I see no reason to expect that KVM switch to be any different. I ran into *severe* problems in the past using KVM's with older AT keyboard/ serial mouse machines. Basically, I went through every unit available at Fry's and returned them all. Life only got better when I finally mothballed the ancient hardware. However, I do recall that IOGear worked correctly, but that I returned it because the hot-key sequence started with Ctrl, Ctrl (Duke Nuk'em 3D's fire button). Consider buying retail, so you can test the KVM with everything you have and return it if you find compatibility problems and/or hot-key issues. Dan Nelson wrote: > Watch out for KVMs that use the scroll-lock key to switch computers, > though. That makes using scrollback history on the console a pain. My KVM's hot-key sequence is Ctrl, Alt, Shift, ; in that order. Thus far, I haven't run into an conflicting application or platform. Check the hot-key sequence of any unit before you buy. HTH, David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Peter Ulrich Kruppa wrote: Matthew Seaman schrieb: > If you're using sendmail as your MTA, then look at > implementing the following features in your $(hostname).mc: Would that mean a file called /etc/mail/pukruppa.net.mc in my case? Since I get # hostname pukruppa.net or do I leave away the .net ? It's shorthand for 'whatever you call the .mc file you generate your sendmail.cf from.' By default on FreeBSD it's named according to what the hostname(1) command outputs, which should be the fully qualified domain name of your machine (ie. pukruppa.net). You can create the initial copies of the files by: # cd /etc/mail # make which will create files pukruppa.net.mc and pukruppa.net.subit.mc and then process those respectively into pukruppa.net.cf and pukruppa.net.submit.cf Edit pukruppa.net.mc to make any changes you want, then type 'make' to rebuild pukkruppa.net.cf and then 'make install restart' to copy pukruppa.net.cf to sendmail.cf (amongst other actiosn) and restart sendmail. In general, whenever you do anything to sendmail related config files including stuff like aliases and access and virtusertable, run just run make to publish it to the running sendmail process -- you only need 'make install restart' when you modify one of the .cf files. Cheers Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
How to use automount daemon (amd)
Hi, I have the following issue with amd. I want to write a script that will detect whenever a USB disk is plugged in and then run a backup. My configuration is described below. File /etc/amd.map: /defaultstype:=host;fs:=${autodir}/${rhost};rhost:=${key} * opts:=rw,grpid,resvport,nfsv2 localhost type:=auto;fs:=${map};pref:=${key}/ localhost/da0 type:=program;fs:=/automnt/da0;\ mount:="/usr/local/sbin/fsck_mount fsck_mount /automnt/da0";\ unmount:="/usr/local/sbin/spin_down spin_down /automnt/da0" where fsck_mount is a short script that does a fsck_ffs -p, to catch unclean file system) then a mount and spin_down a script that does umount then camcrontrol stop. file /etc/fstab: /dev/da0s1d /automnt/da0ufs rw,noauto 0 0 And amd runs with the parameters: /usr/sbin/amd -p -a /.amd_mnt -l syslog /host /etc/amd.map When I play with mounting and dismounting the USB disk by hand, it works fine: - I attach the USB disk, wait for usbd to detect umass and create the disk da0 - I access to /host/localhost/da0 - I launch my backup by hand. - I amq -u /host/localhost/da0 to umount the disk da0 - I remove the USB drive. All this is OK. But I would like my backup script to be able to check whether the USB disk is present or not. If I try to access /host/localhost/da0 while the USB disk is not attached, I get no error (ls /host/localhost/da0 returns empty). Then I attach the USB disk and wait for it to start. Then try to ls again but it still gives me nothing. Mount will not show that /automnt/da0 is mounted. It seems that if I try to access /host/localhost/da0 when there is no corresponding disk, amd remembers that error and refuse to mount the disk later until the cache is cleared. The command amq -m shows: "root" amanda:(pid1290) root 1 localhost is up /etc/amd.map /host toplvl 1 localhost is up /etc/amd.map /host/localhost auto 1 localhost is up fsck_mount /automnt/da0 /automnt/da0 program 1 localhost is up where /automnt/da0 seems to be mounted even when there is no such disk. I think that if my backup script tries to check /host/localhost/da0 with a period (every 10 minutes) greater than amd cache timeout (default 5 minutes), then it should be able to detect when the disk is mounted the next time. I could reduce the cache time out too, but that may interfeer with the efficiency of amd. I wonder if there is a different way to check that the disk is available, than trying to ls /host/localhost/da0. A side question about rpcbind. I'd like to start rpcbind to bind only to localhost. I tried: /usr/sbin/rpcbind -h 127.0.0.1 which works but with the error: rpcbind: cannot bind 127.0.0.1 on udp: Address already in use Is there a way to start rpcbind on localhost only? Best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: defrag
On Wed, 27 Aug 2008 22:08:47 -0400 Mike Jeays <[EMAIL PROTECTED]> wrote: > That's true about FAT. What I have never understood is why Microsoft > didn't fix the problem when they designed NTFS. UFS and EXT2 both > existed at that time, and neither needs periodic defragmentation. I think they probably did, NTFS took a lot from UNIX filesystems, and at the time it was released they said that NTFS didn't need any defragmentation at all. I suspect that it's mostly a matter of attitude. Windows users have an irrational obsessive-compulsive attitude to fragmentation, so they end-up with good reliable defragmenters, and so less reason not to use them. We don't really care, so we end-up with no, or poor, defragmenters, which reinforces our don't care attitude. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: curses.h, beep() returns ERR, flash() casuses segment fault.
On Wednesday 27 August 2008 22:10:40 Christopher Joyner wrote: > I do not get the OK from beep, and flash crashes the program. > This is my code: First, take a look on the manual page... > > #include > > int main(int argc,char** argv) > { > if(beep()!=OK) > printf("No OK\n"); fflush(stdout); > if(flash()!=OK) > printf("No Flash\n"); fflush(stdout); > return 0; > } Well, try: #include #include #include int main(int argc,char** argv) { /* in curses(3X) manual page... */ initscr(); if (beep() != OK) printf("No OK\n"); fflush(stdout); if (flash() != OK) printf("No Flash\n"); fflush(stdout); return 0; } And read the curses manual page, you forgot to init the screen. > > > > In Love in Jesus Christ, Or Lord and Savior. > > > For God so loved the world, that he gave his only *begotten > Son, that whosoever believeth in him should not perish, but > have everlasting life. --John 3:16 > > > [SNIP] Regards, -- .O. | Daniel Molina Wegener | C/C++ Developer ..O | dmw [at] unete [dot] cl | FOSS Coding Adict OOO | FreeBSD & Linux User| Standards Rocks! signature.asc Description: This is a digitally signed message part.
Re: curses.h, beep() returns ERR, flash() casuses segment fault.
Good morning! On Wed, 27 Aug 2008 19:10:40 -0700 (PDT), Christopher Joyner <[EMAIL PROTECTED]> wrote: > I do not get the OK from beep, and flash crashes the program. > This is my code: > > #include > > int main(int argc,char** argv) > { > if(beep()!=OK) > printf("No OK\n"); fflush(stdout); > if(flash()!=OK) > printf("No Flash\n"); fflush(stdout); > return 0; > } First of all, fflush seems to need a definition from stdio.h. I'm not sure if it's included by default (such as -lc is). I tried to link with -lcurses and -lncurses and I can reproduce the error you mentioned: /* beepflash.c */ #include #include int main(int argc, char **argv) { printf("beep: %d\n", beep()); fflush(stdout); printf("flash: %d\n", flash()); fflush(stdout); return 0; } % cc -Wall -lncurses -o beepflash beepflash.c % ./beepflash -1 Segmentation fault (core dumped) Allthough I did a lot of programming with NCurses, I'm not sure where this error comes from. My old programs do work with the ncurses installation I have (compile + run), but none of them uses flash() or beep(). I found out that no ncurses package is installed. So I did # pkg_add -r ncurses to install devel/ncurses (ncurses-5.6_2) and repeated the compile process - same result. So I went to check the main difference between my working programs and your code, because I noticed that if I put a beep() and a flash() call into my program, they worked as expected. Solution: Prior to any call to the ncurses library, put these into your code: initscr(); cbreak(); noecho(); nonl(); intrflush(stdscr, FALSE); keypad(stdscr, TRUE); start_color(); I'm not sure which are essential to make beep() and flash() work as expected, but you can easily find out which ones you don't need. Explaination: The ncurses library / seesion doesn't seem to be initialized correctly, that's why beep() didn't work and flash() caused a segmentation fault. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Sorry, I forgot to post to the list! Matthew Seaman schrieb: > Peter Ulrich Kruppa wrote: >> Steve Bertrand schrieb: >>> Peter Ulrich Kruppa wrote: > for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). > >>> The only way to tell for certain is to review the headers >>> of the message. > >> Received: from 18971066005.user.veloxzone.com.br (18971066005.user.veloxzone.com .br [189.71.66.5] (may be >> forged)) by pukruppa.net (8.14.2/8.14.2) with SMTP id >> m7RGmXTN038419 for <[EMAIL PROTECTED]>; Wed, 27 Aug 2008 >> 18:48:34 +0200 (CEST) (envelope-from [EMAIL PROTECTED]) > > It's a simple forgery by the spammer. They just claim to be > sending from your domain because there are apparently people > that run internet connected mail systems where doing that > makes it easier to inject spam... Either that, or the spammers > figure they'll get you with the bounce-o-gramme even if the > first delivery doesn't work. > > There are a number of measures you can take against such > things. One thing that is pretty easy to implement is to set > up SPF records in the DNS. This won't stop the spammers > attacking you this way, but it does mean that spamassassin > will award them lots of spam points and probably reject the mail. > > If you're using sendmail as your MTA, then look at > implementing the following features in your $(hostname).mc: Would that mean a file called /etc/mail/pukruppa.net.mc in my case? Since I get # hostname pukruppa.net or do I leave away the .net ? Thanks, Uli. > > FEATURE(greet_pause, `5000')dnl ## 5 seconds FEATURE(block_bad_helo)dnl FEATURE(badmx)dnl FEATURE(require_rdns)dnl > > These are pretty cheap resource wise and block many of the > most egregious spammers. There's a lot more you can do than > that in setting up sendmail to be spam-resistent -- much more > than I can describe in an e-mail like this. > > Cheers, > > Matthew > -- Peter Ulrich Kruppa Wuppertal Germany -- Peter Ulrich Kruppa Wuppertal Germany ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
curses.h, beep() returns ERR, flash() casuses segment fault.
I do not get the OK from beep, and flash crashes the program. This is my code: #include int main(int argc,char** argv) { if(beep()!=OK) printf("No OK\n"); fflush(stdout); if(flash()!=OK) printf("No Flash\n"); fflush(stdout); return 0; } In Love in Jesus Christ, Or Lord and Savior. For God so loved the world, that he gave his only *begotten Son, that whosoever believeth in him should not perish, but have everlasting life. --John 3:16 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: firefox crashes ......
On Wed, 27 Aug 2008 17:58:49 -0700 Gary Kline <[EMAIL PROTECTED]> wrote: > -rw--- 1 kline kline 4173824 Aug 27 17:38 talkback.core > -rw--- 1 kline kline 86728704 Aug 27 17:38 firefox-bin.core > > Suggestions, not much to go on really... what version of ffox ? i'm running 3.x here and it works fine. any message left in messages.log, or .xsession-errors ? anything in particular that triggers it ? what does gdb on the core file show? B _ {Beto|Norberto|Numard} Meijome "You can discover what your enemy fears most by observing the means he uses to frighten you." Eric Hoffer (1902 - 1983) I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: defrag
On August 27, 2008 09:35:42 pm Fred C wrote: > Maybe it is because FAT filesystem wasn't well designed from the > beginning and defrag was a workaround to solve performances problems. > > -fred- > > On Aug 27, 2008, at 5:29 PM, prad wrote: > > something that has puzzled me for years (but i've never got around to > > asking) is how does *nix get away without regular defrag as with > > windoze. > > > > fsck is equivalent to scandisk, right? > > > > so when you delete files and start getting 'holes', how does *nix deal > > with it? > > > > -- > > In friendship, > > prad > > > > ... with you on your journey > > Towards Freedom > > http://www.towardsfreedom.com (website) > > Information, Inspiration, Imagination - truly a site for soaring I's > > ___ > > 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]" That's true about FAT. What I have never understood is why Microsoft didn't fix the problem when they designed NTFS. UFS and EXT2 both existed at that time, and neither needs periodic defragmentation. -- Mike Jeays http://www.jeays.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: defrag
Maybe it is because FAT filesystem wasn't well designed from the beginning and defrag was a workaround to solve performances problems. -fred- On Aug 27, 2008, at 5:29 PM, prad wrote: something that has puzzled me for years (but i've never got around to asking) is how does *nix get away without regular defrag as with windoze. fsck is equivalent to scandisk, right? so when you delete files and start getting 'holes', how does *nix deal with it? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ 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]"
cache nfs file to local disk
Hello, There are the cachefs on Solaris and FS-Cache on RedHat can cache file from nfs to local disk, does any similar software can be run on FreeBSD? In order to reduce the throughput and ops for nas server, I just want to cache file from nfs to local disk. And the cache system can controller the total size of cache file automatically ( the capacity of nas is more more more large than local disk ). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
firefox crashes ......
People, I keeep my system ports currents except for the HUGE ports like OO. Any ideas why firefox-linux keeps crashing very regularly? No warning, nothing to stdoutt nor stderr. The only clues I have are these core dumps. -rw--- 1 kline kline 4173824 Aug 27 17:38 talkback.core -rw--- 1 kline kline 86728704 Aug 27 17:38 firefox-bin.core Suggestions, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: defrag
prad wrote: > something that has puzzled me for years (but i've never got around to > asking) is how does *nix get away without regular defrag as with > windoze. > > fsck is equivalent to scandisk, right? > > so when you delete files and start getting 'holes', how does *nix deal > with it? > The short answer is that defrag is built into and an integral part of the filesystem. So you can think of it as "always running" as opposed to the "regularly scheduled" by some other entity/application external to the filesystem. No third party "Disk Keeper" like utilities required. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: alogg problem! I was in the middle of writing a game on Windows, but now I am using FreeBSD...
On Wed, 27 Aug 2008 13:41:39 -0700 (PDT) Christopher Joyner <[EMAIL PROTECTED]> wrote: > alogg is a library add-on to allegro, for playing .ogg files. cd /usr/ports make search name=ogg make search info=ogg make search info=vorbis :) _ {Beto|Norberto|Numard} Meijome "Ugly programs are like ugly suspension bridges: they're much more liable to collapse than pretty ones, because the way humans (especially engineer-humans) perceive beauty is intimately related to our ability to process and understand complexity. A language that makes it hard to write elegant code makes it hard to write good code." Eric Raymond I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
defrag
something that has puzzled me for years (but i've never got around to asking) is how does *nix get away without regular defrag as with windoze. fsck is equivalent to scandisk, right? so when you delete files and start getting 'holes', how does *nix deal with it? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Proxying broadcasts?
On Aug 27, 2008, at 2:47 PM, Nejc Škoberne wrote: [ ... ] Or, you could set up Sybase's I also have some Sybase SQL servers on SERVERS network, which use broadcasts to announce themselves to the network. Before, when there were no separate segments, everything worked fine of course. My question: is there any way to "proxy" (forward) broadcast requests from USERS1 to the SERVERS network? So the users in USERS* networks could find Sybase SQL servers via broadcasts? The simple answer is no: if you want subnet-local broadcast traffic to be received, then your DB servers and your clients need to be on the same subnet. Routers are designed and required to not propagate broadcast traffic, although you could switch to doing bridging rather than routing. Or, you could set up Sybase's SQL.INI to list all of the databases you care about, if I recall correctly... Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
alogg problem! I was in the middle of writing a game on Windows, but now I am using FreeBSD...
I was writing a game in Windows using allegro. Now that I no longer have windows, I need a solution to the alogg library. It does not seem to be ported on FreeBSD. allegro should be find, but my problem is replacing, or getting alogg for FreeBSD. alogg is a library add-on to allegro, for playing .ogg files. Thank you, "The fool says in his heart, 'there is no god.'" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Proxying broadcasts?
Hello, I have a central FreeBSD 7.0 router running pf with SERVERS and USERS1 and USERS2 networks attached to it. I also have some Sybase SQL servers on SERVERS network, which use broadcasts to announce themselves to the network. Before, when there were no separate segments, everything worked fine of course. My question: is there any way to "proxy" (forward) broadcast requests from USERS1 to the SERVERS network? So the users in USERS* networks could find Sybase SQL servers via broadcasts? I tried something like this in my test environment (tried to NAT broadcasted DNS requests, just for trying if pf could do it): nat on $ServersInterface from 192.168.3.100 to 192.168.1.255 -> 192.168.1.1 rdr pass on $UsersInterface proto udp from 192.168.3.100 to 192.168.3.255 port 53 -> 192.168.1.255 (3.100 is a client from USERS1, 1.1 is the router) But this doesn't seem to be working (no translated packets on the interfaces). I guess it's impossible? I also analyzed traffic when Sybase client searches for servers - it sends one broadcast packet (UDP) to port 2638 and servers reply directly to the client with UDP reponse packet. Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT:KVM Switch
> > Watch out for KVMs that use the scroll-lock key to switch computers, > though. That makes using scrollback history on the console a pain. That would be the 8-port Belkins that I use... Bummer. $40 in ebay, usually. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT:KVM Switch
In the last episode (Aug 27), Erik Trulsson said: > On Wed, Aug 27, 2008 at 01:02:41PM -0700, Mark Busby wrote: > > Looking at a Trendnet KVM TK-407K switch. It shows to work with > > linux. Has anyone had success using it with FreeBSD? I hate to > > waste time and money, even with the option of resale on eslay. > > Thanks for your time. > > All KVM-switches I have encountered so far do not really interact at > all with the OS, and therefore will work equally well with any OS. I > see no reason to expect that KVM switch to be any different. Watch out for KVMs that use the scroll-lock key to switch computers, though. That makes using scrollback history on the console a pain. -- 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: OT:KVM Switch
On Wed, Aug 27, 2008 at 01:02:41PM -0700, Mark Busby wrote: > Looking at a Trendnet KVM TK-407K switch. It shows to work with linux. Has > anyone had success using it with FreeBSD? I hate to waste time and money, > even with the option of resale on eslay. Thanks for your time. All KVM-switches I have encountered so far do not really interact at all with the OS, and therefore will work equally well with any OS. I see no reason to expect that KVM switch to be any different. -- Erik Trulsson [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: Help! Tape drive resets the server!
On Wednesday 27 August 2008 10:22:52 Kirk Strauser wrote: > I have a Seagate DDS-4 tape drive: > > sa0 at sym0 bus 0 target 3 lun 0 > sa0: Removable Sequential Access SCSI-3 > device sa0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit) > > It's attached to a Tekram DC390F SCSI card: > > Is it possible that the drive itself is triggering the reset? I'd find > that a little unlikely, but am certainly not an expert on the matter. > Alternatively, has anyone had that sort of problem with drives attached to > that card? 1) try a different scsi cable. 2) Are you using adapters? Get the right cable. One new, known good cable, no adapters. 3) Yes, it's possible that your drive is doing this, but more likely you have a bent pin/short somewhere causing the scsi bus to reset, and your kernel isn't handling this nicely. Check your pins. They bend easy, but a mechanical pencil with no lead in it can help you with that. 4) Is your termination auto or physical? 5) Is the tape drive manually jumped for a specific ID? I assume that it is set for 3. Try 4. 6) Try a slower transfer rate. Can you dump the SCSI sense codes that are being seen on the SCSI bus? That will most likely tell you whats going on right there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
OT:KVM Switch
Looking at a Trendnet KVM TK-407K switch. It shows to work with linux. Has anyone had success using it with FreeBSD? I hate to waste time and money, even with the option of resale on eslay. Thanks for your time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kern.ipc.sem* and postgresql
On Wed, Aug 27, 2008 at 2:10 PM, Albert Shih <[EMAIL PROTECTED]> wrote: > Hi all > > Classic question but I don't find the answers by google. > > If I've server with X procs, N Go ram and if the only purpose of this > server is to run a postgresql daemon how can I known/calculate what I must > give to those variable > >set kern.ipc.semmni=? >set kern.ipc.semmns=? >set kern.ipc.semmnu=? > > and > >kern.ipc.shmall=? >kern.ipc.shmmax=? >kern.ipc.semmap=? > > Once those variables is determined how can I known/calculate the variable > in postgresql.conf ? > > shared_buffers = 32MB # min 128kB or max_connections*16kB ># (change requires restart) > #temp_buffers = 8MB # min 800kB > #max_prepared_transactions = 5 # can be 0 or more ># (change requires restart) > # Note: Increasing max_prepared_transactions costs ~600 bytes of shared > # memory > # per transaction slot, plus lock space (see max_locks_per_transaction). > #work_mem = 1MB # min 64kB > #maintenance_work_mem = 16MB# min 1MB > #max_stack_depth = 2MB # min 100kB > # - Free Space Map - > max_fsm_pages = 204800 # min max_fsm_relations*16, 6 bytes > each ># (change requires restart) > #max_fsm_relations = 1000 # min 100, ~70 bytes each ># (change requires restart) > > # - Kernel Resource Usage - > > #max_files_per_process = 1000 # min 25 > > ? > > Regards. > > JAS > -- > Albert SHIH > SIO batiment 15 > Observatoire de Paris Meudon > 5 Place Jules Janssen > 92195 Meudon Cedex > Heure local/Local time: > Mer 27 aoû 2008 21:06:02 CEST I used to perform financial/clinical data analysis using a PostgreSQL server on FreeBSD, which entailed complex questions and a lot of data processing per query. I adjusted the PostgreSQL server using the configuration files; but never found a need to adjust the FreeBSD kernel. You can find information to help you at the links below. Managing Kernel Resources section of the manual: http://www.postgresql.org/docs/current/static/kernel-resources.html Hardware performance tuning section of the PostgreSQL manual: http://www.postgresql.org/files/documentation/books/aw_pgsql/hw_performance/ Global User Configuration Guide at Varlena's website: http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html Best of luck, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Large Professor Album & Ticket give away, Bobbito @ On The Real & so much more!
[hea=] The Doctor's Orders 23 Large Professor Album Launch Party Win CD's & Tickets! [="] Friday 5th September 2008 @ Herbal, 10-14 kingsland Rd, London E2 We only ever sell 100 advance tickets and only have 35 left so hurry! [1]Advan= ce Tickets £5 £10 on the door Large Professor (Main Source) J-Sands (Lone Catalysts) Live Dan Greenpeace, Spin Doctor, Martin Lodge (Push FM) & Andy Bird (Body Music) [2]Facebook Event We have 3 copies of the new Large Professor "Main Source" album to win each with a pair of tickets for this brilliant event. For your chance to be th first with your hands on this brilliant new album from the master of the boom bap simply [3]e-mail us with LP Comp as the title and tell us which legendary Queens MC that first appeared on "Live At The BBQ" Large Professor discovered. _ ON THE REAL 8pm-3am THIS FRIDAY 19th September Bringing you true school Hip-Hop & Soul from Prince & Premier to Motown & Mos Def Bobbito aka Kool Bob Love (Rock Steady Crew / NYC) [="] @ Bar Rumba, 36 Shaftesbury Avenue, London W1 (Picadilly Tube) Free B4 9.30pm / £5 B4 10.30pm / £10 After [4]Check Out The Pics Of The Last Party! With Resident DJs Shortee Blitz (Kiss FM / Extended Players) DJ MK (Kiss FM / Roots Manuva) Spin Doctor (The Doctor's Orders) & The FREE B-Boy Cypher hosted by Skeg (Breakin Bread) DJ Hooch (Funkin' Pussy) Bobbito has nearly as many pseudonyms as he does rolls in the extended world of Hip-Hop. Whether you call him Boogie, Bob, Cucumber Slice, Kool Bob Love or like his mum does Bobbito one thing is guaranteed you are talking to a true Hip-Hop renaissance man. Since making his name through the legendary "Stretch Armstrong & Bobbito" show which introduced the world to the previously unknown & unsigned Wu Tang Clan, Big Pun, & Nas, to name just a few, he has gone on to record TV shows, adverts, write columns & books, edit magazines and so much more. The one constant thread behind all of his activities has been his love of Hip-Hop. As a signed up member of New York's legendary Rock Steady Crew there is nowhere he feels more at home than behind a set of decks blessing the crowd with classic underground Hip-Hop, Latin Funk and of course B-Boy breaks. Get ready to get sweaty! In honour of Bobbito and his contribution to sneaker culture we have Nike ID doing thier thing on the night helping you design those totally exclusive one off pair of kicks you have always wanted somake sure you bring ya creative juices! _ & in other news The SoulBrew Party was off the hook! Thanks to all of you that came down and made it such a great party and carried on the tradition of these packed affairs being the No.1 event of the bank holiday weekend! If you have any pics please send them to [5]SoulBrew and we will get em up! SoulBrew Karaoke Coming Soon! Have you ever fancied standing up in front of an adoring crwod belting out your favourite soul classic with the backing of a 5 peice band? Well your dreams have come true. We are launching SoulBrew Karaoke @ The Vibe Bar on Friday 26th September. Keep an eye out for more details coming soon! Sounds to go! As ever we want to give you the very best sounds whether in the club or at home or in the office! Check out [6]The Doctor's Orders Sounds Page for Jay-Z's Glastonbury set, mixes from Spin Doctor, DJ Vadim, J-Zone & more a= ll of which can be streamed live or downloaded! BBE 12 is coming! After months of searching for a venue and confirming a line up the now legendary BBE parties are back in effect! Block out the weekend of 5th & 6th December for this London based weekender. We guarantee you will not be disappointed! More news to come soon! for more party details checkout [7]www= .thedoctorsorders.com & to be removed from the Doctors Orders list reply with unsubscribe as the subject References 1. 3D"http://www.ticketweb.co.uk/user/?region=gb_london&query 2. 3D"http://www.facebook.com/event.php?eid=20948953719"; 3. 3D"mailto:[EMAIL PROTECTED] 4. 3D"http://www.thedoctorsorders.com/gallery.html 5. ="mailto:[EMAIL PROTECTED]" 6. 3D"http://www.thedoctorsorders.com/sounds.html"; 7. 3D"http://www.thedoctorsorders.com"/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kern.ipc.sem* and postgresql
Hi all Classic question but I don't find the answers by google. If I've server with X procs, N Go ram and if the only purpose of this server is to run a postgresql daemon how can I known/calculate what I must give to those variable set kern.ipc.semmni=? set kern.ipc.semmns=? set kern.ipc.semmnu=? and kern.ipc.shmall=? kern.ipc.shmmax=? kern.ipc.semmap=? Once those variables is determined how can I known/calculate the variable in postgresql.conf ? shared_buffers = 32MB # min 128kB or max_connections*16kB # (change requires restart) #temp_buffers = 8MB # min 800kB #max_prepared_transactions = 5 # can be 0 or more # (change requires restart) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared # memory # per transaction slot, plus lock space (see max_locks_per_transaction). #work_mem = 1MB # min 64kB #maintenance_work_mem = 16MB# min 1MB #max_stack_depth = 2MB # min 100kB # - Free Space Map - max_fsm_pages = 204800 # min max_fsm_relations*16, 6 bytes each # (change requires restart) #max_fsm_relations = 1000 # min 100, ~70 bytes each # (change requires restart) # - Kernel Resource Usage - #max_files_per_process = 1000 # min 25 ? Regards. JAS -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Mer 27 aoû 2008 21:06:02 CEST ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Peter Ulrich Kruppa wrote: Hello, for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). Matthew's message beat me to the response but I had typed one. There are some great tools for this and many are in ports. SPF and these do work. Here is what has been sitting in my drafts, it may have some additional value. ... I don't worry much about what I receive that is forged because I'm reasonably sure that I didn't send it nor were my servers leveraged. I monitor heavily. On the other hand, I do make certain that others aren't receiving spam thinking it's from my domains. SPF helps with this, information is available on www.openspf.org. This doesn't stop forgery, but it does give a tool to the receiver to verify what email is actually from your domain and email server. It's implemented very easily in your DNS entries. SPF is you telling the world that you authorize your domain to send email only from a specific set of servers (or a specific server). After you implement SPF, after a few weeks, they will generally stop using your domain because it's too frequently rejected by receivers. It becomes less in their interest to forge your domain so they go pick on someone else. If you DO want to stop people using your domain in sending to YOU, there are several tools to use in conjunction with sendmail to do this. I use MailScanner which is available within ports. If there are no relays involved in how you receive mail, this works because SpamAssassin (automatically installed with MailScanner) will see if the email you are receiving matched SPF. Yours and everyone elses. There are good docs on the net for using FreeBSD, sendmail, and MailScanner and it's dependencies. If you can't find them, try this: http://bio.fsu.edu/~sysalex/freebsd-mail-server.htm If you are going to run a mail server, it's good to have spam and virus defenses installed. There are more direct methods of actually rejecting forged emails within sendmail. You will find a list of these on the SPF site under "implementations". These tools may or may not be in ports. You will have to check on that. They make use of the milter interface within sendmail. The spf mail list is extremely helpful and professional if you have questions on this. You can join this list on their site. I'm not pushing their site or this draft standard, it's that SPF has worked pretty well for what it does and it's open method of dealing with the problems. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help! Tape drive resets the server!
On Wednesday 27 August 2008 12:16:33 Chuck Swiger wrote: > That type of behavior might indicate a problem with the power supply; > if you've replaced that already, I'm not sure what else to say other > than to be be sure you've got a decent model which is adequately > spec'ed out for the number of drives in your system... It's actually a fairly new Antec PSU rated at 450W (? 500W? Somewhere in there) without too many components on it. Thanks for the suggestion, though. I might try some of the other power leads on that PSU. Maybe I picked one with an intermittent short or something. -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: RPC: Authentication error
Hi-- On Aug 27, 2008, at 10:30 AM, lysergius2001 wrote: rpcinfo -p server results in : rpcinfo: can't contact portmapper: RPC: Authentication error; why = Client credential too weak ps-aux | grep rpcbind shows the rpc daemon running... /etc/hosts.allow has the names of the 3 machines on my network... Any insights would be most welcome as I am clean out of ideas... duh? If you check the logs on the server, you'll probably see something like: mountd[95]: mount request from 10.0.0.20 from unprivileged port ...the mount or rpcinfo requests use a high port if run as a normal user and that gives an error; try running these as root from a full root-login (ie, login as root on console or use "su -l", not via sudo). Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RPC: Authentication error
Help please. This is making me crazy. I have a single client and server. Attempting to manually mount the client produces this error. [udp] server:mount point:RPCPROG_NFS: RPC: Port mapper failure - RPC: Authentication error rpcinfo -p server results in : rpcinfo: can't contact portmapper: RPC: Authentication error; why = Client credential too weak ps-aux | grep rpcbind shows the rpc daemon running... /etc/hosts.allow has the names of the 3 machines on my network... Any insights would be most welcome as I am clean out of ideas... duh? -- Lysergius says "Stay light and trust gravity" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Peter Ulrich Kruppa wrote: Steve Bertrand schrieb: Peter Ulrich Kruppa wrote: for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). The only way to tell for certain is to review the headers of the message. Received: from 18971066005.user.veloxzone.com.br (18971066005.user.veloxzone.com .br [189.71.66.5] (may be forged)) by pukruppa.net (8.14.2/8.14.2) with SMTP id m7RGmXTN038419 for <[EMAIL PROTECTED]>; Wed, 27 Aug 2008 18:48:34 +0200 (CEST) (envelope-from [EMAIL PROTECTED]) It's a simple forgery by the spammer. They just claim to be sending from your domain because there are apparently people that run internet connected mail systems where doing that makes it easier to inject spam... Either that, or the spammers figure they'll get you with the bounce-o-gramme even if the first delivery doesn't work. There are a number of measures you can take against such things. One thing that is pretty easy to implement is to set up SPF records in the DNS. This won't stop the spammers attacking you this way, but it does mean that spamassassin will award them lots of spam points and probably reject the mail. If you're using sendmail as your MTA, then look at implementing the following features in your $(hostname).mc: FEATURE(greet_pause, `5000')dnl ## 5 seconds FEATURE(block_bad_helo)dnl FEATURE(badmx)dnl FEATURE(require_rdns)dnl These are pretty cheap resource wise and block many of the most egregious spammers. There's a lot more you can do than that in setting up sendmail to be spam-resistent -- much more than I can describe in an e-mail like this. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Spam sent to me from my own mail server ?
On Aug 27, 2008, at 7:38 AM, Peter Ulrich Kruppa wrote: for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). 1) How is this possible? Forging email headers is trivial. You can do it with telnet by hand, although spammers tend to use malware which blasts lots of messages 2) What can I or do I have to do against it? I am running a quite plain sendmail setup from 7.0 -STABLE. Configuring anti-spam measures is something that would occupy a book. For starters, look into greylisting, RBLs, and anti-spam tools which hook into the milter interface. There's also some config-level changes documented here: http://www.sendmail.org/m4/anti_spam.html Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Steve Bertrand schrieb: Peter Ulrich Kruppa wrote: Hello, for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). How have you identified that they are actually being delivered by your server itself? It is my experience that this is likely not the case, and it is only your addresses that are being forged. Actually I haven't identified anything, probably the address is forged somehow. The only way to tell for certain is to review the headers of the message. This should be one (I hope) There is no user called ixd ("Yolanda") on my system: From [EMAIL PROTECTED] Wed Aug 27 18:48:36 2008 X-Mozilla-Status: 0009 X-Mozilla-Status2: Return-Path: <[EMAIL PROTECTED]> Received: from 18971066005.user.veloxzone.com.br (18971066005.user.veloxzone.com .br [189.71.66.5] (may be forged)) by pukruppa.net (8.14.2/8.14.2) with SMTP id m7RGmXTN038419 for <[EMAIL PROTECTED]>; Wed, 27 Aug 2008 18:48:34 +0200 (CEST) (envelope-from [EMAIL PROTECTED]) X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: from [189.71.66.5] (port=22480 helo=18971066005.user.veloxzone.com.br) by mail.pukruppa.net with esmtp id d3c5a8-e87492-d2 for [EMAIL PROTECTED]; Wed, 27 Aug 2008 13:45:59 --300 Message-ID: <[EMAIL PROTECTED]> From: "Yolanda" <[EMAIL PROTECTED]> To: "Jenifer" <[EMAIL PROTECTED]> Subject: last chance for Michael Date: Wed, 27 Aug 2008 13:45:59 --300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_001_3171_01C90864.62105880" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 --=_NextPart_001_3171_01C90864.62105880 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi, From: "Yolanda" <[EMAIL PROTECTED]> To: "Jenifer" <[EMAIL PROTECTED]> Subject: last chance for Michael Date: Wed, 27 Aug 2008 13:45:59 --300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_001_3171_01C90864.62105880" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 --=_NextPart_001_3171_01C90864.62105880 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi, 2 days ago I got present from Michael. He was happy! Today I found the same and much cheaper! htp://fangem.com Take a look - BTW.: I sometimes try some relay tester, their machines never found anything. Greetings, Uli. Steve -- Peter Ulrich Kruppa Wuppertal Germany ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: messagebus user
On Wed, 27 Aug 2008, jef moskot wrote: We just upgraded to a new server (FreeBSD 7.0) and in our passwd file is the user "messagebus" (there's also a group). What's this for and can the UID be changed? It's got the same number as one of our oldest users and we're trying to determine which UID would be easier to switch. While this obviously has something to do with D-BUS (whatever that is), it's nothing we installed "on purpose". If it's not a part of the default system, it probably got bundled in as a dependency during an large port make. If dbus is required, you should be able to create the messagebus user before installing the dbus port. Then the port's pkg-install should see that you already have a messagebus user and use it instead of creating a new one. (Untested, but it seems like that's worked for upgrading dbus.) -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]"
Re: Help! Tape drive resets the server!
Hi-- On Aug 27, 2008, at 8:22 AM, Kirk Strauser wrote: Occasionally, whenever I open sa0 for reading (typically when Amanda starts flushing backups to tape), the system resets. I don't mean that the kernel panics or anything; I mean that within a second or two I'm looking at a POST screen. I'd been having this problem for a while, but recently upgraded literally every other piece of hardware on the system. The card and drive were the *only* components carried over to the new system, and I even swapped out the card for a duplicate I had stored away. That type of behavior might indicate a problem with the power supply; if you've replaced that already, I'm not sure what else to say other than to be be sure you've got a decent model which is adequately spec'ed out for the number of drives in your system... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: messagebus user
Dan Nelson wrote: In the last episode (Aug 27), jef moskot said: We just upgraded to a new server (FreeBSD 7.0) and in our passwd file is the user "messagebus" (there's also a group). What's this for and can the UID be changed? It's got the same number as one of our oldest users and we're trying to determine which UID would be easier to switch. While this obviously has something to do with D-BUS (whatever that is), it's nothing we installed "on purpose". If it's not a part of the default system, it probably got bundled in as a dependency during an large port make. You should be able to change its uid by deinstalling dbus, then editing /usr/ports/devel/dbus/pkg-install, changing the uid in that script to an unused ID, and reinstalling. All the userids created by ports should be listed in /usr/ports/UIDs and GIDs, so you can check to see if any other ports might conflict with existing users. Unfortunately, the ports themselves don't use those files during the install, so you can't just edit that and be done. You have to fix each port individually. Keep in mind you will probably have the same problem when you upgrade the port. Portsnap/csup will overwrite your change so every time you upgrade you'll have to change it again. May be easier to just change the user's UID once. Should be doable pretty easily in one shot with a command like find /usr/home -user 556 -exec chown thenewuserid "{}" \; ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Regular Expression Trouble
Paul Chvostek writes: > While I agree with others that awk should be used with explicit > recognition of the particular lines, you can still snatch everything > with sed if you want to. In FreeBSD, sed supported extended regex, so: > > sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' > > The "-n" option tells sed not to print the line unless instructed to > explicitely, and the "p" modifier at the end is that instruction. As > for the regex ... well, that's straightforward enough. > > > This is an attempt to isolate every MAC address that > > appears and then sort and count them to see who is having > > trouble or, in some cases, is causing trouble. > > Then you still may want to use awk for some of that... Actually, I have been using awk, but maybe not as efficiently as I could be, judging from the responses. I was hoping that the sed script would recognize 6 pairs of hex digits connected by :'s no matter where they appeared in a line and give me just that pattern match as, in this case, I don't care why the MAC address printed, only that it did and having nothing but MAC's makes the rest of the sorting and counting trivial. Other helpful examples not quoted but much appreciated. . . > Hope this helps. It helps a lot. Awk is one of those things that one can use for years and still not exploit all the good things it has. I am amazed even after years of using UNIX how much genius is packed in to the basic system. One last sed observation. I did fail to use the -E flag so sed didn't know it should be using extended RE's. I will give your examples a try for both sed and awk and see what new capabilities I can come up with. Again, a thousand thanks to you and everyone else for your answers and patience. It is good to see many different ways of solving the same problem. Martin McCormick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
On Wed, 2008-08-27 at 11:40 -0400, Steve Bertrand wrote: > Peter Ulrich Kruppa wrote: > > Hello, > > > > for some time now I keep receiving spam mails from my own (small) mail > > server, some of them with faked usernames some of them even with my own > > ([EMAIL PROTECTED]). > > How have you identified that they are actually being delivered by your > server itself? > > It is my experience that this is likely not the case, and it is only > your addresses that are being forged. > Additionally, I see sendmail add the local domain to the From field of incoming messages where the domain is missing. I've seen this on numerous spam messages and even the occasional legitimate email. It's been on my to-do list to look into this and modify it. Had me scratching my head for a while the first time I saw it. Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Peter Ulrich Kruppa wrote: Hello, for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). How have you identified that they are actually being delivered by your server itself? It is my experience that this is likely not the case, and it is only your addresses that are being forged. The only way to tell for certain is to review the headers of the message. If you wish, send the email headers (privately if you want), and we can identify whether or not it is in fact your server delivering these messages. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: messagebus user
In the last episode (Aug 27), jef moskot said: > We just upgraded to a new server (FreeBSD 7.0) and in our passwd file > is the user "messagebus" (there's also a group). > > What's this for and can the UID be changed? It's got the same number > as one of our oldest users and we're trying to determine which UID > would be easier to switch. > > While this obviously has something to do with D-BUS (whatever that > is), it's nothing we installed "on purpose". If it's not a part of > the default system, it probably got bundled in as a dependency during > an large port make. You should be able to change its uid by deinstalling dbus, then editing /usr/ports/devel/dbus/pkg-install, changing the uid in that script to an unused ID, and reinstalling. All the userids created by ports should be listed in /usr/ports/UIDs and GIDs, so you can check to see if any other ports might conflict with existing users. Unfortunately, the ports themselves don't use those files during the install, so you can't just edit that and be done. You have to fix each port individually. -- 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: Regular Expression Trouble
Hi Martin. On Wed, Aug 27, 2008 at 08:25:02AM -0500, Martin McCormick wrote: > > Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6 > (peaster-laptop) via 10.198.71.246 > > That was one line broken to aid in emailing, but that's what > types of lines are involved. The MAC appears at different field > locations depending on the type of event being logged so awk is > perfect for certain types of lines, but it misses others and no > one awk expression gets them all. While I agree with others that awk should be used with explicit recognition of the particular lines, you can still snatch everything with sed if you want to. In FreeBSD, sed supported extended regex, so: sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' The "-n" option tells sed not to print the line unless instructed to explicitely, and the "p" modifier at the end is that instruction. As for the regex ... well, that's straightforward enough. > This is an attempt to isolate every MAC address that > appears and then sort and count them to see who is having > trouble or, in some cases, is causing trouble. Then you still may want to use awk for some of that... cat /var/log/dhcpd.log | \ sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' | \ awk ' { a[$1]++; } END { for(i in a){ printf("%7.0f\t%s\n", a[i], i); } } ' | sort -nr You can join the lines into a single command line if you like, or toss it as-is into a tiny shell script. Awk is forgiving about whitespace. You should theoretically be able to feed the same regex to awk, but I've found that awk's eregex support sometimes doesn't work as I'd expect. Hope this helps. p -- Paul Chvostek <[EMAIL PROTECTED]> it.canadahttp://www.it.ca/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Spam sent to me from my own mail server ?
Peter Ulrich Kruppa wrote: > Hello, > > for some time now I keep receiving spam mails from my own (small) mail > server, some of them with faked usernames some of them even with my own > ([EMAIL PROTECTED]). > 1) How is this possible? > 2) What can I or do I have to do against it? > I am running a quite plain sendmail setup from 7.0 -STABLE. Look to see if you are running an open relay. You shouldn't be by default. There are websites that will test this for you if you simply provide the IP of the server. That's a start. My SPAM policy is something like this. Spammers win. feh! It's not the best policy, but it requires the least effort on my part. Regards, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help! Tape drive resets the server!
I have a Seagate DDS-4 tape drive: sa0 at sym0 bus 0 target 3 lun 0 sa0: Removable Sequential Access SCSI-3 device sa0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit) It's attached to a Tekram DC390F SCSI card: sym0: <875> port 0xc000-0xc0ff mem 0xe9004000-0xe90040ff,0xe9006000-0xe9006fff irq 20 at device 0.0 on pci7 sym0: Tekram NVRAM, ID 7, Fast-20, SE, parity checking sym0: [ITHREAD] Occasionally, whenever I open sa0 for reading (typically when Amanda starts flushing backups to tape), the system resets. I don't mean that the kernel panics or anything; I mean that within a second or two I'm looking at a POST screen. I'd been having this problem for a while, but recently upgraded literally every other piece of hardware on the system. The card and drive were the *only* components carried over to the new system, and I even swapped out the card for a duplicate I had stored away. Is it possible that the drive itself is triggering the reset? I'd find that a little unlikely, but am certainly not an expert on the matter. Alternatively, has anyone had that sort of problem with drives attached to that card? -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Spam sent to me from my own mail server ?
Hello, for some time now I keep receiving spam mails from my own (small) mail server, some of them with faked usernames some of them even with my own ([EMAIL PROTECTED]). 1) How is this possible? 2) What can I or do I have to do against it? I am running a quite plain sendmail setup from 7.0 -STABLE. Thanks for your answers, Ulrich. -- Peter Ulrich Kruppa Wuppertal Germany ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Regular Expression Trouble
On Wed, 2008-08-27 at 08:25 -0500, Martin McCormick wrote: > My thanks to several people who have provided great suggestions > and an apology for not being clear on the log data I am mining > for MAC addresses. It is syslog and a typical line looks like: > > Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6 > (peaster-laptop) via 10.198.71.246 > > That was one line broken to aid in emailing, but that's what > types of lines are involved. The MAC appears at different field > locations depending on the type of event being logged so awk is > perfect for certain types of lines, but it misses others and no > one awk expression gets them all. The way to deal with that is to specify a pattern to match something that distinguishes each form of log line that you want to extract from. With the following (contrived) log data: Aug 26 20:45:36 dh1 dhcpd: DHCPDISCOVER from 00:12:f0:88:97:d6 (peaster-laptop) via eth0 Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6 (peaster-laptop) via 10.198.71.246 use awk with a script such as: awk '/DHCPDISCOVER/ {print $8} /DHCPACK/ {print $10}' logfile Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Regular Expression Trouble
On Wednesday 27 August 2008 15:25:02 Martin McCormick wrote: > The sed pattern matching system is interesting because I > can think of several similar situations in which the data are > there but there is no guarantee where on a given line it sits > and grep or sed usually will pull in the whole line containing > the desired data which means that one must further parse things > to get what is wanted. Hi Martin Look at grep -o which only outputs the bit that matched the regexp. Using egrep, you can look for exactly two hex digits and a colon, repeated exactly five times, and followed by exactly two hex digits: egrep -o '([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}' inputfile will parse inputfile and output all the MAC addresses it finds, one per line (if it finds more than one on an input line, it'll match them and print them on separate output lines), and nothing else. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: freebsd-questions Digest, Vol 230, Issue 8
allah aşkına yeter hergün hergün göndermeyin bana artık bu e mail den yaaa sıktınız kardeşim Zekayi TOPCU Sağlık Müdürlüğü V.H.K.İBilgi İşlem Şub.Md.Cep :0505 9229501 > From: [EMAIL PROTECTED]> Subject: freebsd-questions Digest, Vol 230, Issue 8> To: freebsd-questions@freebsd.org> Date: Wed, 27 Aug 2008 12:00:20 +> > Send freebsd-questions mailing list submissions to> freebsd-questions@freebsd.org> > To subscribe or unsubscribe via the World Wide Web, visit> http://lists.freebsd.org/mailman/listinfo/freebsd-questions> or, via email, send a message with subject or body 'help' to> [EMAIL PROTECTED]> > You can reach the person managing the list at> [EMAIL PROTECTED]> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of freebsd-questions digest..."> > > Today's Topics:> > 1. dump(8) ok, but restore(8) failes (Matthias Apitz)> 2. RE: [ free_bsd_questions ] selecting a cpu he atsink / fan> combo [ c ] (Marc Coyles)> 3. Re: serial console - no go (Wojciech Puchar)> 4. Re: serial console - no go (Wayne Sierke)> 5. Re: dump(8) ok, but restore(8) failes (Wojciech Puchar)> 6. Re: dump(8) ok, but restore(8) failes (Matthias Apitz)> 7. Re: Possible hardware damaging bug with halt/reboot!> (Pietro Cerutti)> 8. OpenLDAP and back_hdb: ObjectClass olcHdbConfig not present> in server schema. (O. Hartmann)> 9. Re: dump(8) ok, but restore(8) failes (Matthias Apitz)> 10. Re: I can't make world without the "games" group?> (Giorgos Keramidas)> > > --> > Message: 1> Date: Wed, 27 Aug 2008 10:19:24 +0200> From: Matthias Apitz <[EMAIL PROTECTED]>> Subject: dump(8) ok, but restore(8) failes> To: freebsd-questions@freebsd.org> Message-ID: <[EMAIL PROTECTED]>> Content-Type: text/plain; charset=us-ascii> > > Hello,> > Some days ago I have done a dump of my /usr file system wi th:> > # dump -0auL -P "ssh [EMAIL PROTECTED] 'gzip -c > dumpsRebelion/usr.dmp.gz'" /usr> > the DUMP ended fine with no errors; today I try to reload certain> directory with:> > $ restore -xv -P "ssh [EMAIL PROTECTED] 'gzip -dc dumpsRebelion/usr.dmp.gz'" ./home/guru/myThings/Espanol/diario2008> > and it says:> > Verify tape and initialize maps> Tape block size is 16> Header with wrong dumpdate.> Dump date: Mon Aug 25 09:56:58 2008> Dumped from: the epoch> Level 0 dump of /usr on rebelion.Sisis.de:/dev/ad4s1f> Label: none> Extract directories from tape> Initialize symbol table.> Make node ./home> Make node ./home/guru> Make node ./home/guru/myThings> Make node ./home/guru/myThings/Espanol> Make node ./home/guru/myThings/Espanol/diario2008> Make node ./home/guru/myThings/Espanol/diario2008/enanitos> Make node ./home/guru/myThings/Espanol/diario2008/imagenes> Make node ./home/guru/myThings/Espanol/diario2008/CVS> Extract requested files> You have not read any tapes yet.> If you are ext racting just a few files, start with the last volume> and work towards the first; restore can quickly skip tapes that> have no further files to extract. Otherwise, begin with volume 1.> Specify next volume #: 1> partial block read: 16128 should be 16384> partial block read: 256 should be 16384> partial block read: 16128 should be 16384> unknown tape header type 6697331> abort? [yn] > > what does this mean? any hint? thanks in advance> > matthias> > -- > Matthias Apitz> Manager Technical Support - OCLC GmbH> Gruenwalder Weg 28g - 82041 Oberhaching - Germany> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211> e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/> b http://gurucubano.blogspot.com/> We should all learn from the peoples of The Netherlands, France and Ireland.> Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.> > > --> > Message: 2> Date: Wed, 27 Aug 2008 09:27:41 +0100> From: "Marc Coyles" <[EMAIL PROTECTED]>> Subject: RE: [ free_bsd_questions ] selecting a cpu heatsink / fan> combo [ c ]> To: "'spellberg_robert'" <[EMAIL PROTECTED]>, "'Chris Whitehouse'"> <[EMAIL PROTECTED]>, "'Wojciech Puchar'"> <[EMAIL PROTECTED]>, "'fbsd_questions'"> > Message-ID: <[EMAIL PROTECTED]>> > > i have --never-- heard of this one.> > maybe, it's because i check every mobo setting at installation time ?> >> > are you certain that this isn't propaganda from the joke in redmond ?> >> > please explain.> >> > ASUS Motherboards have their "AI" system which attempts to automatically> overclock any cpu to improve performance as a for instance. Personally,> any motherboard that attempts to automatically overclock a CPU should> have such features disabled immediately. If any overclocking is gonna> get done, I like to be the one in control.> > If you want to know which CPU would be best for your us es, head to> xtremesystems.org forums (ignore rest of the site) and post in the Intel> section with what you'll be using the box for, your requirements (in
Couple of amd64-specific questions
Hi there, I've recently got a chance to run a rather modern CPU and mobo for a few weeks, and since the beast is 8GB worth of RAM, I figured amd64 would fit nicely in it. After updating to HEAD to trying usual make world/kernel magic, the following issues arised I haven't seen previously in i386: - SYSV{SHM,MSG,SEM} need to be compiled in kernel for 32-bit compatibility syscalls, despite the fact corresponding modules are available. On i386, I always stripped SYSV-style IPC stuff out of my kernel. Question: is it theoretically possible to build freebsd32 compat module standalone? I'd rather have all compat stuff (linux, etc.) as a loadable modules anyways (not to mention that I don't want to have SYSV* options in my kernel config). - What are technical reasons why ACPI has to be compiled in kernel? Google wasn't very helpful here for me. Thanks. ./danfe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Regular Expression Trouble
My thanks to several people who have provided great suggestions and an apology for not being clear on the log data I am mining for MAC addresses. It is syslog and a typical line looks like: Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6 (peaster-laptop) via 10.198.71.246 That was one line broken to aid in emailing, but that's what types of lines are involved. The MAC appears at different field locations depending on the type of event being logged so awk is perfect for certain types of lines, but it misses others and no one awk expression gets them all. This is an attempt to isolate every MAC address that appears and then sort and count them to see who is having trouble or, in some cases, is causing trouble. The sed pattern matching system is interesting because I can think of several similar situations in which the data are there but there is no guarantee where on a given line it sits and grep or sed usually will pull in the whole line containing the desired data which means that one must further parse things to get what is wanted. Martin McCormick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: I can't make world without the "games" group?
On Tue, 26 Aug 2008 13:20:31 -0400, Jerry McAllister <[EMAIL PROTECTED]> wrote: >> Making it easy to disable stuff in `src.conf' is sort of a >> middle-path approach. I can live with that for now. If someone else >> comes along and moves fortune(1) and the other src/games/ stuff in a >> port, I won't really object either :) > > I have wondered if it might be reasonable to put a bunch of (more) > of that sort of stuff in a select list during installation so a > user can choose right then if certain things will be retained or > dropped on the floor. Fortune and games and even the latest Perl > and some other things might be good candidates for that select list. The current installer already includes something "like" this. The various "collections" like "src", "games", "manpages", "info docs" and the other stuff that shows up in the custom installation menu are one way of selecting what to install and what to leave out. There's definitely a lot of value in making this selection a lot more fine-grained, but then we are very close to the old "everything should be a package, including the base system" bikeshed. I am not sure I want to go back there :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: dump(8) ok, but restore(8) failes
El día Wednesday, August 27, 2008 a las 11:20:22AM +0200, Matthias Apitz escribió: > without '-P' in this case, I think, and: > > # dump -0auL /usr | gzip -c | ssh [EMAIL PROTECTED] 'cat > dumpsRebelion/usr.dmp.gz' > > should of course give more or less the same; > > > > > > >the DUMP ended fine with no errors; today I try to reload certain > > >directory with: > > > > > >$ restore -xv -P "ssh [EMAIL PROTECTED] 'gzip -dc > > >dumpsRebelion/usr.dmp.gz'" > > >./home/guru/myThings/Espanol/diario2008 > > > > should't be > > but it does; reproduceable :-( the DUMP itself seems to be ok because a restore like this works: $ ssh [EMAIL PROTECTED] 'cat dumpsRebelion-20080825/usr.dmp.gz' | gzip -dc | restore -xv -f - ./home/guru/myThings/Espanol/diario2008 the problem seems to be -P related; will file a bug report; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
OpenLDAP and back_hdb: ObjectClass olcHdbConfig not present in server schema.
Hello, I try to use back_hdb instead of back_bdb on all of the used DB backends with OlpenLDAP 2.4.11 on a FreeBSD 7.0 server. When switching to 'backend hdb' I get this error from LUMA when trying to acces the DB config under RDN cn=config: olcDatabase={1}hdb -> Could not display ldap entry. Reason: ObjectClass olcHdbConfig not present in server schema. Using bdb as backend works fine. Can someone explain this restriction? Thanks in advance, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Possible hardware damaging bug with halt/reboot!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Christopher Joyner wrote: | I think this thing could break my fan if I left it running. | The fan gets fast, really fast. Sounds like it's running faster than it can handle. | | This is using the halt command, during the message that say's, | HALTED, PRESS ANY KEY TO REBOOT. (not actual message) | | I am still looking in the source code hunting for this. | I decided it was best to report now. | | I have not seen the loop, but adding sleep(1) in the halt loop, such as a while loop, | I think that would make it easier on the cpu. However I do not know how it works, because I have not seen that source code. It's at sys/kern/tty_cons.c , line 586 and around. | In Love in Jesus Christ, Or Lord and Savior. | For God so loved the world, that he gave his only *begotten Son, that whosoever believeth in him should not perish, but have everlasting life. | --John 3:16 This problem of yours is not related to FreeBSD. Google for "psychosis". - -- Pietro Cerutti [EMAIL PROTECTED] PGP Public Key: http://gahr.ch/pgp -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAki0jnsACgkQwMJqmJVx946d0ACgp3m0BBi+W2b/a7XYbwVRBAj2 ZFkAoORgyiex91TGDWr1eX0MMow/xwaJ =B0wA -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: dump(8) ok, but restore(8) failes
El día Wednesday, August 27, 2008 a las 11:10:53AM +0200, Wojciech Puchar escribió: > >Some days ago I have done a dump of my /usr file system with: > > > ># dump -0auL -P "ssh [EMAIL PROTECTED] 'gzip -c > dumpsRebelion/usr.dmp.gz'" > > > >/usr > > why not > > dump -0auL -P /usr |gzip -c"ssh [EMAIL PROTECTED] 'cat > > dumpsRebelion/usr.dmp.gz'" > > ? without '-P' in this case, I think, and: # dump -0auL /usr | gzip -c | ssh [EMAIL PROTECTED] 'cat dumpsRebelion/usr.dmp.gz' should of course give more or less the same; > > > >the DUMP ended fine with no errors; today I try to reload certain > >directory with: > > > >$ restore -xv -P "ssh [EMAIL PROTECTED] 'gzip -dc dumpsRebelion/usr.dmp.gz'" > >./home/guru/myThings/Espanol/diario2008 > > should't be but it does; reproduceable :-( matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: dump(8) ok, but restore(8) failes
Some days ago I have done a dump of my /usr file system with: # dump -0auL -P "ssh [EMAIL PROTECTED] 'gzip -c > dumpsRebelion/usr.dmp.gz'" /usr why not dump -0auL -P /usr |gzip -c"ssh [EMAIL PROTECTED] 'cat > dumpsRebelion/usr.dmp.gz'" ? the DUMP ended fine with no errors; today I try to reload certain directory with: $ restore -xv -P "ssh [EMAIL PROTECTED] 'gzip -dc dumpsRebelion/usr.dmp.gz'" ./home/guru/myThings/Espanol/diario2008 should't be -xvf - ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: serial console - no go
On Wed, 2008-08-27 at 10:43 +0200, Wojciech Puchar wrote: > >> > >> what i do wrong? > >> > > Have you checked flag setting on sio? > > > ># dmesg | grep "sio.*flags" > >sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 > > on acpi0 > > yes. i then tried to change flags to 0x20 (force console) - still doesn't > work > > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x20 on acpi0 > sio0: type 16450 > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > Careful, note the last sentence in the 0x20 flag description: 0x20 Forces this unit to be the console (unless there is another higher priority console), regardless of the -h option discussed below. The flag 0x20 must be used together with the 0x10 flag. i.e. to use 0x20 you have to set it to 0x30 > > > it is qemu "machine" for now, but just to test, i would like to use it on > real hardware. > Never tried, could be a qemu-specific issue? Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: serial console - no go
what i do wrong? Have you checked flag setting on sio? # dmesg | grep "sio.*flags" sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 yes. i then tried to change flags to 0x20 (force console) - still doesn't work sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x20 on acpi0 sio0: type 16450 sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 it is qemu "machine" for now, but just to test, i would like to use it on real hardware. See handbook 24.6.3.4 for requirements: http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html#SERIALCONSOLE-HOWTO Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: [ free_bsd_questions ] selecting a cpu heatsink / fan combo [ c ]
> i have --never-- heard of this one. > maybe, it's because i check every mobo setting at installation time ? > > are you certain that this isn't propaganda from the joke in redmond ? > > please explain. > ASUS Motherboards have their "AI" system which attempts to automatically overclock any cpu to improve performance as a for instance. Personally, any motherboard that attempts to automatically overclock a CPU should have such features disabled immediately. If any overclocking is gonna get done, I like to be the one in control. If you want to know which CPU would be best for your uses, head to xtremesystems.org forums (ignore rest of the site) and post in the Intel section with what you'll be using the box for, your requirements (in terms of processing power and noise output) and someone over there'll point you out the best CPU for the job. L8rs! Marci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
dump(8) ok, but restore(8) failes
Hello, Some days ago I have done a dump of my /usr file system with: # dump -0auL -P "ssh [EMAIL PROTECTED] 'gzip -c > dumpsRebelion/usr.dmp.gz'" /usr the DUMP ended fine with no errors; today I try to reload certain directory with: $ restore -xv -P "ssh [EMAIL PROTECTED] 'gzip -dc dumpsRebelion/usr.dmp.gz'" ./home/guru/myThings/Espanol/diario2008 and it says: Verify tape and initialize maps Tape block size is 16 Header with wrong dumpdate. Dump date: Mon Aug 25 09:56:58 2008 Dumped from: the epoch Level 0 dump of /usr on rebelion.Sisis.de:/dev/ad4s1f Label: none Extract directories from tape Initialize symbol table. Make node ./home Make node ./home/guru Make node ./home/guru/myThings Make node ./home/guru/myThings/Espanol Make node ./home/guru/myThings/Espanol/diario2008 Make node ./home/guru/myThings/Espanol/diario2008/enanitos Make node ./home/guru/myThings/Espanol/diario2008/imagenes Make node ./home/guru/myThings/Espanol/diario2008/CVS Extract requested files You have not read any tapes yet. If you are extracting just a few files, start with the last volume and work towards the first; restore can quickly skip tapes that have no further files to extract. Otherwise, begin with volume 1. Specify next volume #: 1 partial block read: 16128 should be 16384 partial block read: 256 should be 16384 partial block read: 16128 should be 16384 unknown tape header type 6697331 abort? [yn] what does this mean? any hint? thanks in advance matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [ free_bsd_questions ] selecting a cpu heatsink / fan combo [ c ]
Chris Whitehouse wrote: If you haven't already bought your cpu you could check out how much heat different cpu's produce, they vary quite a lot. Lower power = lower heat production = less stress on heatsink/fan (and = lower electricity costs). Also the overclockers websites and forums usually have opinions about heatsinks. Chris thank you, chris. no, i haven't. i hope to get the cpu order out by friday or mon^H^H^Htuesday. i spent all day today on [ mostly ] intel's web_site pointing, clicking and downloading. all very true. i've been looking for such info but intel's web_site isn't too geeky. i --have-- downloaded new copies of data_sheets, though, so, i have some reading to do. [ this "internet" thing has potential; i just don't request data_books from manufacturers, anymore. ] keeping my electric bill low is high on my list. it is my understanding that the 65_nm p4 consumes less power than the 90_nm p4. i am of two minds about the gaming community. on the one hand, they --do-- push the cpu hard. it's a form of testing. so, their opinion is worth something. on the other hand, i tend to use multiple boxen to split_up the responsibilities, so, my boxen tend to be idle, more so than those of most others, and, therefore, my environment just isn't the same as that of the gamers. apples and oranges. i used to think that overclocking meant 5_% or 10_%. then, today, i saw one report of a 3200_mhz cpu being clocked at over 8000_mhz ! i have, absolutely, no idea if this is, at all, possible. i do know that --my-- cpu will clock within 1_% of rating. almost immediately after the above, this arrived. Wojciech Puchar wrote: >> If you haven't already bought your cpu you could check out how much >> heat different cpu's produce, they vary quite a lot. Lower power = >> lower heat production = less stress on heatsink/fan (and = lower >> electricity costs). Also the overclockers websites and forums usually >> have opinions about heatsinks. > > > and of course - make sure then that your motherboard doesn't overclock > by default. > > no, i'm not joking, it's true but it sounds like a joke. thank you, wojciech. ok, let me revise and extend my remarks, i --think-- it will be within 1_% [ it's a plan, anyway ]. i have --never-- heard of this one. maybe, it's because i check every mobo setting at installation time ? are you certain that this isn't propaganda from the joke in redmond ? please explain. rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: serial console - no go
On Tue, 2008-08-26 at 22:00 +0200, Wojciech Puchar wrote: > i put -h in /boot.config > > FreeBSD loaders starts with serial console fine, load kernel, boots and... > kernel uses VGA as console. > > what i do wrong? > Have you checked flag setting on sio? # dmesg | grep "sio.*flags" sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 See handbook 24.6.3.4 for requirements: http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html#SERIALCONSOLE-HOWTO Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure lagg0 into /etc/rc.conf file ?
Steve Bertrand wrote: Frank Bonnet wrote: I'm trying to configure the lagg0 device using /etc/rc.conf file but I haven't much luck with it. What I want to do is ifconfig lagg0 create ifconfig lagg0 up laggproto lacp laggport bge0 laggport bge1 What does the following command output?: # uname -a Steve Here it is : FreeBSD cache.esiee.fr 6.3-STABLE FreeBSD 6.3-STABLE #0: Mon Aug 25 13:17:26 CEST 2008 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [ free_bsd_questions ] selecting a cpu heatsink / fan combo [ b ]
Chuck Robey wrote: q: would anyone care to wax rhapsodic about any manufacturer with whose heatsink / fan combo product[s] they have had good success ? OK, I will. I got taught, in extremely clear fashion, about the direct linkage between keeping the temperatures low and even, and the ultimate reliability of your system. I won't go into the war story, but most everyone knows this is true, anyhow. I won't go into the fan either, because it's my personal opinion that there are a large selection of good fans. The item I want to extoll is the Ultimate 120 heatsink from Thermalright. Huge heatsink, and the 120mm fan that you get separately mounts on the _side_, not the top, like you might be used to. One look at this, at the great engineering ... well you might possibly find something else as good, but I bet you'd not be able to find anything better. Get that installed, and you can be really certain you didn't short on the CPU cooling. thank you, chuck. wowie, zowie ! --passion-- !!! this tells me something. yes, getting the heat out is the point. 120 mm ? that's an optical disk. bet it's a blowhard. i'm a fool for great engineering. i'm also a fool for a myrna loy film, but, i digress. on the side, eh ? nothing like trying out a new position. this was followed, very soon after, by marc coyles: thank you, marc. > 1 - Don't use tip of finger to apply thermal goop unless finger is > within a plastic bag. Grease off your skin will detract from the > efficiency of the Thermal Bond, and seeing as the TIM bond accounts for > a HUGE proportion of a processor-cooling-solution's c/w rating, it's > better to pop finger in a bag, and then apply compound. [ wistful sigh ] another fond memory from my youth: gone forever. [ another wistful sigh ] well, that's what we were doing at the big m in schaumburg. it was almost thirty years ago. what did we know ? we were younger and stupider. besides, most of the watts were going out the antenna [ that would be "aerial", on your side of the pond ]. it wasn't any good for clothing, either. > 2 - Best of the best is still Thermalright, but there is a price premium > as always. I generally go with their Ultra120 Extreme as it supports all > sockets and all CPUs on the market, so you won't have to bin it if you > switch to something else at a later date... And partner it with a decent > 120mm fan of your choosing according to your noise preference. > Personally I stick with Nexus fans as they're nice n' quiet... another vote, which is why i combined these responses. yeah, well, something that works well is worth something, just to get rid of the "aggravation factor". keeping the number of line_items in my qpl few is always good. i'll look into those. you know, i've been ruminating on this point. i'm starting to think that "quiet" is more important to me than i had previously thought. i do like to put a bunch of 19th_century chamber_music discs into the changer. > The above combo is currently sitting atop a Q6600 cpu in my recording > studio system and keeps it at 40 deg C full-load in total silence. If > you want better cooling, then find a more powerful fan. the recording studio is the acid_test for quiet. [ ever see the size of the box that a three_color_technicolor camera was in, back in the 1930s ? those things were --loud--. two supply reels, two take_up reels, at right_angles to a beam_splitter. no wonder the actors had to "loop" their dialogue so much. ] that 40 degree number gets my attention. why, that's barely warmer than i am ! > 3 - Meh - Thermal Compound performance is much debated, and any testing > done on it isn't done to a sufficient quality to give reliable results. > Either way, the Thermalright Heatsinks all come with goop that is plenty > good enough for most purposes. on this point, i was more concerned if someone had had a bad experience with stuff that "just doesn't work". rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Possible hardware damaging bug with halt/reboot!
On Tue, 2008-08-26 at 15:36 -0700, Christopher Joyner wrote: > I think this thing could break my fan if I left it running. > The fan gets fast, really fast. Sounds like it's running faster than it can > handle. > That would only be the case if there is some bigger fault at play, such as having a 5V fan wired to 12V. I'm not aware of any PC-grade fan that would be capable of running beyond its design limits in normal use. More likely is that the fan is thermally controlled, but on halt the control is being set to full speed which might be annoying but is not a problem for the fan per se. I suspect that you're just not accustomed to hearing the fan run at full speed. Some can be very noisy, not to mention irritating - like the one in my laptop. Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Regular Expression Trouble
On Tue, 2008-08-26 at 22:12 -0500, Martin McCormick wrote: > I am trying to isolate only the MAC addresses that appear in > dhcpd logs. > For anyone who is interested, the sed construct that should do > this looks like: > > sed 's/.*\([[ your regular expression ]]\).*/\1/' > > The \1 tells sed to only print what matched and skip all the rest. > > I am doing something wrong with the regular expression > that is supposed to recognise a MAC address. MAC addresses look > like 5 pairs of hex digits followed by :'s and then a 6TH pair > to end the string. > > I have tried: > > [[:xdigit:][:xdigit:][:punct:] > > Sorry. It won't all fit on a line, but there should be a string > of 5 pairs and the : and then the 6TH pair followed by the > closing ] so the expression ends with ]] > > One should also be able to put: > > [[:xdigit:][:xdigit:][:punct:]]\{5,5\}[[:xdigit:][:xdigit]] > > Any ideas as to what else I can try? > There have already been good suggestions for you to choose from. I'll just add my bucketful to the TIMTOWTDI pool: Since you weren't specific about the format of the log data that you're attempting to parse (keep that in mind for future questions): # ifconfig | grep ether ether 02:00:20:75:43:34 ether 00:40:05:10:b9:79 # ifconfig | sed -nE 's/.*ether (([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}).*/\1/p' 02:00:20:75:43:34 00:40:05:10:b9:79 # ifconfig | sed -nE 's/.*ether ([[:xdigit:]:]+).*/\1/p' 02:00:20:75:43:34 00:40:05:10:b9:79 # ifconfig | sed -nE 's/.*ether ([0-9a-f:]+).*/\1/p' 02:00:20:75:43:34 00:40:05:10:b9:79 # ifconfig | sed -nE '/ether/s/.*([0-9a-f:]{17}).*/\1/p' 02:00:20:75:43:34 00:40:05:10:b9:79 And then there's: # ifconfig | grep ether | cut -d" " -f 2 02:00:20:75:43:34 00:40:05:10:b9:79 But my preference would be: # ifconfig | awk '/ether/ {print $2}' 02:00:20:75:43:34 00:40:05:10:b9:79 Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"