Re: ZFS and DMA read error
snip 9 identical messages, based on the uncorrectable LBA error Since it's all throwing errors at the same LBA, I'd run a SMART diagnostics on the drive (i think it's port sysutils/smartmontools) and see if it's showing errors too. Looks like a failing/failed drive and I would recommend replacing it. I doubt (but you can try) spinrite will help you when you get to this point. Thought about that, will do that, after running zfs scrub. Weird thing is that zfs hasn't show any data/checksum errors. Does this mean successive reads were successful? spinrite's website is at grc.com People are REALLY pushing spinrite lately... I did get it though, just to try it. Hope you have backups or redundancy. No fun replacing data. I have both :-). signature.asc Description: OpenPGP digital signature
Re: questions about FreeBSD
On Monday 31 August 2009 17:00:07 Jerry McAllister wrote: Same response. Do your homework. The nature of the OP's questions strongly suggested that we are doing his homework. I'm surprised so many people spoonfed the answers rather than pointing to resources like the handbook, as the first responder did. ___ 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: shell command line argument + parsing function
2009/8/31 Stefan Miklosovic miklosovic.free...@gmail.com: hi, assuming I execute shell script like this $ ./script -c hello world I want to save hello world string to variable COMMENT in shell script. code: #!/bin/sh parse_cmdline() { while [ $# -gt 0 ]; do case $1 in -c) shift COMMENT=$1 ;; esac shift done } parse_cmdline $* echo $COMMENT exit 0 How about getopts builtin, so you can use: ./script -c hello world or ./script -chello world or while getopts c: f; do case $f in c) COMMENT=$OPTARG ;; \?) echo 'usage: $0 [-c string]' exit 1 ;; esac done echo COMMENT: $COMMENT -- Artis Caune Everything should be made as simple as possible, but not simpler. ___ 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: Boot from RAIDZ in 8.0-BETA3?
2009/8/30 Doug Poland d...@polands.org: Shutdown, remove ad0 from the virtual machine, Power on and it see... scrolls off screen error 4 lba 4292979877 error 4 lba 4292979883 error 4 lba 4292979883 error 4 lba 4292979882 ZFS: i/o error - all block copies unavailable Invalid format I had a similar problem on IBM x3650 with 6 sata disks. While testing zfs, I got kmem panic and after reboot same errors appeared. OpenSolaris does not allow to boot from raidz and there can be only one vdev in bootable pool, so I decided to make two pools if I need raidz or multiple vdevs: - one root pool (8G) (mirror disk0 disk1 ... disk5) - one for data and other fs (raidz disk0 disk1 ... disk5) -- Artis Caune Everything should be made as simple as possible, but not simpler. ___ 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: Is ALSA support working in 72?
On Monday 31 August 2009 21:56:50 Yuri wrote: I tried new skype-2.1.0.47 on FreBSD-72. (I have linux-alsa-lib-1.0.10.3_2 installed.) Skype starts but gives the errors below when I try to make a voice call. Previous versions of Skype came in OSS flavor but now it seems to be dropped and it's only available for ALSA. Why would ALSA library fail? - errrors - ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default /usr/ports/distfiles/skype_static-2.1.0.47/skype: relocation error: /usr/ports/distfiles/skype_static-2.1.0.47/skype: symbol snd_device_name_hint, version ALSA_0.9 not defined in file libasound.so.2 with link time reference ALSA has never worked AFAIK. The library is only there for applications that link to it, but don't actually use it. It might be worth a try to install the alsa-plugins-oss RPM and then configure ALSA lib to use the FreeBSD OSS device. ___ 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
itunes on FreeBSD
I use itunes http://www.apple.com/itunes/ extensively on my Windows machines to download music. AFAIK, Apple does not make a version for linux/bsd, although I might be incorrect. I investigated Rhapsody http://www.rhapsody.com/-software; however, there is no generic version of that available for linux/bsd either. Is anyone aware of a similar programs that works on FreeBSD? I am looking for a full featured program that works along the same lines as itunes. -- Jerry ges...@yahoo.com Any fool can criticize, condemn and complain and most fools do. Benjamin Franklin (1706 - 1790) ___ 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: itunes on FreeBSD
On Tue, Sep 1, 2009 at 7:08 AM, Jerryges...@yahoo.com wrote: I use itunes http://www.apple.com/itunes/ extensively on my Windows machines to download music. AFAIK, Apple does not make a version for linux/bsd, although I might be incorrect. I investigated Rhapsody http://www.rhapsody.com/-software; however, there is no generic version of that available for linux/bsd either. Is anyone aware of a similar programs that works on FreeBSD? I am looking for a full featured program that works along the same lines as itunes. I've messed with Amarok and was able to get songs to and from an ipod. I haven't worked with it too much. It's been a while too. So, my advice would be dusty (If I have any). Also, there is gtkpod (I don' t know much about it). -- Jerry ges...@yahoo.com Any fool can criticize, condemn and complain and most fools do. Benjamin Franklin (1706 - 1790) ___ 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
Re: itunes on FreeBSD
On Tue, Sep 1, 2009 at 7:08 AM, Jerryges...@yahoo.com wrote: I use itunes http://www.apple.com/itunes/ extensively on my Windows machines to download music. AFAIK, Apple does not make a version for linux/bsd, although I might be incorrect. I investigated Rhapsody http://www.rhapsody.com/-software; however, there is no generic version of that available for linux/bsd either. Is anyone aware of a similar programs that works on FreeBSD? I am looking for a full featured program that works along the same lines as itunes. -- Jerry ges...@yahoo.com Try looking at these: Rhythmbox (Gnome; ports category: audio) http://projects.gnome.org/rhythmbox/ Banshee (uses mono; ports category: multimedia) http://banshee-project.org/ Amarok (KDE; ports category: audio) http://amarok.kde.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: 32 bit ports on an AMD64 system
First, I hope that you have a good reason for doing this, because it is going to be a PITA, and prone to all sorts of problems. [...] Unfortunately I do. The 32 bit stuff is *would be really nice, but not necessary*, but the ability to use extra memory *and* dynamically load kernel modules is a bit more important to me. If you are just talking about unshadowed ports, you could try adding something like the following to /etc/make.conf: .ifdef(32BIT) PREFIX=/usr/local/32 LOCALBASE=/usr/local/32 LDCONFIG=/sbin/ldconfig -32 CFLAGS+=-m32 .endif and then wrapping your portupgrade, portmaster, or make commands with: env 32BIT=yes [insert rest of command here] If there is shadowing, you have to consider how to manage the environment PATH so that you can actually run the 32-bit binary executables without typing in fully-qualified pathnames every time, and maybe also using LD_RUN_PATH or LD_LIBRARY_PATH so that the right libraries are used --- you can see how problems crop up at every turn? I was thinking of leaving the standard paths alone, and setting up one or more [ba|c|]sh32 alias/scripts which would start up the appropriate shell, with 32-bit directories at the front of the path. I know I'll end up having both 32- and 64-bit of Python on my system (many of the main apps I use require python - but I also want to be able to use py-psyco), as well as a few copies of the various GUI toolkits in 32-bit. Thanks for the info, -Jim Stapleton -Jim Stapleton ___ 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: itunes on FreeBSD
I am working on a GPL audio application called Ogg Frog: http://www.oggfrog.com/free-music-software/ It isn't ready for release yet, but when it is released for sure I will support FreeBSD. I will set up a port for it that hopefully can be included with the official ports. The initial release will be little more than a player, but later releases will support CD ripping, encoding, CD burning and integration with portable players. While Ogg Frog itself will be GPL, the audio core will be MIT licensed and contributed to the ZooLib C++ cross-platform application framework, to eventually become a media framework for ZooLib, which previously hasn't had any media support. Video will come eventually, but not for quite a while. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ 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: 32 bit ports on an AMD64 system
Also note that it is possible to have an i386 port-building jail on an amd64 system. So, make/build/run a normal jail using the 64 bit os world, add -m32 to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and copy it to main (non-jailed) system, and run ldconfig on the library directories? I'd probably also change PREFIX/LOCALBASE to prevent the files from the ports from colling with the base system files when I copy them over. Thanks, -Jim Stapleton ___ 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
ifconfig -alias - removed wrong ip ?
Hello guys, I have a 7.2-stable Freebsd running on a 2.66 Ghz 478 socket mobo with 1 GB DDR1 ram. I added another ip on my rl0 interface, brought it up, everything was fine (until i screwed it up :( ). I wanted then to remove the alias IP but i wrote a wrong command (ifconfig rl0 -alias) and since then I have no access to the box. I then turned to my vmware FreeBSD to reproduce the situation and I was stuned to find out that that command I wrote, removes the normal IP and not the alias one. OK, normaly (I think) i should be able to connect to the alias IP. well, It's not the case 2 things here: 1.) Is it normal for the ifconfig rl0 -alias to remove the normal IP and not the alias one ? (I think that by this syntax it could be right but the parameter -alias is specified and the OS should know to remove the alias IP and not the normal IP) 2) I dnt really understand why am I not able to connect to the second (alias) ip? It seems that somehow it's dependant to the normal one I must say I was not really reading the handbook for the 2nd point here will do it now though PS: box is 3 countryes away from me so manual intervention is out of the question (although I have some sort of online-suport (If my 73 years old grandmother can be called that :)) ) ) ___ 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: questions about FreeBSD
On Tue, Sep 01, 2009 at 08:41:00AM +0200, Jonathan McKeown wrote: On Monday 31 August 2009 17:00:07 Jerry McAllister wrote: Same response. Do your homework. The nature of the OP's questions strongly suggested that we are doing his homework. I'm surprised so many people spoonfed the answers rather than pointing to resources like the handbook, as the first responder did. I and several others did both. Since this list is best when it is friendly, it seemed well to add some encouragement in the form of pointers. Good teachers give both clues as well as piont to sources. jerry ___ 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
Fwd: 32 bit ports on an AMD64 system
So, make/build/run a normal jail using the 64 bit os world, add -m32 to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and copy it to main (non-jailed) system, and run ldconfig on the library directories? I'd probably also change PREFIX/LOCALBASE to prevent the files from the ports from colling with the base system files when I copy them over. Well, this would certainly help with building the ports safely. But I think we -- at least I was -- were thinking that you would actually leave them in the jail, and run them from the jailed environment, so there would be fewer run-time problems, and no work to transfer them over. Remember that you've got to ensure that there is no problem with run-time linking of shared libraries, some of which (in your current scheme) will have both 32-bit and 64-bit versions with the same soname. You can probably work around this problem as well, but it seems easier to leave them in the jail. 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: ifconfig -alias - removed wrong ip ?
On Tue, Sep 1, 2009 at 8:20 AM, claudiu vasadi claudiu.vas...@gmail.comwrote: Hello guys, I have a 7.2-stable Freebsd running on a 2.66 Ghz 478 socket mobo with 1 GB DDR1 ram. I added another ip on my rl0 interface, brought it up, everything was fine (until i screwed it up :( ). I wanted then to remove the alias IP but i wrote a wrong command (ifconfig rl0 -alias) and since then I have no access to the box. I then turned to my vmware FreeBSD to reproduce the situation and I was stuned to find out that that command I wrote, removes the normal IP and not the alias one. OK, normaly (I think) i should be able to connect to the alias IP. well, It's not the case 2 things here: 1.) Is it normal for the ifconfig rl0 -alias to remove the normal IP and not the alias one ? (I think that by this syntax it could be right but the parameter -alias is specified and the OS should know to remove the alias IP and not the normal IP) Yes 2) I dnt really understand why am I not able to connect to the second (alias) ip? It seems that somehow it's dependant to the normal one Yup, you need to re-init networking to regain access. I must say I was not really reading the handbook for the 2nd point here will do it now though PS: box is 3 countryes away from me so manual intervention is out of the question (although I have some sort of online-suport (If my 73 years old grandmother can be called that :)) ) ) probably easiest thing to do is have her reboot. Of course you can also have her type /etc/rc.d/netif restart assuming your /etc/rc.conf is set correctly. ___ 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 -- Adam Vande More ___ 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: 32 bit ports on an AMD64 system
Well, this would certainly help with building the ports safely. But I think we -- at least I was -- were thinking that you would actually leave them in the jail, and run them from the jailed environment, so there would be fewer run-time problems, and no work to transfer them over. Remember that you've got to ensure that there is no problem with run-time linking of shared libraries, some of which (in your current scheme) will have both 32-bit and 64-bit versions with the same soname. You can probably work around this problem as well, but it seems easier to leave them in the jail. With only console stuff, that'd probably be fine, a jail wouldn't be much more tedious than the environment shuffling I'd need to run the 32 bit stuff, however I'll want to do some X11 stuff.. I know you can access X between different users on a machine, but can a jail'ed shell open a window on an X server running from the main machine? I'm not even sure what terms I would use for searching on how to get that working. Thanks, -Jim Stapleton ___ 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: ifconfig -alias - removed wrong ip ?
Adam Vande More wrote: On Tue, Sep 1, 2009 at 8:20 AM, claudiu vasadi claudiu.vas...@gmail.comwrote: 1.) Is it normal for the ifconfig rl0 -alias to remove the normal IP and not the alias one ? (I think that by this syntax it could be right but the parameter -alias is specified and the OS should know to remove the alias IP and not the normal IP) Yes Yes, there is no difference between normal and alias IP. alias is the keyword used by the ifconfig utility to add an other IP address to an interface. All IP addresses bound to an interface are equivalent, I mean there is any hierarchy of importance of the addresses. ifconfig int0 -alias just happens to remove the first IP address. You really should use ifconfig int0 delete 192.168.0.1 2) I dnt really understand why am I not able to connect to the second (alias) ip? It seems that somehow it's dependant to the normal one Yup, you need to re-init networking to regain access. Most probably, you rendered the default gateway unreachable with the removal of the IP. Nikos ___ 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: 32 bit ports on an AMD64 system
On Tue, Sep 01, 2009 at 09:44:10AM -0400, Jim wrote: First, I hope that you have a good reason for doing this, because it is going to be a PITA, and prone to all sorts of problems. [...] Unfortunately I do. The 32 bit stuff is *would be really nice, but not necessary*, but the ability to use extra memory *and* dynamically load kernel modules is a bit more important to me. All FreeBSD supported platforms can dynamically load native kernel modules, so why should that be a factor in choosing between i386 and amd64? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgptfLLWcw7kA.pgp Description: PGP signature
Re: questions about FreeBSD
2009/8/31 James Phillips anti_spam...@yahoo.ca: ... I have some questions about FreeBSD. The questions I had in mind are: Such general questions imply homework assignment. Indeed, I found General features (at least three)? Firewall, GUI, Networking and so on. quite amusing. I am surprised he didn't include the marking scheme for us and his teacher's email address so that we could save him the bother of handing it in. Somebody already replied with a link to the Handbook: It mainly covers installing and configuring FreeBSD. If that were the only response, he probably would have just printed the handbook out and handed it in - given the amount of effort he took to hide the fact that it was a home work question. That said, he *might* actually learn something about FreeBSD, which is probably more than can be said for the rest of his class. ___ 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: Interrupt storm detected on irq10:; throttling interrupt source
I'm having the same issue. It's FreeBSD on a Nokia530 Firewall. The message that keeps repeating over and over is interrupt storm detected on irq12:; throttling interrupt source. Here's the vmstat -i interrupt total rate irq0: clk 31362 98 irq4: sio0 21362 67 irq6: cbb1 dc1 dc2 1 0 irq8: rtc 40020126 irq11: dc4 dc7+1 0 irq12: cbb0 dc528456 89 irq14: ata032073101 Total 153275483 I have no idea what the + means next to IRQ11. I know of a couple of people that have this problem as well. Let me know if you need any other information. Thanks, Kurt Nunke nazir-2 wrote: Hi, I'm getting these on my HP-DL165 AMD Quad Qore interrupt storm detected on irq10:; throttling interrupt source interrupt storm detected on irq10:; throttling interrupt source interrupt storm detected on irq10:; throttling interrupt source interrupt storm detected on irq10:; throttling interrupt source # uname -a FreeBSD intra.umt 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 # sysctl hw.model hw.model: Quad-Core AMD Opteron(tm) Processor 2352 please advise ...TQ ___ 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 -- View this message in context: http://www.nabble.com/Interrupt-storm-detected-on-%22irq10%3A%22--throttling-interrupt-source-tp20005328p25243620.html Sent from the freebsd-questions mailing list archive at Nabble.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: 32 bit ports on an AMD64 system
[...] but the ability to use extra memory *and* dynamically load kernel modules is a bit more important to me. All FreeBSD supported platforms can dynamically load native kernel modules, so why should that be a factor in choosing between i386 and amd64? Roland I didn't specify just loading modules, but extra memory as well (the beyond 4GB addressable space). Using the options in i386 that allow you to access memory beyond 4GB, also eliminates the ability to dynamically load kernel modules. -Jim Stapleton ___ 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: 32 bit ports on an AMD64 system
On Tue, Sep 01, 2009 at 09:49:47AM -0400, Jim wrote: Also note that it is possible to have an i386 port-building jail on an amd64 system. So, make/build/run a normal jail using the 64 bit os world, add -m32 to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and copy it to main (non-jailed) system, and run ldconfig on the library directories? I'd probably also change PREFIX/LOCALBASE to prevent the files from the ports from colling with the base system files when I copy them over. The following post gives some more explanation. Essentially you're doing a cross-build: http://en.jnlin.org/2008/06/07/12/ Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpAAoL3GNFom.pgp Description: PGP signature
Re: 32 bit ports on an AMD64 system
You've given some of your reasons for using amd64 -- but are your reasons for using 32-bit binaries on amd64 strong enough to make all of this worthwhile? Why not just use 64-bit binaries for all but the 32-bit-only ports? Sure, some 32-bit applications will actually run faster (the opposite is also often true) or use fewer resources, but is it worth the hassle? As for your earlier question, I haven't used multiple instances of X myself, either in or out of jails, but I have seen reports of others doing so, so I think it is possible, except perhaps in a few cases where hardware balks because the graphics driver isn't good enough. I guess you'll have to make some experiments. If you don't make provisions for running a 32-bit X, then is there much point to having, for example, 32-bit window managers, windowing toolkits, or GUIs? If you use a different LOCALBASE for 32-bit ports, you are going to have to use 32-bit versions of most trunk and branch ports. I still think a jail is your best bet -- after all, a thin jail, which reuses those portions of your system that don't need to be different inside the jail, is just a more thorough version of what you had hoped to accomplish with your 32-bit shell scripts. If you don't use a jail ... well, I have not tried to install a large number of 32-bit and 64-bit ports in parallel, so I am not sure if the default setup for our loader will make the appropriate distinctions between 32-bit and 64-bit versions of the same libraries depending upon the executables or libraries that need them, but I think that there is a good chance that it will not, and that you will have to do some extra work to make sure that it does. In the case that it does not, your only alternative is to either patch a large number of ports (very time-consuming and error-prone), or to add loader environment variables to your 32-bit shell scripts to make the loader look in the 32-bit library directories first, or to write a custom loader script to only load the appropriate libraries depending upon whether the executable or library that needs them is 32-bit or 64-bit. It would be nice to have this flexibility, but given the current state of the base system and infrastructure, it just seems like more trouble than it is worth. b. On 9/1/09, Jim stapleton...@gmail.com wrote: [...] but the ability to use extra memory *and* dynamically load kernel modules is a bit more important to me. All FreeBSD supported platforms can dynamically load native kernel modules, so why should that be a factor in choosing between i386 and amd64? Roland I didn't specify just loading modules, but extra memory as well (the beyond 4GB addressable space). Using the options in i386 that allow you to access memory beyond 4GB, also eliminates the ability to dynamically load kernel modules. -Jim Stapleton ___ 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: Boot from RAIDZ in 8.0-BETA3?
IMHO, unless you have a NEED to do this with the 8-BETA's I would not attempt. While I had this working in 8.0-BETA1 upon reboot I would loose data from entire mountpoints on the root pool. First it was /usr/ports, not a big deal. Then it was /var/db/pkg.. the system had no idea what was installed and what wasn't. This was a test machine, so no harm, no foul. I would definatley not recommend this AT ALL. Just my 2 cents, YMMV, etc. ___ 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: 32 bit ports on an AMD64 system
On 9/1/09, b. f. bf1...@googlemail.com wrote: . If you don't use a jail ... well, I have not tried to install a large number of 32-bit and 64-bit ports in parallel, so I am not sure if the default setup for our loader will make the appropriate distinctions between 32-bit and 64-bit versions of the same libraries depending upon the executables or libraries that need them, but I think that there is a good chance that it will not, and that you will have to do some extra work to make sure that it does. In the case that it does not, your only alternative is to either patch a large number of ports (very time-consuming and error-prone), or to add loader environment variables to your 32-bit shell scripts to make the loader look in the 32-bit library directories first, or to write a custom loader script to only load the appropriate libraries depending upon whether the executable or library that needs them is 32-bit or 64-bit. It would Ok, so maybe I was a bit too pessimistic here, and the framework that is already in place to handle the 32-bit-only ports will suffice to deal with the case of parallel installs of 32-bit and 64-bit ports libraries as well, provided that ldconfig is invoked with the proper options when registering the libraries, so that the right hints are available, and the ports are built properly. If you are content to use 32-bit binaries on top of a 64-bit base system, try it out on a test case first -- some of the diagnostic environment variables listed in rtld(1) may help, along with ldd(1). It still seems like more trouble than it is worth to me, though. 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
remove newlines from a file
I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson ___ 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: remove newlines from a file
On 2009-09-01 18:03, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? Personally, I'd use: % tr -d '\n' inputfile -- Matthew Anthony Kolybabi (Mak) m...@kolybabi.com () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: remove newlines from a file
Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? paste(1)? 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: remove newlines from a file
On 09/01/2009 03:03 PM, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? A simple solution could be using tr command tr -d '\012' file output_file ___ 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: remove newlines from a file
Hi, Am Dienstag, 01. Sep 2009, 18:03:19 + schrieb Paul Schmehl: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? Probably this: $ echo `cat ip-file` $ ipline=`cat ip-file` $ echo $ipline | wc -l Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ 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
netbooks and sdhci
I recently purchased an Asus Aspire One D250-1151, and am,overall, pleased with it (running 7,2-RELEASE). The alc ethernet is not supported in 7.2 (the ath0 wireless is), and I don't care about the video camera. The '5-in-1' media reader is, unfortunately for me, a USB device. (After some detective work, I determined that it uses a Reaktek RTS5101 or RTS5111). For my purposes (low level SDHC card access), I prefer hardware that is supported by the sdhci/mmc subsystem. So my question is: does anybody know _for sure_ of a hard-disk netbook with a media reader that uses the sdhci interface and is supported by FBSD 7.2 (supported = wireless,X,USB). $USD300 (like the AA1-D250) is the desired price point, but up to about $USD400 is OK (as is FBSD 8.0, if the hardware is right). If you have any pointers, please include the sub-model information, because if it's anything like the Asus, the hardware varies all over the place, and 'Aspire One' means less than 'D250' or 'AO150'. Thank you, David ___ 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: remove newlines from a file
--On Tuesday, September 01, 2009 13:55:37 -0500 Mak Kolybabi m...@kolybabi.com wrote: On 2009-09-01 18:03, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? Personally, I'd use: % tr -d '\n' inputfile Personally, I like your solution. :-) -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson ___ 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
memory usage displsy
Hello, What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? 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: memory usage displsy
In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ 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: memory usage displsy
In the last episode (Sep 01), Bill Moran said: In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that something is using it? -- Dan Nelson dnel...@allantgroup.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: remove newlines from a file
On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? Use tr(1) something like tr -d [\n] inputfile outputfile jerry -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson ___ 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
Re: remove newlines from a file
On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. You're probably thinking of Useful One-Line Scripts for Sed: http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? A sed solution would be sed -e :a -e '$!N; s/\n/ /; ta' my_file Other (easier to remember) solutions could include: tr -d '\n' my_file tr '\n' ' ' my_file echo $(cat my_file) # not so useless use of cat! paste -s my_file while read line; do joined=$joined $(echo $line) done my_file echo $joined Lots of options, of course. Even more with Perl. -- George ___ 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: memory usage displsy
Per olof Ljungmark wrote: Well, my problem is that if I add up all I *can* see in top or ps it never gets near the by now 3G plus memory shown as Active. Maybe one gig is accounted for, I'm not that familiar with FreeBSD yet, but the kernel uses memory which might not be charged against any process. For example, to map some virtual memory requires memory to store the mappings in. Open files have kernel structures, as do filesystems. If top or ps were only to show userspace memory allocations, then you're right, a lot of memory would be unaccounted for. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ 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: memory usage displsy
Bill Moran wrote: In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. Well, my problem is that if I add up all I *can* see in top or ps it never gets near the by now 3G plus memory shown as Active. Maybe one gig is accounted for, ___ 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 want install qutim
HI! My name is Alex I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer=4.5.2. I tried install Qt 4.5.2 and recive errror installation Qt 4.5.2 on FreeBSD uname -a: 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 r...@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 archive name for installation: qt-x11-opensource-src-4.5.2.tar.gz my action : tar -xvf qt-x11-opensource-src-4.5.2 cd qt-x11-opensource-src-4.5.2 ./configure ./configure Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o This is the Qt/X11 Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL) versions 3. You are also licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? yes ... ... Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Trolltech/Qt-4.5.2 To reconfigure, run 'gmake confclean' and 'configure'. I type # gmake In file included from ../../include/QtGui/private/qfont_p.h:1, from ../../include/QtGui/private/../../../src/gui/text/qfontengineglyphcache_p.h:60, from ../../include/QtGui/private/qfontengineglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qtextureglyphcache_p.h:61, from ../../include/QtGui/private/qtextureglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qpaintengine_raster_p.h:64, from ../../include/QtGui/private/qpaintengine_raster_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_mmx_p.h:58, from ../../include/QtGui/private/qdrawhelper_mmx_p.h:1, from painting/qdrawhelper_mmx.cpp:46: ../../include/QtGui/private/../../../src/gui/text/qfont_p.h:149: error: `ScriptCount' is not a member of `QUnicodeTables' I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer=4.5.2. Help me please! ___ 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
webserver and natd
Hello, i have a webserver useing freebsd 7.2 and i user the same server to route internet to a local network. the internet on the local network is working fine but the sites from the webserver are loading verry slow. i fave this configuration in rc.conf: firewall_enable=YES firewall_type=open firewall_logging=YES gateway_enable=YES natd_enable=YES natd_interface=bce0 Can you please help me? Cu prietenie, Razvan Cristea = http://www.adventube.ro = ___ 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: remove newlines from a file
George Davidovich wrote: On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. You're probably thinking of Useful One-Line Scripts for Sed: http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? A sed solution would be sed -e :a -e '$!N; s/\n/ /; ta' my_file Other (easier to remember) solutions could include: tr -d '\n' my_file tr '\n' ' ' my_file echo $(cat my_file) # not so useless use of cat! paste -s my_file while read line; do joined=$joined $(echo $line) done my_file echo $joined Lots of options, of course. Even more with Perl. Yeah, how 'bout Perl: % perl -ne 's/\n/ /g; print;' tests/ips.txt :) Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: webserver and natd
Razvan Cristea wrote: Hello, i have a webserver useing freebsd 7.2 and i user the same server to route internet to a local network. the internet on the local network is working fine but the sites from the webserver are loading verry slow. i fave this configuration in rc.conf: firewall_enable=YES firewall_type=open firewall_logging=YES gateway_enable=YES natd_enable=YES natd_interface=bce0 Can you please help me? Do you have a proper DNS name set up for the IP that the web server is running on? How are you accessing the web server... by name or IP? I'll assume that you are using Apache. What does the ServerName directive say? Steve smime.p7s Description: S/MIME Cryptographic Signature
Mounting an NFS volume served by Mac OS X
I'm wondering if anyone has had any success in mounting an NFS export from a Mac OS X machine on FreeBSD 7.2? When I try, I get: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak The man page for exports on Mac OS X has: -sec=mechanism1:mechanism2... This option specifies one or more security mechanisms required for access to the exported directory. The security mechanisms currently supported are krb5p, krb5i, krb5, and sys. Multiple security mechanisms can be spec- ified as a colon separated list, and should be in the order of most preferred to least preferred. In the absence of this option, the security mechanism defaults to sys. My export does not specify this, so sys is what is being used. Not exactly sure what that means... I don't see any options in mount_nfs(8) on the FreeBSD side that has anything to do with authentication or security mechanisms... Any suggestions would be greatly appreciated! Thanks, Patrick ___ 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
Daily security report oddity...
I got a daily security run email from one of my machines on Monday morning, with the following entry: zmx1.zetron.com login failures: Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2 Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0 What's puzzling is that this account has been completely inactive for well over a year - this fellow is long gone, and I simply didn't clean it up - that's my bad, but that's not the puzzling part. I traced it down, and found out that he had not logged in on Sunday. The auth.log is, as you can see from the listing below, quite old. The entries referenced above are from two years ago. zmx1# ll /var/log/a* -rw--- 1 root wheel 71845 Sep 1 15:42 /var/log/auth.log -rw--- 1 root wheel 6087 Aug 29 2007 /var/log/auth.log.0.bz2 -rw--- 1 root wheel 5774 Aug 12 2007 /var/log/auth.log.1.bz2 -rw--- 1 root wheel 5795 Jul 24 2007 /var/log/auth.log.2.bz2 -rw--- 1 root wheel 6813 Jul 6 2007 /var/log/auth.log.3.bz2 So, a couple of questions: Why would the daily security run pick up something from *two years ago* and only report it again today? The machine hasn't been rebooted in a very long time, if that makes a difference. Is there any way to prevent something like this happening again - or perhaps can I force the entry of the year into the date field for the auth.log entries? Kurt ___ 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: I want install qutim
On Wednesday 02 September 2009 06:57:48 ��� �� wrote: HI! My name is Alex I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer=4.5.2. I tried install Qt 4.5.2 and recive errror installation Qt 4.5.2 on FreeBSD uname -a: 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 r...@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 archive name for installation: qt-x11-opensource-src-4.5.2.tar.gz my action : tar -xvf qt-x11-opensource-src-4.5.2 cd qt-x11-opensource-src-4.5.2 ./configure ./configure Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o This is the Qt/X11 Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL) versions 3. You are also licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? yes ... ... Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Trolltech/Qt-4.5.2 To reconfigure, run 'gmake confclean' and 'configure'. I type # gmake In file included from ../../include/QtGui/private/qfont_p.h:1, from ../../include/QtGui/private/../../../src/gui/text/qfontengineglyphcache_p. h:60, from ../../include/QtGui/private/qfontengineglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qtextureglyphcache_p .h:61, from ../../include/QtGui/private/qtextureglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qpaintengine_raster_ p.h:64, from ../../include/QtGui/private/qpaintengine_raster_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_mmx_p.h: 58, from ../../include/QtGui/private/qdrawhelper_mmx_p.h:1, from painting/qdrawhelper_mmx.cpp:46: ../../include/QtGui/private/../../../src/gui/text/qfont_p.h:149: error: `ScriptCount' is not a member of `QUnicodeTables' I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer=4.5.2. Help me please! Please read about ports/packages upgrading first: http://www.freebsd.org/doc/ru/books/handbook/ports.html -- Dima Red Fox Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018 Khabarovsk, Russia | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29 k...@freebsd Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995 Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024 ___ 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
Upgrading packages
Greetings, Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments There's no place like 127.0.0.1 ___ 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: Mounting an NFS volume served by Mac OS X
On Tue, Sep 1, 2009 at 3:20 PM, patrickgibblert...@gmail.com wrote: I'm wondering if anyone has had any success in mounting an NFS export from a Mac OS X machine on FreeBSD 7.2? When I try, I get: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak The man page for exports on Mac OS X has: -sec=mechanism1:mechanism2... This option specifies one or more security mechanisms required for access to the exported directory. The security mechanisms currently supported are krb5p, krb5i, krb5, and sys. Multiple security mechanisms can be spec- ified as a colon separated list, and should be in the order of most preferred to least preferred. In the absence of this option, the security mechanism defaults to sys. My export does not specify this, so sys is what is being used. Not exactly sure what that means... I don't see any options in mount_nfs(8) on the FreeBSD side that has anything to do with authentication or security mechanisms... Any suggestions would be greatly appreciated! which version of NFS are you using on the server side, which version are you attempting to use on the client side. also, it may be helpful if you post your /etc/exports file from your server (or what ever configuration you are using on the OSX server) and your mount command that is failing. -pete -- pete wright www.nycbug.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: netbooks and sdhci
Message: 26 Date: Tue, 01 Sep 2009 12:17:10 -0700 From: David Horwitt dbo...@aogsquid.ucsd.edu Subject: netbooks and sdhci To: freebsd-questions@freebsd.org, freebsd-mob...@freebsd.org Message-ID: 4a9d7336.3050...@aogsquid.ucsd.edu Content-Type: text/plain; charset=ISO-8859-1; format=flowed I recently purchased an Asus Aspire One D250-1151, and am,overall, pleased with it (running 7,2-RELEASE). The alc ethernet is not supported in 7.2 (the ath0 wireless is), and I don't care about the video camera. The '5-in-1' media reader is, unfortunately for me, a USB device. (After some detective work, I determined that it uses a Reaktek RTS5101 or RTS5111). For my purposes (low level SDHC card access), I prefer hardware that is supported by the sdhci/mmc subsystem. My initial assumption was that you are familiar with the specific type of device you are asking about. Then, I remembered I was tempted by the SD form-factor as well. I think you are asking for trouble because SD cards support Content Protection for Recordable Media (CPRM). One of the features is 'key revocation' technology built into each card. http://www.sdcard.org/developers/tech/ I also read that speed is hampered by the interface design because they wanted something they could patent, rather than just re-implementing SPI (Serial Peripheral Interface). The SD card Association has a what would have been a promising floppy replacement without those two deliberate design flaws. If you are aware of that and sill want a SDHC reader, I don't have any reason to stop you :) Regards, James Phillips So my question is: does anybody know _for sure_ of a hard-disk netbook with a media reader that uses the sdhci interface and is supported by FBSD 7.2 (supported = wireless,X,USB). SNIP! __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.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: webserver and natd
Razvan Cristea wrote: Razvan Cristea wrote: Hello, i have a webserver useing freebsd 7.2 and i user the same server to route internet to a local network. the internet on the local network is working fine but the sites from the webserver are loading verry slow. i fave this configuration in rc.conf: firewall_enable=YES firewall_type=open firewall_logging=YES gateway_enable=YES natd_enable=YES natd_interface=bce0 Can you please help me? Do you have a proper DNS name set up for the IP that the web server is running on? How are you accessing the web server... by name or IP? I'll assume that you are using Apache. What does the ServerName directive say? The webserver works just fine when the firewall is not enabeled. But when i enabele any firewall the webserver seems to be overloaded or something and loads the pages verry slow. The problem is that natd is not working without firewall activated. i have apache (directadmin cpanel) It's been years since I've needed to use NAT, so unfortunately, I can't help here. I'm sure someone else will speak up. If nothing comes up in the next while, perhaps asking on -ipfw will help (but do not cross-post). Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: Upgrading packages
On Tue, 1 Sep 2009 17:15:53 -0500, Chris rac...@makeworld.com wrote: Greetings, Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? There's at least portupgrade with the -P option that forces the use of packages. You can as well use pkg_add to perform an upgrade-like action, but you'll have to take care for more things manually. -- 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: I want install qutim
On Tue, 01 Sep 2009 23:57:48 +0400, Алексей Михайлович merfi...@bk.ru wrote: I want install qutim As it seems to me, qutIM isn't ported to FreeBSD yet. I tried install Qt 4.5.2 and recive errror installation Qt 4.5.2 on FreeBSD [...] my action : tar -xvf qt-x11-opensource-src-4.5.2 cd qt-x11-opensource-src-4.5.2 ./configure You don't need to do this on FreeBSD. Applications and libraries that are ported to FreeBSD are available via the Ports Collection: http://www.freebsd.org/doc/ru/books/handbook/ports.html So you first install Qt from ports or packages, then try do get the source of qutIM working. This would work like this: 1. Download the qutIM sources. 2. Extract them. 3. Run % ./configure (e. g. with needed parameters) % make % sudo make install But keep in mind that it's possible that the configure script doesn't honor the FreeBSD platform, so you won't be able to compile and install it. I type # gmake FreeBSD uses a different make program. As it seems, you try to compile a Linux program on FreeBSD...? I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer=4.5.2. It's a dependency, as well as the Qt library, that you have to install prior to any compile attempt. A command like # pkg_add -r qt4-designer should do this, and even install all other needed dependencies, such as Qt itself. Help me please! Check out FreeBSD's precompiled packages and the ports collection. Make sure the qutIM sources are compatible with FreeBSD's building tools. Finally, ask the developers of qutIM for a FreeBSD version. -- 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: memory usage displsy
Dan Nelson wrote: In the last episode (Sep 01), Bill Moran said: In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that something is using it? What I see is a slapd process using about 150M, then around a hundred imap processes 5-10M each. If the server is restarted, 70-80% will be free, now, after three months we're at 11% free loosing about 20% per month. The exact sum VSZ right now as shown by ps is 1073632k but top says Mem: 3111M Active, 311M Inact, 230M Wired, 144M Cache, 112M Buf, 27M Free Clearly something is grabbing memory and not releasing it. Stopping and starting various programs makes very little difference. No SYSV mem at all. 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: memory usage displsy
Dan Nelson wrote: In the last episode (Sep 01), Bill Moran said: In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that something is using it? ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. Still over 3G Active. last pid: 10278; load averages: 0.03, 0.02, 0.00 up 93+02:50:16 01:57:35 45 processes: 1 running, 44 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 3057M Active, 312M Inact, 228M Wired, 144M Cache, 112M Buf, 81M Free Swap: 4096M Total, 80K Used, 4096M Free PID USERNAME THR PRI NICE SIZERES STATETIME WCPU COMMAND 647 root4 200 3372K 1508K kserel 110:35 0.00% apcupsd 831 root3 200 5008K 1920K kserel 58:48 0.00% bacula-fd 480 root1 960 1416K 932K select 25:23 0.00% syslogd 596 bind1 40 6400K 5160K kqread 23:05 0.00% named 709 root1 960 2780K 1484K select 4:26 0.00% ntpd 661 root1 40 3372K 1972K accept 0:53 0.00% saslauthd 660 root1 200 3372K 1972K lockf0:53 0.00% saslauthd 662 root1 200 3372K 1972K lockf0:53 0.00% saslauthd 659 root1 200 3372K 1972K lockf0:53 0.00% saslauthd 657 root1 200 3372K 1972K lockf0:52 0.00% saslauthd 913 root1 80 1412K 900K nanslp 0:22 0.00% cron 91648 peo 1 960 11372K 7572K select 0:04 0.00% sshd 3419 nagios 1 960 1380K 960K select 0:01 0.00% nrpe2 91656 root1 200 3880K 1952K pause0:00 0.00% csh 10243 root1 960 2516K 1604K RUN 0:00 0.00% top 95511 root1 50 4120K 2156K ttyin0:00 0.00% csh 95504 peo 1 960 6296K 2544K select 0:00 0.00% sshd 95502 root1 40 6300K 2540K sbwait 0:00 0.00% sshd 91646 root1 40 6300K 2476K sbwait 0:00 0.00% sshd 10223 root1 40 6300K 2660K sbwait 0:00 0.00% sshd 10232 root1 50 3880K 2044K ttyin0:00 0.00% csh 91650 peo 1 200 3836K 1848K pause0:00 0.00% csh 95506 peo 1 200 3940K 1916K pause0:00 0.00% csh 10227 peo 1 200 3836K 1976K pause0:00 0.00% csh 906 root1 960 3552K 2016K select 0:00 0.00% sshd 10225 peo 1 960 6296K 2664K select 0:00 0.00% sshd 429 root1 960 528K 284K select 0:00 0.00% devd 91654 peo 1 80 1804K 1112K wait 0:00 0.00% su 95510 peo 1 80 1804K 1168K wait 0:00 0.00% su 10231 peo 1 80 1804K 1244K wait 0:00 0.00% su 961 root1 50 1352K 784K ttyin0:00 0.00% getty 962 root1 50 1352K 784K ttyin0:00 0.00% getty 968 root1 50 1352K 784K ttyin0:00 0.00% getty 964 root1 50 1352K 784K ttyin0:00 0.00% getty 966 root1 50 1352K 784K ttyin0:00 0.00% getty 963 root1 50 1352K 784K ttyin0:00 0.00% getty 965 root1 50 1352K 784K ttyin0:00 0.00% getty 967 root1 50 1352K 784K ttyin0:00 0.00% getty 943 root1 1110 1444K 840K select 0:00 0.00% inetd 138 root1 200 1260K 636K pause0:00 0.00% adjkerntz ___ 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: remove newlines from a file
On Tue, 1 Sep 2009, Steve Bertrand wrote: George Davidovich wrote: On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. You're probably thinking of Useful One-Line Scripts for Sed: http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? A sed solution would be sed -e :a -e '$!N; s/\n/ /; ta' my_file Other (easier to remember) solutions could include: tr -d '\n' my_file tr '\n' ' ' my_file echo $(cat my_file) # not so useless use of cat! paste -s my_file while read line; do joined=$joined $(echo $line) done my_file echo $joined Lots of options, of course. Even more with Perl. Yeah, how 'bout Perl: % perl -ne 's/\n/ /g; print;' tests/ips.txt perl -pe 'chomp' myfile is somewhat easier. Works with Ruby, too. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
devel/pear port build failure
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am having trouble building the devel/pear port. I have tried the following, rebuild all dependant ports (all of php etc.) - Extracted new ports tree, used portmaster, always returns the same error: [got][/usr/ports/devel/pear]# make install clean === Installing for pear-1.8.1 === pear-1.8.1 depends on file: /usr/local/include/php/main/php.h - found === pear-1.8.1 depends on file: /usr/local/lib/php/20060613/pcre.so - - found === pear-1.8.1 depends on file: /usr/local/lib/php/20060613/xml.so - - found === Generating temporary packing list === Checking if devel/pear already installed Bootstrapping Installer... Using previously install ... ok Extracting installer.. Using previously installed installer ... ok Preparing installer.. Updating channel doc.php.net Channel doc.php.net is up to date Updating channel pear.php.net Channel pear.php.net is up to date Updating channel pecl.php.net Channel pecl.php.net is up to date Installing selected packages.. Package: PEAR-stable.. already installed ... ok Package: Structures_Graph-stable.. already installed ... ok Package: Archive_Tar-stable... already installed ... ok Package: Console_Getopt-stable already installed ... ok *** Signal 11 Stop in /usr/ports/devel/pear. Anyone have this issue? Please reply to me directly as I am currently not on the list. Regards, Terry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqdtpwACgkQggJ6ImaGmQrs7ACfQt5A//Q7W1gom3jgmYzld4zP EZAAnj09mx+ybwM+Hhz5h7/0/Vo4Z95w =UO8G -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: remove newlines from a file
Warren Block wrote: On Tue, 1 Sep 2009, Steve Bertrand wrote: George Davidovich wrote: On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. You're probably thinking of Useful One-Line Scripts for Sed: http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? A sed solution would be sed -e :a -e '$!N; s/\n/ /; ta' my_file Other (easier to remember) solutions could include: tr -d '\n' my_file tr '\n' ' ' my_file echo $(cat my_file) # not so useless use of cat! paste -s my_file while read line; do joined=$joined $(echo $line) done my_file echo $joined Lots of options, of course. Even more with Perl. Yeah, how 'bout Perl: % perl -ne 's/\n/ /g; print;' tests/ips.txt perl -pe 'chomp' myfile is somewhat easier. Nce golf... Works with Ruby, too. Is Ruby Perl? ;) Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: memory usage displsy
In the last episode (Sep 02), Per olof Ljungmark said: Dan Nelson wrote: In the last episode (Sep 01), Bill Moran said: In response to Per olof Ljungmark p...@intersonic.se: What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage live, this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that something is using it? What I see is a slapd process using about 150M, then around a hundred imap processes 5-10M each. If the server is restarted, 70-80% will be free, now, after three months we're at 11% free loosing about 20% per month. The exact sum VSZ right now as shown by ps is 1073632k but top says Mem: 3111M Active, 311M Inact, 230M Wired, 144M Cache, 112M Buf, 27M Free Clearly something is grabbing memory and not releasing it. Disk cache, most likely. I would expect Free memory as reported by top to drop down to under 100MB a few hours after a system is rebooted. The difference between Active-Inact-Cache-Buf is more an indication of how long ago a particular page has been touched (and how much work it is to map the page back into a processes memory space), and doesn't really say what the block is being used for. If you are not actively swapping, there is no need for panic. Even a couple hundred MB of used swap is fine, as long as you're not constantly having to pull it back into memory. http://www.freebsd.org/doc/en/books/arch-handbook/vm.html has a good rundown of how the VM system works. -- Dan Nelson dnel...@allantgroup.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
having problems copying a dvd
Hi, I'm trying to make a copy of a dvd that I have, video, using a technique that I gleaned from this list nearly two years ago that has always worked but now I'm having problems. (When I say always, please bear in mind that I don't do this every day or even frequently). You'll also see calls to dd. These were attempts at last ditch effort. I usually just use the copy command (got it from a thread entitled, copying a dvd video, from November of 07). If dd will work but I just forgot to get the block size right, what is that supposed to be. So, here's what I'm doing with the results. Any help is greatly appreciated because am at the point of pulling my hair out (which might have actually happened had I not shaved it off). [r...@sniper ~]# cp /dev/acd0 /usr/local/dvds/biggest_loser.iso cp: /dev/acd0: Input/output error [r...@sniper ~]# cp /dev/acd0t01 /usr/local/dvds/biggest_loser.iso cp: /dev/acd0t01: Input/output error [r...@sniper ~]# dd if=/dev/acd0 of=/usr/local/dvds/biggest_loser.iso dd: /dev/acd0: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000115 secs (0 bytes/sec) [r...@sniper ~]# dd if=/dev/acd0t01 of=/usr/local/dvds/biggest_loser.iso dd: /dev/acd0t01: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000111 secs (0 bytes/sec) Andy ___ 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: Upgrading packages
On Wed, 2 Sep 2009 01:32:47 +0200 Polytropon free...@edvax.de wrote: On Tue, 1 Sep 2009 17:15:53 -0500, Chris rac...@makeworld.com wrote: Greetings, Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? There's at least portupgrade with the -P option that forces the use of packages. You can as well use pkg_add to perform an upgrade-like action, but you'll have to take care for more things manually. From sysutils/bsdadminscripts - pkg_upgrade looks like what I am after. From the pkg_upgrade man page... PKG_UPGRADE(1) BSD Reference Manual PKG_UPGRADE(1) NAME pkg_upgrade - upgrade an installed package in-place SYNOPSIS pkg_upgrade [-afqsv] pkgname.cgz DESCRIPTION The pkg_upgrade command is used to upgrade an installed package in-place. If no other version of the package is installed and -a is not given, pkg_upgrade simply calls pkg_add(1). Otherwise, the installed package is deleted and the new version is added, keeping dependencies intact. The following command line options are supported: -a Ignore packages for which no older version is installed (auto). -f Force upgrading the package: Also upgrade if the exact same ver- sion is already installed, useful if you rebuilt a package from source. If a conflicting package other than an older version of the same package is installed, remove it. -q Don't print less important messages (quiet). -s Enable special treatment for shared libraries, see below (shlibs). -v Pass the -v flag to subprocesses for more verbose operation. SHARED LIBRARY SUPPORT pkg_upgrade has a special mode for upgrading shared library packages. Consider the following situation: You have installed a package foo that contains libfoo.so.1.0. Package bar is also installed and contains a binary that depends on this version of libfoo. Now you upgrade the foo package, the new version contains libfoo.so.2.0 instead. The other binary will no longer run. For this reason, systems like Debian split their library packages in two: the library itself and a developer package containing headers and so on. Instead, pkg_upgrade creates a stub package from the installed package. Basically, the installed package is split in two. The old li- braries are kept as a package named stub-pkgname while the rest is delet- ed and replaced by the new version. In the general case, this should work but you may still run into situa- tions where you will need to rebuild dependent packages from source. In any case, you can delete unused stub packages after you have rebuilt dependent packages. SEE ALSO pkg_add(1), pkg_create(1), pkg_delete(1), ports(7) -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments There's no place like 127.0.0.1 ___ 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: Upgrading packages
On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? The port sysutils/bsdadminscripts has a script pkg_upgrade to upgrade packages. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ 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: having problems copying a dvd
On Wed, Sep 02, 2009 at 04:41:24AM +, af300...@gmail.com wrote: Hi, I'm trying to make a copy of a dvd that I have, video, using a technique that I gleaned from this list nearly two years ago that has always worked but now I'm having problems. (When I say always, please bear in mind that I don't do this every day or even frequently). You'll also see calls to dd. These were attempts at last ditch effort. I usually just use the copy command (got it from a thread entitled, copying a dvd video, from November of 07). If dd will work but I just forgot to get the block size right, what is that supposed to be. My preferred technique is to use mplayer: mplayer dvd://1 -dumpstream -dumpfile dvd.mpg Be sure to play the DVD with mplayer to check which track is actually the movie. Usually it is track #1, but not always. After copying the stream, I tend to re-encode it for backup purposes with the H.264 video codec with MP3 sound, which makes it a lot smaller. The first step is to watch the mpeg and see if there are black stripes around the picture: mplayer -vf cropdetect dvd.mpg This will give you a continuous list of crop lines, e.g: [CROP] Crop area: X: 1..719 Y: 74..500 (-vf crop=704:416:10:80).0 Next step is to re-encode the mpeg file in two steps for enhanced quality, including the crop information, if any: mencoder title.mpg -ovc x264 \ -x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1 \ -idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \ mencoder title.mpg -ovc x264 -x264encopts \ subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\ b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \ -idx -oac mp3lame -o title.avi; If you want to include a specific language or subtitle, don't forget to include the correct options for that; see the mplayer manual. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpSKHv0QcZng.pgp Description: PGP signature
Re: Upgrading packages
On Wed, 02 Sep 2009 09:17:12 +0400 Boris Samorodov b...@ipt.ru wrote: On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? The port sysutils/bsdadminscripts has a script pkg_upgrade to upgrade packages. Thanks - although, this seems a moot point if one sticks with RELEASE (until a point release that is I suppose). -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments There's no place like 127.0.0.1 ___ 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: having problems copying a dvd
On Wed, 02 Sep 2009 04:41:24 +, af300...@gmail.com wrote: If dd will work but I just forgot to get the block size right, what is that supposed to be. If you call dd without bs= parameter, the default of 512 is assumed. This may not be correct for video DVDs. You could try bs=1m, but I'm not sure what the correct block size for DVDs is... For copying them, I always felt comfortable with the vobcopy tool (for reading), and growisofs -dvd-compat (for writing). Both tools can be installed via ports or packages. [r...@sniper ~]# cp /dev/acd0 /usr/local/dvds/biggest_loser.iso Just a side note: I don't think /usr/local is a good place to store DVD images. Some path like /usr/home/dvds would be good. The /usr/local subtree is reserved for locally installed applications; see man hier for details. -- 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: Mounting an NFS volume served by Mac OS X
On Tue, Sep 01, 2009 at 03:20:37PM -0700, patrick wrote: I'm wondering if anyone has had any success in mounting an NFS export from a Mac OS X machine on FreeBSD 7.2? amd$ ssh b...@ibook Password: Last login: Tue Sep 1 18:36:19 2009 Welcome to Darwin! ibook:~ book$ uname -a Darwin ibook.catfish.ddns.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc ibook:~ book$ less /private/etc/exports /Users/book -alldirsamd /Volumes-alldirsamd ibook:~ book$ ps ax|grep nfs 198 ?? Ss 0:00.00 nfsiod -n 4 234 ?? Ss 0:00.01 nfsd-master 240 ?? S 0:00.00 nfsd-server [...] 1520 p2 S+ 0:00.01 grep nfs ibook:~ book$ exit logout [...] amd# mount /ibook amd# mount [...] ibook:/Users/book on /ibook (nfs) amd# [...] amd$ ls -l /ibook|less total 448 drwxr-xr-x 3 501 501102 Mar 6 20:11 Anwendungsdaten drwx-- 16 501 501544 Aug 15 23:22 Desktop [...] amd$ Works fine, as far as I experienced. I wrote that /private/etc/exports. It may not be the best way, just mt 2 Cent, Sabine Was glaubst du, was FAQ heißt? Föllig Abstruser Quatsch? (Hauke Heidtmann in dcouln) ___ 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: Upgrading packages
On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote: On Wed, 02 Sep 2009 09:17:12 +0400 Boris Samorodov b...@ipt.ru wrote: On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? The port sysutils/bsdadminscripts has a script pkg_upgrade to upgrade packages. Thanks - although, this seems a moot point if one sticks with RELEASE (until a point release that is I suppose). Packges are build for STABLE as well: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ 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