Re: How to know % of read file in cat?

2013-03-11 Thread Richard Tobin
> 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 c

Re: using new pkgng system on 9.0 system

2012-11-30 Thread Richard Tobin
> 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-q

Re: Free BSD Licensing

2010-03-24 Thread Richard Tobin
> 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 a

FreeBSD on Panasonic TV

2010-03-13 Thread Richard Tobin
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 S

Re: How to see UNICODE character number?

2007-11-14 Thread Richard Tobin
> 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

Leopard on Mac with FreeBSD

2007-11-08 Thread Richard Tobin
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

Re: X11 keyboard

2007-09-21 Thread Richard Tobin
> > 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 wan

X11 keyboard

2007-09-19 Thread Richard Tobin
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 lis

RE: Disk errors when copying

2007-09-10 Thread Richard Tobin
> > >> ad10: WARNING - READ_DMA48 UDMA ICRC error (retrying request) > > >> LBA=435128800 > > >> ad10: FAILURE - READ_DMA48 status=51 > > >> error=10 LBA=435128800 > > >> g_vfs_done():ad10s2g[READ(offset=175562145792, length=131072)]error = 5 > One of the rules of thumb when you have hardware prob

Disk errors when copying

2007-09-05 Thread Richard Tobin
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=51 error=10 LBA=435128800 g_vfs_done():ad10s2g[READ(offset=175562145792, length=131072)]error = 5 I don't get these errors just readin

FreeBSD 6.2 on new Mac mini

2007-08-22 Thread Richard Tobin
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 exit

Re: Easy switch to xorg 7.2?

2007-08-11 Thread Richard Tobin
> 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, ar

Easy switch to xorg 7.2?

2007-08-10 Thread Richard Tobin
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 _

Re: FreeBSD on Apple Mac Mini?

2007-06-02 Thread Richard Tobin
> > 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

FreeBSD on Apple Mac Mini?

2007-06-02 Thread Richard Tobin
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

Re: cp/mv/etc : argument list too long ... I am sick of this

2005-12-05 Thread Richard Tobin
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

Heat problem with 4.11

2005-02-02 Thread Richard Tobin
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,

Re: gcc violates const-ness of variable?

2004-12-02 Thread Richard Tobin
> 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,

Re: Firefox 0.9 Port

2004-06-17 Thread Richard Tobin
> 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

Re: firefox not launching since upgrade to 0.9_1

2004-06-17 Thread Richard Tobin
> # 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 >

Re: Devil Mascot

2004-06-14 Thread Richard Tobin
> 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 PROTECT

Re: compile signal code

2004-05-11 Thread Richard Tobin
> 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.f

Firewire compact flash reader?

2004-01-06 Thread Richard Tobin
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.freeb

blank_saver in 4.9

2003-12-06 Thread Richard Tobin
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 PROTECT

Re: RAM increase + swap

2003-08-20 Thread Richard Tobin
> 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 PROTECT

Re: Using bc in bash script

2003-08-14 Thread Richard Tobin
> 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/lis

4.8 ISO images

2003-04-04 Thread Richard Tobin
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

Experiences installing 5.0

2003-01-20 Thread Richard Tobin
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 ext

Re: Phoenix does nothing

2002-11-05 Thread Richard Tobin
> 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?

Re: Phoenix does nothing

2002-11-05 Thread Richard Tobin
> 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

Phoenix does nothing

2002-11-04 Thread Richard Tobin
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 dir

Re: How to upgrade from 4.3 to 4.7

2002-10-16 Thread Richard Tobin
> 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 workin

Re: How i can force a stream socket to wait as limited time inaccept() function?

2002-10-08 Thread Richard Tobin
> 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

Re: /dev/urandom is randomly cool

2002-10-06 Thread Richard Tobin
> > > 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 "unsubscri

Re: how to use 'dd' to create image of a hard drive?

2002-09-30 Thread Richard Tobin
> 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 abou

Re: i-Buddie 4: Synaptics touch pad FreeBSD support?

2002-09-26 Thread Richard Tobin
> 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 lo

Re: A cool IPF firewall trick

2002-09-25 Thread Richard Tobin
> I run several FreeBSD/IPF based firewalls. I would really like to get > some sort of basic visual representation as to what the firewall is > doing without actually logging in and tailing logs. My idea is to have > the HDD LED (red) light up when IPF blocks packets with an ipf block > rule and t

Re: Making Mozilla like java????

2002-09-18 Thread Richard Tobin
> 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. Reb

Re: "free" command

2002-07-15 Thread Richard Tobin
> > Lines 4 & 5 of the output from 'top', pretty much. > Aha, thanks. There isn't a command which dumps the > info to standard output by any chance? top -d1 | head -5 | tail -2 -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the

_waitq_remove: Not in queue

2002-07-15 Thread Richard Tobin
I was trying to track down the "_waitq_remove: Not in queue" errors that I and others get in xine. Can someone who understands the pthreads code tell me where a cancelled thread is removed from any condition queue it is on? My theory is that the answer is "nowhere", and the error occurs when the

Re: Dump appears to ignore the nodump flag

2002-07-15 Thread Richard Tobin
> We are running BSD version 4.4 and it appears that the dump utility ignores > the nodump flag and backs up the hierarchy below the directory flagged as > nodump. Read the man page for dump, and in particular the -h flag. -- Richard To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubs

Re: Dump / soft updates interaction?

2002-07-15 Thread Richard Tobin
> Yes. You need to wait for the system to "settle down" before dumping. Is there any way to wait until a soft-update filesystem is up-to-date - something like sync (which doesn't wait for soft updates to complete). Of course you can unmount and remount, but that's not always possible. -- Richa

Dump / soft updates interaction?

2002-07-15 Thread Richard Tobin
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