Re: How to know % of read file in cat?
I use cat to read a file and pass it to another app, the command is this: camibar% cat file.git | fossil import --git file.fossil It takes a lot of time, file.git is 12GB, and i want to know if there's some 'magic' trick can I use to show me how many bytes or the % of the file.git cat sent to the other app. Use dd (see man page) instead of cat, and control-T will show you how much it has transferred. -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: using new pkgng system on 9.0 system
Tomorrow I'm going to prepare a 9.1-RC3 with pkgng. Wish me luck :) Where is the pkgng repository for 9.1-RC3? -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___ 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: Free BSD Licensing
As the FreeBSD license is less restrictive than the GPL, it's pretty much safe to say that wherever you are permitted install GPL'd software, you could substitute FreeBSD licensed software without legal penalty. (Note: *install* -- redistribution is a different matter) You do not have to agree to the GPL to use GPL'd software: it explicitly says that it only covers copying, distribution and modification and not running the program. The FreeBSD licence on the other hand only allows you to use the software if you agree to the conditions - which only affect redistribution, so if you do not redistribute it, the licence terms do not affect you. I suppose a theoretical difference is that if you redistribute FreeBSD in violation of the conditions you no longer have the right to use it, which is not true for the GPL. -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___ 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 on Panasonic TV
I was interested to see that my Panasonic television displays a FreeBSD copyright notice. Does anybody know how much of FreeBSD it uses? (It apparently uses a UFS filesystem on disks attached for video recording.) -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. ___ 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 to see UNICODE character number?
What is the easiest way to get the UNICODE number for a Chinese character? I use KDE. All programs just show the character itself when I paste it :-) Try http://www.cogsci.ed.ac.uk/~richard/utf-8.html Paste it into the box and select Interpret as Character. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Leopard on Mac with FreeBSD
A couple of months ago I bought a new (Intel) Mac Mini, used Boot Camp to partition the disk, and installed FreeBSD 6.2 in the second partition. Now I want to install Leopard, but it say You cannot install Mac OS X on this volume... repartition this disk as 'GUID Partition Table'. Note: you will lose all data on this disk by repartitioning it. According to the Mac OS disk utility, the disk has an MBR partition map. I thought it had both, but I no longer remember the exact details of how I installed it. Any suggestions as to how to get around this? Preferably without re-installing FreeBSD. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 keyboard
I'm using a Mac mini, and the keyboard is wrong in various ways under X (apart from the usual unwanted caps lock, keys like tilde are wrong). What is the right way to fix this? I'm using Xorg 7.2. Have you gotten other mac keyboards working under FreeBSD? If not, you probably want, try man setxkbmap. Ah, that's probably what I was looking for. I did something similar years ago, but couldn't remember what it was. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
X11 keyboard
I'm using a Mac mini, and the keyboard is wrong in various ways under X (apart from the usual unwanted caps lock, keys like tilde are wrong). What is the right way to fix this? I'm using Xorg 7.2. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Disk errors when copying
ad10: WARNING - READ_DMA48 UDMA ICRC error (retrying request) LBA=435128800 ad10: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=435128800 g_vfs_done():ad10s2g[READ(offset=175562145792, length=131072)]error = 5 One of the rules of thumb when you have hardware problems with a new system (I'm assuming of course that these UDMA errors have been happening since the system was built) In my case it happened once and did not recur. But looking at the SMART log on the disk it appears that it might have happened before without my noticing. I was copying the disk before moving it to a different machine, so I probably won't be able to test it further. I'm sending a PR. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disk errors when copying
When copy between disks (ad10 -ad8), I get errors: ad10: WARNING - READ_DMA48 UDMA ICRC error (retrying request) LBA=435128800 ad10: FAILURE - READ_DMA48 status=51READY,DSC,ERROR error=10NID_NOT_FOUND LBA=435128800 g_vfs_done():ad10s2g[READ(offset=175562145792, length=131072)]error = 5 I don't get these errors just reading the data from ad10. Is this some kind of system error rather than a bad disk? Is it a known problem? (6.2 stable, SATA disks) -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 6.2 on new Mac mini
I'm running FreeBSD 6.2 on a new (i.e. Core 2 Duo) Mac mini. It was generally remarkably painless, except for getting up-to-date with Xorg. I used Boot Camp Assistant to partition the disk, but I didn't install rEFIt so I have to select windows' to boot FreeBSD. I got a double fault when exiting the FreeBSD installer but everything seems ok. Both cores are recognised and appear to work. I haven't bothered to get the wired ethernet working because the wireless works adequately. I had to use 915resolution to get my 1680x1050 display working properly with X. I haven't installed the Macbook patches (http://wiki.freebsd.org/AppleMacbook) as they seem to be for current, and I'm running 6.2. Many of them are irrelevant to the mini anyway (backlight etc). The one thing I don't seem to have is sound: kldload snd_driver doesn't seem to find any sound devices. Is there a solution to this? -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Easy switch to xorg 7.2?
I have successfully installed xorg 7.2 in a couple of new installations with minimum fuss. You can do it either from ports or packages. I used packages, but there were one or two problems, in the form of missing packages. In particular, the following packages, required by the xorg package, aren't in .../Latest: xkeyboard-config-0.9_3.tbz xf86-video-nv-1.2.2.1.tbz xterm-225_1 I built xkeyboard and xterm in the ports, getting newer versions than the expected ones. I didn't bother about the nvidia driver as I don't need it. Anyway, it now seems to be working! Thanks for you help. -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Easy switch to xorg 7.2?
I just did a 6.2-RELEASE install, only to find when I tried to install some packages from stable that everything has switched to Xorg 7.2. Can I just pkg_delete all the old xorg* packages and then pkg_add the new ones? Is pkg_add -r xorg all I need? -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD on Apple Mac Mini?
Does FreeBSD run well on the Mac Mini (x86)? I'm considering getting one to use for both MacOS and FreeBSD (booting from an external disk, if that's reasonable). -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD on Apple Mac Mini?
Does FreeBSD run well on the Mac Mini (x86)? I'm considering getting one to use for both MacOS and FreeBSD (booting from an external disk, if that's reasonable). Yep, it works fine. I used boot camp to create a small boot partition on the internal drive, and it loads everything else from an external USB drive. Thanks. A few more questions: - Any reason to prefer USB over Firewire? - Do you have to use a boot partition on the internal disk? Can FreeBSD boot from external USB or Firewire? - Which release of FreeBSD are you using? Thanks, Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cp/mv/etc : argument list too long ... I am sick of this
The sysctl kern.argmax reflects the maximum argument list size. It's set to 65536, at least in 4.11, and is (I think) not changeable except by rebuilding the kernel with a different value for ARG_MAX. Is well and good that there be some limit to how much data one can pack on the command line and incoming arglist in an application's environment else fumble fingers could cause major havoc. This is a bogus argument. The number of fumbles prevented by a limit of 65536 is not going to be very different from the number if it was, say, a million. On the other hand, having to switch commands once your data passes some arbitrary size is annoying and (I assert :-) not in the spirit of BSD. There may well be some good reasons for limiting the argument size, especially on a multi-user system. But the right solution is to make setting kern.argmax work, and allow system admistrators to decide what's appropriate for their systems. (I don't have a more recent release handy to check with; maybe it's already been done.) -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Heat problem with 4.11
For a few years now I have used fvcool to put the CPU of my 1GHz Athlon into power-saving mode. To make it work, I had to follow the instructions in the fvcool documentation and patch /sys/i386/i386/swtch.s to have these instructions immediately before calling hlt_vector: movl$0x4014, %edx inb %dx, %al (The number 4014 is obtained from running fvcool -v -e.) This reduced the idle temperature of the CPU from about 68C to about 35C. Unfortunately this patch no longer seems to do the trick in 4.11. The temperature is stuck at about 68C. Surprisingly, using fvcool -i (which sits in the background at low priority executing the inb instruction every 30uS) does work. The code around the call to hlt_vector has changed a little since 4.10; it has this instruction before the call: movl $0, lapic_tpr /* 1st candidate for an INT */ and a cli immediately after hlt_vector returns. Can anyone tell me what I need to change to make this work again? -- Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gcc violates const-ness of variable?
IIRC const does not exist in *standardized* C... No, it exists in both C89 and C99. But the error is in your program, not the compiler. const in C is a promise that you do not change the value, and you break that promise. It may be different in C++, I don't know. For definitive answers, try the newsgroups comp.lang.c and comp.lang.c++ -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: firefox not launching since upgrade to 0.9_1
# firefox -- we no longer need to launch 1st time as root, but... (firefox-bin:87415): Gtk-WARNING **: cannot open display: Presumably you don't have DISPLAY set when you're running as root. firefox *** loading the extensions datasource *** loading the extensions datasource *** loading the extensions datasource I have the same problem, but with an extra message: LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol _vt$16nsQueryInterface] *** loading the extensions datasource LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol _vt$16nsQueryInterface] *** loading the extensions datasource -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox 0.9 Port
The install was successful, but as soon as I try to run the program, all I get is the same message repeating over and over again in my xterm: You have to run it as root first. However, it then segmentation faults on most pages, so it's not a great advance. -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Devil Mascot
Why do you have a Devil for a trademark mascot? You might want to look at the output of whois antichristconspiracy.com before wasting your time responding to this. Then you can construct much more amusing replies. -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: compile signal code
I am having trouble compiling some signal related code in freebsd. What is the library I should link to get this to compile? The one that came with the book you got the example code from? -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Firewire compact flash reader?
I need a faster compact flash reader. Has anyone used a firewire reader with FreeBSD? Can I expect one to just work, or do some use proprietary protocol variations like many USB readers? -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
blank_saver in 4.9
Why did a binary upgrade to 4.9 remove these lines from /etc/rc.conf? blanktime=60 saver=blank -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAM increase + swap
If I put in additional 256MB RAM module ontop my already 256MB system, don't I need to increase the /swap partition size? No. In fact you will need less swap space now. The 2xRAM rule-of-thumb makes very little sense. -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using bc in bash script
I'm trying to calculate the number of seconds between $start_time and $end_time in a bash script. Bash has built-in integer arithmetic: et=$[End_time - Start_time] -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
4.8 ISO images
The 4.8 CD image on ftp.uk.freebsd.org is older than the one on ftp.freebsd.org, and a different size: ftp.uk.freebsd.org: -rw-r--r-- 1 ftpuser ftpusers 639401984 Apr 1 09:40 4.8-RELEASE-i386-disc1.iso ftp.freebsd.org: -rw-r--r-- 1 ftpuser ftpusers 640024576 Apr 3 19:04 4.8-RELEASE-i386-disc1.iso Is this because the mirror still has the old one with the broken floppy images? -- Richard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Experiences installing 5.0
Having successfully run 5.0-DP2 on my Vaio Z600TEK laptop, I tried a binary upgrade to 5.0-R. Unsurprisingly, it didn't recognise the Ninja ATA pccard that connects the CDROM. So I attempted to install by NFS from a 4.7 machine. This paniced (repeatably) within a few seconds of starting to extract the base distribution. (Sorry, I didn't record the panic message.) So instead I copied the CD to a Windows partition, and installed from there. This worked until it came to install the perl package, which failed because it was already installed. It then insisted that it hadn't been able to install even the base distribution so the upgrade had failed. It now boots into 5.0-R, but of course it has not restored my /etc files; I guess I can do that by hand. I can't reproduce the panic in the running system: NFS mounting and unpacking the base distribution doesn't cause any problem. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Phoenix does nothing
Is this the first time you've installed it? Yes. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Phoenix does nothing
What version of perl are you using? Install perl5.8, rebuild phoenix, and it'll likely work. Hopefully. The reason that I installed it now is that the requirement for a particular Perl version appeared to have been removed! Is that not true? And what the %$^*( is it using Perl for anyway? Mutter, mutter, lightweight, fast, 25MB zipped source, Perl, mutter... -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Phoenix does nothing
I just built phoenix from the ports, having cvsup'd ports immediately before. It compiles and installs, but when I run it nothing happens. It just exits after a few seconds, without putting up any windows or printing anything. Nothing on the console or in /var/log. It has created a .phoenix directory full of mozilla-y stuff. I'm running 4.7-RELEASE. Mozilla 1.1 works. Any suggestions? -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How to upgrade from 4.3 to 4.7
Hi fellows , can you tell me how can I upgrade my FreeBSD release 4.3 to 4.7? . Someone else has described how to do it from source, but the easy way is to boot from a 4.7 installation CD and select the upgrade option. If you do this I think you'll probably find that sendmail stops working. You will need to copy (or merge) /etc/upgrade/mail to /etc/mail. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: How i can force a stream socket to wait as limited time inaccept() function?
You need to set the socket descriptor in non-blocking mode, then call accept. accept will fail and return -1 with errno set to EWOULDBLOCK, the call select(2) on the socket. select will return when a connection arrives (you need to test for it) or when the timeout expires. You don't need to put the socket in non-blocking mode to select for accept. See example program below. -- Richard #include stdio.h #include string.h #include unistd.h #include sys/types.h #include sys/socket.h #include sys/time.h #include netinet/in.h int main(int argc, char **argv) { static struct sockaddr_in addr; int s; fd_set fds; struct timeval t = {5, 0}; s = socket(PF_INET, SOCK_STREAM, 0); addr.sin_family = AF_INET; addr.sin_port = htons(atoi(argv[1])); if(bind(s, (struct sockaddr *)addr, sizeof(addr)) 0) { perror(bind); return 1; } listen(s, 5); FD_ZERO(fds); FD_SET(s, fds); switch(select(s+1, fds, 0, 0, t)) { case 0: printf(timed out\n); return 0; case -1: perror(select); return 1; default: printf(select returned\n); printf(accept returned %d\n, accept(s, 0, 0)); return 0; } } To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /dev/urandom is randomly cool
tr -cd a-zA-Z0-9 /dev/urandom | dd bs=$len count=1 2/dev/null It didn't work. My shell is tcsh so I tried: tr -cd a-zA-Z0-9 /dev/urandom | dd bs=8 count=1 /dev/null redirects stderr *and* stdout. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: how to use 'dd' to create image of a hard drive?
bs=102400 or bs=128k will dd faster though you can play with that. That's not my experience. 8k dd runs at disk speed (30-40 MB/s) on all the machines I've used recently when copying between different disks on different ATA controllers. Between disks on the same controller I only get about 13MB/s (why?) but there's no difference between 8k and 128k dd. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: i-Buddie 4: Synaptics touch pad FreeBSD support?
So I went to see at http://www.synaptics.com/support/downloads.cfm and found a pointer to a linux 'tpconfig' touch pad driver available at http://compass.com/synaptics/ which has not yet been ported to FreeBSD. If it's a driver in the sense of some kernel code then it's going to need a lot of work. Makefile, line 254: Need an operator But this is just because you need to use gmake instead of make. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Making Mozilla like java????
LoadPlugin: failed to initialize shared library /usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol *libintl_dgettext*] Your Mozilla and plugin were built with different versions of gettext. Rebuild Mozilla, or install a newer package version. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Dump / soft updates interaction?
I deleted some files immediately before dumping a filesystem. When I checked the dump with restore rN I got several cannot find directory inode xxx messages. I dumped again, and the dump file was slightly smaller and produced no such messages. Is this likely to be caused by soft updates in effect making the filesystem active for some time after making changes? -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message