Re: sysbench / fileio - Linux vs. FreeBSD
On 6/5/10 3:36 AM, Bruce Cran wrote: > Some quick tests show that ufs does do rather poorly on my system too. I have > the following filesystems setup: > > /var : ufs with softupdates > /usr/obj : zfs with checksums disabled > /usr/src : zfs with compression enabled > /home : zfs with compression disabled and checksums enabled > > I ran a test with a blocksize of 8KB and 16 threads. > > /var : 25.2MB/s > /usr/obj : 64.8MB/s > /usr/src : 386.3MB/s > /home : 60.3MB/s > It seems I have to test it with zfs as well. Tomorrow I'm gonna test it. -- Adam PAPAI ___ 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: Booting Xserve on 8.0
Perhaps you need to install Boot Camp. The booting procedure is EFI, maybe that's playing havoc. On 5 Jun 2010 03:37, "Chris" wrote: I have two new Xserves (last years units, 2.8 quad cores). After fighting with OSX for two months, I decided to see if I could install FreeBSD since that is what we have always run on our 10 servers since the 90s (and those two months would have been over in two days had we had FreeBSD from the start). I decided to give it a try tonight after a particularly low ebb in the frustration over trying to make OSX, NOT do user friendly enterprise things, but just configure normal simple applications that we take for granted can be configured and stay configured on FreeBSD. I'm wondering if there is someone on the list who may have information on this. I used the "boot from CD" procedure that apple provides at http://support.apple.com/kb/HT2778?viewlocale=en_US and it will not boot the 8.0 ISO. I configured one normal intel box using this CD so I think it's a good disk, and I verified that the Xserve would read it as a data disk. But I can't get it to boot on the xserve. Bootloader issue? It pops the disk out and puts the gray folder with a question mark to tell me to give it a disk it can read. I tried the i386 8.0 CD and had the same results. I have read where people are installing the PPC version on xserves. Is it possible the amd64 version is not somehow bootable in a modern xserve? Any ideas? Would it be appropriate to ask this on the amd64 list? ___ 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: long day, {04jun10}
On Fri, Jun 04, 2010 at 11:17:37PM -0700, Gary Kline wrote: > > guys, > > esp'ly tex wizards, is there a tex version of georgia? [[i know, > i know, somebody created this typefae for microwit.copr, > everybody favorite company. company, corp, or human being.]] > notwithstanding, i like it for printed material. it is small, > even a very smaall pt-sized like 10pt, and easy on the eye. > since i was pointed at some of the better serif for for text, > i've checked out every one. compared them to georgia; it tops my > best list. Download and install the 'winfonts' package from CTAN: http://www.ctan.org/tex-archive/fonts/winfonts/ Installation instructions are for windoze unfortunately. Unpack the zipfile in the appropriate directory (for my TeXLive it would be in /usr/local/texlive/2009/texmf-var/, don't know about teTeX). If necessary, download the fonts from http://sourceforge.net/projects/corefonts/files/ copy the truetype fonts to the appropriate directory (/usr/local/texlive/2009/texmf-var/fonts/truetype for my TeXLive install). Run mktexlsr. Now add winfonts.map to your updmap.cfg file, and run updmap. You should then be able to use the fonts with \usepackage{winfonts}. > i was up past 03:00 this morning messing with things tex. > ---cannot find xetex, btw, nor xelatex. so that is a 2nd qstn: > do we have a ports directory where the tex stuff is located? The TeX in ports is outdated and abandoned upstream. Install TeXLive instead. > finally, is there any font+tex site =and= mailing list that the > tex wizards onlist know of? Your local TeX User Group will probably have a mailing list. 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) pgpbTh5SYY1nB.pgp Description: PGP signature
Re: sysbench / fileio - Linux vs. FreeBSD
> /var : ufs with softupdates > /usr/obj : zfs with checksums disabled > /usr/src : zfs with compression enabled > /home : zfs with compression disabled and checksums enabled > > I ran a test with a blocksize of 8KB and 16 threads. > > /var : 25.2MB/s > /usr/obj : 64.8MB/s > /usr/src : 386.3MB/s > /home : 60.3MB/s Do I understand it well? It seems that zfs with compression enabled on /usr/src with 8KB block size and 16 threads performs 386.3MB/s which is about 6 times better than debian5? I am thinking about this image http://tech-blog.wooh.hu/~wooh/debian_vs_freebsd_io_16_seqwr.png what is your system specs? ___ 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: sysbench / fileio - Linux vs. FreeBSD
On Sat, 5 Jun 2010 12:50:15 +0200 Stefan Miklosovic wrote: > > /var : ufs with softupdates > > /usr/obj : zfs with checksums disabled > > /usr/src : zfs with compression enabled > > /home : zfs with compression disabled and checksums enabled > > > > I ran a test with a blocksize of 8KB and 16 threads. > > > > /var : 25.2MB/s > > /usr/obj : 64.8MB/s > > /usr/src : 386.3MB/s > > /home : 60.3MB/s > > Do I understand it well? It seems that zfs with compression enabled on > /usr/src with 8KB block size and 16 threads performs 386.3MB/s which > is about 6 times better than debian5? I am thinking about this image > http://tech-blog.wooh.hu/~wooh/debian_vs_freebsd_io_16_seqwr.png Yes - on one run it even hit 500MB/s. I suspect, however, that the benchmark isn't accurate because it won't be writing typical data. Instead it's probably using a buffer that compresses very well. -- Bruce Cran ___ 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: sysbench / fileio - Linux vs. FreeBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/5/10 1:04 PM, Bruce Cran wrote: > On Sat, 5 Jun 2010 12:50:15 +0200 > Stefan Miklosovic wrote: > >>> /var : ufs with softupdates >>> /usr/obj : zfs with checksums disabled >>> /usr/src : zfs with compression enabled >>> /home : zfs with compression disabled and checksums enabled >>> >>> I ran a test with a blocksize of 8KB and 16 threads. >>> >>> /var : 25.2MB/s >>> /usr/obj : 64.8MB/s >>> /usr/src : 386.3MB/s >>> /home : 60.3MB/s >> >> Do I understand it well? It seems that zfs with compression enabled on >> /usr/src with 8KB block size and 16 threads performs 386.3MB/s which >> is about 6 times better than debian5? I am thinking about this image >> http://tech-blog.wooh.hu/~wooh/debian_vs_freebsd_io_16_seqwr.png > > Yes - on one run it even hit 500MB/s. I suspect, however, that the > benchmark isn't accurate because it won't be writing typical data. > Instead it's probably using a buffer that compresses very well. Hm.. My ZFS tests showed me the same results. With compression it's pretty fast. An application benchmark will give us typical data write, so I'll run PgSQL benchmarks on the ZFS pool as well. - -- Adam PAPAI NETIDEA Informatikai Szolgáltató Kft. http://www.netidea.hu E-mail: w...@wooh.hu Phone: +36 30 33-55-735 (Hungary) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMCjJiAAoJEGq0EWvh5uiIKFMH/1dP4OZGAMiBNSoRqGFfnZ5B /vtf5do2t3JRbjfYi2HyNn8gXss4xRDPouVmftl2OglIXA77hMIyIcjyoWnHGTBc M1WnnNDz1wIb8EYSl9MYKAjQA1wGsYd4UImd1MqOtZfSuOht6hTLoSiAnC1xMLtk 9vgFUtMok8XclPqL08J/dWs39+HwhSaooRnLEx7IYLSgFis7vQtJjOaWWG3LUADw QsivcCSjBBoQ7LD9WXN5prmlwt+CMBU/F1yyMaJXa0bNI7AM+hh5Mix03P4HAKEz 4Z92lcmLXzSVnllA0tAJvAwEPtk4laP6yzM9egStDNvxONLueQVLXfY8gvukQ2k= =MVI2 -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: Booting Xserve on 8.0
On Jun 5, 2010, at 12:54 AM, Chris Rees wrote: Perhaps you need to install Boot Camp. The booting procedure is EFI, maybe that's playing havoc. Thanks for the response. That would be a great solution, I read that Apple doesn't permit it to be installed on the XServe. That comes from an Apple article in their support pages dated November 19, 2008. Firmware update is required and none exists according to the note. I am researching if that is still true but haven't turned anything up yet. EFI is the issue. I was hoping there is new information such as an installation with EFI configuration files to permit the boot. There are instructions available on creating such an installation for linux variants. They don't seem to apply to FreeBSD or I haven't the knowledge to create such an installation. On 5 Jun 2010 03:37, "Chris" wrote: I have two new Xserves (last years units, 2.8 quad cores). After fighting with OSX for two months, I decided to see if I could install FreeBSD since that is what we have always run on our 10 servers since the 90s (and those two months would have been over in two days had we had FreeBSD from the start). I decided to give it a try tonight after a particularly low ebb in the frustration over trying to make OSX, NOT do user friendly enterprise things, but just configure normal simple applications that we take for granted can be configured and stay configured on FreeBSD. I'm wondering if there is someone on the list who may have information on this. I used the "boot from CD" procedure that apple provides at http://support.apple.com/kb/HT2778?viewlocale=en_US and it will not boot the 8.0 ISO. I configured one normal intel box using this CD so I think it's a good disk, and I verified that the Xserve would read it as a data disk. But I can't get it to boot on the xserve. Bootloader issue? It pops the disk out and puts the gray folder with a question mark to tell me to give it a disk it can read. I tried the i386 8.0 CD and had the same results. I have read where people are installing the PPC version on xserves. Is it possible the amd64 version is not somehow bootable in a modern xserve? Any ideas? Would it be appropriate to ask this on the amd64 list? ___ 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: .sh & getopts
Robert Bonomi wrote: m From owner-freebsd-questi...@freebsd.org Thu Jun 3 23:36:28 2010 Date: Fri, 04 Jun 2010 12:35:56 +0800 From: Aiza To: "questi...@freebsd.org" Cc: Subject: .sh & getopts Have this code shift; while getopts :ugr: arg; do case ${arg} in u) action="freebsd-update";; g) action="freebsd-upgrade";; r) action="freebsd-rollback";; ?) exerr ${cmd_usage};; esac; done; shift $(( ${OPTION} -1 )) Command being executed looks like this, cmd action -flags Only a single -flag in allowed on the command. $# gives a count of parms ie: . in this example a count of 2. I am looking for something to check that holds the number of flags on the command. so I can code. if flag_count gt 1 = error Is there such a thing created by getopts? Why bother?? flag_count=0 shift; while getopts :ugr: arg if flag_count = 1; then exerr ${cmd_usage} fi flag_count=1; do case ${arg} in {{blah-blah}} nope dont work. If the flags are counted at all it has to be a function of getopts ___ 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: hal-0.5.14_7 to _8 upgrade problem
n dhert writes: >> USB_GET_REPORT_ID should be getting picked up from >> /usr/include/dev/usb/usb_ioctl.h these days. > >> Have you still got libusb (or some of its includes) installed on a >> system recent enough to have it in the base system? > On my system, I do have : > ]$ ls -la /usr/include/dev/usb/usb_ioctl.h > -r--r--r-- 1 root wheel 9809 May 17 14:57 > /usr/include/dev/usb/usb_ioctl.h > > On the other hand portupgrading always gives me: > ---> ** Upgrade tasks 1: 0 done, 1 ignored, 0 skipped and 1 failed > ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) > - devel/libusb (marked as IGNORE) > ! sysutils/hal (hal-0.5.14_7) (compiler error) > > It seems it still tries to do something with the devel/libusb port? > $ pkg_info | grep libusb > libusb-0.1.12_4 Library giving userland programs access to USB devices > seems to show it is installed. > My system started at 7.2 and was upgraded to 8.0 and has given this > devel/libusb (marked as IGNORE) even since. > If I look on a different system installed for the first time right with 8.0, > > $ pkg_info | grep libusb reports nothing. Right. Remove the devel/libusb port and rebuild everything that depended on it. This was listed in UPDATING. ___ 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: long day, {04jun10}
Allow me an addition: On Sat, 5 Jun 2010 11:47:15 +0200, Roland Smith wrote: > Download and install the 'winfonts' package from CTAN: > http://www.ctan.org/tex-archive/fonts/winfonts/ > > Installation instructions are for windoze unfortunately. Unpack the zipfile in > the appropriate directory (for my TeXLive it would be in > /usr/local/texlive/2009/texmf-var/, don't know about teTeX). For teTeX (e. g. obtained via "pkg_add -r teTeX"), the directory would be /usr/local/share/texmf-var, as teTeX uses the standardized local/ subtrees (bin, share, etc.) instead of an own subtree. -- 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: sysbench / fileio - Linux vs. FreeBSD
/usr/src : zfs with compression enabled /usr/src : 386.3MB/s >>> Do I understand it well? It seems that zfs with compression enabled on >>> /usr/src with 8KB block size and 16 threads performs 386.3MB/s which >>> is about 6 times better than debian5? I am thinking about this image >>> http://tech-blog.wooh.hu/~wooh/debian_vs_freebsd_io_16_seqwr.png >> >> Yes - on one run it even hit 500MB/s. I suspect, however, that the >> benchmark isn't accurate because it won't be writing typical data. >> Instead it's probably using a buffer that compresses very well. > > Hm.. My ZFS tests showed me the same results. With compression it's > pretty fast. That's hardly a surprise - you take the source code, compress it into virtual non-existence leaving hardly anything to be written to the disk... Obviously if compression speed >> IO speed and the result of the compression is a significant reduction in size, you have a massive gain in writing that data to the disk. -- Igor ___ 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: .sh & tar
On 3 June 2010 11:11, Chip Camden wrote: > On Jun 03 2010 10:03, ill...@gmail.com wrote: >> On 3 June 2010 07:42, Polytropon wrote: >> > On Thu, 03 Jun 2010 09:32:17 +0800, Aiza wrote: >> >> When I exec tar from within a .sh shell script I get this message >> >> tar: Removing leading '/' from member names >> >> I have tar outputting to > /dev/null and still get this message. >> >> With -v or without makes no difference. >> >> >> >> How can I stop this >> > >> > Depends on WHAT you want to stop - the illness or just its symptoms. :-) >> > >> > If it's just about symptoms, redirect the error messages into >> > nirvana. >> > >> > tar [opts] [file] 1>/dev/null 2>&1 >> > >> > If you want to remove the REASON for "tar: Removing leading '/' >> > from member names", you need to re-create the archives and >> > start archiving from a relative point (instead of from an >> > absolute one), e. g. >> > >> > # cd / >> > # tar cvf etc.tar etc/ >> > >> > (lazy man's method) instead of >> > >> > # tar cvf etc.tar /etc/ >> > >> > The extraction of the archive will usually start in the >> > current directory, so >> > >> > # cd /usr/local/bin >> > # tar xvf etc.tar >> > >> > won't give you an etc/ subtree in /usr/local/bin directory. >> > >> >> tar -cvf - ./ -C / > /dev/null >> ? >> > I can't help wondering why the 'v' option is being specified, unless > /dev/null needs more playing time. Reflex, but you're right, it shouldn't be in there. -- -- ___ 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: bash instead of csh (completely)
On 4 June 2010 14:56, Stefan Miklosovic wrote: > Hi list, > > title says it, i would like completely remove csh and install bash > instead. As far I know, csh is build in system, could I remove it > manually and install bash (of course, in reverse order :D) > > Are there such dependencies on csh? I know that real system scripting > is done via /bin/sh > co absence of csh shell should not break system. > > Am I wrong ? Entirely removing [t]csh sounds like a frustrating exercise in futility, but have fun. But before you switch your root shell to something that resides not in your root partition: http://forums.freebsd.org/showthread.php?t=14676 -- -- ___ 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: .sh & tar
On Sat, 5 Jun 2010 12:27:09 -0400, "ill...@gmail.com" wrote: > On 3 June 2010 11:11, Chip Camden wrote: > > On Jun 03 2010 10:03, ill...@gmail.com wrote: > >> On 3 June 2010 07:42, Polytropon wrote: > >> > Depends on WHAT you want to stop - the illness or just its symptoms. :-) > >> > > >> > If it's just about symptoms, redirect the error messages into > >> > nirvana. > >> > > >> > tar [opts] [file] 1>/dev/null 2>&1 > >> > > >> > If you want to remove the REASON for "tar: Removing leading '/' > >> > from member names", you need to re-create the archives and > >> > start archiving from a relative point (instead of from an > >> > absolute one), e. g. > >> > > >> > # cd / > >> > # tar cvf etc.tar etc/ > >> > > >> > (lazy man's method) instead of > >> > > >> > # tar cvf etc.tar /etc/ > >> > > >> > The extraction of the archive will usually start in the > >> > current directory, so > >> > > >> > # cd /usr/local/bin > >> > # tar xvf etc.tar > >> > > >> > won't give you an etc/ subtree in /usr/local/bin directory. > >> > > >> > >> tar -cvf - ./ -C / > /dev/null > >> ? > >> > > I can't help wondering why the 'v' option is being specified, unless > > /dev/null needs more playing time. > > Reflex, but you're right, it shouldn't be in there. Your tenmelonhundredgigahertz plentycore machines have to process useless amounts of data to be discarded, or they wouldn't be worth their price. :-) Seriously, pure reflex. No -v needed here as you are not interested in monitoring the process. -- 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: ncurses
On Jun 04 2010 19:52, Thomas Dickey wrote: > On Fri, Jun 04, 2010 at 08:02:34AM -0700, Chip Camden wrote: > > Thanks to some help from Joel Dahl on the mutt-users list, I was able to > > restore correct color support in my mutt installation. But it raises a > > question about ncurses. > > > > It seems that building mutt with the devel/ncurses port installed creates > > the problem I was experiencing: most colors do not show up in mutt, and > > sounds familiar (layout differences, etc, depending on whether wide- or > narrow characters are used). > > > the line-drawing characters are borked. Deinstalling devel/ncurses and > > rebuilding mutt with the base version of ncurses solves the problem. > > > > However, x11/rxvt-unicode depends on devel/ncurses, so any time urxvt > > needs rebuilding we get devel/ncurses reinstalled. Any subsequent rebuild > > of mutt restores the original problem. > > > > Is there any way to sort this out? > > given a copy of the two build logs, I might be able to guess what's amiss. > > (I don't have a current FreeBSD to test directly on...) > > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net Thanks for your response, but I solved the problem by specifying that mutt should use slang instead of ncurses. That works better in a couple of ways, so I'll go with that. I do, however, still have one small problem. I can't seem to get mutt to see that my urxvt has 256 colors enabled. infocmp shows "colors#256" for rxvt-256color, but if I do 'export TERM=rxvt-256color' then zsh complains "can't find terminal definition for rxvt-256color" (though it lets me set it anyway). However, mutt still complains if I try to use any color above 8. With TERM set to "rxvt" infocmp shows "colors#8" and tput colors shows "145". I'm confused. Obviously, not everyone is on the same page here. -- Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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: sysbench / fileio - Linux vs. FreeBSD
On Saturday 05 June 2010 01:58:35 Adam PAPAI wrote: > Why FreeBSD is supreme with 1 and 2 thread. And why is it 2 and 3 times > slower with 4-8-16-32 threads compared to Debian? The first two tests (1 > thread and 2 thread) showed me that FreeBSD is supreme in I/O, but later > tests showed me, that it can produce horrible I/O. > > How can I tune my disk to make it faster? Is it possible? What is the > reason of the really slow I/O with more than 4 threads? What do you > recommend me to do? Why is it damn slow with 8K blocksize? You may find this interesting: http://info.iet.unipi.it/~luigi/geom_sched/ Regards, Max ___ 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: ncurses
On Sat, Jun 05, 2010 at 10:13:34AM -0700, Chip Camden wrote: ... > Thanks for your response, but I solved the problem by specifying that > mutt should use slang instead of ncurses. That works better in a couple > of ways, so I'll go with that. > > I do, however, still have one small problem. I can't seem to get mutt to > see that my urxvt has 256 colors enabled. infocmp shows "colors#256" for > rxvt-256color, but if I do 'export TERM=rxvt-256color' then zsh complains > "can't find terminal definition for rxvt-256color" (though it lets me set > it anyway). However, mutt still complains if I try to use any color > above 8. With TERM set to "rxvt" infocmp shows "colors#8" and tput > colors shows "145". I'm confused. Obviously, not everyone is on the > same page here. There is more than one potential problem - here're a few: ncurses' default configuration doesn't support 256 colors ("only" 16, which was more than the standard 15 years ago). It supports 256 colors as a binary-incompatible extension of ncursesw, which could be provided in a port. With/without the extension, infocmp would show the 256. zsh may be looking in the termcap interface, which iirc on FreeBSD is using a separate database. FreeBSD may still be using a tput that's not based on ncurses. "145" is puzzling here, too. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpdaow7em1bv.pgp Description: PGP signature
Re: long day, {04jun10}
On Sat, Jun 05, 2010 at 11:47:15AM +0200, Roland Smith wrote: > On Fri, Jun 04, 2010 at 11:17:37PM -0700, Gary Kline wrote: > > > > guys, > > > > esp'ly tex wizards, is there a tex version of georgia? [[i know, > > i know, somebody created this typefae for microwit.copr, > > everybody favorite company. company, corp, or human being.]] > > notwithstanding, i like it for printed material. it is small, > > even a very smaall pt-sized like 10pt, and easy on the eye. > > since i was pointed at some of the better serif for for text, > > i've checked out every one. compared them to georgia; it tops my > > best list. > > Download and install the 'winfonts' package from CTAN: > http://www.ctan.org/tex-archive/fonts/winfonts/ > > Installation instructions are for windoze unfortunately. Unpack the zipfile in > the appropriate directory (for my TeXLive it would be in > /usr/local/texlive/2009/texmf-var/, don't know about teTeX). If necessary, > download the fonts from http://sourceforge.net/projects/corefonts/files/ > copy the truetype fonts to the appropriate directory > (/usr/local/texlive/2009/texmf-var/fonts/truetype for my TeXLive install). > Run mktexlsr. Now add winfonts.map to your updmap.cfg file, and run updmap. > You should then be able to use the fonts with \usepackage{winfonts}. super! --it isn't critical that i use georigia, just something as size-efficient. i just found TUG FOr North America, FWIW :_) > > > i was up past 03:00 this morning messing with things tex. > > ---cannot find xetex, btw, nor xelatex. so that is a 2nd qstn: > > do we have a ports directory where the tex stuff is located? > > The TeX in ports is outdated and abandoned upstream. Install TeXLive instead. yup, there is a tkxmlive port in ports/textproc. more to the point, i found a slew of texlive stuff hosts on google. > > > finally, is there any font+tex site =and= mailing list that the > > tex wizards onlist know of? > > Your local TeX User Group will probably have a mailing list. > well, i got thrown off my your 'local' prefix until i realized that the latin[12] world might be local to most of those on this list. but there are dozens of other families. thanks muchly. gary > 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) -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ 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: long day, {04jun10}
On Sat, Jun 05, 2010 at 03:09:01PM +0200, Polytropon wrote: > Allow me an addition: > > On Sat, 5 Jun 2010 11:47:15 +0200, Roland Smith wrote: > > Download and install the 'winfonts' package from CTAN: > > http://www.ctan.org/tex-archive/fonts/winfonts/ > > > > Installation instructions are for windoze unfortunately. Unpack the zipfile > > in > > the appropriate directory (for my TeXLive it would be in > > /usr/local/texlive/2009/texmf-var/, don't know about teTeX). > > For teTeX (e. g. obtained via "pkg_add -r teTeX"), the directory > would be /usr/local/share/texmf-var, as teTeX uses the standardized > local/ subtrees (bin, share, etc.) instead of an own subtree. > ha. [well, not =that= surprised]; i already have teTeX installed. going to see how to install texlive. gary > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix The 7.83a release of Jottings: http://jottings.thought.org/index.php http://journey.thought.org 99 44/100% Guaranteed Novel ___ 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"
which is the basic differences between the shells?
hello, i am coming from the linux world where i was using the bash shell but i found out that there are also much more. can u tell me the basic differences between them?(pros and cons) thanks in advance ___ 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"
why so many errors with ports??
hello, i am coming from the linux world i was a gentoo user and i have install on my second machine FBSD,i have made many formats but every time i try to install a graphical enviroment (such as xfce,kde) many many errors come up. i have heard that the ports are more stable than portage but with portage i didn't have so many errors (actually i can't recall a time when portage "died") am i doing sth wrong or ports comes up with many errors?? P.S.: 1 week not i haven't manage to install a graphical enviroment thanks in advance ___ 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: which is the basic differences between the shells?
On Jun 05 2010 22:35, Giorgos Tsiapaliokas wrote: > hello, > i am coming from the linux world where i was using the bash shell but i > found out that there are also much more. > can u tell me the basic differences between them?(pros and cons) > > thanks in advance > ___ > 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 like zsh, because it's sh-compatible, brings in a lot of the good ideas from csh/tcsh, and the license appears to be copyfree rather than copyleft. man zsh to see that there are so many features they had to break up the man pages. -- Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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: why so many errors with ports??
On Sat, Jun 5, 2010 at 6:39 PM, Giorgos Tsiapaliokas wrote: > hello, > > i am coming from the linux world i was a gentoo user and i have install on > my second machine FBSD,i have made many formats but every time i try to > install a graphical enviroment (such as xfce,kde) many many errors come up. > i have heard that the ports are more stable than portage but with portage i > didn't have so many errors (actually i can't recall a time when portage > "died") > > am i doing sth wrong or ports comes up with many errors?? > Need to specify FBSD version. I had many problems with the graphical stuff as well and decided to install all the heavy weight stuff with binary packages, besides it made no sense for me to wait I don't know how many hours to compile things like OpenOffice and Gnome. For other things I compile everything and hardly have any problems at all. Make sure your ports are up to date and that you have chosen a correct release for your needs. Tip: in FBSD the word stable has a completely different meaning than in the LInux world ;-) > > P.S.: 1 week not i haven't manage to install a graphical enviroment > > > thanks in advance > ___ > 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: .sh & getopts
Robert Bonomi wrote: Date: Sat, 05 Jun 2010 20:51:28 +0800 From: Aiza To: Robert Bonomi Subject: Re: .sh & getopts Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Thu Jun 3 23:36:28 2010 Date: Fri, 04 Jun 2010 12:35:56 +0800 From: Aiza To: "questi...@freebsd.org" Cc: Subject: .sh & getopts Have this code shift; while getopts :ugr: arg; do case ${arg} in u) action="freebsd-update";; g) action="freebsd-upgrade";; r) action="freebsd-rollback";; ?) exerr ${cmd_usage};; esac; done; shift $(( ${OPTION} -1 )) Command being executed looks like this, cmd action -flags Only a single -flag in allowed on the command. $# gives a count of parms ie: . in this example a count of 2. I am looking for something to check that holds the number of flags on the command. so I can code. if flag_count gt 1 = error Is there such a thing created by getopts? Why bother?? flag_count=0 shift; while getopts :ugr: arg if flag_count = 1; then exerr ${cmd_usage} fi flag_count=1; do case ${arg} in {{blah-blah}} nope dont work. Yup. I was in a hurry, got the code mechanics wrong. it needs to be: flag_count=0 shift; while getopts :ugr: arg ; do if flag_count = 1; then exerr ${cmd_usage} fi flag_count=1; case ${arg} in {{blah-blah}} ecas done I think I see what your are saying. so to adapt it to my code flag_count=0 shift; while getopts :ugr: arg; do flag_count + 1; case ${arg} in u) action="freebsd-update";; g) action="freebsd-upgrade";; r) action="freebsd-rollback";; ?) exerr ${cmd_usage};; esac; done; shift $(( ${OPTION} -1 )) if flag_count gt 3; then exerr ${cmd_usage} fi I think I got the concept correct, but the flag_count + 1 is not correct. I get "flag_count: not found" when I run it this way. ___ 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: which is the basic differences between the shells?
On Sat, Jun 5, 2010 at 6:35 PM, Giorgos Tsiapaliokas wrote: > hello, > i am coming from the linux world where i was using the bash shell but i > found out that there are also much more. > can u tell me the basic differences between them?(pros and cons) > Too broad a topic I suspect fo u to get an answer here. In FBSD the base system is completely separate from the applications, that is really great because for example your system upgrades are independendent of applications / ports. The base shell is in the base system so don't replace the shell for the root user but rather start bash from your root account if you wish. This will make sense when your system breaks in an upgrade for example. For everything else you can safely use bash and choose bash for your normal users. I use bash all the time even for root, but in the latter case I start it manually. Best, Alejandro Imass > thanks in advance > ___ > 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: .sh & getopts
On Sat, Jun 5, 2010 at 6:20 PM, Aiza wrote: > Robert Bonomi wrote: >>> >>> Date: Sat, 05 Jun 2010 20:51:28 +0800 >>> From: Aiza >>> To: Robert Bonomi >>> Subject: Re: .sh & getopts >>> >>> Robert Bonomi wrote: > > From owner-freebsd-questi...@freebsd.org Thu Jun 3 23:36:28 2010 > Date: Fri, 04 Jun 2010 12:35:56 +0800 > From: Aiza > To: "questi...@freebsd.org" > Cc: Subject: .sh & getopts > > Have this code > > shift; while getopts :ugr: arg; do case ${arg} in > u) action="freebsd-update";; > g) action="freebsd-upgrade";; > r) action="freebsd-rollback";; > ?) exerr ${cmd_usage};; > esac; done; shift $(( ${OPTION} -1 )) > > > Command being executed looks like this, cmd action -flags > > Only a single -flag in allowed on the command. > > $# gives a count of parms ie: . in this example a count of 2. > > I am looking for something to check that holds the number of flags on > the command. so I can code. if flag_count gt 1 = error > > Is there such a thing created by getopts? Why bother?? flag_count=0 shift; while getopts :ugr: arg if flag_count = 1; then exerr ${cmd_usage} fi flag_count=1; do case ${arg} in {{blah-blah}} >>> nope dont work. >> >> Yup. I was in a hurry, got the code mechanics wrong. it needs to be: >> flag_count=0 >> shift; while getopts :ugr: arg ; do >> if flag_count = 1; then >> exerr ${cmd_usage} >> fi flag_count=1; >> case ${arg} in >> {{blah-blah}} >> ecas >> done >> >> >> > I think I see what your are saying. so to adapt it to my code > > > flag_count=0 > shift; while getopts :ugr: arg; do > flag_count + 1; > case ${arg} in > u) action="freebsd-update";; > g) action="freebsd-upgrade";; > r) action="freebsd-rollback";; > ?) exerr ${cmd_usage};; > esac; done; shift $(( ${OPTION} -1 )) > > > if flag_count gt 3; then > exerr ${cmd_usage} > fi > > > I think I got the concept correct, but the flag_count + 1 is not correct. I > get "flag_count: not found" when I run it this way. You could use: flag_count=`expr $flag_count + 1` or... ...anyone else? These types of open-ended questions are always fun :) -Brandon ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: .sh & getopts
In the last episode (Jun 05), Brandon Gooch said: > On Sat, Jun 5, 2010 at 6:20 PM, Aiza wrote: > > Robert Bonomi wrote: > >>> From: Aiza > >>> Robert Bonomi wrote: > > From: Aiza > > > > Have this code > > > > shift; while getopts :ugr: arg; do case ${arg} in > > u) action="freebsd-update";; > > g) action="freebsd-upgrade";; > > r) action="freebsd-rollback";; > > ?) exerr ${cmd_usage};; > > esac; done; shift $(( ${OPTION} -1 )) > > > > > > flag_count=0 > > shift; while getopts :ugr: arg; do > > flag_count + 1; > > case ${arg} in > > u) action="freebsd-update";; > > g) action="freebsd-upgrade";; > > r) action="freebsd-rollback";; > > ?) exerr ${cmd_usage};; > > esac; done; shift $(( ${OPTION} -1 )) > > > > > > if flag_count gt 3; then > > exerr ${cmd_usage} > > fi > > > > > > I think I got the concept correct, but the flag_count + 1 is not correct. I > > get "flag_count: not found" when I run it this way. > > You could use: > > flag_count=`expr $flag_count + 1` /bin/sh can do math on its own: flag_count=$((flag_count+1)) -- 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: hal-0.5.14_7 to _8 upgrade problem
n dhert writes: > But is there a workarround somehow in case I DO need to specify options > different from the default ?? > I'd really want to know that, for in case ... "cd /usr/ports/x11/kdebase4 && make config" This is covered in "man ports". ___ 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: which is the basic differences between the shells?
On Sat 05 Jun 2010 at 16:24:36 PDT Alejandro Imass wrote: On Sat, Jun 5, 2010 at 6:35 PM, Giorgos Tsiapaliokas wrote: hello, i am coming from the linux world where i was using the bash shell but i found out that there are also much more. can u tell me the basic differences between them?(pros and cons) Too broad a topic I suspect fo u to get an answer here. In FBSD the base system is completely separate from the applications, that is really great because for example your system upgrades are independendent of applications / ports. The base shell is in the base system so don't replace the shell for the root user but rather start bash from your root account if you wish. This will make sense when your system breaks in an upgrade for example. For everything else you can safely use bash and choose bash for your normal users. I use bash all the time even for root, but in the latter case I start it manually. Definitely too broad a topic for a mailing list. Probably the best way to approach it is to look first at the Bourne shelli (sh), which probably has the smallest and simplest set of features. The C shell (csh) is, as the name suggests, more like the C programming language. It was developed at UC Berkeley, and thus has always had a close association with BSD. One of the major innovations introduced by the C shell is *history*. tcsh is an enhanced but completely compatible version of csh. The Korn shell (ksh) combined many features from the C shell with the functionality of the Bourne shell. Among the many new features introduced by the Korn shell are pattern-based variable substitution, e.g. ${varname%%pattern}. Bash picks up where the Korn shell leaves off, and adds even more features. More features usually means increased size and sometimes slower execution. In fact, if you look at the manpage for bash, the first sentence in the last section ("BUGS") is a frank admission that "It's too big and too slow." It's also too GPL-encumbered for many BSD folk. You can get many of the same features in a lighterweight package, with a friendlier license, by going with one of the Korn shells instead. I've been using shells/mksh from ports after having it recommended to me in the forums, and I've been very satisfied with it. ___ 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: .sh & getopts
/bin/sh can do math on its own: flag_count=$((flag_count+1)) I want to know if more that one flag has been coded on the command. So add 1 to counter if that flag was processed. After all the flags are processed and fall out of getopts, then check flag counter for value. Ok I coded like this shift; while getopts biugrs: arg; do case ${arg} in b) action="buildworld"; $flag_count=$((flag_count+ i) action="installworld"; $flag_count=$((flag_count+1));; u) action="freebsd-update"; $flag_count=$((flag_count+1));; g) action="freebsd-upgrade"; $flag_count=$((flag_count+1));; r) action="freebsd-rollback"; $flag_count=$((flag_count+1));; s) ezjail_sourcetree=${OPTARG}; $flag_count=$((flag_count+1));; ?) exerr ${usage_update};; esac; done; shift $(( ${OPTIND} - 1 )) testing with 4 different flags on the command so should match here. if $flag_count = 4; then echo "yes 4 count" fi exerr "hard stop" When it runs I get this =1: not found 0=1: not found 0=1: not found 0=1: not found 0: not found hard stop What is still wrong here ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
port config screen TAB
When installing of upgrading ports you can be presented with a blue configuration screen and use arroys keys and TAB to move arround. Now I have the problem that these keys no longer work... e.g. TAB doesn't jump to the OK button, but just moves the cursor 8 positions to the right. This is on the console of the FBSD system as root rebooting doesn't help This hasn't happened before (system in use 1,5 years) How come and how to remedy? ___ 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: .sh & getopts
On 06/05/2010 10:56 PM, Aiza wrote: >i) action="installworld"; $flag_count=$((flag_count+1));; > ... > What is still wrong here Bourne shell expands variables to their contents before evaluating. Thus, the above assignment ends up expanding to '0=1'. Leave out the $ on the target variable, and it becomes 'flag_count=1', which is more likely what you intended. The other syntax does make for some pretty nifty hacks, though. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://.fur.com/peace/ ___ 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: .sh & getopts
CyberLeo Kitsana wrote: On 06/05/2010 10:56 PM, Aiza wrote: i) action="installworld"; $flag_count=$((flag_count+1));; ... What is still wrong here Bourne shell expands variables to their contents before evaluating. Thus, the above assignment ends up expanding to '0=1'. Leave out the $ on the target variable, and it becomes 'flag_count=1', which is more likely what you intended. i) action="installworld"; flag_count=$((flag_count+1));; But when tested it just put 1 into flag_count. it is not adding one to the value all ready in flag_count. Stilling missing the point here I want to perform math here. if more than one flag is coded them I want the count to increase by 1 for each flag on the command, not change the contents of the count to 1. Again take note this is .sh shell type. ___ 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: .sh & getopts
Aiza wrote: CyberLeo Kitsana wrote: On 06/05/2010 10:56 PM, Aiza wrote: i) action="installworld"; $flag_count=$((flag_count+1));; ... What is still wrong here Bourne shell expands variables to their contents before evaluating. Thus, the above assignment ends up expanding to '0=1'. Leave out the $ on the target variable, and it becomes 'flag_count=1', which is more likely what you intended. i) action="installworld"; flag_count=$((flag_count+1));; But when tested it just put 1 into flag_count. it is not adding one to the value all ready in flag_count. Stilling missing the point here I want to perform math here. if more than one flag is coded them I want the count to increase by 1 for each flag on the command, not change the contents of the count to 1. Again take note this is .sh shell type. shift; while getopts :ugr: arg; do case ${arg} in u) action="freebsd-update";; g) action="freebsd-upgrade";; r) action="freebsd-rollback";; ?) exerr ${cmd_usage};; esac; done; shift $(( ${OPTION} -1 )) doing more testing if found that the above $(( ${OPTION} -1 )) subtraction is not work either. echo "OPTION = $OPTION" shows a value of 5, which is the 4 flags plus the leading parm. I thought $(( ${OPTION} -1 )) meant it was subtracting 1 from the parm count which should make it 4 which is the number of flags i passed. ___ 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: why so many errors with ports??
On 6 jun 2010, at 00:39, Giorgos Tsiapaliokas wrote: hello, i am coming from the linux world i was a gentoo user and i have install on my second machine FBSD,i have made many formats but every time i try to install a graphical enviroment (such as xfce,kde) many many errors come up. i have heard that the ports are more stable than portage but with portage i didn't have so many errors (actually i can't recall a time when portage "died") am i doing sth wrong or ports comes up with many errors?? P.S.: 1 week not i haven't manage to install a graphical enviroment thanks in advance __ I had lots of problems updating my ports due to the change in libgmp. According to the UPDATE file in /urs/ports portupgrade would automatically take care of it, however it didn't. Not sure if related to the OP's question, but maybe worth mentioning. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"