How do I ring a bell?
In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. I could easily knock up a bit of hardware to go on a serial port (or similar) that could be triggered to make a noise, but these things have already got the hardware built in and I'm looking to use what I've already got. Thanks, Frank. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On 7 okt. 2013, at 13:37, Frank Leonhardt fra...@fjl.co.uk wrote: In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. I could easily knock up a bit of hardware to go on a serial port (or similar) that could be triggered to make a noise, but these things have already got the hardware built in and I'm looking to use what I've already got. Thanks, Frank. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org echo CTRL-V CTRL-G should do the trick -- Peter Boosten http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 07 Oct 2013 12:37:35 +0100, Frank Leonhardt wrote: In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Ah, the famous ^G control character... :-) Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. The terminal beep routine will primarily address the system's speaker (located at or connected to the mainboard). A side effect on the sound card is possible (the Logitech SoundMan did have that feature), but it's not really in relation. Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. Making it audible is part of the local terminal emulator, either the TTY (text mode) driver or via xterm (or the preferred alternative terminal emulator in X). A simple printf \a from the shell prompt should be sufficient. Note that if you're running this in X, you have to make sure the bell is not disabled. For example, put xset b 100 1000 15 in your ~/.xinitrc (or ~/.xsession respectively). A more sophisticated interface is provided as soon as your kernel has device speaker compiled in (or speaker.ko has been loaded). Now you can play wonderful music through the speaker. :-) See man 4 speaker for details. See the following shell script as an example of what you can do: #!/bin/sh read -p CW === TEXT echo ${TEXT} | morse | awk '{ if(length($0) == 0) printf(P4\n); else { gsub( dit, P32L32E, $0); gsub( di, P32L32E, $0); gsub( dah, P32L8E, $0); printf(%sP16\n, $0); } }' | dd bs=256 of=/dev/speaker /dev/null 21 Feel free to add support for reading from stdin so you can listen to your console messages piped into the script. :-) Always make sure that the system actually _has_ got an internal speaker! I assume that modern PC hardware could have it removed along with floppy drive connector, parallel port or power switch. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. That's a really clever idea, never heared of that. It has the advantage of being permanent because the drive will stay open when the sound of its motor has finished. :-) -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On 07/10/2013 13:06, Peter Boosten wrote: On 7 okt. 2013, at 13:37, Frank Leonhardt fra...@fjl.co.uk mailto:fra...@fjl.co.uk wrote: In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. I could easily knock up a bit of hardware to go on a serial port (or similar) that could be triggered to make a noise, but these things have already got the hardware built in and I'm looking to use what I've already got. Thanks, Frank. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. ___ freebsd-questions@freebsd.org mailto:freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org echo CTRL-V CTRL-G should do the trick Alas, not. The console driver won't ring the BIOS bell on anything I've tried. It might on a desktop with a built-in sound card and speakers, but it won't do anything with the beep speaker. It's actually the same solution I mentioned in the first line (\a translates to 007 which is ctrl-G). Then there's the issue of writing it to the console rather than a virtual terminal, but I have a few hacks that'll achieve that part. IIRC there was once a FreeBSD kernel module to drive the PC speaker (through /dev/pcspeaker or similar), but it seems to have gone or I'm confusing it with another BSD (or Linux). No I'm not. /usr/src/sys/dev/speaker/spkr.c(!) I may be close to a solution... Regards, Frank. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 07 Oct 2013 12:37:35 +0100 Frank Leonhardt fra...@fjl.co.uk wrote: In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. Try this: echo ^G /dev/console You'll have to type ^V^G to get a real ^G in the command line (^ means control of course). -- Steve O'Hara-Smith st...@sohara.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
Frank Leonhardt skrev 2013-10-07 13:37: In the good'ol days I could make UNIX ring a bell (literally) by sending \a to the console TTY (an ASR33 in my case). Now there's an electronic synthesised ting or beep from an terminal emulator IF it's got a sound card and so on, and an IBM-PC had a beep routine in the BIOS. Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. I could easily knock up a bit of hardware to go on a serial port (or similar) that could be triggered to make a noise, but these things have already got the hardware built in and I'm looking to use what I've already got. Thanks, Frank. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org You also have the audio/yell port. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 07 Oct 2013 13:46:53 +0100 Frank Leonhardt wrote: Alas, not. The console driver won't ring the BIOS bell on anything I've tried. It might on a desktop with a built-in sound card and speakers, but it won't do anything with the beep speaker. Are you sure you have one? The last two cases I bought didn't. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 07 Oct 2013 13:46:53 +0100 Frank Leonhardt fra...@fjl.co.uk wrote: Then there's the issue of writing it to the console rather than a virtual terminal, but I have a few hacks that'll achieve that part. /dev/console is your friend. -- Steve O'Hara-Smith st...@sohara.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On 07/10/2013 14:31, RW wrote: On Mon, 07 Oct 2013 13:46:53 +0100 Frank Leonhardt wrote: Alas, not. The console driver won't ring the BIOS bell on anything I've tried. It might on a desktop with a built-in sound card and speakers, but it won't do anything with the beep speaker. Are you sure you have one? The last two cases I bought didn't. They beep when you turn them on and they're ready to boot :-) /dev/speaker appears to be the answer. Thanks, Frank. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 7 Oct 2013, Frank Leonhardt wrote: On 07/10/2013 13:06, Peter Boosten wrote: echo CTRL-V CTRL-G should do the trick Or, more easily, printf \a. Alas, not. The console driver won't ring the BIOS bell on anything I've tried. It might on a desktop with a built-in sound card and speakers, but it won't do anything with the beep speaker. It's actually the same solution I mentioned in the first line (\a translates to 007 which is ctrl-G). Make sure hw.syscons.bell is set to 1. It can be changed at run time, like in /etc/sysctl.conf. Some systems have it disabled (set to 0) because the bell is amazingly loud and piercing. (Looking at you, Dell.) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On 07/10/2013 13:36, Polytropon wrote: Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. Making it audible is part of the local terminal emulator, either the TTY (text mode) driver or via xterm (or the preferred alternative terminal emulator in X). Yers, but I'm not running X. Or a character terminal come to that :-) A more sophisticated interface is provided as soon as your kernel has device speaker compiled in (or speaker.ko has been loaded). Now you can play wonderful music through the speaker. :-) See man 4 speaker for details. Thanks! This is what I was looking for. See the following shell script as an example of what you can do: snip Overkill. I have proper work to do rather than working out how to play appropriate bit silly little tunes for every eventuality. Actually spkr.c has some useful comments in it - apparently it works the same as IBM PC BASIC. Now how do I make it polyphonic... Always make sure that the system actually _has_ got an internal speaker! I assume that modern PC hardware could have it removed along with floppy drive connector, parallel port or power switch. Remains to be seen, but most still seem to have one so the BIOS ROM can make beep diagnostic codes if it can't do anything else. P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. That's a really clever idea, never heared of that. It has the advantage of being permanent because the drive will stay open when the sound of its motor has finished. :-) I use it all the time, especially when directing a tech to the appropriate server in a rack. It's the one I just popped the CD drive on. These days servers have the spring-loaded notebook drives instead of the motorised trays, which is a pity. You could keep winding the motorised ones in and out until someone spotted it. I suppose if you did it energetically enough it might catch fire and set off the smoke alarm (audible). Or leave it wound out with a tin can balanced on it; to make a noise wind it back in and hear it clatter to the floor. (Incidentally - email over-lap because earlier reply posted to me and list rather than just list) Regards, Frank. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I ring a bell?
On Mon, 07 Oct 2013 21:09:44 +0100, Frank Leonhardt wrote: On 07/10/2013 13:36, Polytropon wrote: Is there any way to make a noise through the built in bell speaker found on an IBM PC compatible server box? Writing 007 to the BIOS cout routine might do it, but I've realised I haven't got a clue how to do that. Making it audible is part of the local terminal emulator, either the TTY (text mode) driver or via xterm (or the preferred alternative terminal emulator in X). Yers, but I'm not running X. Or a character terminal come to that :-) In that case, something line printf \a /dev/console should work - I've just tried it. You can do that from a shell script or maybe even via fprintf() from your own code. See the following shell script as an example of what you can do: snip Overkill. I have proper work to do rather than working out how to play appropriate bit silly little tunes for every eventuality. Actually spkr.c has some useful comments in it - apparently it works the same as IBM PC BASIC. Now how do I make it polyphonic... By adding more computers. This is the established solution to _every_ IT-related problem. :-) The code in /usr/src/sys/dev/speaker/spkr.c provides a more streamlined interface to sound generation. It's even more bare metal than what I remember from Borland Turbo-C: sound(1000); delay(2500); nosound(); It was important not to miss the 3rd line or the fun would never end. :-) Always make sure that the system actually _has_ got an internal speaker! I assume that modern PC hardware could have it removed along with floppy drive connector, parallel port or power switch. Remains to be seen, but most still seem to have one so the BIOS ROM can make beep diagnostic codes if it can't do anything else. This proves that it is present, even if it's not an attached speaker anymore. Many mainboards contain a little piezo speaker directly mounted (my ultracheap home PC does, for example). P.S. cdcontrol -f /dev/mycdrom eject is the best I've come up with so far for getting attention. That's a really clever idea, never heared of that. It has the advantage of being permanent because the drive will stay open when the sound of its motor has finished. :-) I use it all the time, especially when directing a tech to the appropriate server in a rack. It's the one I just popped the CD drive on. These days servers have the spring-loaded notebook drives instead of the motorised trays, which is a pity. You could keep winding the motorised ones in and out until someone spotted it. This seems to be better than those slot-in drives I had in one server: no moving parts to the outside. I suppose if you did it energetically enough it might catch fire and set off the smoke alarm (audible). This procedure has been part of an independent quality test of CD recorders, performed by a PC maganzine many years ago. Interesting result: the cheapest drive would last longer than the most expensive one in which the gears automatically had disassembled. :-) Or leave it wound out with a tin can balanced on it; to make a noise wind it back in and hear it clatter to the floor. Interesting use for the 4X cup holder. :-) -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: How do I launch Calligra?
On Thu, 20 Jun 2013 09:02:42 -0700 Ed Flecko edfle...@gmail.com wrote: I've installed Calligra Suite from package, but I'm struggling to figure out how to launch any of its programs??? These are my entries in the handwritten Fluxbox Menu: /usr/local/kde4/bin/kexi /usr/local/kde4/bin/calligrawords HTH Ed --- --- Eduardo Morras emorr...@yahoo.es ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How do I launch Calligra?
I've installed Calligra Suite from package, but I'm struggling to figure out how to launch any of its programs??? Ed ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I launch Calligra?
On Thu, 20 Jun 2013 09:02:42 -0700, Ed Flecko wrote: I've installed Calligra Suite from package, but I'm struggling to figure out how to launch any of its programs??? Check what's been installed, especially with a new entry in /usr/local/bin, maybe with $ grep bin /var/db/pkg/packagename/+CONTENTS where packagename is the correct package name including the version (use TAB completition). -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: How do I launch Calligra?
On 20 June 2013 14:33, Polytropon free...@edvax.de wrote: On Thu, 20 Jun 2013 09:02:42 -0700, Ed Flecko wrote: I've installed Calligra Suite from package, but I'm struggling to figure out how to launch any of its programs??? Check what's been installed, especially with a new entry in /usr/local/bin, maybe with $ grep bin /var/db/pkg/packagename/+CONTENTS where packagename is the correct package name including the version (use TAB completition). pkg info -l if you're using pkgng also, ls -rt /usr/local/bin is sometimes helpful -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do I restart lagg0 properly?
Erich Dollansky writes: I have used this configuration with success: ifconfig_em0=up ifconfig_iwn0=ether MAC address of em0 wlans_iwn0=wlan0 ifconfig_wlan0=WPA cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport em0 laggport wlan0 Your IP address This configuration switched automatically between the available connections prefering em0. There are no routing problems, nothing of this sort at all. Thanks for confirming the setup. I basically use the same but with DHCP enabled. I've done quite a bit of testing lately. Turns out that *sometimes* lagg0 works as advertized. When the box was booted with WLAN available only, I can plug in a patch cable and connect to my DSL router via LAN. Most of the times though, this does not work. After plugging in the cable, I cannot make any outbound connections. The box can be pinged from other boxes in my LAN though. *Sometimes* the following commands will enable networking after plugging in the patch cable in these cases: service netif start service routing restart But then, most of the times this does not help either. I'm at a loss now. I'm actually wondering if the problem is located on the other end of the line (I'm using a Fritz!Box 7113 DSL router for both LAN and WLAN). regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do I restart lagg0 properly?
Hi, I've tried to setup link aggregation to allow networking through WLAN and ethernet on my laptop, see: http://lists.freebsd.org/pipermail/freebsd-questions/2013-January/248605.html (this thread contains my network setup information) The lack of replies may indicate that it is not possible to set up lagg in a way which allows to setup networking either via WLAN or via ethernet, whichever is accessible during boot. In any case I figured that I should be able to bring down networking completely and restart it completely after I plugged in a LAN cable to work around this limitation. I tried things like: service netif restart lagg0 I understand that both routing and DHCP will be affected by temporarily bringing down the network, so I added commands like these in various orders: service routing restart service dhclient restart All in all, to no avail. I can't even ping my DSL router after fiddling with lagg0 after boot. What is the correct incantation of commands to cleanly shut down and restart my networking? thanks, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do I restart lagg0 properly?
Hi, On Tue, 29 Jan 2013 00:09:36 +0100 markus.hoeni...@mhoenicka.de wrote: I've tried to setup link aggregation to allow networking through WLAN and ethernet on my laptop, see: http://lists.freebsd.org/pipermail/freebsd-questions/2013-January/248605.html (this thread contains my network setup information) The lack of replies may indicate that it is not possible to set up lagg in a way which allows to setup networking either via WLAN or via ethernet, whichever is accessible during boot. In any case I figured I have used this configuration with success: ifconfig_em0=up ifconfig_iwn0=ether MAC address of em0 wlans_iwn0=wlan0 ifconfig_wlan0=WPA cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport em0 laggport wlan0 Your IP address This configuration switched automatically between the available connections prefering em0. There are no routing problems, nothing of this sort at all. Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Question on how do I tell make to choose between static and shared versions of a library
Hello All, This is not a question strictly on FreeBSD. But since freebsd-questions is a lot quicker with its dependable responses, I decided to post my question here. Under /lib I have both versions - shared (libxyz.so.1) as well as static (libxyz.a) - of a library. How do I tell make to link to the static version, not the shared one ? The next obvious question is how to do the vice versa - tell make to link to the shared version, not the static one. Any help will be greatly appreciated. Thank you -- Regards, Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Question on how do I tell make to choose between static and shared versions of a library
On Sun, 16 Dec 2012 22:52:05 +0530, Manish Jain wrote: Under /lib I have both versions - shared (libxyz.so.1) as well as static (libxyz.a) - of a library. How do I tell make to link to the static version, not the shared one ? The next obvious question is how to do the vice versa - tell make to link to the shared version, not the static one. To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org This can be done by addressing the linker through $LDFLAGS. I think man ld will be helpful. -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: Question on how do I tell make to choose between static and shared versions of a library
On 16/12/2012 17:22, Manish Jain wrote: Under /lib I have both versions - shared (libxyz.so.1) as well as static (libxyz.a) - of a library. How do I tell make to link to the static version, not the shared one ? The next obvious question is how to do the vice versa - tell make to link to the shared version, not the static one. Add -static to the ld command line to produce a staticly linked binary: this forbids ld(1) from doing any dynamic linking. Otherwise ld will default to dynamic linking, but fall back to linking staticly against libraries where there isn't a dynamic shared object available. Actually, there are about 4 different linker flags you could use that mean 'produce a staticly linked binary.' They don't have any different effect; the reason they exist is for historic compatibility with versions of ld(1) from many different sources. It's also an all-or-nothing option. If you wanted to use static linkage for one particular library out of all the libraries used by your program, then you'ld need a very different command line. But that, as they say, is left as an exercise for the student. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Question on how do I tell make to choose between static and shared versions of a library
On 16-Dec-12 23:12, Matthew Seaman wrote: On 16/12/2012 17:22, Manish Jain wrote: Under /lib I have both versions - shared (libxyz.so.1) as well as static (libxyz.a) - of a library. How do I tell make to link to the static version, not the shared one ? The next obvious question is how to do the vice versa - tell make to link to the shared version, not the static one. Add -static to the ld command line to produce a staticly linked binary: this forbids ld(1) from doing any dynamic linking. Otherwise ld will default to dynamic linking, but fall back to linking staticly against libraries where there isn't a dynamic shared object available. Actually, there are about 4 different linker flags you could use that mean 'produce a staticly linked binary.' They don't have any different effect; the reason they exist is for historic compatibility with versions of ld(1) from many different sources. It's also an all-or-nothing option. If you wanted to use static linkage for one particular library out of all the libraries used by your program, then you'ld need a very different command line. But that, as they say, is left as an exercise for the student. Cheers, Matthew Thanks Matthew. That saved me a lot of time, and the man page for ld (as suggested by Polytropon) is not as informative on this particular subject as your response. -- Regards, Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
vidcontrol - How do I make these persist?
List, If I edit things via vidcontrol, e.g: `vidcontrol grey black` where do I put this to make it persist across reboots on all terminals? Cheers! -Modulok- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: vidcontrol - How do I make these persist?
Modulok modu...@gmail.com wrote: List, If I edit things via vidcontrol, e.g: `vidcontrol grey black` where do I put this to make it persist across reboots on all terminals? Search for vidcontrol(1) in rc.conf(5) manual. -- regards, Maciej Suszko. signature.asc Description: PGP signature
Re: How do I set number of retries in Firefox?
I have a problem with various parts of web pages stopping before getting completely downloaded. Links has a useful retries setting (setup-network options-retries) which seems to fix this. I need a similar fix for firefox 3.6.2 Firefox 15 URL: about:config search: retry network.http.connection-retry-timeout;250 3.6.2 doesn't have network.http.connection-retry-timeout, but I found network.http.max-connections and friends, reducing those should reduce the timeouts. So far so good. I would have never guessed to type about:config as a URL. Very useful to know. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I set number of retries in Firefox?
On Thu, 20 Sep 2012 20:52:27 -0400, Dieter BSD wrote: I would have never guessed to type about:config as a URL. Very useful to know. Thank you. Allow me a sidenote: This also works in Opera and provides access to configuration and functionality that has no usable GUI equivalent. -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: How do I set number of retries in Firefox?
Dieter BSD dieterbsd at engineer.com writes: [ no response on mozilla@ list, trying questions@ ] I have a problem with various parts of web pages stopping before getting completely downloaded. Links has a useful retries setting (setup-network options-retries) which seems to fix this. I need a similar fix for firefox 3.6.2 Firefox 15 URL: about:config search: retry network.http.connection-retry-timeout;250 jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How do I set number of retries in Firefox?
[ no response on mozilla@ list, trying questions@ ] I have a problem with various parts of web pages stopping before getting completely downloaded. Links has a useful retries setting (setup-network options-retries) which seems to fix this. I need a similar fix for firefox 3.6.2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How do I determine support for $xx?
Hi All, If this question is better suited for a different list please let me know. Simply stated, my question is 'What is the best source for identifying supported hardware?'. Having said that, allow me to pose an example... I've attempted to identify if various ethernet controllers are supported by FreeBSD and the drivers. I used the hardware notes and manpages for the respective ethernet drivers. The information between the two sometimes seems inconsistent and/or inaccurate. For example, the BCM5719 and BCM5720 are unsupported in FreeBSD at this time. The hardware notes at freebsd.org do not specify these controllers are supported. Inspection of the bge(4) manpage implies that the controllers are supported as seen in the description section where it states: The bge driver provides support for various NICs based on the Broadcom BCM570x, 571x, 572x, 575x, 576x, 578x, 5776x and 5778x Gigabit Ethernet controller chips and the 590x and 5779x Fast Ethernet controller chips. I browsed the source and found many references to the BCM5719 and BCM5720. However, I am unfamiliar enough with driver programming in C to identify if a controller is fully supported. Also, I attempted to identify whether the Intel i350 is supported. It's not listed in the hardware notes or the igb(4) manpage so I suspect it is not supported. When I view the igb source, the i350 is referenced numerous times. Are these references simply code in preparation for support of the i350? -- Take care Rick Miller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I determine support for $xx?
On 08/06/2012 16:07, Rick Miller wrote: If this question is better suited for a different list please let me know. Simply stated, my question is 'What is the best source for identifying supported hardware?'. Having said that, allow me to pose an example... I've attempted to identify if various ethernet controllers are supported by FreeBSD and the drivers. I used the hardware notes and manpages for the respective ethernet drivers. The information between the two sometimes seems inconsistent and/or inaccurate. For example, the BCM5719 and BCM5720 are unsupported in FreeBSD at this time. The hardware notes at freebsd.org do not specify these controllers are supported. Inspection of the bge(4) manpage implies that the controllers are supported as seen in the description section where it states: The bge driver provides support for various NICs based on the Broadcom BCM570x, 571x, 572x, 575x, 576x, 578x, 5776x and 5778x Gigabit Ethernet controller chips and the 590x and 5779x Fast Ethernet controller chips. The Hardware notes do not contain definitive lists of all of the hardware that is supported. Support for NICs generally goes by what chipset is used in the NIC, but may be confounded by some manufacturers using unusual firmware. If a particular device is listed in a man page, that indicates that device has been tested and is known to work. If the source code makes reference to a specific device, then generally that device will work too: part working or in-progress code is not generally committed to the FreeBSD sources. If a devices' chipset is listed in a man page, but there's no reference to a specific device, then the device stands a good chance of working. If such a device doesn't work, then frequently it can be fixed quite easily by specifying appropriate device quirks. I browsed the source and found many references to the BCM5719 and BCM5720. However, I am unfamiliar enough with driver programming in C to identify if a controller is fully supported. Also, I attempted to identify whether the Intel i350 is supported. It's not listed in the hardware notes or the igb(4) manpage so I suspect it is not supported. When I view the igb source, the i350 is referenced numerous times. Are these references simply code in preparation for support of the i350? As I said above, this would be unusual. The development process in FreeBSD nowadays is to work on projects (eg. the addition of a driver for a new piece of hardware) off-line and only commit the code to the mainline sources once it is basically complete and ready for exposure to a wider audience for testing. Ultimately the best way to tell if any particular device is supported is to try it. There are plenty of USB-stick images of FreeBSD or PC-BSD readily downloadable so you can test boot up a candidate machine without committing to install the OS on it. While most manufacturers won't support FreeBSD per-se, if you can find the right sort of techy person to talk to, they'll often tip you off about whether FreeBSD is known to work or not. Hardware from big-name suppliers (Dell, HP and the like for complete systems; Intel, Broadcomm for NICs) is a priority for support although it may take a few months for the code to become generally available for the newest bits of kit. In fact, so long as the components you want to use have been on the market for around 6 months (very approximately) and they are aimed at use in server hardware rather than personal or casual use, the chances are good that they will just work in FreeBSD. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: How do I determine support for $xx?
Hi Rick (!), On Jun 8, 2012, at 8:07 AM, Rick Miller wrote: Hi All, If this question is better suited for a different list please let me know. Simply stated, my question is 'What is the best source for identifying supported hardware?'. The source! Actually, pciconf and grep unknown /var/run/dmesg.boot and using pcidatabase.com are all good starts (for me at least). When I'm integrating new/old hardware there isn't one path that I take. It really depends on what the situation is. (and so to give you the best advice, I read-on) Having said that, allow me to pose an example... I've attempted to identify if various ethernet controllers are supported by FreeBSD and the drivers. I used the hardware notes and manpages for the respective ethernet drivers. The information between the two sometimes seems inconsistent and/or inaccurate. For example, the BCM5719 and BCM5720 are unsupported in FreeBSD at this time. That *was* true, but it's integrated quite well now with 8.3-R. We have a few NEC workstations eval's fresh for testing that are using that hardware. The hardware notes at freebsd.org do not specify these controllers are supported. Inspection of the bge(4) manpage implies that the controllers are supported as seen in the description section where it states: The bge driver provides support for various NICs based on the Broadcom BCM570x, 571x, 572x, 575x, 576x, 578x, 5776x and 5778x Gigabit Ethernet controller chips and the 590x and 5779x Fast Ethernet controller chips. I browsed the source and found many references to the BCM5719 and BCM5720. However, I am unfamiliar enough with driver programming in C to identify if a controller is fully supported. You really need to know the 4-digit hexadecimal Vendor ID and Model ID of the chipset to KNOW that a source module will probe/attach to a given hardware by-spec. Probing/attaching is mostly done by registry arrays defining these hex values as what to attach to during probe. Of course, booting the OS is the best way. If your HW device is not picked up by any module (built-in or otherwise), then you'll get a line like the following in /var/run/dmesg.boot: pci0: unknown card (vendor=0x1106, dev=0x3057) at 4.4 There's those hex values. If you take the device value and enter it into pcidatabase.com you'll get: http://pcidatabase.com/search.php?device_search_str=0x3057device_search=Search Which comes up as: ACPI Power Management Controller by VIA Technologies, Inc That's the unknown device. But, let's focus on BCM5720… If you were running, say, 8.0-R, even if you have the bge(4) driver loaded, you would see this in /var/run/dmesg.boot: pciN: unknown card (vendor=0x1106, dev=0x165f) at X.Y NOTE: Insert random numbers for N, and X.Y How you know that 8.3-R's bge(4) driver supports the BCM5720 is because this source file: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?annotate=1.83.2.35.2.1 NOTE: I specifically pointed you at CVS instead of SVN so that you can see the version tagged for 8.3-R Specifically, this line: 2309: #defineBCOM_DEVICEID_BCM5720 0x165F Also, I attempted to identify whether the Intel i350 is supported. It's not listed in the hardware notes or the igb(4) manpage so I suspect it is not supported. Boot up and see if it shows up as an unknown device. HINT: 0x8086 is often Intel's Vendor ID It's easier to start that route and get the vendor/device hex so you can recursively grep src/sys/dev for those hex values (make sure to do it case insensitively). Investigating each match (especially if it ends in _reg.h or _reg.c or hw.c etc.) should show you (in code) which modules may (or may not) support a given unknown hardware (either in your current branch or another). If you're commonly dealing with new hardware on an often-enough basis, then it's advisable to have a copy of HEAD checked out for keeping src/sys/dev up to date for recursive grepping to find out if hardware is supported (in the previously described manner). When I view the igb source, the i350 is referenced numerous times. Are these references simply code in preparation for support of the i350? Maybe. If you have HW specs for the board you're trying to integrate, check for the vendor/device id's and see if they match the references that you're finding in code. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list
Re: How do I determine support for $xx?
On Jun 8, 2012, at 9:45 AM, Devin Teske wrote: Hi Rick (!), On Jun 8, 2012, at 8:07 AM, Rick Miller wrote: [snip] I browsed the source and found many references to the BCM5719 and BCM5720. However, I am unfamiliar enough with driver programming in C to identify if a controller is fully supported. [snip] If you were running, say, 8.0-R, even if you have the bge(4) driver loaded, you would see this in /var/run/dmesg.boot: pciN: unknown card (vendor=0x1106, dev=0x165f) at X.Y Correction, (specific to BCM5720) you'd see: pciN: unknown card (vendor=0x14e4, dev=0x165f) at X.Y Which, btw, you can confirm to yourself by executing the following within 8.3-R (with attached bge(4)): $ pciconf -lv | awk '/^bge/{print $1,$4}' bge0@pciN:A:B:C: chip=0x165f14e4 Otherwise, you can see an unknown (non-working bge(4)) Broadcom BCM5720 hardware by executing (on 8.0-R for example): $ grep unk /var/run/dmesg.boot | grep 0x14e4 pciN: unknown card (vendor=0x14e4, dev=0x165f) at X.Y NOTE: On a system where all hardware is probed/attached, grep unk /var/run/dmesg.boot should not produce any results. In this case, pciconf is your tool for probing vendor/device IDs. NOTE: Insert random numbers for N, and X.Y How you know that 8.3-R's bge(4) driver supports the BCM5720 is because this source file: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?annotate=1.83.2.35.2.1 NOTE: I specifically pointed you at CVS instead of SVN so that you can see the version tagged for 8.3-R Specifically, this line: 2309: #defineBCOM_DEVICEID_BCM5720 0x165F [snip] -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I determine support for $xx?
Matthew/Devin, Thanks for the feedback. After I sent this email, I determined that the Intel i350 is indeed supported as a machine I built with FreeBSD was utilizing this NIC. I've tried the BCM5719 with stable/8 (5/21/2012) and it kernel panics when the interface is configured. I was told by a source contributor that the BCM5720 does not work (confirmed as recently as within the last week), but I've not tested it. I'm just passing this on as information...I don't expect any feedback with regards to this. On Fri, Jun 8, 2012 at 1:06 PM, Devin Teske devin.te...@fisglobal.com wrote: On Jun 8, 2012, at 9:45 AM, Devin Teske wrote: Hi Rick (!), On Jun 8, 2012, at 8:07 AM, Rick Miller wrote: [snip] I browsed the source and found many references to the BCM5719 and BCM5720. However, I am unfamiliar enough with driver programming in C to identify if a controller is fully supported. [snip] If you were running, say, 8.0-R, even if you have the bge(4) driver loaded, you would see this in /var/run/dmesg.boot: pciN: unknown card (vendor=0x1106, dev=0x165f) at X.Y Correction, (specific to BCM5720) you'd see: pciN: unknown card (vendor=0x14e4, dev=0x165f) at X.Y Which, btw, you can confirm to yourself by executing the following within 8.3-R (with attached bge(4)): $ pciconf -lv | awk '/^bge/{print $1,$4}' bge0@pciN:A:B:C: chip=0x165f14e4 Otherwise, you can see an unknown (non-working bge(4)) Broadcom BCM5720 hardware by executing (on 8.0-R for example): $ grep unk /var/run/dmesg.boot | grep 0x14e4 pciN: unknown card (vendor=0x14e4, dev=0x165f) at X.Y NOTE: On a system where all hardware is probed/attached, grep unk /var/run/dmesg.boot should not produce any results. In this case, pciconf is your tool for probing vendor/device IDs. NOTE: Insert random numbers for N, and X.Y How you know that 8.3-R's bge(4) driver supports the BCM5720 is because this source file: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?annotate=1.83.2.35.2.1 NOTE: I specifically pointed you at CVS instead of SVN so that you can see the version tagged for 8.3-R Specifically, this line: 2309: #define BCOM_DEVICEID_BCM5720 0x165F [snip] -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. -- Take care Rick Miller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How do I determine support for $xx?
Hi Devin There were some great tips in your last post. Would be great if they couldfo in FreeBSD handbook somewhere. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, indent with . Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. Mail from @yahoo dumped @berklix. http://berklix.org/yahoo/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do I fix this?
On Tue, Jun 05, 2012 at 03:34:27PM -0700, Gary Kline wrote: On Tue, Jun 05, 2012 at 08:04:35AM +0200, Roland Smith wrote: what I want to do is get as current as possible and then install 7.5. and stay there. 7.5 what? Do you mean Xorg? Please try and be specific. FreeBSD-7.5. pretty sure I saw something about 7.4 being upgraded to 7.5. It doesn't look like it. From http://www.nl.freebsd.org/releases/7.4R/announce.html: This will be the last release from the 7-STABLE branch. 7.4 is listed as a legacy release of the FreeBSD homepage. The only upcoming release listed is 9.1 somewhere this year. Portmaster will first recurse through the port and all of its dependencies (if any) to handle any port OPTIONS via the 'make config' interface, before going off on the big build. one thing ive been doing is de-selection most of the options.. the box is my server. we [freebsders] have lost the desktop 'market' My desktop and laptop beg to differ. :-) UNIX is a toolbox, not an appliance. So it was never meant for the desktop market. But that doesn't mean it cannot be used as such. Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpJS1MdnhfDM.pgp Description: PGP signature
Re: how do I fix this?
On Mon, Jun 04, 2012 at 09:53:11PM -0700, Gary Kline wrote: Subject: Re: how do I fix this? To: FreeBSD freebsd-questions@freebsd.org X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) On Mon, 4 Jun 2012 14:43:08 -0700 Gary Kline articulated: from portupgrade, I just learned this: gmake[1]: Leaving directory `/usr/ports/security/gnupg/work/gnupg-2.0.18' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/security/gnupg. *** Error code 1 Stop in /usr/ports/security/gnupg. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120604-59509-nufufc-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnupg-2.0.17_1 UPGRADE_PORT_VER=2.0.17_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! security/gnupg (gnupg-2.0.17_1) (linker error) ethic# can anybody onlist figure out WTF is wrong here? Well, for starters, gnupg is at version 2.0.19 in my ports tree, so I am not sure what is wrong with yours. I might suggest the following. 1) Clean out /usr/ports/distfiles 2) Update your ports tree 3) Run: make clean in the gnupg port 4) Attempt to rebuild and install the port. no joy. I did another full upgrade. first time in many months. then spent a couple hours with portmaster (thank you, Roland:). this as a first upgrade. Make sure you update portmaster first. The latest versions have significant improvements. Also there has recently been a upgrade of libPNG, requiring a rebuild of everything that needs it. what I want to do is get as current as possible and then install 7.5. and stay there. 7.5 what? Do you mean Xorg? Please try and be specific. another question involves accepting the 3-D windows with whatever options they might present. You mean the options dialogs as run by 'make config'? Portmaster will first recurse through the port and all of its dependencies (if any) to handle any port OPTIONS via the 'make config' interface, before going off on the big build. is there any upgrade utility or flag that will accept and upgrade things without me having to be here? Yes and no. With the latest portmaster you can use the -y flag to automatically answer yes to all questions. But some ports are marked as interactive, in the sense that they need you to give some input. Or they are marked as restricted in that you might have to go and download the tarball yourself somewhere. These are properties of the ports system and the individual ports. No port build tool can override that. BTW, use the -R flag with portmaster. If a long build fails, it skips already updated stuff on the second try. Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpXRqwUNEHvg.pgp Description: PGP signature
Re: how do I fix this?
On Tue, Jun 05, 2012 at 08:04:35AM +0200, Roland Smith wrote: Date: Tue, 5 Jun 2012 08:04:35 +0200 From: Roland Smith rsm...@xs4all.nl Subject: Re: how do I fix this? To: Gary Kline kl...@thought.org Cc: FreeBSD freebsd-questions@freebsd.org On Mon, Jun 04, 2012 at 09:53:11PM -0700, Gary Kline wrote: no joy. I did another full upgrade. first time in many months. then spent a couple hours with portmaster (thank you, Roland:). this as a first upgrade. Make sure you update portmaster first. The latest versions have significant improvements. Also there has recently been a upgrade of libPNG, requiring a rebuild of everything that needs it. pretty sure that I did exactly that. what I want to do is get as current as possible and then install 7.5. and stay there. 7.5 what? Do you mean Xorg? Please try and be specific. FreeBSD-7.5. pretty sure I saw something about 7.4 being upgraded to 7.5. I've been at FBSD-7.3 for a long ti me. I dont remember how many times I have upgraded this release, but it has been solid. another question involves accepting the 3-D windows with whatever options they might present. You mean the options dialogs as run by 'make config'? exactly. Portmaster will first recurse through the port and all of its dependencies (if any) to handle any port OPTIONS via the 'make config' interface, before going off on the big build. one thing ive been doing is de-selection most of the options.. the box is my server. we [freebsders] have lost the desktop 'market' is there any upgrade utility or flag that will accept and upgrade things without me having to be here? Yes and no. With the latest portmaster you can use the -y flag to automatically answer yes to all questions. But some ports are marked as interactive, in the sense that they need you to give some input. Or they are marked as restricted in that you might have to go and download the tarball yourself somewhere. These are properties of the ports system and the individual ports. No port build tool can override that. BTW, use the -R flag with portmaster. If a long build fails, it skips already updated stuff on the second try. super; I'll add -yR to the argv list. tx again, gary Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do I fix this?
guys, it has taken me almost a month to upgrade 700 ports. somehow, things grew to 1100+ ports. [?] {this is just FWIW.} I've tried portmaster and p'upgrade on security/gnupg I dont see why I should need these on my Server... anyway, from portupgrade, I just learned this: gmake[1]: Leaving directory `/usr/ports/security/gnupg/work/gnupg-2.0.18' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/security/gnupg. *** Error code 1 Stop in /usr/ports/security/gnupg. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120604-59509-nufufc-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnupg-2.0.17_1 UPGRADE_PORT_VER=2.0.17_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! security/gnupg (gnupg-2.0.17_1) (linker error) ethic# can anybody onlist figure out WTF is wrong here? tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do I fix this?
On Mon, 4 Jun 2012 14:43:08 -0700 Gary Kline articulated: from portupgrade, I just learned this: gmake[1]: Leaving directory `/usr/ports/security/gnupg/work/gnupg-2.0.18' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/security/gnupg. *** Error code 1 Stop in /usr/ports/security/gnupg. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120604-59509-nufufc-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnupg-2.0.17_1 UPGRADE_PORT_VER=2.0.17_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! security/gnupg (gnupg-2.0.17_1) (linker error) ethic# can anybody onlist figure out WTF is wrong here? Well, for starters, gnupg is at version 2.0.19 in my ports tree, so I am not sure what is wrong with yours. I might suggest the following. 1) Clean out /usr/ports/distfiles 2) Update your ports tree 3) Run: make clean in the gnupg port 4) Attempt to rebuild and install the port. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do I fix this?
On Mon, Jun 04, 2012 at 06:24:57PM -0400, Jerry wrote: Date: Mon, 4 Jun 2012 18:24:57 -0400 From: Jerry je...@seibercom.net Subject: Re: how do I fix this? To: FreeBSD freebsd-questions@freebsd.org X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) On Mon, 4 Jun 2012 14:43:08 -0700 Gary Kline articulated: from portupgrade, I just learned this: gmake[1]: Leaving directory `/usr/ports/security/gnupg/work/gnupg-2.0.18' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/security/gnupg. *** Error code 1 Stop in /usr/ports/security/gnupg. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120604-59509-nufufc-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gnupg-2.0.17_1 UPGRADE_PORT_VER=2.0.17_1 make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! security/gnupg (gnupg-2.0.17_1) (linker error) ethic# can anybody onlist figure out WTF is wrong here? Well, for starters, gnupg is at version 2.0.19 in my ports tree, so I am not sure what is wrong with yours. I might suggest the following. 1) Clean out /usr/ports/distfiles 2) Update your ports tree 3) Run: make clean in the gnupg port 4) Attempt to rebuild and install the port. -- Jerry ??? no joy. I did another full upgrade. first time in many months. then spent a couple hours with portmaster (thank you, Roland:). this as a first upgrade. what I want to do is get as current as possible and then install 7.5. and stay there. another question involves accepting the 3-D windows with whatever options they might present. is there any upgrade utility or flag that will accept and upgrade things without me having to be here? -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How Do I Remove Clang
uname -a FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #2: Fri May 11 20:41:54 PDT 2012 tomdean@P9X79.tddhome:/usr/src/sys/GENERIC amd64 I want to remove clang from my system and stick with gcc. I do not want any code I produce to have a non-GPL license. Do I need to regress to 8.3? Or, will that be back-fit with clang also? Tom Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How Do I Remove Clang
On 29/05/2012 08:27, Thomas D. Dean wrote: uname -a FreeBSD P9X79.tddhome 9.0-STABLE FreeBSD 9.0-STABLE #2: Fri May 11 20:41:54 PDT 2012 tomdean@P9X79.tddhome:/usr/src/sys/GENERIC amd64 Hmmm... normally this sort of question is asked in exactly the opposite sense. I shall trust that it is not asked ironically and answer at face value. I want to remove clang from my system and stick with gcc. Set WITHOUT_CLANG=yes in /etc/src.conf and do a normal buildworld cycle plus 'make delete-old' See src.conf(5) for more details. Or just do nothing: gcc is still the default compiler on 9.0, and you need positive action to tweak /etc/make.conf to enable clang. I do not want any code I produce to have a non-GPL license. That's not actually affected by using clang as your compiler. It's BSD licensed, and doesn't have any viral clauses, so your code can be licensed as you see fit. Similarly the runtime bits of the system are BSD licensed and even though they are linked into any executables you produce, you can release the result under whatever terms you see fit other than not claiming authorship / copyright on material you didn't yourself produce. Do I need to regress to 8.3? Or, will that be back-fit with clang also? No. I think you can update to 9.1 without such concerns as well, but 10.x could well be a different matter. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: How Do I Remove Clang
On 05/29/12 00:49, Matthew Seaman wrote: Set WITHOUT_CLANG=yes in /etc/src.conf and do a normal buildworld cycle plus 'make delete-old' See src.conf(5) for more details. This breaks normal make: cat /etc/src.conf WITHOUT_CLANG=Yes cat Makefile # Makefile for nanoBSD kld driver CC=gcc KMOD=lcd_socket SRCS=lcd_socket.c .include bsd.kmod.mk make /usr/share/mk/bsd.own.mk, line 458: MK_CLANG can't be set by a user. Tom Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How Do I Remove Clang
On 05/29/12 00:27, Thomas D. Dean wrote: Oops, too fast. cat /etc/make.conf PERL_VERSION=5.12.4 MK_CLANG_IS_CC=no Tom Dean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: csup: How do I know I have correct version?
from Matthew Seaman m.sea...@infracaninophile.co.uk: Don't define PORTSSUPFILE in /etc/make.conf if you're using portsnap(1). Apart from anything else, typing 'make update' in /usr/src will attempt to cvsup not just the system sources but as well any of PORTS, DOC where you've defined a ...SUPFILE. In fact, without PORTSUPFILE defined in /etc/make.conf typing 'make update' in /usr/ports will invoke portsnap for you, so long as you obtained the ports tree by 'portsnap fetch extract' originally. Cheers, Matthew Now I know better how 'make update' works, though I looked at that target in /usr/src/Makefile. I find from experience that updating ports by two different means makes a mess or at least doesn't work. In 9.0-BETA1, I tried 'portsnap fetch update' some time after having installed the ports tree from the bsdinstall. That didn't work, and I had to 'portsnap fetch' and 'portsnap extract' as if I had never installed the ports tree from the bsdinstall. I guess then I can install the docs by 'csup /usr/share/examples/doc-supfile' ? That would be simpler and easier than installing misc/freebsd-doc-en from the ports. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: csup: How do I know I have correct version?
From: Damien Fleuriot m...@my.gd: Maybe also I should put this releng9-supfile in a safer place where it won't be deleted by the next installation/upgrade? Indeed you should. From my /etc/make.conf: SUP_UPDATE= yes SUP=/usr/bin/csup SUPFLAGS= -zgL 2 SUPHOST=cvsup1.fr.freebsd.org SUPFILE=/etc/cvsup/stable-supfile PORTSSUPFILE= /etc/cvsup/ports-supfile DOCSUPFILE= /etc/cvsup/doc-supfile Then, you just have to copy the sample supfiles to /etc/cvsup/ Then how do you update the system source, ports tree or doc? Something with 'make'? 'make update' ? For ports, I run portsnap fetch update For system source, I run csup /usr/share/examples/releng9-supfile though I subsequently moved the releng9-supfile to /myconfig . from Matthew Seaman m.sea...@infracaninophile.co.uk: The file you want is /usr/src/sys/conf/newvers.sh This is a script that edits version information into various source code files. The bit you need is near the top of the file -- just following line 33: 33 TYPE=FreeBSD 34 REVISION=9.0 35 BRANCH=RC1 36 if [ X${BRANCH_OVERRIDE} != X ]; then 37 BRANCH=${BRANCH_OVERRIDE} 38 fi 39 RELEASE=${REVISION}-${BRANCH} 40 VERSION=${TYPE} ${RELEASE} 41 SYSDIR=$(dirname $0)/.. Unfortunately the value want is RELEASE, which is assembled from parts, so not trivially grep'able. But you can easily see the REVISION is set to 9.0 and BRANCH is RC1 so the whole things comes to 9.0-RC1. Simple. That's the file I was looking for, I was not familiar with that particular file name. It's easy to find a needle in the haystack when somebody points it out to me! My thanks! Maybe also I should put this releng9-supfile in a safer place where it won't be deleted by the next installation/upgrade? No -- you shouldn't need to worry about that. The name 'releng9-supfile' you chose doesn't match anything produced by the system, so it won't be overwritten. (Not that you shouldn't keep a backup somewhere -- that's only sensible.) Hmmm actually you have highlighted a small omission in the procedures for branching RELENG_9 and RELENG_9_0 -- the cvsup example supfiles /usr/src/share/examples/{stable,standard}-supfile should be updated to match the branch they are installed from. In your case both of those files should use the RELENG_9 tag, but that hasn't been commmitted yet. Cheers Matthew Good point. I had to make the little modification in the stable-supfile to accommodate RELENG_9 . Since my current efforts are directed toward a working FreeBSD 9.0 system, I am not currently doing anything with 10-current. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: csup: How do I know I have correct version?
On 22/10/2011 10:22, Thomas Mueller wrote: From: Damien Fleuriot m...@my.gd: From my /etc/make.conf: SUP_UPDATE= yes SUP=/usr/bin/csup SUPFLAGS= -zgL 2 SUPHOST=cvsup1.fr.freebsd.org SUPFILE=/etc/cvsup/stable-supfile PORTSSUPFILE= /etc/cvsup/ports-supfile DOCSUPFILE= /etc/cvsup/doc-supfile Then, you just have to copy the sample supfiles to /etc/cvsup/ Then how do you update the system source, ports tree or doc? Something with 'make'? 'make update' ? make update is the correct command. For ports, I run portsnap fetch update For system source, I run csup /usr/share/examples/releng9-supfile though I subsequently moved the releng9-supfile to /myconfig . Don't define PORTSSUPFILE in /etc/make.conf if you're using portsnap(1). Apart from anything else, typing 'make update' in /usr/src will attempt to cvsup not just the system sources but as well any of PORTS, DOC where you've defined a ...SUPFILE. In fact, without PORTSUPFILE defined in /etc/make.conf typing 'make update' in /usr/ports will invoke portsnap for you, so long as you obtained the ports tree by 'portsnap fetch extract' originally. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
csup: How do I know I have correct version?
After I run csup /usr/share/examples/releng9-supfile how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1? I can't find any such information explicitly anywhere under /usr/src . This releng9-supfile was made from stable-supfile by changing RELENG_8 to RELENG_9 in the line *default release=cvs tag=RELENG_8 I've been following the emailing lists current, questions and ports, noticed the heads-up that HEAD was going to 10-current. Maybe also I should put this releng9-supfile in a safer place where it won't be deleted by the next installation/upgrade? Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: csup: How do I know I have correct version?
On 10/21/11 11:27 AM, Thomas Mueller wrote: After I run csup /usr/share/examples/releng9-supfile how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1? I can't find any such information explicitly anywhere under /usr/src . This releng9-supfile was made from stable-supfile by changing RELENG_8 to RELENG_9 in the line *default release=cvs tag=RELENG_8 I've been following the emailing lists current, questions and ports, noticed the heads-up that HEAD was going to 10-current. Maybe also I should put this releng9-supfile in a safer place where it won't be deleted by the next installation/upgrade? Indeed you should. From my /etc/make.conf: SUP_UPDATE= yes SUP=/usr/bin/csup SUPFLAGS= -zgL 2 SUPHOST=cvsup1.fr.freebsd.org SUPFILE=/etc/cvsup/stable-supfile PORTSSUPFILE= /etc/cvsup/ports-supfile DOCSUPFILE= /etc/cvsup/doc-supfile Then, you just have to copy the sample supfiles to /etc/cvsup/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: csup: How do I know I have correct version?
On 21/10/2011 10:27, Thomas Mueller wrote: After I run csup /usr/share/examples/releng9-supfile how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1? So long as you're confident that you have actually downloaded the sources from the RELENG_9 branch, then you can be confident that the system version will be one of those -- at the moment, you'll get 9.0-RC1 but over time this will eventually change to 9.0-STABLE. I can't find any such information explicitly anywhere under /usr/src . The file you want is /usr/src/sys/conf/newvers.sh This is a script that edits version information into various source code files. The bit you need is near the top of the file -- just following line 33: 33 TYPE=FreeBSD 34 REVISION=9.0 35 BRANCH=RC1 36 if [ X${BRANCH_OVERRIDE} != X ]; then 37 BRANCH=${BRANCH_OVERRIDE} 38 fi 39 RELEASE=${REVISION}-${BRANCH} 40 VERSION=${TYPE} ${RELEASE} 41 SYSDIR=$(dirname $0)/.. Unfortunately the value want is RELEASE, which is assembled from parts, so not trivially grep'able. But you can easily see the REVISION is set to 9.0 and BRANCH is RC1 so the whole things comes to 9.0-RC1. Simple. This releng9-supfile was made from stable-supfile by changing RELENG_8 to RELENG_9 in the line *default release=cvs tag=RELENG_8 I've been following the emailing lists current, questions and ports, noticed the heads-up that HEAD was going to 10-current. Maybe also I should put this releng9-supfile in a safer place where it won't be deleted by the next installation/upgrade? No -- you shouldn't need to worry about that. The name 'releng9-supfile' you chose doesn't match anything produced by the system, so it won't be overwritten. (Not that you shouldn't keep a backup somewhere -- that's only sensible.) Hmmm actually you have highlighted a small omission in the procedures for branching RELENG_9 and RELENG_9_0 -- the cvsup example supfiles /usr/src/share/examples/{stable,standard}-supfile should be updated to match the branch they are installed from. In your case both of those files should use the RELENG_9 tag, but that hasn't been commmitted yet. Cheers Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Using ports and packages together (or, how do I get mod_php5 ? )
On 20/09/2011 05:33, Jason C. Wells wrote: I noticed only recently that there are now packages on FTP in a folder called packages-8-stable. I am not sure how often these are built. I expect that the entire ports tree is built much like it is during a release, except at some later point in time. I would expect that those ports are all dependency consistent with each other to the maximum extent possible. 'Latest' packages are built for each updated port + OS version + architecture combination whenever resources are available on the build cluster. Typically that implies a delay of a few days or a week or so after the update hits the ports CVS. Yes, if you install the latest pkgs everything should still remain consistent -- but that means you should install all of the available updates: picking and choosing is the route to tears before bedtime[*]. Cheers, Matthew [*] Unless you know exactly what you're doing and understand how all the dependency relationships work. -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Using ports and packages together (or, how do I get mod_php5 ? )
On 09/20/11 01:23, Matthew Seaman wrote: 'Latest' packages are built for each updated port + OS version + architecture combination whenever resources are available on the build cluster. Typically that implies a delay of a few days or a week or so after the update hits the ports CVS. Yes, if you install the latest pkgs everything should still remain consistent -- but that means you should install all of the available updates: picking and choosing is the route to tears before bedtime[*]. For my part, I plan to update all. I have decided over the years that letting the FreeBSD project manage my ports versions for me is the way to happiness. Roll-your-own is a thing of my past. That said, updating onesy-twosy has only caused me a manageable amount of grief. The problem is the timing. It is always before bed, or before my paper is due, and openoffice is griping about something do with java and java is now done differently than it has been... Like I said, updating onesy-twosy can be a serious PITA. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Using ports and packages together (or, how do I get mod_php5 ? )
Hi, I'm running RELENG_8_2 and I've been using packages instead of ports for most things, because they're so much quicker. But certain packages aren't compiled the way I need them to be-- postfix had no TLS or SASL support, for example, so I built it from the port. However, that is beginning to lead to some dependency issues. When attempting to build php5 in order to obtain the apache module (see: http://lists.freebsd.org/pipermail/freebsd-questions/2009-March/195199.html ) Portinstall informs that libtool-2.2.10 (from the release package) is too old, that I need to upgrade to libtool 2.4 (which is available from the port). I'm concerned that, if I have some packages built from ports and some installed from the release, that the system will become unstable if things get too out of sync. Am I incorrect? i.e. should I just go ahead and install libtool 2.4 from the port? I don't see this discussed explicitly in the handbook. Thanks in advance, Brandon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Using ports and packages together (or, how do I get mod_php5 ? )
On Mon, 19 Sep 2011, Brandon Kuczenski wrote: I'm concerned that, if I have some packages built from ports and some installed from the release, that the system will become unstable if things get too out of sync. I'd like to say it doesn't matter, but ... If you are using packages from the time of 8.2 release, you almost certainly will have trouble using the current (not CURRENT) ports tree for 8.2. With a fresh ports tree study UPDATING. There is quite a lot of reading since 8.2 release. Ruby rolled forth and back, perl has rolled forward etc. You may do better upgrading with packages first before recompiling things you need to recompile. In principle there is nothing wrong with having mixed self-compiled ports and packages. THE MAIN PERILS are letting the ports tree get out of sync with itself. This could happen, for example, if you cvsup and it stops (or is stopped) before it is finished (to deal with that example, redo cvsup and be sure it completes before doing anything with ports); or getting the package database snafued which can happen if you or the electric company interrupt the database update process. Am I incorrect? i.e. should I just go ahead and install libtool 2.4 from the port? I don't see this discussed explicitly in the handbook. The handbook should not have much to say about this. Compiling ports yourself or using packages should leave you in exactly the same place (unless of course you make changes when you compile). The system cannot tell where the binary came from. We have the habit of saying port when we compile from the ports tree and package when install a package - but they are really the same thing at a slightly deeper level. Packages ARE ports. /usr/ports/UPDATING is the key document. I don't see any notes since 8.2 release to suggest libtool backward compatibility problems have cropped up since then. Since more things depend on libtool than you can shake a stick at it is likely to a long time for pkgdb to edit the dependencies in the usual way. Investigating -s might help. PS: installing mod_php is an option which I think is called WITH_APACHE. To be absolutely sure it is set, run make config in php5 port. The config will be saved and some port maintenance tools may assume it is right without prompting you. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Using ports and packages together (or, how do I get mod_php5 ? )
On 09/19/11 13:56, Lars Eighner wrote: On Mon, 19 Sep 2011, Brandon Kuczenski wrote: I'm concerned that, if I have some packages built from ports and some installed from the release, that the system will become unstable if things get too out of sync. I noticed only recently that there are now packages on FTP in a folder called packages-8-stable. I am not sure how often these are built. I expect that the entire ports tree is built much like it is during a release, except at some later point in time. I would expect that those ports are all dependency consistent with each other to the maximum extent possible. I also prefer packages to ports, but there are a few updates to ports that I want now (xorg, xfce, rhythmbox), but I really don't want to try 9.0 when it becomes a release. I plan to upgrade my packages to 8-stable from this directory in a couple weeks. Maybe this policy will work for you. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Using ports and packages together (or, how do I get mod_php5 ? )
On 09/19/11 13:56, Lars Eighner wrote: On Mon, 19 Sep 2011, Brandon Kuczenski wrote: I'm concerned that, if I have some packages built from ports and some installed from the release, that the system will become unstable if things get too out of sync. Doh, I just read the handbook. http://www.freebsd.org/doc/handbook/packages-using.html ** If you want to force pkg_add(1) http://www.FreeBSD.org/cgi/man.cgi?query=pkg_addsektion=1 to download FreeBSD 8-STABLE packages, set PACKAGESITE to ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/. Later, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do i find a file in all directories 7 to 9 days old?
guys, how can i use find or whatever to find a file, say 6 levels deep that is = 9 days old? i'm looking fo something i had to jt down [[ASCII]]. can't remembr te file name, nor when i was when i had the idea flash into my mind sigh. thanks, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i find a file in all directories 7 to 9 days old?
how can i use find or whatever to find a file, say 6 levels deep that is = 9 days old? i'm looking fo something i had to jt down [[ASCII]]. can't remembr te file name, nor when i was when i had the idea flash into my mind Try something like: find / -type f -mtime -10d -mindepth 5 -maxdepth 7 See find(1) for variations. b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i find a file in all directories 7 to 9 days old?
On 7/28/11, b. f. bf1...@googlemail.com wrote: how can i use find or whatever to find a file, say 6 levels deep that is = 9 days old? i'm looking fo something i had to jt down [[ASCII]]. can't remembr te file name, nor when i was when i had the idea flash into my mind Try something like: find / -type f -mtime -10d -mindepth 5 -maxdepth 7 See find(1) for variations. Hmm. I'm not sure owing to the difference between the body and the subject of the message, what criteria are really wanted, but for the criteria in the subject you might use something like: find / -type f -mtime -10d -mtime +6d b. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i find a file in all directories 7 to 9 days old?
From owner-freebsd-questi...@freebsd.org Thu Jul 28 02:03:19 2011 Date: Thu, 28 Jul 2011 00:02:41 -0700 From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: how do i find a file in all directories 7 to 9 days old? guys, how can i use find or whatever to find a file, say 6 levels deep that is = 9 days old? i'm looking fo something i had to jt down [[ASCII]]. can't remembr te file name, nor when i was when i had the idea flash into my mind sigh. *SIGH* indeed. Have you ever considered READING* the manpage for the relevant tool _before_ asking the world about the blindingly obvious? RTFM is abaolutely appropriate here. *DO*IT*.see the '-B primary. If the required math is beyond you, there are 1440 minutes in a day, andz. thus, 9 days is 12960 minutes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i find a file in all directories 7 to 9 days old?
On Thu, Jul 28, 2011 at 10:10:43AM -0500, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Thu Jul 28 02:03:19 2011 Date: Thu, 28 Jul 2011 00:02:41 -0700 From: Gary Kline kl...@thought.org To: FreeBSD Mailing List freebsd-questions@freebsd.org Cc: Subject: how do i find a file in all directories 7 to 9 days old? guys, how can i use find or whatever to find a file, say 6 levels deep that is = 9 days old? i'm looking fo something i had to jt down [[ASCII]]. can't remembr te file name, nor when i was when i had the idea flash into my mind sigh. *SIGH* indeed. Have you ever considered READING* the manpage for the relevant tool _before_ asking the world about the blindingly obvious? RTFM is abaolutely appropriate here. Just relax :) He has got 24++ years experience: Of_Interest: With 24++ years of service to the Unix community. and can't work with find @_@ *DO*IT*.see the '-B primary. If the required math is beyond you, there are 1440 minutes in a day, andz. thus, 9 days is 12960 minutes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Christian Barthel Public-Key: http://bc.user-mode.org/bc.asc Mail: b...@user-mode.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
On Fri, 17 Jun 2011 22:31:00 -0700, Gary Kline wrote: right. i booted into single-user and fsck still gave me the NO WRITE response; then i did a # shutdown now to get a # prompt in single-user and got the same NO WRITE. Only it did fix the errors. dunno... strange. This isn't succicient as whem going MUM - SUM the file systems will stay mounted. To be sure, _start_ the system in SUM 8select the proper item from the boot menu, or use boot -s at the loader prompt). In this mode, only / will be mounted ro, all other partitions won't be mounted and can therefore be checked AND modified. Of course, you can also boot the system from a live system CD and issue the fsck commands from there, using the device names instead of the mountpoints. After successfully repairing the partitions, they will be marked clean. At next system startup, there won't be a long fsck run. -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
_ From: Chuck Swiger cswi...@mac.com To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@FreeBSD.ORG Sent: Wed, June 15, 2011 4:04:23 PM Subject: Re: how do i fsck my server? You can set fsck_y_enable=YES in /etc/rc.conf, but it shouldn't be necessary. The system can figure out for itself whether it shutdown cleanly or whether a fsck is necessary. fsck_y_enable=YES doesn't mean do an unconditional fsck, it means do an fsck -y if the preen fails. On Wed, 15 Jun 2011 15:25:33 -0700 (PDT) Bill Tillman btillma...@yahoo.com wrote: The correct reply to this IMHO should have been HELL YES, your server will check for a clean exit on every reboot. It will count to 60 seconds and then if the last shutdown was not clean it will start running fsck all by itself and this will tie up your system's resources for quite a while You can avoid that with gjournal. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
Facts: 8.2-RELEASE man fsck -B ... background fsck is limited to checking for only the most commonly occurring file system abnormalities. Under certain circumstances, some errors can escape background fsck. It is recommended that you perform foreground fsck on your systems periodically and whenever you encounter file-system-related panics. /usr/src/sbin/fsck/ f...@freebsd.org for specialist list discussion 8.2-RELEASE /usr/src/etc/defaults/rc.conf fsck_y_enable=NO ; background_fsck=YES My opinion: Some machines merit addition of /etc/rc.conf fsck_y_enable=YES Machines where data is mastered elsewhere: (some http ftp servers, routers, firewalls, name boot X servers, test boxes, laptops on day trips). Remote servers where a boot time interactive fsck Shall I fix ? , or failure to fix, could hang unreachably. ( If background_fsck=NO, more chance of interactive hang ) Some machines merit addition of /etc/rc.confbackground_fsck=NO For fuller fsck checking, examples: Machines with master copies of data. Laptops traveling for a week, where one can't return early to repair. One would avoid bothfsck_y_enable=YES background_fsck=YES if one has local access to console wants (if necessary) to be able to break out of fsck manually run fsdb. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below, not above; indent with ; Cumulative like a play script. Mail plain text: Not HTML, multipart/alternative, base64, quoted-printable. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do i fsck my server?
can anybody clue me in on why fsck on my server [yes, of course as root] seem to refuse to WRITE? we had a power out locally and i caught my UPS at the last second. i powered off my server to save the battery, etc, and a few minutes ago when i ran # fsck -y /var there were unresolved inconsistancies that fsck was not allowed to resolve. i tried to boot single use but the server (Dell 530) panicked. so finally, after deliberately crashing the box three times, fsck_ufs ran. i was able to ping outside. is there any way of scripting fsck *every* time i reboot this box? i just want to make abs certain that the filesystems are clean. ---didn't fscking used to be easier? tia, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.98a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ethic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
On 6/15/2011 3:50 PM, Gary Kline wrote: is there any way of scripting fsck *every* time i reboot this box? i just want to make abs certain that the filesystems are clean. ---didn't fscking used to be easier? Just override the defaults in /etc/rc.conf fsck_y_enable=YES and if you are paranoid, background_fsck=NO 0(cage)# grep -i fsck /etc/defaults/rc.conf fsck_y_enable=NO # Set to YES to do fsck -y if the initial preen fails. fsck_y_flags= # Additional flags for fsck -y background_fsck=YES # Attempt to run fsck in the background where possible. background_fsck_delay=60 # Time to wait (seconds) before starting the fsck. 0(cage)# ---Mike -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
On Jun 15, 2011, at 12:50 PM, Gary Kline wrote: can anybody clue me in on why fsck on my server [yes, of course as root] seem to refuse to WRITE? Bad sectors on the hard drive are a somewhat common cause of this. we had a power out locally and i caught my UPS at the last second. i powered off my server to save the battery, etc, and a few minutes ago when i ran # fsck -y /var there were unresolved inconsistancies that fsck was not allowed to resolve. Was /var mounted already? You shouldn't be running fsck on a live filesystem; boot single user or from a FreeBSD CD, and run fsck that way. i tried to boot single use but the server (Dell 530) panicked. so finally, after deliberately crashing the box three times, fsck_ufs ran. i was able to ping outside. is there any way of scripting fsck *every* time i reboot this box? i just want to make abs certain that the filesystems are clean. ---didn't fscking used to be easier? You can set fsck_y_enable=YES in /etc/rc.conf, but it shouldn't be necessary. The system can figure out for itself whether it shutdown cleanly or whether a fsck is necessary. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i fsck my server?
From: Chuck Swiger cswi...@mac.com To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@FreeBSD.ORG Sent: Wed, June 15, 2011 4:04:23 PM Subject: Re: how do i fsck my server? On Jun 15, 2011, at 12:50 PM, Gary Kline wrote: can anybody clue me in on why fsck on my server [yes, of course as root] seem to refuse to WRITE? Bad sectors on the hard drive are a somewhat common cause of this. we had a power out locally and i caught my UPS at the last second. i powered off my server to save the battery, etc, and a few minutes ago when i ran # fsck -y /var there were unresolved inconsistancies that fsck was not allowed to resolve. Was /var mounted already? You shouldn't be running fsck on a live filesystem; boot single user or from a FreeBSD CD, and run fsck that way. i tried to boot single use but the server (Dell 530) panicked. so finally, after deliberately crashing the box three times, fsck_ufs ran. i was able to ping outside. is there any way of scripting fsck *every* time i reboot this box? i just want to make abs certain that the filesystems are clean. ---didn't fscking used to be easier? You can set fsck_y_enable=YES in /etc/rc.conf, but it shouldn't be necessary. The system can figure out for itself whether it shutdown cleanly or whether a fsck is necessary. Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I hate to be a pain here but this answer completely misses something very important about a reboot after a crash with FreeBSD. The system can figure out for itself whether it shutdown cleanly or whether fsck is necessary. With no disrespect meant, this is like telling someone that in case of a fire it's not a good idea to use the elevators. The correct reply to this IMHO should have been HELL YES, your server will check for a clean exit on every reboot. It will count to 60 seconds and then if the last shutdown was not clean it will start running fsck all by itself and this will tie up your system's resources for quite a while depending on the size of your hard drive(s). And this time can be quite lengthy. I have two 750 GB hard drives in my server and it crashed a couple of times in the recent past. It made running almost anything on it slow as can be while the fsck process run automatically cleaned up the mess. And it takes the better part of an hour for this process to complete. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Jails: How do i limit what ifconfig shows?
Use ugidfw to limit/deny access to ifconfig - man ugidfw Cheers, On 04/23/11 08:21, xor wrote: Hullo First off, thanks for a lovely operating system 3 I decided to go for FreeBSD perhaps 3 days ago. Before, ive been an Debian/OpenBSD guy, and ive only used my obsd box for redundant firewalls and networking. Ive not been running any services off the boxen. The reason I decided to go for FreeBSD is because of the Jails. Ive looked around a bit, but I can not find anything about how to limit what interfaces that ifconfig shows. I would like it to hide pretty much everything so that _no_ information about the host systems networking leaks into the jails. I dont want jails to know anything but their IP-numbers and which computer to use for DNS lookups, essentially. Is there any good text out there that describes how to do this? Ive searched a bit for it, but Ive been unable to find anything but the basics. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Jails: How do i limit what ifconfig shows?
Hullo First off, thanks for a lovely operating system 3 I decided to go for FreeBSD perhaps 3 days ago. Before, ive been an Debian/OpenBSD guy, and ive only used my obsd box for redundant firewalls and networking. Ive not been running any services off the boxen. The reason I decided to go for FreeBSD is because of the Jails. Ive looked around a bit, but I can not find anything about how to limit what interfaces that ifconfig shows. I would like it to hide pretty much everything so that _no_ information about the host systems networking leaks into the jails. I dont want jails to know anything but their IP-numbers and which computer to use for DNS lookups, essentially. Is there any good text out there that describes how to do this? Ive searched a bit for it, but Ive been unable to find anything but the basics. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Jails: How do i limit what ifconfig shows?
Am 22.04.2011, 22:21 Uhr, schrieb xor xor...@gmail.com: Hullo First off, thanks for a lovely operating system 3 I decided to go for FreeBSD perhaps 3 days ago. Before, ive been an Debian/OpenBSD guy, and ive only used my obsd box for redundant firewalls and networking. Ive not been running any services off the boxen. The reason I decided to go for FreeBSD is because of the Jails. Ive looked around a bit, but I can not find anything about how to limit what interfaces that ifconfig shows. I would like it to hide pretty much everything so that _no_ information about the host systems networking leaks into the jails. I dont want jails to know anything but their IP-numbers and which computer to use for DNS lookups, essentially. Is there any good text out there that describes how to do this? Ive searched a bit for it, but Ive been unable to find anything but the basics. Maybe you can remove the ifconfig binary from the jail. Works for me. Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Jails: How do i limit what ifconfig shows?
But then the root in the jail can just go and compile a new version of ifconfig from the ports collection. (Generally its a flawed idea to just remove the binaries. Someone can just download new ones. And if downloading new binaries is not allowed, they can always just push stdin through b64.. etc etc.) On 22 April 2011 23:00, Michael Ross michael.r...@gmx.net wrote: Am 22.04.2011, 22:21 Uhr, schrieb xor xor...@gmail.com: Hullo First off, thanks for a lovely operating system 3 I decided to go for FreeBSD perhaps 3 days ago. Before, ive been an Debian/OpenBSD guy, and ive only used my obsd box for redundant firewalls and networking. Ive not been running any services off the boxen. The reason I decided to go for FreeBSD is because of the Jails. Ive looked around a bit, but I can not find anything about how to limit what interfaces that ifconfig shows. I would like it to hide pretty much everything so that _no_ information about the host systems networking leaks into the jails. I dont want jails to know anything but their IP-numbers and which computer to use for DNS lookups, essentially. Is there any good text out there that describes how to do this? Ive searched a bit for it, but Ive been unable to find anything but the basics. Maybe you can remove the ifconfig binary from the jail. Works for me. Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Xircom realport in 8.1-RELEASE - how do I determine proper cbb.start_memory ?
It appears that many PCMCIA network cards no longer work in FreeBSD - this is documented here: http://www.freebsd.org/cgi/query-pr.cgi?pr=115623 However there appears to be a workaround, wherein one sets their hw.cbb.start_memory value manually. Suggested values for xircom cards are: sysctl hw.cbb.start_memory=0xf480 sysctl hw.cbb.start_memory=0x3000 However, neither of these values work for me, and I continue to get this kind of error: dc1: No station address in CIS! etc. I am happy to use this workaround, I just wonder how do I determine the proper value for this sysctl ? My xl0 network interface works, and I see that its settings are: port 0xec80-0xecff mem 0xf8fffc00-0xf8fffc7f How do I compute the proper sysctl setting for my xircom realport cards ? (I have two of them to insert simultaneously) Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do I get source off source.forge.com?
Does anybody know how to grab the source files off sourceforge.com? I volunteered years back while busy with many other things and ran out of road. Now I am ready to do some devel on the project. The others are long gone. More offline. This can be made universal; I will need some help with the Java ... to get away from Java. tia, y'all, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.90a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Tue, Aug 31, 2010 at 02:48:28PM +0100, krad wrote: On 30 August 2010 20:02, Chris Rees utis...@gmail.com wrote: On 30 August 2010 18:37, krad kra...@googlemail.com wrote: On 27 August 2010 20:13, Polytropon free...@edvax.de wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) or sudo tar cf - /somepath | ssh x...@y sudo tar xvf - -C somepath I agree with other posts though rsync is the easiest Why sudo with tar? Chris make sure all perms correct and can read all files Just to make =sure= about this: can using tar/gtar as root [or sudo] make sure that all the permissions are correct? It =may= save me keystrokes, :_) gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
Gary Kline kl...@thought.org writes: Just to make =sure= about this: can using tar/gtar as root [or sudo] make sure that all the permissions are correct? It =may= save me keystrokes, :_) Permissions, yes. If you want flags, you'll need the base system tar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 30 August 2010 20:02, Chris Rees utis...@gmail.com wrote: On 30 August 2010 18:37, krad kra...@googlemail.com wrote: On 27 August 2010 20:13, Polytropon free...@edvax.de wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) or sudo tar cf - /somepath | ssh x...@y sudo tar xvf - -C somepath I agree with other posts though rsync is the easiest Why sudo with tar? Chris make sure all perms correct and can read all files ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 27 August 2010 20:13, Polytropon free...@edvax.de wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org or sudo tar cf - /somepath | ssh x...@y sudo tar xvf - -C somepath I agree with other posts though rsync is the easiest ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 27 August 2010 19:15, Gary Kline kl...@thought.org wrote: On Fri, Aug 27, 2010 at 10:54:52AM -0700, Jason wrote: On Fri, Aug 27, 2010 at 10:51:41AM -0700, Gary Kline thus spake: On Fri, Aug 27, 2010 at 10:25:01AM -0700, Jason Helfman wrote: On Fri, 27 Aug 2010 13:19:40 -0400 Glen Barber glen.j.bar...@gmail.com wrote: On 8/27/10 1:07 PM, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, scp u...@foo:\.dotfile .dotfile Regards, Use rsync over ssh. i've already done 98 or so straight scp copies. the thing is how to use rsync over to an empty ethic? [[ empty == there are no \ dot files not .directories] i want EVERYTHING from this desktop, tao, temp on ethic. thanks You can just use rsync in cooperation with find command. I've used it before, but found this as an example with a web search. rsync -avR remote:'`find /home -name *.[ch]`' /tmp/ Just reverse the order. this may be close. use the unix tools and glue them together:-) i have this, cobbled together from a prev script: echo rsync with checksum from directory [${PWD}] to [kl...@ethic:${EPWD}]; rsync --perms --times --update --compress --verbose \ --checksum -e ssh -i /home/kline/.ssh/tao_nopasswd-id \ ${PWD} kl...@ethic:${EPWD}; if [ $? = 0 ] then echo rsync transfer went okay, tao to ethic|mail kl...@thought.org else echo rsync failed to ethic from /home/kline|mail kl...@thought.org fi exit; but this fails .. any clues?? -jgh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org rsync is probably trying to chown files to ownerships it cant. The best way I have found to do this and keep things fairly secure it to run an rsync server on the source machine but bind it to loopback. Then tunnel the the server over ssh when you go into the box. This allows things to run relatively safely as root. eg ssh -R 873:127.0.0.1:873 host sudo rsync -aP --numeric-ids 127.0.0.1::HOME/ /home/ if you just want certain user dirs then add some include and exclude flags eg --include=/home/kline -- include=/home/kline/** --exclude=/home/** ordering is important here. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 30 August 2010 18:37, krad kra...@googlemail.com wrote: On 27 August 2010 20:13, Polytropon free...@edvax.de wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) or sudo tar cf - /somepath | ssh x...@y sudo tar xvf - -C somepath I agree with other posts though rsync is the easiest Why sudo with tar? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sat, 28 Aug 2010 18:05:31 -0700, 'Gary Kline' kl...@thought.org wrote: at least for me, gtar fails to pick up dotfiles. rsynx copies =everything=, and it looks like the test rsync script i posted last night was working all along. it was So fast that i assumed it was bombing entirely. i will 2-ck a few more files before i am sure. a question to the list is how can i copy ALL of /home to my new server? If it is the 1st copy, I'd suggest using dump + restore. This of course will only work if your /home is a separate partition on both systems. Partition size doesn't matter as long as the size of the target partition is at least the size of the used data on the source partition. You basically umount /home and then use # dump -Lauf0 home.dump /dev/ad0s1f to obtain the data; you can also use - instead of the actual file home.dump to pipe the data directly to a transfer via scp. On the target machine, # cd /home # restore -rf /where/is/home.dump You can connect both commands with ssh so you can directly dump + restore from machine A to machine B, given that SSH is possible. It then would be something like this: # dump -0Lauf - /dev/ad0s1f | ssh 10.0.0.10 cd /home cat | restore -rf - In this example, 10.0.0.10 is the IP of the target machine, and you're issuing the command from the source machine, with /home unmounted. Note that dump requires the DEVICE NAME of the device where /home is mounted on, and restore will put everything into the CURRENT DIRECTORY. The source device must NOT be mounted, but the target directory must be mounted and accessible. You CAN, however, leave /home mounted, and dump will create a snapshot that identifies /home as at the starting point in time; changes during backup won't be reflected in the target. It CAN be possible get inconsistencies during creation of the snapshot if there's heavy activity on /home, so it's usually the safe way to umount /home before reading from the device file. This method makes sure you will get ALL files with their exact properties (permissions, flags, dates). See 18.2.1 here: http://www.freebsd.org/doc/en/books/handbook/backup-basics.html For any further synchronisation, I would go with rsync. There is also another interesting tool in ports: It is called cpdup. It can also be used for synchronisation, and it has the interesting feature (can be configured of course) that it won't delete files in the target that have been deleted in source since the last run. In this case, your target data will always grow, and if you acciden- tally deleted something, it will sill be there. and to you, matthew, does --delete rm out of date files or directories? The --delete parameter will have rsync delete files on the target that are NOT part of the source files, but only relative to the subtree you are transfering. E. g. on your target machine you already have src/foo.tex src/bar.tex src/meow.c from last time you synchronized, and you have the files src/foo.tex src/bar.tex as never versions in the source, and you also deleted meow.c here because you don't need it anymore. Now if you rsync the src/ dir to the target machine, --delete will remove meow.c from the target, and rsync will of course update foo.tex and bar.tex. The --delete makes sure that the copy is of 1:1 kind, instead of incremental. what about ?VS, given that i have virtually everything under [CR]VS control? slightly offtopic is that i accidently rm'd a file on tao one morning after a few minutes work. a copy was safely croned to ethic. A good suggestion. I did use cvsup (from ports) in the past for revision control and idiotproof storage for most stuff that I created. It is very helpful, not just for recovering accidentally deleted files, but also for progress check and rewinding changes. It's a great tool for keeping configuration files also. Backing it up gives you a versioned, ordered, one-tree consistent file collection. -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
'Gary == 'Gary Kline' kl...@thought.org writes: 'Gary at least for me, gtar fails to pick up dotfiles. How did you invoke it? There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sun, Aug 29, 2010 at 07:06:33AM -0700, Randal L. Schwartz wrote: 'Gary == 'Gary Kline' kl...@thought.org writes: 'Garyat least for me, gtar fails to pick up dotfiles. How did you invoke it? There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? Sure. my default is the asterisk. ...Anyway, i used matthew's -r for recursion [with rsync] and even tested --delete on some junk ~kline/.4kde/* stuff. then slowly, got rid of more junk [[unused for =years=]] directories and files. pretty soon i'll be ready to save everything from here [tao/present/oldtao] to ethic. then i'll move everything to the newtao. then i'll give away my '03 tower. do unto others... or whatever:) gary PS: thanks for the tip, randal! i may have that somewhere in some obscure ~/.notesfile. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
'Gary == 'Gary Kline' kl...@thought.org writes: There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? 'Gary Sure. my default is the asterisk. Well, there's your problem. Sometimes, you have to actually think about what you're doing. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sun, 29 Aug 2010 12:12:11 -0700, mer...@stonehenge.com (Randal L. Schwartz) wrote: 'Gary == 'Gary Kline' kl...@thought.org writes: There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? 'GarySure. my default is the asterisk. Well, there's your problem. Sometimes, you have to actually think about what you're doing. :) The problem (i. e. a convention) is that .* is not part of *, which includes everything else, even nothing, and the form *.* (that looks like the DOS equivalent of all files) does seem to omit .*; the spaced form * .* would work as it contains * (which does not contain .*) and .* (not in *). :-) -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sun, Aug 29, 2010 at 12:12:11PM -0700, Randal L. Schwartz wrote: 'Gary == 'Gary Kline' kl...@thought.org writes: There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? 'GarySure. my default is the asterisk. Well, there's your problem. Sometimes, you have to actually think about what you're doing. :) LOL! man, when i get into hackery mode--especially playing at being a system admin-- i just go into autopilot. well, live and learn. this stuff has been a good reminder. hope it helps a few others listmembers. (FWIW,I actually did find the dot vs asterisk note in a old howto file. i dont know if i ought to fess up, but i am.) here's another fwiw before i really launch: it pays to do a du from $HOME every few [n] months. i'm finding so much unused crud, e.g. ~/.wine from 2004, that my drive is going to weigh a few pounds less... -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sun, Aug 29, 2010 at 09:34:59PM +0200, Polytropon wrote: On Sun, 29 Aug 2010 12:12:11 -0700, mer...@stonehenge.com (Randal L. Schwartz) wrote: 'Gary == 'Gary Kline' kl...@thought.org writes: There's a big difference between: cd $HOME gtar cfz /tmp/xx.tgz . # should get everything and cd $HOME gtar cfz /tmp/xx.tgz * # will miss all the dotfiles Did you do the latter, by chance? 'Gary Sure. my default is the asterisk. Well, there's your problem. Sometimes, you have to actually think about what you're doing. :) The problem (i. e. a convention) is that .* is not part of *, which includes everything else, even nothing, and the form *.* (that looks like the DOS equivalent of all files) does seem to omit .*; the spaced form * .* would work as it contains * (which does not contain .*) and .* (not in *). :-) ouvh, ouch, ouch!1 running away, pulling out my one remaining hair:) ...and now, no mo' mail until, oh, around 02:15 -g -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Sunday 29 August 2010, Polytropon wrote: The problem (i. e. a convention) is that .* is not part of *, which includes everything else, even nothing, and the form *.* (that looks like the DOS equivalent of all files) does seem to omit .*; the spaced form * .* would work as it contains * (which does not contain .*) and .* (not in *). :-) The problem with using .* as a wildcard for hidden files is that it will include .. which is almost certainly not what you want. For example rm -r .* can be disastrous. A safer wildcard for hidden dotfiles and everything else could be .[^.]* * -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using find to collect a tarball may work. -- Polytropon 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 freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 28 August 2010 08:02, Gary Kline kl...@thought.org wrote: On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using find to collect a tarball may work. How about: $ tar cjf - *dotfile* | ssh machine 'tar xvjf -' Much less fiddly! Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 28/08/2010 08:02:31, 'Gary Kline' wrote: On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using find to collect a tarball may work. I've been reading this thread, and I'm somewhat at a loss as to why you need to rename all of the dotfiles at all, Gary. Dotfiles are just ordinary files, and programs like find(1), scp(1) or tar(1) will handle them just like any other file. The only difference is that shells by default don't include dotfiles in some glob expansions and ls(1) doesn't include them in directory listings. Of course, either of the above can be overridden: 'echo * .*' or 'ls -a' will show all files including dotfiles. The one slightly tricky thing about dealing with dotfiles is the presence of '..' -- the standard link to the directory above the current one. If you accidentally include that in a list of directories to recurse through, then you'll end up affecting a bunch of stuff that maybe you didn't expect. So long as you are aware of the possibility it's pretty easy to avoid this problem. To make a copy of your home directory on tao to a temporary directory on ethic, personally I'd use rsync(1) [in ports as net/rsync]. Then you can just do: % rsync -avx --delete ~/ ethic:/home/kline/ It will default to running over ssh(1), so you need to make sure you can ssh from tao to ethic before you begin. The neat thing is that you run that command repeatedly, and each subsequent time it will copy only what has changed on tao over to ethic. I see someone has given instructions for setting up anonymous rsync -- that's another possibility, but probably a bit OTT for this particular job. Anonymous rsync is probably best thought of as a superior replacement for anonymous FTP. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: how do i scp .dotfiles??
On Sat, Aug 28, 2010 at 11:29:29AM +0100, Matthew Seaman wrote: On 28/08/2010 08:02:31, 'Gary Kline' wrote: On Fri, Aug 27, 2010 at 09:13:06PM +0200, Polytropon wrote: On Fri, 27 Aug 2010 12:21:12 -0500, Gary Gatten ggat...@waddell.com wrote: Rename them, copy, then rename them back? Not good for a whole bunch of files; in this case: tar them together, transfer the archive, untar it; rename afterwards if needed. :-) If i'm going to rename, say, ~/.Plans to ~/Plans and ~/.HowtoI18 to ~/HowtoI18, I may just scp -rp every ~/[.] file. the idea of using find to collect a tarball may work. I've been reading this thread, and I'm somewhat at a loss as to why you need to rename all of the dotfiles at all, Gary. Dotfiles are just ordinary files, and programs like find(1), scp(1) or tar(1) will handle them just like any other file. The only difference is that shells by default don't include dotfiles in some glob expansions and ls(1) doesn't include them in directory listings. Of course, either of the above can be overridden: 'echo * .*' or 'ls -a' will show all files including dotfiles. The one slightly tricky thing about dealing with dotfiles is the presence of '..' -- the standard link to the directory above the current one. If you accidentally include that in a list of directories to recurse through, then you'll end up affecting a bunch of stuff that maybe you didn't expect. So long as you are aware of the possibility it's pretty easy to avoid this problem. To make a copy of your home directory on tao to a temporary directory on ethic, personally I'd use rsync(1) [in ports as net/rsync]. Then you can just do: % rsync -avx --delete ~/ ethic:/home/kline/ It will default to running over ssh(1), so you need to make sure you can ssh from tao to ethic before you begin. The neat thing is that you run that command repeatedly, and each subsequent time it will copy only what has changed on tao over to ethic. I see someone has given instructions for setting up anonymous rsync -- that's another possibility, but probably a bit OTT for this particular job. Anonymous rsync is probably best thought of as a superior replacement for anonymous FTP. Cheers, Matthew at least for me, gtar fails to pick up dotfiles. rsynx copies =everything=, and it looks like the test rsync script i posted last night was working all along. it was So fast that i assumed it was bombing entirely. i will 2-ck a few more files before i am sure. a question to the list is how can i copy ALL of /home to my new server? and to you, matthew, does --delete rm out of date files or directories? what about ?VS, given that i have virtually everything under [CR]VS control? slightly offtopic is that i accidently rm'd a file on tao one morning after a few minutes work. a copy was safely croned to ethic. (yes, i needed mmore coffee, but i was giving thanks to zeus that hours of research and writing were safe!) gary -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how do i scp .dotfiles??
guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On 8/27/10 1:07 PM, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, scp u...@foo:\.dotfile .dotfile Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: how do i scp .dotfiles??
Rename them, copy, then rename them back? -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gary Kline Sent: Friday, August 27, 2010 12:08 PM To: FreeBSD Mailing List Subject: how do i scp .dotfiles?? guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Fri, Aug 27, 2010, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. scp -r to recursively copy directories? That should get everything in each directory. We tend to use rsync for this, making an initial copy to get the majority of the files transferred before making the final cut over, the ``rsync --delete ...'' to bring things up to date before making the final switch. When switching to a new mail server we have done this live with about 10,000 users, but when we did this, we left the Maildir stores empty before the final rsync and didn't use --delete on the Maildir directories. This allowed new mail to be processed as it came in, and the older mail wouldn't conflict as the Maildir message file names should be unique. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax:(206) 232-9186 Skype: jwccsllc (206) 855-5792 Rights is a fictional abstraction. No one has ``Rights'', neither machines nor flesh-and-blood. Persons... have opportunities, not rights, which they use or do not use. -- Lazarus Long ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Fri, 27 Aug 2010 13:19:40 -0400 Glen Barber glen.j.bar...@gmail.com wrote: On 8/27/10 1:07 PM, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, scp u...@foo:\.dotfile .dotfile Regards, Use rsync over ssh. -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Fri, Aug 27, 2010 at 10:29:14AM -0700, Bill Campbell wrote: On Fri, Aug 27, 2010, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. scp -r to recursively copy directories? That should get everything in each directory. We tend to use rsync for this, making an initial copy to get the majority of the files transferred before making the final cut over, the ``rsync --delete ...'' to bring things up to date before making the final switch. When switching to a new mail server we have done this live with about 10,000 users, but when we did this, we left the Maildir stores empty before the final rsync and didn't use --delete on the Maildir directories. This allowed new mail to be processed as it came in, and the older mail wouldn't conflict as the Maildir message file names should be unique. Bill -- So what would the rsync line be starting from ~kline and pointing at ethiv? ethic is my temporary savings machine while i install the newtao, m y new desktop. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how do i scp .dotfiles??
On Fri, Aug 27, 2010 at 10:25:01AM -0700, Jason Helfman wrote: On Fri, 27 Aug 2010 13:19:40 -0400 Glen Barber glen.j.bar...@gmail.com wrote: On 8/27/10 1:07 PM, Gary Kline wrote: guys, this is the start of my master switchover. how to i copy/scp,say, ~/.purpur to home/kline/.purple? along with many hundreds of other dot files? scp doesn't do it. tx, scp u...@foo:\.dotfile .dotfile Regards, Use rsync over ssh. i've already done 98 or so straight scp copies. the thing is how to use rsync over to an empty ethic? [[ empty == there are no \ dot files not .directories] i want EVERYTHING from this desktop, tao, temp on ethic. thanks -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org