Re: Can't find the `7.0-RELEASE-p7' distibution
Roy Stuivenberg wrote: Hello, I have FreeBSD 7-RELEASE, and upgraded to point 7. When I try to install packages/ports with sysinstall (FTP) it won't work and give me this message. Warning: Can't find the `7.0-RELEASE-p7' distribution on this FTP server. You may need to visit a different server for the release you are trying to fetch or go to the Options menu and to set the release name to explicitly match what's available on ftp.freebsd.org (or set to any). Would you like to select another FTP server? I have already tried multiple ftp locations, but always get the same result. Search the web for answers, and did not find any. Try setting the release name to exactly '7.0-RELEASE' as described in the error message. There's a package set generated for each OS release, but not one for each different patch level. 7.0-RELEASE packages should be available on all ftp servers at the moment. You can see the list of release names supported via sysinstall at: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ (replace i386 with amd64 if you're on that architecture) Note that this will get you package versions which were current at the time of 7.0-RELEASE, and there have been a good number of updates (including security updates) that have gone in since. Updated packages certainly do exist on the FTP servers but I can't see how to access them from sysinstall. Learning how to use pkg_add(1) (which can reach the parts of ftp.freebsd.org that sysinstall apparently cannot) is probably your best bet. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Perl 5.10?
Bruce Cran wrote: On Thu, 25 Dec 2008 18:47:21 -0700 Tim Judd taj...@gmail.com wrote: Jerry wrote: On Tue, 23 Dec 2008 04:06:46 -0800 (PST) Dr. Jennifer Nussbaum bg271...@yahoo.com wrote: Its now just over a year since Perl 5.10.0 was relased, but its still not in FreeBSD. (/usr/ports/lang only has 5.8). [...] on the contrary, when 5.8 was released, it took a long time to move to that. And when I asked that question on IRC (why 5.10 isn't currently used), it was described to me that the 5.6 to 5.8 move broke everything and caused lots of headache. World and Kernel used to (at least) use perl as a glue to make stuff works. I bet there's at least some 5.8 glue for world or kernel. perl was removed from the base system back in 2002 (http://lists.freebsd.org/pipermail/freebsd-announce/2002-May/000823.html) so there can't be anything in the world or kernel build that depends on it. It's one of the first things installed during an initial ports installation though. It is still true that the change from 5.6 to 5.8 was very disruptive because it broke lots of things in the ports tree. Kris ___ 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: Dell 2850 use 32 or 64 bit?
be used as a webserver, e-mail server. and a db server (both PostgresQL and My SQL Beyond the breaking of the 4 Gig RAM barrier, is there any compelling reason to use a 32 bit i386 or a 64 bit AMD OS? the same as using 32-bit software (not 16-bit) on 32-bit CPU. ___ 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: Perl 5.10?
On Fri, 26 Dec 2008 12:45:12 + Kris Kennaway k...@freebsd.org wrote: [snip] It is still true that the change from 5.6 to 5.8 was very disruptive because it broke lots of things in the ports tree. Is this the official reason that Perl-5.10 has not been released into the ports tree? Are ports being tied to specific versions of Perl? I did some Googling and found that of the users that have installed Perl from source on FBSD, most were not experiencing any major problem. If every time Perl is updated it will require massive changes or whatever to the FBSD ports, then perhaps there is a fundamental flaw in the ports system to start with. Perhaps you could list what the specific problems are so that others might start looking for solutions. This is really the first time that I have become aware of problems between Perl and the ports system. Just my 2ยข. -- Jerry ges...@yahoo.com I poured spot remover on my dog. Now he's gone. Steven Wright signature.asc Description: PGP signature
Re: Perl 5.10?
Jerry ges...@yahoo.com writes: Are ports being tied to specific versions of Perl? I did some Googling and found that of the users that have installed Perl from source on FBSD, most were not experiencing any major problem. If every time Perl is updated it will require massive changes or whatever to the FBSD ports, then perhaps there is a fundamental flaw in the ports system to start with. There is no requirement any port use Perl. Many do. There is no requiremment that any Perl-using port use a particular version. Many - I would guess most - do, at least to the extent of requiring the same major version (e.g. 5.x). There are 63 instances of USE_PERL5 in ports/textproc alone. I'm not a major direct Perl user, but I remember the jumps from 5.0 to 5.6 and from 5.6 to 5.8. Both required the testing of every affected port, and as I remember it problems were discovered in both the ports and in the new Perl itself. Robert Huff ___ 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: Dell 2850 use 32 or 64 bit?
Tim Judd wrote: Tim Kellers wrote: I just bought a Dell 2850 (2 2.8GHZ dual core processors). The server will be used as a webserver, e-mail server. and a db server (both PostgresQL and My SQL Beyond the breaking of the 4 Gig RAM barrier, is there any compelling reason to use a 32 bit i386 or a 64 bit AMD OS? The machine currently has just a gig of RAM but I'm going to add more, soon. The machine runs headless and has no xorg, installed. A pointer to an article that discusses the 32 bit v 64 bit question would be appreciated as well. dell# uname -a FreeBSD dell.smsd.tv 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Dec 25 04:12:57 EST 2008 r...@dell.smsd.tv:/usr/obj/usr/src/sys/DELL i386 TIA Tim Kellers ___ 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 it's more important to know the CPU inside the machine, by model number instead of the model of the outer case. If windows is still on it, run the cpu identification utility from intel, IF it's an intel cpu. The id utility will tell you if it's 64-bit capable. Using Dell's service tag and looking at warranty/original system config might be a good resource too. Good luck. ___ 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 Thanks for the reply. I already know it is 64 bit capable. I 'm interested in finding out if their are measurable performance advantages to running it using 64 v 32 bit FreeBSD. Thanks Tin Kellers ___ 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
Off-topic: Java Reflection/Generics/Collections question
Not realy a FreeBSD-specific question but I was not sure where I could find what I was looking for elseware (Googling did not manage to dig up much info): The problem: I want to set the type of objects some Collection object holds on runtime. In other wors I have an object C with: C extends AbstractCollection, I have the Class object T specifying what type of objects C should hold and I have a method M which takes a CT as an argument. I made a generic version of C (without the type) and now I have to set it so it can only carry objects of type T. Does anyone know how to do this ? Information in programming style: C extends AbstractCollection myCollection; Class itemType; public void myMethod(CitemType myCollectionArgument) How do I convert myCollection from being a C to a CitemType on runtime so I can call myMethod(myCollection) ? I hope the explanation of my problem makes sense and someone can help me. 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: Dell 2850 use 32 or 64 bit?
Tim Kellers wrote: Thanks for the reply. I already know it is 64 bit capable. I 'm interested in finding out if their are measurable performance advantages to running it using 64 v 32 bit FreeBSD. For the type of use of the OP (databases, etc.) i don't know, but for scientific computations we observe a massive performance advantage running in 64 bits mode (by this i mean more than 20%, i have seen some Maple formal computations run 100% faster). The only problem with 64 bits mode is that some ports may have problems, but, as far as i know, these ports are more desktop oriented than server oriented. For a server i don't see a reason to run in 32 bits mode. Contrary to some frequent assertions the increase in size of binaries is extremely limited as can easily be checked. This is very largely compensated by the increase in the number of registers. The possibility of using more than 4 gigs memory is just one advantage of 64 bits mode, and by the way, very few of our machines have more than 4 gigs memory, and they don't lack it at all. -- Michel TALON ___ 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: Perl 5.10?
Jerry wrote: On Fri, 26 Dec 2008 12:45:12 + Kris Kennaway k...@freebsd.org wrote: [snip] It is still true that the change from 5.6 to 5.8 was very disruptive because it broke lots of things in the ports tree. Is this the official reason that Perl-5.10 has not been released into the ports tree? Are ports being tied to specific versions of Perl? I did some Googling and found that of the users that have installed Perl from source on FBSD, most were not experiencing any major problem. If every time Perl is updated it will require massive changes or whatever to the FBSD ports, then perhaps there is a fundamental flaw in the ports system to start with. The issue with 5.8 was that the perl developers made various incompatible changes that broke lots of third party software included in the ports tree, which all had to be fixed. I don't know what the issue is with 5.10. Kris ___ 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: [solved] Re: usb-stick accessible, but doesn't boot
On Wed, 24 Dec 2008 16:53:00 +0100 clemens fischer wrote: On Wed, 24 Dec 2008 15:05:32 +0100 clemens fischer wrote: Hans Petter Selasky: Try the attached patch to sys/kern/vfs_mount.c Thanks for reporting. I have been aware about this issue for some time now, but the patch has not been committed to current yet. I have FreeSBIE reliably up and running with USB2. Can you tell me what to do to the kernel configuration? Maybe I don't have to compile any USB functions into the kernel and can put them into loader.conf? I always get these dependency problems. I think I've found my problem. The kernel configuration really needs the line marked required, which builds support for the USB bus: device usb. Except this line, every usb related item is a nodevice now. The USB2 modules needed are kldload'ed in boot/loader.conf from the USB-stick, and this really works. Hans Petter: although I am not sure if my USB-stick needs it, the kernel was built using your patch. So the least I can say about it: It doesn't hurt, and it might sure help with more restive devices. Hans Petter pointed to me to the _real_ solution of my problem, and I want to set the record straight: The USB2 stack works fine, the patch to vfs_mount.c makes the booting process more robust. The easiest way to make a system booting from USB mass storage is to exclude every usb- related device from the kernel and kldload the needed modules in boot/loader.conf: # /boot/loader.conf usb2_controller_ehci_load=YES usb2_controller_ohci_load=YES usb2_controller_uhci_load=YES usb2_storage_mass_load=YES My problem was a left-over device ucom in the kernel configuration, or actually, since I have include GENERIC at the top, the missing nodevice ucom line. It pulled in dependencies on the old USB stack. -c ___ 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: Dell 2850 use 32 or 64 bit?
server i don't see a reason to run in 32 bits mode. Contrary to some frequent assertions the increase in size of binaries is extremely limited as can easily be checked. This is very largely program code size is a very little part of system memory today. ___ 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: Dell 2850 use 32 or 64 bit?
Michel Talon wrote: Tim Kellers wrote: Thanks for the reply. I already know it is 64 bit capable. I 'm interested in finding out if their are measurable performance advantages to running it using 64 v 32 bit FreeBSD. For the type of use of the OP (databases, etc.) i don't know, but for scientific computations we observe a massive performance advantage running in 64 bits mode (by this i mean more than 20%, i have seen some Maple formal computations run 100% faster). The only problem with 64 bits mode is that some ports may have problems, but, as far as i know, these ports are more desktop oriented than server oriented. For a server i don't see a reason to run in 32 bits mode. Contrary to some frequent assertions the increase in size of binaries is extremely limited as can easily be checked. This is very largely compensated by the increase in the number of registers. The possibility of using more than 4 gigs memory is just one advantage of 64 bits mode, and by the way, very few of our machines have more than 4 gigs memory, and they don't lack it at all. Thanks, that was exactly what I needed to know. There won't be any Desktop apps on this machine and optimal performance is what I am after. Tim ___ 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
3ware array access lock up on 7.1-RC
I am not even sure that it is related to freebsd, but maybe someone could point out the problem. We wanted to upgrade our hosting server from FreeBSD 6.2, 3ware 8506-4LP SATA RAID, raid 5 to FreeBSD 7.1 (RC for now), 9550SXU-4LP, raid 10 We have tested the new installation on ASUS P5K WS motherboard with PCI-X slot while the server kept running. The server has Supermicro X5DPE-G2 (pretty old one, 2004). So, when everything was ready, i just took out the old controller and disks and installed the new controller and the array disks. The system booted up, but when i started very intense file operations the file system just froze. The weird thing is that any open program which does not use filesystem kept running fine. For example, i could type and edit in open ee editor, but copying progress bar in midnight commander just stood still. If i tried to save file or open file or do anything disk related from ee in another console the program froze too, apparently waiting for disk system to reply forever (i tried waiting for 20 minutes). I could even connect to ssh port, but it does not auth because sshd needs to read something from the disk. I put everything back into Asus P5K WS and tested it. Everything worked fine again. Any idea what might going on here? -- Artem ___ 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 issues with the nvidia driver on my box
Hi, For several reasons, one of which was to use the nvidia driver for my board, I switched from amd64 to i386. So, I installed the driver and although things are working I'm getting this on console 0: NVRM: AGP cannot be enabled on this combination of the amd CPU and OS kernel NVRM: kernel upgrade recommended So, when I installed the nvidia driver I said to enable AGP. (Figuring only that this is an AGP board, why not?) My graphical environment works but I'd like to resolve this. Also, I think that some little quirks in my display can be attributed to this, but I'm not sure. Is there some sort of kernel option I must include and build my own kernel? Thanks, Andy ps in case it matters, my board is rather old. I purchased it 4 years ago and as I'm not a gamer, it suffices quite nicely. Here's the driver I had to install for support of this chip: nvidia-driver-96.43.07 NVidia graphics card binary drivers for hardware OpenGL ren ___ 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: Off-topic: Java Reflection/Generics/Collections question
What you try to do is not a valid operation in type-safe language as Java. You can't convert Coll to CollItemType, but you can cast Coll? to CollWhatever. Don't know if this is OK with the problem you're trying to solve Merry Christmas! On Fri, Dec 26, 2008 at 4:20 PM, Frank Staals franksta...@gmx.net wrote: Not realy a FreeBSD-specific question but I was not sure where I could find what I was looking for elseware (Googling did not manage to dig up much info): The problem: I want to set the type of objects some Collection object holds on runtime. In other wors I have an object C with: C extends AbstractCollection, I have the Class object T specifying what type of objects C should hold and I have a method M which takes a CT as an argument. I made a generic version of C (without the type) and now I have to set it so it can only carry objects of type T. Does anyone know how to do this ? Information in programming style: C extends AbstractCollection myCollection; Class itemType; public void myMethod(CitemType myCollectionArgument) How do I convert myCollection from being a C to a CitemType on runtime so I can call myMethod(myCollection) ? I hope the explanation of my problem makes sense and someone can help me. 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 ___ 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
Thanks for solution re: Can't remove directory
Mr. Chuck: I found your post, [1]http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/0 70766.html, re. system immutable flags via Google. Just want to say thanks. :-) Sincerely, Ron W. [2]ron.wingfi...@archaxis.net 501-920-7860 cell (best way) 501-228-4798 home References 1. http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/070766.html 2. mailto:ron.wingfi...@archaxis.net ___ 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: Off-topic: Java Reflection/Generics/Collections question
Vladimir Tsvetkov wrote: What you try to do is not a valid operation in type-safe language as Java. You can't convert Coll to CollItemType, but you can cast Coll? to CollWhatever. Don't know if this is OK with the problem you're trying to solve Merry Christmas! On Fri, Dec 26, 2008 at 4:20 PM, Frank Staals franksta...@gmx.net mailto:franksta...@gmx.net wrote: Not realy a FreeBSD-specific question but I was not sure where I could find what I was looking for elseware (Googling did not manage to dig up much info): The problem: I want to set the type of objects some Collection object holds on runtime. In other wors I have an object C with: C extends AbstractCollection, I have the Class object T specifying what type of objects C should hold and I have a method M which takes a CT as an argument. I made a generic version of C (without the type) and now I have to set it so it can only carry objects of type T. Does anyone know how to do this ? Information in programming style: C extends AbstractCollection myCollection; Class itemType; public void myMethod(CitemType myCollectionArgument) How do I convert myCollection from being a C to a CitemType on runtime so I can call myMethod(myCollection) ? I hope the explanation of my problem makes sense and someone can help me. Regards, -- - Frank ___ 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 mailto:freebsd-questions-unsubscr...@freebsd.org Whell just after I posted my mail to this list I realized that I may have fogotten to mention something: I want to do the 'conversion' because the myCollection Collection is still empty. So in other words I want to create a new collection and fill it. However I do not know the type of the items I want to put in beforehand so it has to occur dynamically. So an equivalent question may be: How do I create a new 'C extends AbstractCollectionitemType' using reflection ? -- - 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
nat and ipfw, port forwarding
hi, i have a ssh machine behind a freebsd firewall with nat and ipfw. how do i make port forwarding so internet can access the ssh machine? thanx -- Best Regards Richard Yang richardy...@richardyang.net kusanagiy...@gmail.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
EOIP Tunnels
Does FreeBSD support EOIP tunnels? If so where can I find more info? Thank You! Marcel Grandemange ___ 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 can i be certain that a file has copied exactly?
folks, is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php ___ 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 can i be certain that a file has copied exactly?
On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline kl...@thought.org wrote: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? You don't need a prefab `cmp' function, because the base system already includes tools that can help: (a) The `cmp' utility: cmp file1 file2 ; echo $? (b) Checksum tools like `md5', `sha1' and `sha256': md5 file1 file2 sha1 file1 file2 sha256 file1 file2 You can then compare the file checksums. If both the md5 and sha256 checksums are identical, then the files are the same[1]. [1] There is a possibility of ``checksum collisions'', especially with md5 (see [2] for more details). But if you use two or more checksum types and none of them show differences, the odds of a collision are small enough for most practical purposes. [2] http://en.wikipedia.org/wiki/Md5#Vulnerability ___ 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 can i be certain that a file has copied exactly?
Gary Kline wrote: folks, is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? gary http://www.daemonology.net/bsdiff/ seems to maybe do what you want-- essentially diff should solve your problem, although I'm not too clear on how that works on differently compiled binaries. I also seem to recall there was a test function that returned different results based on if the two files mentioned as arguments were identical, but I can't recall offhand quite what it was. -- CJC ___ 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 can i be certain that a file has copied exactly?
Gary Kline kl...@thought.org writes: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? mtree(1) handles whole ranges of files. For a single file, you could use some kind of checksum in your program or externally, but in general it will be comparing against the cache of the file's buffers, not against what is really on disk, so if you suspect an operating system or hardware-write bug, you won't spot it immediately. What, precisely, would you like to protect against? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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
running shell command through ssh tunnel
Hi there, I am trying to run a shell command to the host at the far end of an ssh tunnel. Here is how I structured access. Is there any way to do this more compactly on one line? ssh -L 12345:192.168.1.20:22 n...@domain.com ssh -p 12345 localhost 'chown -R noah:noah /shares/internal/Music/' Cheers, Noah ___ 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
OSX mount UFS
Hi, I apologize for this diversion of topic. I format a external HD by BSD and move files to it. When trying to read it on OSX, it wouldn't recognize. Googling it didn't help much. I wonder if people here and lend a hand. Thanks!! TFC ___ 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 can i be certain that a file has copied exactly?
On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline kl...@thought.org wrote: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? You don't need a prefab `cmp' function, because the base system already includes tools that can help: (a) The `cmp' utility: cmp file1 file2 ; echo $? (b) Checksum tools like `md5', `sha1' and `sha256': md5 file1 file2 sha1 file1 file2 sha256 file1 file2 You can then compare the file checksums. If both the md5 and sha256 checksums are identical, then the files are the same[1]. [1] There is a possibility of ``checksum collisions'', especially with md5 (see [2] for more details). But if you use two or more checksum types and none of them show differences, the odds of a collision are small enough for most practical purposes. [2] http://en.wikipedia.org/wiki/Md5#Vulnerability the problem is that there are several thousands of these files with dos names and an embedded '\;'7 in the file names. the shell gets in the way. i have tried sprintf(cmdbuf, /usr/bin/cmp %s %s, orig, new); system(cmdbuf); chokes on the embedded bytes. i'm thinking of using find . -name * -print -exec {} \; and let me program select out the file suffix. i unlink the screwy dos-ish filename. that's why i want to be sure the copied/renamed files are right. ___ 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 http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php ___ 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 can i be certain that a file has copied exactly?
Gary Kline kl...@thought.org writes: On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline kl...@thought.org wrote: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? You don't need a prefab `cmp' function, because the base system already includes tools that can help: (a) The `cmp' utility: cmp file1 file2 ; echo $? (b) Checksum tools like `md5', `sha1' and `sha256': md5 file1 file2 sha1 file1 file2 sha256 file1 file2 You can then compare the file checksums. If both the md5 and sha256 checksums are identical, then the files are the same[1]. [1] There is a possibility of ``checksum collisions'', especially with md5 (see [2] for more details). But if you use two or more checksum types and none of them show differences, the odds of a collision are small enough for most practical purposes. [2] http://en.wikipedia.org/wiki/Md5#Vulnerability the problem is that there are several thousands of these files with dos names and an embedded '\;'7 in the file names. the shell gets in the way. i have tried sprintf(cmdbuf, /usr/bin/cmp %s %s, orig, new); system(cmdbuf); chokes on the embedded bytes. i'm thinking of using find . -name * -print -exec {} \; and let me program select out the file suffix. i unlink the screwy dos-ish filename. that's why i want to be sure the copied/renamed files are right. Your problem there is just normal file globbing. If you quote the names just like you would on the command line (modulo escaping for C's special characters), it should work fine. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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 can i be certain that a file has copied exactly?
On Fri, Dec 26, 2008 at 05:30:46PM -0800, Corey Chandler wrote: Gary Kline wrote: folks, is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? gary http://www.daemonology.net/bsdiff/ seems to maybe do what you want-- essentially diff should solve your problem, although I'm not too clear on how that works on differently compiled binaries. I also seem to recall there was a test function that returned different results based on if the two files mentioned as arguments were identical, but I can't recall offhand quite what it was. -- CJC ugh, i just founf both gif's and jpeg's with that same suffix. have to use something like while (n = read...)0 write(fd2, buf,n) if i want to copy these binary files. ... maybe not: who needs graphics? :-) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php ___ 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 can i be certain that a file has copied exactly?
On Fri, Dec 26, 2008 at 08:32:45PM -0500, Lowell Gilbert wrote: Gary Kline kl...@thought.org writes: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? mtree(1) handles whole ranges of files. For a single file, you could use some kind of checksum in your program or externally, but in general it will be comparing against the cache of the file's buffers, not against what is really on disk, so if you suspect an operating system or hardware-write bug, you won't spot it immediately. What, precisely, would you like to protect against? again bad copies! mtree might work, but given the number of files, i'd be better off hacking usr.bin/cmp !! oh-well, enjoy, spring is only 90 da off:-) -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php ___ 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 can i be certain that a file has copied exactly?
On Fri, 26 Dec 2008 17:56:34 -0800, Gary Kline kl...@thought.org wrote: On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline kl...@thought.org wrote: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? You don't need a prefab `cmp' function, because the base system already includes tools that can help: cmp file1 file2 ; echo $? md5 file1 file2 sha1 file1 file2 sha256 file1 file2 the problem is that there are several thousands of these files with dos names and an embedded '\;'7 in the file names. the shell gets in the way. i have tried sprintf(cmdbuf, /usr/bin/cmp %s %s, orig, new); system(cmdbuf); chokes on the embedded bytes. i'm thinking of using find . -name * -print -exec {} \; and let me program select out the file suffix. i unlink the screwy dos-ish filename. that's why i want to be sure the copied/renamed files are right. Use quoting (and snprintf() because it supports range-checks for the buffer you are passing to it): snprintf(cmdbuf, sizeof(cmdbuf), cmp \%s\ \%s\, orig, new); ___ 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
strange fsck results
I am running FreeBSD 6.3 as a VMware virtual server and am getting some strange results when I run fsck. When I run it in multi-user mode I get quite a few UNREF FILE errors but when I switch to single user mode fsck does not find any errors. Is this something I need to worry about and if it is how might I try to get fsck to repair them? TIA Charlie Reese ___ 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 can i be certain that a file has copied exactly?
Gary Kline kl...@thought.org writes: On Fri, Dec 26, 2008 at 08:32:45PM -0500, Lowell Gilbert wrote: Gary Kline kl...@thought.org writes: is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or diff, i have to avoid the shell. any ideas? in other words, does anybody have a prefab cmp(oldfile, newfile) fn? mtree(1) handles whole ranges of files. For a single file, you could use some kind of checksum in your program or externally, but in general it will be comparing against the cache of the file's buffers, not against what is really on disk, so if you suspect an operating system or hardware-write bug, you won't spot it immediately. What, precisely, would you like to protect against? again bad copies! mtree might work, but given the number of files, i'd be better off hacking usr.bin/cmp !! Bad copies caused by bugs in your software, or bad copies caused by bugs in FreeBSD? Or problems with your hardware? Once you know what you're after, you can start figuring out how to get it. If you don't know that yet, don't waste your time chasing it. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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: strange fsck results
re...@adeptscience.com writes: I am running FreeBSD 6.3 as a VMware virtual server and am getting some strange results when I run fsck. When I run it in multi-user mode I get quite a few UNREF FILE errors but when I switch to single user mode fsck does not find any errors. Is this something I need to worry about and if it is how might I try to get fsck to repair them? When you run fsck in multi-user mode, are you running it on a mounted filesystem? In that case, those errors would be perfectly normal, since the kernel will typically have several file handles open on each filesystem it mounts. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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
{Classmates#889-142}read it immediately
Will you please unsubscribe me at kij...@austin.rr.com. Thanks, B. Kim Bernson Cooper High School 1974 ___ 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: {Classmates#889-142}read it immediately
___ 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: strange fsck results
re...@adeptscience.com wrote: I am running FreeBSD 6.3 as a VMware virtual server and am getting some strange results when I run fsck. When I run it in multi-user mode I get quite a few UNREF FILE errors but when I switch to single user mode fsck does not find any errors. Is this something I need to worry about and if it is how might I try to get fsck to repair them? TIA Charlie Reese It may be a issue that fsck preening won't fix. A forceful repair might be required. see the fsck manpage. A forceful repair may cause more damage than help, which is part of the reason the multiboot process just preens it. Good luck. ___ 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