Re: X11 tunnel over ssh and then rsh
Anybody on this, please? Roberto Nunnari wrote: Hello list. I have this scenario 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. Any help/hint greatly appreciated. Best regards. Robi ___ 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: removing old KDE3 packages
I deinstalled 4.1 and answers to my question maybe help you: http://daemonforums.org/showthread.php?t=1724 Mitja Reading the thread its rather exactly like i did but for KDE3 an i dont use portmaster, but yeah it gives me some thoughts at least .. tnxs. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 tunnel over ssh and then rsh
Roberto Nunnari wrote: 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. There are several problems. First, rsh does not support connection forwarding. Second, for security reasons, the X forwarding feature of ssh binds only to localhost on the client side (B), so you can't use it from C. The easiest solution would be to allow users to use ssh to connect to C (what's the reason for not allowing it?). Then you can use the X forwarding feature of ssh. Other solutions require much more work. For example, you can use ssh's generic connection forwarding feature which allows using a remote network socket (not just localhost). That is, on host A type something like this: ssh -R 6001:localhost:6000 B then on host B simply type rsh C, and on host C you have to set the DISPLAY environment variable to B:1.0. You also have to use xauth(1) or xhost(1) to allow X clients to access the server (ssh's X forwarding feature does that automatically, but when using the generic connection forwarding you have to do it yourself). WARNING: The X connection between hosts B and C will be unencrypted. Everybody who has access to the network will be able to sniff the connection and be able to watch everything you do, including every character you type (passwords etc.), and even intercept, modify and take over the connection. Furthermore, since the X connection socket on host B listens on the network (not just localhost), everybody can connect to it from other machines and access your X server, provided it can authenticate with it (which is trivial, especially if you use xhost(1)). I'm curious, why can't you use ssh between hosts B and C? Using ssh would solve all of the problems at once. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python tricks is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure wink. -- Tim Peters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 tunnel over ssh and then rsh
On Thursday 21 August 2008 09:54:29 Roberto Nunnari wrote: Anybody on this, please? Roberto Nunnari wrote: Hello list. I have this scenario 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) Why rsh? Isn't ssh a drop-in replacement for rsh? now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? Automatically? No. You can however use ssh to create generic TCP tunnels, using -R and -L. But this is much more complicated than remembering a DISPLAY variable. From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. This is probably because the listener (which proxies X11 to host A) is bound to localhost(127.0.0.1) and not B(12.23.34.45). You can overcome this, using manual forwarding(-R -L). HOST_A# ssh -R '*:6010:127.0.0.1:6000' HOST_B # create a listener on HOST_B listening on all interfaces and TCP port 6010 and tunnel everything from there to HOST_A's 127.0.0.1 6000 Then every host which can connect to HOST_B can connect to HOST_A X11 server. Using generic TCP port forwarding through ssh to forward X11 has an other minus. You have to handle yourself the X11 authorization(xauth, XAUTHORITY and friends) You can of course use a second ssh session from HOST_B to HOST_C to expose HOST_B's 127.0.0.1:6010 to HOST_C's 127.0.0.1:6010. So, connecting from HOST_C to 127.0.0.1:6010 will be tunneled to HOST_B's 127.0.0.1:6010, which will be tunneled to HOST_A's 127.0.0.1:6000 were your X11 display lives. It's rather complicated, though... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question about SNMP
Hello, I want to learn more about using of SNMP functions. I saw files about SNMP and the functions in them, but I don't know how to use it. Is there any description about order of using of SNMP functions. Thank you Best Regards Milena Karaivanova ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 tunnel over ssh and then rsh
Hi Oliver. The reason for using rsh instead of ssh is that it's a computing cluster. Host B is the master node and access point to the cluster, and host C is any one of the computing nodes. The cluster resources are managed by the Sun Grid Engine (SGE) and so users obtain the computing resources using the SGE interface. SGE under the cover uses rsh. I could search and see if it would possible to configure SGE so that it uses ssh instead of rsh, but then, you should take in accounting the cpu overhead of using ssh (encryption/decryption), so unnecessarily using cpu time, as the cluster is all in a private network. Thanks for the suggestion. I'll try that right away. Robi Oliver Fromme wrote: Roberto Nunnari wrote: 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. There are several problems. First, rsh does not support connection forwarding. Second, for security reasons, the X forwarding feature of ssh binds only to localhost on the client side (B), so you can't use it from C. The easiest solution would be to allow users to use ssh to connect to C (what's the reason for not allowing it?). Then you can use the X forwarding feature of ssh. Other solutions require much more work. For example, you can use ssh's generic connection forwarding feature which allows using a remote network socket (not just localhost). That is, on host A type something like this: ssh -R 6001:localhost:6000 B then on host B simply type rsh C, and on host C you have to set the DISPLAY environment variable to B:1.0. You also have to use xauth(1) or xhost(1) to allow X clients to access the server (ssh's X forwarding feature does that automatically, but when using the generic connection forwarding you have to do it yourself). WARNING: The X connection between hosts B and C will be unencrypted. Everybody who has access to the network will be able to sniff the connection and be able to watch everything you do, including every character you type (passwords etc.), and even intercept, modify and take over the connection. Furthermore, since the X connection socket on host B listens on the network (not just localhost), everybody can connect to it from other machines and access your X server, provided it can authenticate with it (which is trivial, especially if you use xhost(1)). I'm curious, why can't you use ssh between hosts B and C? Using ssh would solve all of the problems at once. Best regards Oliver -- Roberto Nunnari Servizi Informatici SUPSI-DTI SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland email: mailto:[EMAIL PROTECTED] tel: +41-58-561 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Evaluate strings in bash
Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: # echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk I'd like to have a second variable like: [code] # echo $newvariable make -m /usr/src/share/mk # newvariable=`eval echo $BINMAKE` I've already tried that, but doesn't work. It does work. Maybe you forgot the echo part? Maybe I've not explained it very well, look here: http://www.linuxquestions.org/questions/linux-general-1/bash-strings-evaluation-664094/ You have explained it well enough, I think, and the solution I explained above works fine. If it doesn't work for you, then you did it wrong. The solution written at the URL you mentioned is unnecessarily complicated. $ echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk $ newvariable=`eval echo $BINMAKE` $ echo $newvariable make -m /usr/src/share/mk $ Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered. -- Guido van Rossum ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Evaluate strings in bash
Oliver Fromme escribió: Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: # echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk I'd like to have a second variable like: [code] # echo $newvariable make -m /usr/src/share/mk # newvariable=`eval echo $BINMAKE` I've already tried that, but doesn't work. It does work. Maybe you forgot the echo part? Maybe I've not explained it very well, look here: http://www.linuxquestions.org/questions/linux-general-1/bash-strings-evaluation-664094/ You have explained it well enough, I think, and the solution I explained above works fine. If it doesn't work for you, then you did it wrong. The solution written at the URL you mentioned is unnecessarily complicated. $ echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk $ newvariable=`eval echo $BINMAKE` $ echo $newvariable make -m /usr/src/share/mk $ Best regards Oliver You are right, this works fine also.I've forgot the echo. Thanks for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup Exec v12
On Wed, 20 Aug 2008 21:41:35 -0700 Johnson, James [EMAIL PROTECTED] wrote: Does anyone have any experience installing the backup exec agent (BEWS_12.1364_LINUX-UNIX-MAC_AGENTS.tar.gz) on Freebsd 7. i don't recall if it's v12 that i've used,but it runs relatively well - just make sure you have linux compatibility layer enabled. I've been trying for the past few days with no progress. I called for support, but guess what Symantec does not support Freebsd. i hope you really didn't expect something useful out of that call ... :) # ./installralus Not Supported Yet. ./installralus: ./perl//bin/perl: not found [...] vmFreebsd# find / -name perl /usr/bin/perl /usr/local/bin/perl [...] ./perl/$OS/bin/perl -I. -I$PATH -I$VXIF_HOME -I./perl/$OS/lib/$PERL_VER installr alus.pl $* have u tried changing that call to perl to the /usr/local/bin/perl ? at least in some versions I tried, all you have to do is run the exec , forget the installer, it worked ok for me.. YMMV B _ {Beto|Norberto|Numard} Meijome If you were supposed to understand it, we wouldn't call it 'code'. 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: Unable to access certain sites from FreeBSD 6.2
On Thu, 21 Aug 2008 10:10:19 +1000 [EMAIL PROTECTED] wrote: Thanks for your reply. nw How do I run an ipfw divert rule to net/tcpmssd process ? Where do I set this rule? I haven't got that repository with the configuration handy... but from memory : 1) install net/tcpmssd 2) RT-tcpmssd-FM for options , and configure it to run on a certain port , say, tcp/ 3) write a divert rule in ipfw's startup script to divert (all | some) tcp traffic to localhost's tcp/ pretty sure tcpmssd has info on how to do it good luck, B _ {Beto|Norberto|Numard} Meijome I'm not afraid of dying, I just don't want to be there when it happens. Woody Allen 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]
xargs
Thank You For Help In The Past but give run into a new issue. I need to copy an entire BSD installation except the /mnt directory to /mnt/pc Now ive looked everywhere on net for examples, yet all don't work. What I did try do was following.. Cd / Ls | grep -v proc | xargs cp -Rpv /mnt/pc But ofcourse this doesn't work, what would be correct way to do this? Thank You! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: xargs
Marcel Grandemange wrote: I need to copy an entire BSD installation except the /mnt directory to /mnt/pc # rsync -arcvv --exclude=/mnt / /mnt/pc Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Copying a directory tree (was: xargs)
Marcel Grandemange [EMAIL PROTECTED] wrote: I need to copy an entire BSD installation except the /mnt directory to /mnt/pc You don't need xargs for this. # cd / # find -Ed . -regex '\./(mnt|dev)' -prune -or -print0 | cpio -dump0 /mnt/pc If you have procfs mounted, add |proc to the regex, or simply umount it before. It's not required for anything important. Or -- slightly less efficient, but this might be better if you're more familiar with grep than with find: # cd / # find -d . | egrep --null -v '^\./(mnt|dev)/' | cpio -dump0 /mnt/pc Yet another way is to use cpdup (from ports/sysutils/cpdup): # echo mnt .cpignore # cpdup -x / /mnt/pc Note that cpdup doesn't cross mountpoints, so you don't have to exclude dev or proc. But you will have to repeat the command for /var, /usr, /tmp or any other directories that are on separate file systems. Ls | grep -v proc | xargs cp -Rpv /mnt/pc Do not use cp -R or cp -r. It has several problemsm, for example it breaks hardlinks. In my opinion the -R and -r options of cp(1) should be removed, or a big fat warning message should be printed, because they're abused most of the time and cause breakage that other people have to find and clean up afterwards. Been there, done that, a thousand times. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Perl is worse than Python because people wanted it worse. -- Larry Wall ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sed/awk, instead of Perl
I'm frequently having to modify/convert email addresses from one format/domain to another. Usually, I slap together a quick Perl script to do this for me. I don't do it frequently enough to keep track which one of my scripts does this for me, so I'm continuously re-inventing the wheel. Some of the time, I use sed/awk to do this, but that usually requires a few passes over a few files. To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT Regards, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Steve Bertrand wrote: To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: To answer my own post, I found in some past notes something I drummed up quite a while ago that I can most certainly modify to suit my needs: # Cat the tcpdump output file # confirm that the source IP is NOT the mail server, and print the source IP/port # separate the IP/port entries # eliminate only the port and print IP # clean out the spaces in the IP cat tcpdump.txt | awk '{if ($3 != 192.168.100.204.25) print $3}' | \ awk '{FS = .} {print $1,.,$2,.,$3,.$4}' | sed s/ //g Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Quoting Steve Bertrand [EMAIL PROTECTED]: few passes over a few files. To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT Regards, cat file.txt | ( while read user domain; do echo [EMAIL PROTECTED]; done ) - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
On Thu, Aug 21, 2008 at 08:46:47AM -0400, Steve Bertrand wrote: I'm frequently having to modify/convert email addresses from one format/domain to another. Usually, I slap together a quick Perl script to do this for me. I don't do it frequently enough to keep track which one of my scripts does this for me, so I'm continuously re-inventing the wheel. Some of the time, I use sed/awk to do this, but that usually requires a few passes over a few files. To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT Regards, Steve Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' where t.txt: john.doeexample.com regards, joseph ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Barry Byrne wrote: Quoting Steve Bertrand [EMAIL PROTECTED]: few passes over a few files. To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT Regards, cat file.txt | ( while read user domain; do echo [EMAIL PROTECTED]; done ) Thanks, but I don't think I was overly clear in my OP. - the domain needs to change from domain.tld to example.com - the user.name needs to be modified to user_name Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Joseph Olatt wrote: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' where t.txt: john.doeexample.com This did the job, the only modification I needed to make was manually replace $2 with the string of the domain I needed it changed to. Fantastic! Thanks everyone for such quick responses! Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
El día Thursday, August 21, 2008 a las 05:54:29AM -0700, Joseph Olatt escribió: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' where t.txt: john.doeexample.com Despite of the magic awk(1) or while-loops: this is all UUOC Award; http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat :-) 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: sed/awk, instead of Perl
Matthias Apitz wrote: El día Thursday, August 21, 2008 a las 05:54:29AM -0700, Joseph Olatt escribió: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' where t.txt: john.doeexample.com Despite of the magic awk(1) or while-loops: this is all UUOC Award; http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat Yeah, yeah :) I know that: # grep username /var/log/radius.log ...is much, much better than: # cat /var/log/radius.log | grep username ...but that is just semantics, relative to the intent and purpose of this excercise. Besides, our mail servers don't do enough work, so using cat in the wrong context when modifying tens of thousands of lines in a file is good exercise for my boxes ;) Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
cat tcpdump.txt | awk '{if ($3 != 192.168.100.204.25) print $3}' | \ awk '{FS = .} {print $1,.,$2,.,$3,.$4}' | sed s/ //g why you all abuse cat command. simply awk tcpdump.txt Steve ___ 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: sed/awk, instead of Perl
Regards, cat file.txt | ( while read user domain; do echo [EMAIL PROTECTED]; done ) second cat abuser while read user domain; do echo [EMAIL PROTECTED]; done file.txt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' and third ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
...but that is just semantics, relative to the intent and purpose of this no. using cat make one more pipe, one more process and is noticably slower ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Wojciech Puchar wrote: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' and third If you have nothing nice to say, or can't contribute or point out more efficient ways of doing things in a polite manner, then 'don't say nothin'. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Copying a directory tree (was: xargs)
Thank you all! And im on my way thanks to greate response! -Original Message- From: Oliver Fromme [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 2:42 PM To: freebsd-questions@FreeBSD.ORG; [EMAIL PROTECTED] Subject: Copying a directory tree (was: xargs) Marcel Grandemange [EMAIL PROTECTED] wrote: I need to copy an entire BSD installation except the /mnt directory to /mnt/pc You don't need xargs for this. # cd / # find -Ed . -regex '\./(mnt|dev)' -prune -or -print0 | cpio -dump0 /mnt/pc If you have procfs mounted, add |proc to the regex, or simply umount it before. It's not required for anything important. Or -- slightly less efficient, but this might be better if you're more familiar with grep than with find: # cd / # find -d . | egrep --null -v '^\./(mnt|dev)/' | cpio -dump0 /mnt/pc Yet another way is to use cpdup (from ports/sysutils/cpdup): # echo mnt .cpignore # cpdup -x / /mnt/pc Note that cpdup doesn't cross mountpoints, so you don't have to exclude dev or proc. But you will have to repeat the command for /var, /usr, /tmp or any other directories that are on separate file systems. Ls | grep -v proc | xargs cp -Rpv /mnt/pc Do not use cp -R or cp -r. It has several problemsm, for example it breaks hardlinks. In my opinion the -R and -r options of cp(1) should be removed, or a big fat warning message should be printed, because they're abused most of the time and cause breakage that other people have to find and clean up afterwards. Been there, done that, a thousand times. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Perl is worse than Python because people wanted it worse. -- Larry Wall __ NOD32 3372 (20080820) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Unable to access certain sites from FreeBSD 6.2
G'day, Thanks for your reply. I realised I am not running ipfw my firewall is run from my Netggear router. So I imagine I would set the divert rule there? (If that is possible). So it would look like this Outside- Modem - Router (divert to ) - tcpmssd on Correct? Regards, Alasdair -- Original Message -- Date: Thu, 21 Aug 2008 12:42:17 +1000 From: Norberto Meijome [EMAIL PROTECTED] To: FreeBSD Questions ML freebsd-questions@freebsd.org Subject: Re: Unable to access certain sites from FreeBSD 6.2 On Thu, 21 Aug 2008 10:10:19 +1000 [EMAIL PROTECTED] wrote: Thanks for your reply. nw How do I run an ipfw divert rule to net/tcpmssd process ? Where do I set this rule? I haven't got that repository with the configuration handy... but from memory : 1) install net/tcpmssd 2) RT-tcpmssd-FM for options , and configure it to run on a certain port , say, tcp/ 3) write a divert rule in ipfw's startup script to divert (all | some) tcp traffic to localhost's tcp/ pretty sure tcpmssd has info on how to do it good luck, B _ {Beto|Norberto|Numard} Meijome I'm not afraid of dying, I just don't want to be there when it happens. Woody Allen 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
If you have nothing nice to say, or can't contribute or point out more this is a contribution. unless you can't see it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Wojciech Puchar wrote: ...but that is just semantics, relative to the intent and purpose of this no. using cat make one more pipe, one more process and is noticably slower Yes it's agreed... I was joking around with Matthias for kind-heartedly pointing out the err of our ways. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
THE FOLLOWING DISK SECTORS COULD NOT BE READ
On a different dilemma, I have a FreeBSD proxy server with what looks like a failing drive. The drive ONLY holds cache so is not critical for system operation however id still like to try something. It seem that no matter how many times I run fsck it still comes up with same result, is there a way to isolate the bad sectors and use the replacement ones on drive? Or even just isolate so that I can continue using the drive for now. su-2.05b# fsck -y /dev/ad1s1d ** /dev/ad1s1d ** Last Mounted on /mnt/cache ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 15430784 UNEXPECTED SOFT UPDATE INCONSISTENCY CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 15430836, 15430837, 15430838, 1543 0839, 15430840, 15430841, 15430842, 15430843, 15430844, 15430845, 15430846, 1543 0847, ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 366612 files, 8044663 used, 1423024 free (125376 frags, 162206 blocks, 1.3% frag mentation) * FILE SYSTEM STILL DIRTY * * PLEASE RERUN FSCK * su-2.05b# fsck -y /dev/ad1s1d ** /dev/ad1s1d ** Last Mounted on /mnt/cache ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 15430784 UNEXPECTED SOFT UPDATE INCONSISTENCY CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 15430836, 15430837, 15430838, 1543 0839, 15430840, 15430841, 15430842, 15430843, 15430844, 15430845, 15430846, 1543 0847, ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 366612 files, 8044663 used, 1423024 free (125376 frags, 162206 blocks, 1.3% frag mentation) * FILE SYSTEM STILL DIRTY * * PLEASE RERUN FSCK * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
On Thu, Aug 21, 2008 at 09:17:43AM -0400, Steve Bertrand wrote: Wojciech Puchar wrote: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' a shorter way: sed s/\\./_/g inputfile | awk '{print $1 @example.com}' outputfile -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Anton Shterenlikht wrote: On Thu, Aug 21, 2008 at 09:17:43AM -0400, Steve Bertrand wrote: Wojciech Puchar wrote: Try the following: cat t.txt | awk -F\t '{split($1, arr, .); printf([EMAIL PROTECTED], arr[ 1], arr[2], $2);}' a shorter way: sed s/\\./_/g inputfile | awk '{print $1 @example.com}' outputfile Nice! Although Joseph's line works perfectly, your sed method is much more inline with the way I'm used to using things, and I'll remember it easier without having to review notes next time ;) Thanks, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
On Thursday 21 August 2008 16:19:08 Wojciech Puchar wrote: If you have nothing nice to say, or can't contribute or point out more this is a contribution. unless you can't see it. There are assumptions that combining more than three cats (*) in a pipeline, the universe will explode! (*) That is cat(1), not the feline, perhaps somebody on the list has evidence on that too... PS please guys! PS2 Sorry, I couldnt help myself... Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
On Thu, 2008-08-21 at 15:12 +0200, Wojciech Puchar wrote: cat tcpdump.txt | awk '{if ($3 != 192.168.100.204.25) print $3}' | \ awk '{FS = .} {print $1,.,$2,.,$3,.$4}' | sed s/ //g why you all abuse cat command. simply awk tcpdump.txt Why do you abuse redundant input redirection? Simply: awk ... tcpdump.txt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Steve Bertrand wrote: To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] With awk(1): awk '{sub(/\./, _, $1); print $1 @example.com}' With sed(1) (you have to replace ^T with a real tab!): sed 's/^\(.*\)\.\(.*\)^T.*/[EMAIL PROTECTED]/' With tr(1) + sed(1): tr '.\t' '_@' | sed 's/@.*/@example.com/' Personally I like the last solution best, because it's short and easy to understand. BTW, all of the above command read from stdin and write to stdout, so you can use shell redirection to read from a file and/or write to a file. There is no need to use cat(1). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell scripts: variable assignment within read loops
On Sun, 17 Aug 2008, David Wolfskill wrote: [snipped] will assign to foo the value of the bar variable form the last record read (in FreeBSD 6.3-STABLE, at least), the following fails to do so: foo= cat $filename | while read bar ... ; do ... foo=$bar ... done echo $foo Well, that's not *quite* accurate:the assignment is done all right, but in the latter case, it appears to be done in a subshell, so by the time we get to the echo statement, any variable assignments from within the read loop have vanished. You've already defined the reason behind this. Since subshells for parts of pipelines aren't guaranteed, you need something more clever. Assuming you're only interested in the _last_ value of foo, you could try this: foo=$( cat $filename | ( while read bar; do ... foo=$bar ... done echo $foo ) ) Cheers, jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ ( echo ouroboros; cat ) /dev/fd/0 # it's like talking to yourself sometimes ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: THE FOLLOWING DISK SECTORS COULD NOT BE READ
Marcel Grandemange wrote: On a different dilemma, I have a FreeBSD proxy server with what looks like a failing drive. The drive ONLY holds cache so is not critical for system operation however id still like to try something. It seem that no matter how many times I run fsck it still comes up with same result, is there a way to isolate the bad sectors and use the replacement ones on drive? Or even just isolate so that I can continue using the drive for now. The drive's firmware will only remap the bad sectors with spare sectors when you _write_ to it. When a read error is encountered while reading a sector, the drive's firmware will record the sector number, but it won't remap it yet because it doesn't have any known good contents for that sector. So it must report the failure to the OS. When the sector is written to by the OS, the firmware will remember that it had a read error, and now it knows the (new) contents of the sector, so it will make a remapping entry, use the new sector and report success to the OS. Therefore, the easiest way to enforce remapping is to first read the whole disk with dd (so all bad blocks are known to the firmware), and then write to the whole disk so the actual remapping will occur: # dd if=/dev/ad1 of=/dev/null bs=512 conv=sync,noerror # dd if=/dev/zero of=/dev/ad1 bs=1m Note that this will take a long time, possibly several hours, depending on the size of the disk. You can press Ctrl-T to see a progress report on the dd(1) command. Note that bs=512 conv=sync,noerror is important for the first pass, in order to make sure that dd(1) handles every single sector and continues correctly on errors. Needless to say, that will ERASE all data on the disk. You will have to fdisk + bsdlabel + newfs afterwards. If you have done all of that and you _still_ continue to get bad sector messages, it most probably means that the disk drive has run out of spare sectors. In that case you should replace the drive immediately. Remember that disks are pretty cheap these days, and it might not be worth going through all that hassle in the first place. I'd recommend you buy a new drive and save you some hours of work, a bunch of hairs turning grey, and some swearing. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd In My Egoistical Opinion, most people's C programs should be indented six feet downward and covered with dirt. -- Blair P. Houghton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
nicole sent you a message...
--- To ensure that Refriendz emails reach your inbox, please add our From address ([EMAIL PROTECTED]) to your email Address Book or Safe List. === Hi naveen, nicole has sent you a new message on Refriendz! * To read the message from nicole, click on the following link below: http://www.refriendz.com/?do=Login.User[EMAIL PROTECTED]password=d85689b63a7e88906bb53e2381540d9fredPage=FriendzMail.List (If this link doesn't work, please copy and paste it into your browser) Thanks, Refriendz * * * Unsubscribe: If you do not wish to receive Refriendz Notifications, visit: http://www.refriendz.com/?do=Login.User[EMAIL PROTECTED]password=d85689b63a7e88906bb53e2381540d9fredPage=MyAccount.Notifications Please do not reply directly to this email. This mailbox is not monitored and you will not receive a response. Refriendz Limited, PO BOX 1184, Luton, Bedfordshire, LU1 9AT, UK. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
LimeExchange Free Career Opportunity
Greetings, LimeExchange is an online platform that quickly connects entrepreneurs enterprises with freelancers, professionals and part-timers from the U.S. This online services marketplace gives you access to hundreds of potential tech projects in your area of expertise. Great place to find some projects onlinewith no enrollment cost for you. No commitment on your part until your bid is accepted. AC Lion (www.aclion.com), New Yorks innovative tech talent firm, is pleased to announce this latest partnership. This freelance job marketplace complements our well-established tech recruiting practice, expanding our services to our candidates. Quick Facts about LimeExchange: * Global visitors - From 150+ countries * Free Registration (Only 8% LimeExchange Project fee) * Unlimited Bids chance to participate * Safeguarded payments (Escrow Milestone based) To read further and create your own profile, go to http://aclion-e.com/dbm83/l.php?18560783051cam paign_id=33channel=mail and feel free to sign up. Free Registration until 9/1/08! All the best, Alex Martin | Director of Talent Acquisition We hope you enjoyed receiving this email, but if you no longer wish to receive our emails please click here: http://aclion-e.com/dbm83/un.php?2511783051 62 West 45th Street 4th Floor NY, NY 10036 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
LimeExchange Career Opportunity
Greetings, LimeExchange is an online platform that quickly connects entrepreneurs enterprises with freelancers, professionals and part-timers from the U.S. This online services marketplace gives you access to hundreds of potential tech projects in your area of expertise. Great place to find some projects onlinewith no enrollment cost for you. No commitment on your part until your bid is accepted. AC Lion (www.aclion.com), New Yorks innovative tech talent firm, is pleased to announce this latest partnership. This freelance job marketplace complements our well-established tech recruiting practice, expanding our services to our candidates. Quick Facts about LimeExchange: * Global visitors - From 150+ countries * Free Registration (Only 8% LimeExchange Project fee) * Unlimited Bids chance to participate * Safeguarded payments (Escrow Milestone based) To read further and create your own profile, go to http://aclion-e.com/dbm83/l.php?18560375963campai gn_id=33channel=mail and feel free to sign up. Free Registration until 9/1/08! All the best, Lindsay Campbell | Associate Director of Talent Acquisition We hope you enjoyed receiving this email, but if you no longer wish to receive our emails please click here: http://aclion-e.com/dbm83/un.php?2511675963 62 West 45th Street 4th Floor NY, NY 10036 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: THE FOLLOWING DISK SECTORS COULD NOT BE READ
On Thu, Aug 21, 2008 at 03:24:30PM +0200, Marcel Grandemange wrote: On a different dilemma, I have a FreeBSD proxy server with what looks like a failing drive. It seem that no matter how many times I run fsck it still comes up with same result, is there a way to isolate the bad sectors and use the replacement ones on drive? The drive does that for you. Or even just isolate so that I can continue using the drive for now. You could try badsect(8). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpHKZE2xMqhD.pgp Description: PGP signature
Again: fsck_ffs memory requirements
Hi again! I had problems running fsck_ffs of FreeBSD 5. In my particular problem, version 5 seemed to help me more than version 7, which stopped with this: fsck_ffs: bad inode number 306176 to nextinode Version 5 didn't seem to have this problem, but it did complain: fsck_ffs: cannot alloc 1073796864 bytes for inoinfo So I asked for help and was adviced to enable swap space before running fsck_ffs in SUM. My main problem seemed to be that I hadn't enough RAM (512 + 256 MB SRD-SDRAM), exactly 1 GB seemed to be required. In the recovery setting, ad0 is a FreeBSD 5 installation and ad2 is a FreeBSD 7 installation with a /home partition holding a dd image of the defective partition (which's original is on a harddisk on the shelf for security reasons). I did the following after successful system startup in SUM: # swapon /dev/ad2s1b # swapctl -l Device: 1024-blocks Used: /dev/ad2s1b 2097152 0 # mount /dev/ad2s1g /mnt # mdconfig -a -u 0 -t vnode -f /mnt/poly/rescue/ad1s1f.dd # fsck_ffs -yf /dev/md0 ** /dev/md0 ** Last Mounted on ** Phase 1 - Check Blocks and Sizes 1035979 BAD I=259127 UNEXPECTED SOFT UPDATE INCONSISTENCY [...] 9187201950452580480 BAD I=262821 UNEXPECTED SOFT UPDATE INCONSISTENCY 9114861777597661055 BAD I=262821 UNEXPECTED SOFT UPDATE INCONSISTENCY EXCESSIVE BAD BLKS I=262821 CONTINUE? yes 1779904 DUP I=262822 UNEXPECTED SOFT UPDATE INCONSISTENCY 1779905 DUP I=262822 UNEXPECTED SOFT UPDATE INCONSISTENCY [...] 4007775 DUP I=262845 UNEXPECTED SOFT UPDATE INCONSISTENCY fsck_ffs: cannot alloc 1073796864 bytes for inoinfo # So I examined /usr/src/sbin/fsck_ffs/pass1.c and found out that a calloc() call caused the error; 1 GB was needed, but 2 GB were present in swap. Not enough? Any suggestions what I could do to help fsck_ffs calloc()ing the needed memory? -- 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: Again: fsck_ffs memory requirements
Polytropon wrote: Hi again! I had problems running fsck_ffs of FreeBSD 5. In my particular problem, version 5 seemed to help me more than version 7, which stopped with this: fsck_ffs: bad inode number 306176 to nextinode Version 5 didn't seem to have this problem, but it did complain: fsck_ffs: cannot alloc 1073796864 bytes for inoinfo So I asked for help and was adviced to enable swap space before running fsck_ffs in SUM. My main problem seemed to be that I hadn't enough RAM (512 + 256 MB SRD-SDRAM), exactly 1 GB seemed to be required. In the recovery setting, ad0 is a FreeBSD 5 installation and ad2 is a FreeBSD 7 installation with a /home partition holding a dd image of the defective partition (which's original is on a harddisk on the shelf for security reasons). I did the following after successful system startup in SUM: # swapon /dev/ad2s1b # swapctl -l Device: 1024-blocks Used: /dev/ad2s1b 2097152 0 # mount /dev/ad2s1g /mnt # mdconfig -a -u 0 -t vnode -f /mnt/poly/rescue/ad1s1f.dd # fsck_ffs -yf /dev/md0 ** /dev/md0 ** Last Mounted on ** Phase 1 - Check Blocks and Sizes 1035979 BAD I=259127 UNEXPECTED SOFT UPDATE INCONSISTENCY [...] 9187201950452580480 BAD I=262821 UNEXPECTED SOFT UPDATE INCONSISTENCY 9114861777597661055 BAD I=262821 UNEXPECTED SOFT UPDATE INCONSISTENCY EXCESSIVE BAD BLKS I=262821 CONTINUE? yes 1779904 DUP I=262822 UNEXPECTED SOFT UPDATE INCONSISTENCY 1779905 DUP I=262822 UNEXPECTED SOFT UPDATE INCONSISTENCY [...] 4007775 DUP I=262845 UNEXPECTED SOFT UPDATE INCONSISTENCY fsck_ffs: cannot alloc 1073796864 bytes for inoinfo # So I examined /usr/src/sbin/fsck_ffs/pass1.c and found out that a calloc() call caused the error; 1 GB was needed, but 2 GB were present in swap. Not enough? Any suggestions what I could do to help fsck_ffs calloc()ing the needed memory? Increase kern.maxdsiz. The attempt to malloc this much may be wrong anyway though, if the filesystem is so badly corrupted that fsck is confused. Kris Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help installing openoffice
Hi there, I wanna install Open Office through pkg_add because I've a slow band width. But I can't find it in the ports collection. In www.freshports.org they say I can install it by typing this pkg_add -r openoffice.org. But I don't know how to configure pkg_add or fetch to download the package from freshports.org. I wanna install Open Office 3-RC if possible. Can somebody help me with this? Thanx, -- Robe. ¿Es el hombre sólo un fallo de Dios, o Dios sólo un fallo del hombre? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT: Clamd error
Hi all, Sorry for cross-posting but it seams that the members from the other list went on vacation- and I'm in a jam I run exim 4.69 clamav .93 and spamassassin on a freebsd box - basically it gets my smtp traffic, checks for spam virus etc,, then forwards it to my mailserver- Suddenly last night it stopped working , I check the paniclog and all I see is 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) I unistalled clamav make deinstall Then make clean Then make install clean And I still get the same errors- the weird part is that when I do top clamd IS running- 22089 clamav 1 40 62132K 61616K accept 0:00 0.00% clamd Any help would be greatly appreciated as im rerouting my mail now- and getting bombarded with spam Thx ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Clamd error
In response to Jean-Paul Natola [EMAIL PROTECTED]: Hi all, Sorry for cross-posting but it seams that the members from the other list went on vacation- and I'm in a jam I run exim 4.69 clamav .93 and spamassassin on a freebsd box - basically it gets my smtp traffic, checks for spam virus etc,, then forwards it to my mailserver- Suddenly last night it stopped working , I check the paniclog and all I see is 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) I unistalled clamav make deinstall Then make clean Then make install clean And I still get the same errors- the weird part is that when I do top clamd IS running- 22089 clamav 1 40 62132K 61616K accept 0:00 0.00% clamd Any help would be greatly appreciated as im rerouting my mail now- and getting bombarded with spam Have you tried restarting clamd? What does sockstat | grep clamd say? -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Clamd error
Jean-Paul Natola wrote: Hi all, Sorry for cross-posting but it seams that the members from the other list went on vacation- and I'm in a jam I run exim 4.69 clamav .93 and spamassassin on a freebsd box - basically it gets my smtp traffic, checks for spam virus etc,, then forwards it to my mailserver- Suddenly last night it stopped working , I check the paniclog and all I see is 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) its now /var/run/clamav/clamd.sock you may wish to update your exim config file. I unistalled clamav make deinstall Then make clean Then make install clean And I still get the same errors- the weird part is that when I do top clamd IS running- 22089 clamav 1 40 62132K 61616K accept 0:00 0.00% clamd Any help would be greatly appreciated as im rerouting my mail now- and getting bombarded with spam Thx ___ 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: Again: fsck_ffs memory requirements
Polytropon [EMAIL PROTECTED] wrote: On Thu, 21 Aug 2008 17:23:41 +0200, Kris Kennaway [EMAIL PROTECTED] wrote: Increase kern.maxdsiz. It seems that I don't have kern.maxdsiz: # sysctl kern.maxdsiz sysctl: unknown oid 'kern.maxdsiz' Am I looking at the wrong place? Allthough I've been using FreeBSD since 4.0, it seems that I got a little stupid over the years... :-/ It's a loader tunable, so you must put it in /boot/loader.conf. Best regards, and good luck with your recovery! Oliver PS: Better make good backups next time. -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd A language that doesn't have everything is actually easier to program in than some that do. -- Dennis M. Ritchie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT: Re: sed/awk, instead of Perl
On Thu, 21 Aug 2008 15:49:17 +0200 (CEST) Oliver Fromme [EMAIL PROTECTED] wrote: To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] With awk(1): awk '{sub(/\./, _, $1); print $1 @example.com}' With sed(1) (you have to replace ^T with a real tab!): sed 's/^\(.*\)\.\(.*\)^T.*/[EMAIL PROTECTED]/' With tr(1) + sed(1): tr '.\t' '_@' | sed 's/@.*/@example.com/' Personally I like the last solution best, because it's short and easy to understand. BTW, all of the above command read from stdin and write to stdout, so you can use shell redirection to read from a file and/or write to a file. There is no need to use cat(1). It seems like we have all had fun picking on the use of 'cat'. I would like to close this discussion with something I learned in school long ago. A big cat is a Lion, and a Lion is a dangerous animal. However, a little cat is a pussy, and a little pussy never hurt anyone. -- Gerard [EMAIL PROTECTED] Technological progress has merely provided us with more efficient means for going backwards. Aldous Huxley signature.asc Description: PGP signature
/etc/groups gone
Hi, Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. I believe the file system is still correct, it uses group IDs instead of names (?). Though ls does not show the correct group names (only IDs) and creating new groups will reuse the old group IDs. Is there any better way of rebuilding /etc/groups than guessing and manually adding one-by-one. Can I somehow list all group IDs used by the file system? Many thanks. Balazs _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
On Aug 21, 2008, at 9:05 AM, [EMAIL PROTECTED] wrote: Is there any better way of rebuilding /etc/groups than guessing and manually adding one-by-one. Can I somehow list all group IDs used by the file system? You should start with /usr/src/etc/group, which is the original version of the groups file. For each user account added, normally a group is also created with gid == uid. Once you've got those back, add any users to wheel and so forth, and then do a find /usr -nogroup (check other paths if needed) to see whether you're missing something, perhaps from ports. 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: /etc/groups gone
I would start by comparing the contents of /usr/ports/GIDs with the ports you have installed (as listed in /var/db/pkg). You can get a stock group file from src/etc/group. Reinstalling ports will recreate the groups they use (though you could do most of it manually), and you may be on your own for any custom groups you have. On Thursday 21 August 2008 12:05:49 pm [EMAIL PROTECTED] wrote: Hi, Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. I believe the file system is still correct, it uses group IDs instead of names (?). Though ls does not show the correct group names (only IDs) and creating new groups will reuse the old group IDs. Is there any better way of rebuilding /etc/groups than guessing and manually adding one-by-one. Can I somehow list all group IDs used by the file system? Many thanks. Balazs _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx ___ 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: /etc/groups gone
John Nielsen wrote: I would start by comparing the contents of /usr/ports/GIDs with the ports you have installed (as listed in /var/db/pkg). You can get a stock group file from src/etc/group. Reinstalling ports will recreate the groups they use (though you could do most of it manually), and you may be on your own for any custom groups you have. On Thursday 21 August 2008 12:05:49 pm [EMAIL PROTECTED] wrote: Hi, Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. I believe the file system is still correct, it uses group IDs instead of names (?). Though ls does not show the correct group names (only IDs) and creating new groups will reuse the old group IDs. Is there any better way of rebuilding /etc/groups than guessing and manually adding one-by-one. Can I somehow list all group IDs used by the file system? Many thanks. Balazs _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx ___ 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] /var/backups might have various backups of those important files. Might want to tcheck that out. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
On 21 aug 2008, at 18:05, [EMAIL PROTECTED] wrote: Hi, Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. I believe the file system is still correct, it uses group IDs instead of names (?). Though ls does not show the correct group names (only IDs) and creating new groups will reuse the old group IDs. Is there any better way of rebuilding /etc/groups than guessing and manually adding one-by-one. Can I somehow list all group IDs used by the file system? Many thanks. Balazs Mergemaster wolk recreate the default groups. Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Community Connect Europe - Reach New Customers and Partners
Dear Industry Partner, We missed you at the HP Technology Forum and Expo in June, but we don't want your company to miss out on being a part of history! [1]Community Connect Europe 2008 is the first European event presented by Connect, Your Independent HP Business Technology Community, for customers, partners, and employees of HP. This event, to be held 10-12 November in Mannheim, Germany, is at the forefront of today's open system leaders and is a true user-driven consortium of HP Business Critical Solutions-related vendors. We expect close to 1,000 attendees, the bulk of whom are decision-makers driving multi-million Euro IT budgets each year. If you are a hardware or software provider, designer, or system integrator, you don't want to miss this once-a-year opportunity to exhibit. Please visit the [2]Community Connect Europe 2008 Exhibit and Sponsorship Program to learn more about connecting with these key customers and partners. We are proud to announce that Martin Fink, Senior Vice President and General Manager, HP Business Critical Systems (BCS), will be covering the BCS roadmap and the future of the technologies that each customer depends on every day. The event will also feature other educational topics, including OpenVMS, NonStop, HP-UX, Linux, Blades, Storage, Security, IT Infrastructure, and more. Preview some of these sessions [3]online. To learn more about Community Connect Europe's vendor programs or to sign up as an exhibitor, please contact me at [EMAIL PROTECTED] or +1.312.673.4779. Best Regards, Sara Kolovitz, Connect Community Connect Europe Sales Manager For more event information, please visit: [5]www.CommunityConnectEurope.org Community Connect Europe 2008 [6]www.communityconnecteurope.org If you would like to opt out of all future Community Connect e-mail correspondence, please send an e-mail with opt out in the subject line to [EMAIL PROTECTED] References Visible links 1. http://lists.connect-community.org/t/737630/27440120/52261/0/ 2. http://lists.connect-community.org/t/737630/27440120/52469/0/ 3. http://lists.connect-community.org/t/737630/27440120/52551/0/ 4. mailto:[EMAIL PROTECTED] 5. http://lists.connect-community.org/t/737630/27440120/52261/0/ 6. http://lists.connect-community.org/t/737630/27440120/52467/0/ 7. mailto:[EMAIL PROTECTED] Hidden links: 8. http://lists.connect-community.org/t/737630/27440120/52466/0/ 9. http://lists.connect-community.org/t/737630/27440120/52262/0/ 10. http://lists.connect-community.org/t/737630/27440120/52469/0/ 11. http://lists.connect-community.org/t/737630/27440120/52470/0/ 12. http://lists.connect-community.org/t/737630/27440120/52471/0/ 13. http://lists.connect-community.org/t/737630/27440120/52472/0/ 14. http://lists.connect-community.org/t/737630/27440120/52473/0/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Clamd error
At 11:17 AM 8/21/2008, Jean-Paul Natola wrote: Hi all, Sorry for cross-posting but it seams that the members from the other list went on vacation- and I'm in a jam I run exim 4.69 clamav .93 and spamassassin on a freebsd box - basically it gets my smtp traffic, checks for spam virus etc,, then forwards it to my mailserver- Suddenly last night it stopped working , I check the paniclog and all I see is 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) I unistalled clamav make deinstall Then make clean Then make install clean And I still get the same errors- the weird part is that when I do top clamd IS running- 22089 clamav 1 40 62132K 61616K accept 0:00 0.00% clamd Any help would be greatly appreciated as im rerouting my mail now- and getting bombarded with spam Thx If restarting the clam services doesn't fix this, edit your conf files and make sure you have the same names for the socket file. -Derek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: OT: Clamd error
Jean-Paul Natola wrote: Hi all, Sorry for cross-posting but it seams that the members from the other list went on vacation- and I'm in a jam I run exim 4.69 clamav .93 and spamassassin on a freebsd box - basically it gets my smtp traffic, checks for spam virus etc,, then forwards it to my mailserver- Suddenly last night it stopped working , I check the paniclog and all I see is 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to connect to UNIX socket /var/run/clamav/clamd (No such file or directory) its now /var/run/clamav/clamd.sock you may wish to update your exim config file. - That was it - thank you- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Synaptics touchpad driver addendum
also when these options are enabled, the mouse is completely dead, but a usb mouse will work after following this from pkg-message: the touchpad is not detected, and is still listed as just a mouse in the Xorg log. anyone getting something similar to this? machine is a HP DV2000, exact model is dv2225nr. default generic kernel from 7.0-Release. nvidia driver, ndis, are the only additions. ### o Add boot time tunable to /boot/loader.conf. Set hw.psm.synaptics_support=1 and shutdown -r now! /boot/loader.conf - hw.psm.synaptics_support=1 --- o Don't run moused(8) daemon. Dont' set moused_enable=YES in /etc/rc.conf. /etc/rc.conf -- moused_enable=NO --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Synaptics touchpad driver
after following this from pkg-message: the touchpad is not detected, and is still listed as just a mouse in the Xorg log. anyone getting something similar to this? machine is a HP DV2000, exact model is dv2225nr. default generic kernel from 7.0-Release. nvidia driver, ndis, are the only additions. ### o Add boot time tunable to /boot/loader.conf. Set hw.psm.synaptics_support=1 and shutdown -r now! /boot/loader.conf - hw.psm.synaptics_support=1 --- o Don't run moused(8) daemon. Dont' set moused_enable=YES in /etc/rc.conf. /etc/rc.conf -- moused_enable=NO --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Synaptics touchpad driver
On Thu, Aug 21, 2008 at 1:34 PM, michael [EMAIL PROTECTED] wrote: after following this from pkg-message: the touchpad is not detected, and is still listed as just a mouse in the Xorg log. anyone getting something similar to this? machine is a HP DV2000, exact model is dv2225nr. default generic kernel from 7.0-Release. nvidia driver, ndis, are the only additions. ### o Add boot time tunable to /boot/loader.conf. Set hw.psm.synaptics_support=1 and shutdown -r now! /boot/loader.conf - hw.psm.synaptics_support=1 --- o Don't run moused(8) daemon. Dont' set moused_enable=YES in /etc/rc.conf. /etc/rc.conf -- moused_enable=NO --- I have a synaptics touchpad on a Dell Inspiron 8100 that works fine in FreeBSD 7.0. During the mouse device configuration of the installation process, all I had to do was indicate that the system has a serial mouse, and then activate it. I learned this the hard way during a previous installation when I indicated that I did not have a serial mouse, and the system failed to recognize the touchpad. Individual modules/functions of sysinstall can be run post-installation. As root, execute 'sysinstall', select Index, and then look for the module for mouse configuration. I hope this helps. Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Net::SFTP not working after upgrade to 7.0 Release
I recently replaced a 5.3 Release server with a 7.0 Release machine. One of the jobs that runs on this machine use Net::SFTP. I installed this from ports, and it built without any errors. The script that uses Net::SFTP is now throwing an error: /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Math/BigInt/GMP/GMP.so: Undefined symbol __gmpz_init_set_str I have tried removing and re-installing the p5-Math-BigInt-GMP-1.24 port as well as the Net::SFTP port, and it still throws the same error. I'm hoping one of you has fought this battle and has some wisdom to share. Thanks -Mike OS: FreeBSD 7.0-RELEASE GENERIC amd64 Machine: Dell dual quad core CPU: Intel(R) Xeon(R) -- Michael Galvez http://www.people.virginia.edu/~mrg8n Information Technology Specialist University of Virginia ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
[EMAIL PROTECTED] wrote: Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. Yes, there is a backup. Restore from /var/backups/group.bak. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is to C as Lung Cancer is to Lung. -- Thomas Funke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Free Graphical Netflow Analyzer for FreeBSD / Windows
I would like to know seek any advices from all people here about any free tools for analyzing netflow data which can generate nice management report (chart, graph) like SolarWinds/any commercial products, that can be run either or Windows or FreeBSD (prefer). Not sure if that's what you're looking for, but net-mgmt/nfsen is worth a look. Screenshots available here: http://nfsen.sourceforge.net/#mozTocId301830. -- Nino ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: /etc/groups gone
Great help from all of you! Thank you, Balazs Date: Thu, 21 Aug 2008 21:43:06 +0200 From: [EMAIL PROTECTED] To: freebsd-questions@FreeBSD.ORG; [EMAIL PROTECTED] Subject: Re: /etc/groups gone [EMAIL PROTECTED] wrote: Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. Yes, there is a backup. Restore from /var/backups/group.bak. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is to C as Lung Cancer is to Lung. -- Thomas Funke _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with /dev/io Denied no device.
The problem I have is I get an error message when attempting to load up Xorg. Failed to open /dev/io For Extended I/O(EE) No devices detected. Also when I try to use links with the -mode 1024x768x256 option, I get svagalib: Cannot get I/O permissions. Both applications do this when attempting it as root. These two applications where working, but then this morning would not work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Complete Website US $ 99.99 with Domain Hosting and Designing
Complete Website US $ 99.99 25 MB web space 08 - 12 html pages (Designing) companyname.com (biz.net etc) 10 to 15 product images (static) 1 feedback form/inquiry form 10 Search Engine Submissions for more Packages http://www.inspk.com/web_packages.html for further details feel free to contact Muhammad Umair Khan| Business Development ManagerIntegrated Network Solutions - PAKISTANTel : + 92 21 497 9736 - 482 3955Fax : + 92 21 498 2816Cell : + 333 220 7506 Email : [EMAIL PROTECTED] URL : www.inspk.com INS - A Complete Network Solution Company. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
At 8:46 AM -0400 8/21/08, Steve Bertrand wrote: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT I'm curious why Perl isn't a decent choice. I think I'd do something like perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Of course one could choose to actually run the output to the input with appropriate Perl options but I don't normally do that. -- Walter M. Pawley [EMAIL PROTECTED] Wump Research Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Bidirectional traffic control with PF and altq or dummynet
I have been using PF for several years now and used IPFW previous to PF that I've grown more and more fond of. I now need to manage bidirectional traffic I have used Dummynet before to do similar things but it is my understanding that Altq can only manage outgoing traffic. My questions are: Am I correct in saying that Altq can not manage bidirectional traffic? if not I understand the dummynet can be used with pf and if so does anyone know of a howto to get me started? Thanks, ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Bidirectional traffic control with PF and altq or dummynet
I have been using PF for several years now and used IPFW previous to PF that I've grown more and more fond of. I now need to manage bidirectional traffic I have used Dummynet before to do similar things but it is my understanding that Altq can only manage outgoing traffic although I find the occasional example of it managing incoming like one to limit window's email assuming that I'm reading it properly. My questions are: Am I correct in saying that Altq can not manage bidirectional traffic? if not I understand the dummynet can be used with pf and if so does anyone know of a howto to get me started? I would rather not switch to IPFW right now. Thanks, ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
At 3:49 PM -0700 8/21/08, Walt Pawley wrote: At 8:46 AM -0400 8/21/08, Steve Bertrand wrote: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT I'm curious why Perl isn't a decent choice. I think I'd do something like perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Which is also wrong. It gets a bit closer to Steve's desires I suspect if one adds the appropriate backslash ... perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Sorry... -- Walter M. Pawley [EMAIL PROTECTED] Wump Research Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
At 4:19 PM -0700 8/21/08, Walt Pawley wrote: At 3:49 PM -0700 8/21/08, Walt Pawley wrote: At 8:46 AM -0400 8/21/08, Steve Bertrand wrote: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT I'm curious why Perl isn't a decent choice. I think I'd do something like perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Which is also wrong. It gets a bit closer to Steve's desires I suspect if one adds the appropriate backslash ... perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Sorry... I guess getting old, nearly blind and mind numbing close to brain dead is better than the alternative. Try this (sooner or later I've got to get it right)... perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Sorrier. -- Walter M. Pawley [EMAIL PROTECTED] Wump Research Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rtprio + su - doesn't work
i run such command /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime priority. how to do this right? i run asterisk as user (not root), but this server is used to other things, so asterisk must have absolute priority over other things. now i have to do this manually by searching for asterisk's PID and doing rtprio 31 -PID thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Again: fsck_ffs memory requirements
On Thu, 21 Aug 2008 18:49:17 +0200 (CEST), Oliver Fromme [EMAIL PROTECTED] wrote: Polytropon [EMAIL PROTECTED] wrote: On Thu, 21 Aug 2008 17:23:41 +0200, Kris Kennaway [EMAIL PROTECTED] wrote: Increase kern.maxdsiz. It seems that I don't have kern.maxdsiz: # sysctl kern.maxdsiz sysctl: unknown oid 'kern.maxdsiz' Am I looking at the wrong place? Allthough I've been using FreeBSD since 4.0, it seems that I got a little stupid over the years... :-/ It's a loader tunable, so you must put it in /boot/loader.conf. I put a value of ca. 1.5 GB into the loader's config file and that solved the problem. Thanks! Best regards, and good luck with your recovery! Allthough fsck_ffs 5 does seem to be able to calloc() the needed memory, it fails with the same message as fsck_ffs 7: fsck_ffs: bad inode number 306176 to nextinode Don't know what to do next. I may gather all information I have, write al little story and bring this topic up here next week. Maybe someone has better ideas than me. PS: Better make good backups next time. More precise: Better make _at least any_ backups. :-) More than 5 years without any (!) problem with FreeBSD and now this stupid problem... :-( -- 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: rtprio + su - doesn't work
On Aug 21, 2008, at 2:04 PM, Wojciech Puchar wrote: i run such command /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf tu run (at startup) asterisk PBX as user centrala with realtime priority. asterisk is started, but without realtime priority. Yes, you'd be running the su process with realtime priority. :-) how to do this right? i run asterisk as user (not root), but this server is used to other things, so asterisk must have absolute priority over other things. now i have to do this manually by searching for asterisk's PID and doing rtprio 31 -PID Well, you have to run rtprio as root, or else make it setuid-root (which probably isn't a great idea). Presumably this thing has a startup script which runs it, and it probably creates a PID file under /var/run which you could use to adjust the priority during system startup via: rtprio 31 -`cat /var/run/asterix.pid` -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Security questions, seeing more then one dhcp client.
I am seeing two dhcp clients connected to my wireless router. Does that mean someone other then me is on it? Or does the router have it's private dhcp client attached? The router is a compusa broadband wireless router. 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: Security questions, seeing more then one dhcp client.
Christopher Joyner wrote: I am seeing two dhcp clients connected to my wireless router. Does that mean someone other then me is on it? I would say so, unless you have people connected to it via ethernet using DHCP. You do have WPA or similar turned on I hope. HTH Andrew Or does the router have it's private dhcp client attached? The router is a compusa broadband wireless router. 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bidirectional traffic control with PF and altq or dummynet
Edwin L. Culp wrote: I have been using PF for several years now and used IPFW previous to PF that I've grown more and more fond of. I now need to manage bidirectional traffic I have used Dummynet before to do similar things but it is my understanding that Altq can only manage outgoing traffic although I find the occasional example of it managing incoming like one to limit window's email assuming that I'm reading it properly. My questions are: Am I correct in saying that Altq can not manage bidirectional traffic? based on what I have read of man pf.conf, I'd say nup. 'The interfaces on which queueing should be activated are declared' If you can set it on multiple devices then applying altq bidirectionaly on traffic going through should be no prob. If its traffic to and from the box in question I don't know. HTH cya Andrew if not I understand the dummynet can be used with pf and if so does anyone know of a howto to get me started? I would rather not switch to IPFW right now. Thanks, ed ___ 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: Help installing openoffice
El día Thursday, August 21, 2008 a las 11:08:21AM -0400, Robe escribió: Hi there, I wanna install Open Office through pkg_add because I've a slow band width. But I can't find it in the ports collection. In www.freshports.org they say I can install it by typing this pkg_add -r openoffice.org. But I don't know how to configure pkg_add or fetch to download the package from freshports.org. I wanna install Open Office 3-RC if possible. Can somebody help me with this? Thanx, -- Robe. ¿Es el hombre sólo un fallo de Dios, o Dios sólo un fallo del hombre? Hi, I could provide you with the package es-openoffice.org-3.0.20080802.tbz (and its dependencies), this is the Spanish compiled Version of the acutual port openoffice.org-DEV300_m9. Si miro tu firma, puede que te interese. Please contact me off-list if you're interested; 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]