Re: regex question....
On Sat, 4 Dec 2010 20:32:57 -0800 Gary Kline kl...@thought.org wrote: On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote: Also, the + operator means '1 or more' but needs escaped: %s/[0-9]\+/foo/g Okay. I thought that the + must be perl-only regex... . It's from Extended REs rather than perl specifically, it works with sed -E but not plain sed. Not sure about vi. ___ 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: regex question....
In freebsd-questions Digest, Vol 339, Issue 11, Message: 30 On Sat, 4 Dec 2010 18:23:08 -0800 Gary Kline kl...@thought.org wrote: On Sat, Dec 04, 2010 at 05:56:59PM -0800, per...@pluto.rain.com wrote: Joshua Gimer jgi...@gmail.com wrote: On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline kl...@thought.org wrote: I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g Why not just %s/[0-9]*/foo/g Too broad -- it will match the null string. (* means zero or more instances of whatever preceded it.) Best RE I know for integers is [1-9][0-9]* (or replace the 1 with a 0 if the strings in question might have leading zeros). YES, and Perry get an A+; the numbers do start with 1; no leading 0's. Except 0 itself? :) You originally specified ints from 0 to some N. I think you want either [0-9][0-9]* or just [0-9]+ (one or more digits) cheers, Ian ___ 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: regex question....
On Sun, Dec 05, 2010 at 07:56:30PM +1100, Ian Smith wrote: In freebsd-questions Digest, Vol 339, Issue 11, Message: 30 On Sat, 4 Dec 2010 18:23:08 -0800 Gary Kline kl...@thought.org wrote: On Sat, Dec 04, 2010 at 05:56:59PM -0800, per...@pluto.rain.com wrote: Joshua Gimer jgi...@gmail.com wrote: On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline kl...@thought.org wrote: I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g Why not just %s/[0-9]*/foo/g Too broad -- it will match the null string. (* means zero or more instances of whatever preceded it.) Best RE I know for integers is [1-9][0-9]* (or replace the 1 with a 0 if the strings in question might have leading zeros). YES, and Perry get an A+; the numbers do start with 1; no leading 0's. Except 0 itself? :) You originally specified ints from 0 to some N. I think you want either [0-9][0-9]* or just [0-9]+ (one or more digits) cheers, Ian Well, sorry, this is part of my text-to-speech stuff and I admit to be stuck in C. [Heart-throb.] It was late last August when we were all sweltering and I mentioned having had a file of 130 :abbrvs that fit vi. Somebody said that he would like to see my list and a search couldn't find it. I did find lists of the top-N most frequently used words in English, but the rest of it was gone. I Spent a few hours today re-creating the abbreviations as they were back in the late 90's. Back then I was interested in saving my keystrokes. So that I might type: i wll kEp trak v m hrs evry wk. and vi would translate that to I will keep track of my hours every week. Overall, tests found that clever abrevs would save around 31% if you learns ~130 words. Now my goal is to output words that festival and ktts will turn into sounds. This will let me use homonyms, since the output will be spoken rather than read. So thr taking thr stuf ovr the. would translate to: They're taking their stuf over there. Anybody interested in this, please take it Off-Line, okay. And thax for yer regex help :-) gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.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: printer recommendations?
On 12/05/10 03:25, John Levine wrote: My printer is a sturdy old Lexmark Optra T610. CUPS has a driver, which does duplex, N-up, and so forth. Each toner cartridge is good for over 10K pages, so I buy one about every two years, and I can usually find one for $100, making the per page cost very low. Lexmarks are very badly designed (but very slowly getting better ergonomically), expensive to run, and crap themselves with generic toner. ... So, just to be clear, you're telling me that I am imagining the fact that my printer has worked reliably for ten years? You got galactically lucky. I can believe that Lexmark has made bad printers, but if you can still find an Optra T, they're great. Having recently spent some time in a place where I fixed Lexmarks on a regular basis I'd find that very had to believe. I'd steer clear of any Lexmark printer, but the T's were the biggest white elephant I've ever come across- and I have worked on just about every make known. I'd repair around 100 a week, and many I'd seen the previous week with a different error. The error codes are enigmatic, and the repair procedures (by Lexmark themselves) have no clue as to what is really happening. You just get used to whats what and fix it. And that was just recent experience. My longer term experience shows me that this is not an age related problem but an inherent lack of experience in building printers. IBM make computers- they make very shit printers, but they were tired of losing to the competition who were good at making printers, so they decided to throw their hat in the ring as well. Quality wise they don't even rate either. I'd say Xerox, HP, Canon are competitive- at the higher end are good photo laser. Kyocera, HP make the most durable and reliable workgroup class- Kyocera offer a cheaper rate than any. Oki... not entirely sure. They used to make cheap photocopiers which were reasonable. Canon and Kyocera SOHO personal lasers are neck and neck. The rest are so so. But by far my worst experience has been pretty much anything with Lexmark on it- ink or laser. Inkjets its between Epson and Canon, Epson are good to OSS and Canon are cheap to run. Epson definitely produce a better photo though. But an Epson laser is very expensive to fix. I have a Samsung colour laser which I had some driver issues with (but got it working very well now), and I've used Canon inkjets and Xerox personal lasers. I am a tech and I know what runs and what the monthly output ratings are, as well as service counters. The monthly output of a workgroup Lexmark is not even a third of the Kyocera SOHO laser- that should tell you something: 100,000 pages a month for a Kyocera 1020D (personal/SOHO), compared to 30,000 for a Lexmark T630 (workgroup). Ridiculous to think they'd even compete! Plus the Kyocera is around $500-600 compared to $3000 for Lexmark? I've seen the Lex get replaced by 2 1020D's- redundancy and duplexing for 1/3 the price! Not even a second thought... Good luck to you, but I wouldn't bother looking to repair the T610... ___ 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: printer recommendations?
On 4 Dec 2010 17:25:34 - John Levine jo...@iecc.com wrote: My printer is a sturdy old Lexmark Optra T610. CUPS has a driver, which does duplex, N-up, and so forth. Each toner cartridge is good for over 10K pages, so I buy one about every two years, and I can usually find one for $100, making the per page cost very low. Lexmarks are very badly designed (but very slowly getting better ergonomically), expensive to run, and crap themselves with generic toner. ... So, just to be clear, you're telling me that I am imagining the fact that my printer has worked reliably for ten years? I can believe that Lexmark has made bad printers, but if you can still find an Optra T, they're great. Yeah, but perhaps they don't work as well in the Queensland sun? South of the border, some say the same can be said of people :-) R's, John cheers, Ian ___ 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: gpt zfs booting - loader takes 25s
On Tue, 30 Nov 2010 17:08:03 -0800 mer...@stonehenge.com (Randal L. Schwartz) wrote: I imagine something high-up in the kernel is asking the ZFS for the first block of a file, and only at that point does all the paperwork processing for consistency check come into play, so there are no messages, just a pause. It seems you're right: I checked and the HDD light is permanently on during the pause. -- 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: portupgrade causes kernel message: maxproc limit exceeded by uid 0
Yuri y...@rawbw.com writes: Beginning at some time less than 1 month ago I started getting such message. Increasing maxproc doesn't help. Current values are like this: kern.maxproc: 6164 kern.maxprocperuid: 5547 What may be causing such condition? limits(1), perhaps? ___ 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: regex question....
Joshua == Joshua Gimer jgi...@gmail.com writes: Joshua On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline kl...@thought.org wrote: I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g Joshua Why not just %s/[0-9]*/foo/g Because that would turn a line of fred into foofred. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ 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: regex question....
Gary == Gary Kline kl...@thought.org writes: Gary %s/[1-0][0-9]*/foo/g Except 1-0 is an empty set. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ 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
Need to compile kernel for 2 or more processors?
Hello all. I hope this question does not sound so stupid. I am sorry in advance. I am doing my guideline of the activities I need to do to change an old 2 processors INtel 386 machine with 1GB of ram and 30GB of hard disk. The machine is working fine but after more than 10 years of working will be replaced for a new machine (could be an i3, i7, or xeon maybe). This one will be honored and will continue working as our secondary DNS. Actually is running Freebsd version 7.3 PRERELEASE . I will updated to 7.3 RELEASE. This machine has 2 physical processors and I remember that on old version of FreeBSD I have to compile the kernel so the second processor could be seen. I still do not know aht processor will be but I am looking for the strongest and cheapest combination of motherboard and processor. Anyway, I was wondering, if it is only one physycal processor with 2-4 embedded (xeon by exmaple) I guess that actually we do not have to change the kernel so all processors can be seen? Am I right ? By the way, if you can suggest based on experience the best combination on price performance of motherboard/processor to follow (not necessary the latest one) please let me know. Thanks in advance Jorge Biquez ___ 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: Need to compile kernel for 2 or more processors?
On Sun, Dec 5, 2010 at 12:39 PM, Jorge Biquez jbiq...@intranet.com.mxwrote: Hello all. I hope this question does not sound so stupid. I am sorry in advance. I am doing my guideline of the activities I need to do to change an old 2 processors INtel 386 machine with 1GB of ram and 30GB of hard disk. The machine is working fine but after more than 10 years of working will be replaced for a new machine (could be an i3, i7, or xeon maybe). This one will be honored and will continue working as our secondary DNS. Actually is running Freebsd version 7.3 PRERELEASE . I will updated to 7.3 RELEASE. This machine has 2 physical processors and I remember that on old version of FreeBSD I have to compile the kernel so the second processor could be seen. I still do not know aht processor will be but I am looking for the strongest and cheapest combination of motherboard and processor. Anyway, I was wondering, if it is only one physycal processor with 2-4 embedded (xeon by exmaple) I guess that actually we do not have to change the kernel so all processors can be seen? Am I right ? By the way, if you can suggest based on experience the best combination on price performance of motherboard/processor to follow (not necessary the latest one) please let me know. Thanks in advance Jorge Biquez IIRC, FreeBSD7+ kernels are compiled w/ SMP already, atleast I know my FBSD7.3 box is compiled w/ it and it's been that way since I installed it like 3 years ago. Multicore CPU's are realistically cheap, Dual and Quad Core CPU's would run you somewhere between $50-$100 in the U.S. Now as for a Multi-Core/Multi-CPU setup, that would cost you considerably more. Especially if you want more then 2 Multi-Core CPU's. pricewatch.com is a great place to judge prices (again, in the U.S.) HTH, 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
can't mount root during freebsd-update 7.0 - 8.1 on amd64
Hi I'm trying to upgrade a amd64 box from 7.0-RELEASE to 8.1-RELEASE with freebsd-update. After the first reboot the 8.1R GENERIC kernel loads (I'm using a custom kernel, so at this point the generic kernel is loaded manually) It then claims it can't mount / One thing that's odd is that instead of finding ad4s1a it finds ad4a. Same for the other filesystems. It however can't find init on this device. Did I miss something important in src/UPDATING? Thanks Joost Bekkers ___ 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: regex question....
Quoth Polytropon on Sunday, 05 December 2010: PS: See, this is why I keep cheatsheets. ;) That's the fat green book on my shelf. :-) For regex reference, I find this site helpful: http://www.regular-expressions.info/reference.html ... especially regarding differences between regex flavors: http://www.regular-expressions.info/refflavors.html -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpms9ZoJvuTa.pgp Description: PGP signature
Re: regex question....
Quoth RW on Sunday, 05 December 2010: On Sat, 4 Dec 2010 20:32:57 -0800 Gary Kline kl...@thought.org wrote: On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote: Also, the + operator means '1 or more' but needs escaped: %s/[0-9]\+/foo/g Okay. I thought that the + must be perl-only regex... . It's from Extended REs rather than perl specifically, it works with sed -E but not plain sed. Not sure about vi. ___ 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 For me in works in vim but not in vi. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpe9zQnpg2UF.pgp Description: PGP signature
Any work to update the RealTek Drivers?
Is there any work going on with the RealTek drivers? The RealTek devices I am using support a 9k MTU but the code limits the MTU to the default. Over gigabit, a larger MTU is desirable. Specifically, on one of several machines I am using: re0: RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet port 0xde00-0xdeff mem 0xfbcff000-0xfbcf,0xfbcf8000-0xfbcfbfff irq 16 at device 0.0 on pci7 re1: RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet port 0xce00-0xceff mem 0xfbaff000-0xfbaf,0xfbaf8000-0xfbafbfff irq 17 at device 0.0 on pci8 Trying to set the MTU: btw# ifconfig re1 mtu 4096 ifconfig: ioctl (set mtu): Invalid argument Looking at the source sys/dev/re/if_re.c /*- * Copyright (c) 1997, 1998-2003 * Bill Paul wp...@windriver.com. All rights reserved. (snip) case RL_HWREV_8168CP: case RL_HWREV_8168D: case RL_HWREV_8168DP: sc-rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD; /* * These controllers support jumbo frame but it seems * that enabling it requires touching additional magic * registers. Depending on MAC revisions some * controllers need to disable checksum offload. So * disable jumbo frame until I have better idea what * it really requires to make it support. * RTL8168C/CP : supports up to 6KB jumbo frame. * RTL8111C/CP : supports up to 9KB jumbo frame. */ sc-rl_flags |= RL_FLAG_NOJUMBO; break; ___ 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: can't mount root during freebsd-update 7.0 - 8.1 on amd64
2010/12/5 jo...@jodocus.org: Hi I'm trying to upgrade a amd64 box from 7.0-RELEASE to 8.1-RELEASE with freebsd-update. After the first reboot the 8.1R GENERIC kernel loads (I'm using a custom kernel, so at this point the generic kernel is loaded manually) It then claims it can't mount / One thing that's odd is that instead of finding ad4s1a it finds ad4a. Same for the other filesystems. It however can't find init on this device. Did I miss something important in src/UPDATING? Thanks Joost Bekkers ___ 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 Here : http://ivoras.sharanet.org/freebsd/freebsd8.html GEOM_PART becomes the default slicer Status: Committed to -CURRENT Will appear in 8.0: sure Author: Marcel Moolenaar others Web: commit message GEOM_PART (gpart) is a new GEOM partition class (slicer) and utility that rolls up support for many partitioning formats (MBR, BSD, GPT etc.) into a single code base. NOTE: Caveat when upgrading! GEOM_PART might interpret existing partition tables (especially if many operating systems are present - multi boot) differently than the previous classes. Your devices might get renamed. NOTE: Some old utilities like bsdlabel may not work if the kernel doesn't include GEOM_BSD and other old slicer classes. In other words, bsdlabel et al don't work with GEOM_PART. Maybe you're encountering this trouble right now. what I would advise you is using labels. Please do the following : tunefs -L root /dev/ad4a tunefs -L var /dev/ad4e (assuming it's e on your system ?) and for usr, tmp, etc ... From a fixit environment. then edit your /etc/fstab and place /dev/ufs/root /dev/ufs/var instead of hardcoding the device node. Cheers, -- Demelier David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: regex question....
On Sun, Dec 05, 2010 at 09:37:58AM -0800, Randal L. Schwartz wrote: Gary == Gary Kline kl...@thought.org writes: Gary %s/[1-0][0-9]*/foo/g Except 1-0 is an empty set. :) Ya, sure, you-betcha! I really did mean a '9'there. For some reason, what I'm thinking sometimes fails to get translated into what I type. Like my fingers have a mind of their o wn... I do Not watch the display; just the keybd. .. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.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: regex question....
On Sun, Dec 05, 2010 at 10:11:34AM -0800, Chip Camden wrote: Quoth Polytropon on Sunday, 05 December 2010: PS: See, this is why I keep cheatsheets. ;) That's the fat green book on my shelf. :-) For regex reference, I find this site helpful: http://www.regular-expressions.info/reference.html ... especially regarding differences between regex flavors: http://www.regular-expressions.info/refflavors.html Ah, super. I google around until I find *something* that answers my question. YEsterday, I thought it [1-9][0-9] was simple enough. Blah *3 But rather than _find_ my regex books, stand up and take them, and search thru them... Much easier to ask the wisdom of this list. I have another question or three about vi, nvi or vim. But I'll start another post rather than hijack this on e. (Besides, my drive is starting to tilt it is so full of electrons) -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 7.97a release of Jottings: http://jottings.thought.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
syslogd not writing to file?
Hi, I've got a weird problem that might be a bug with the 64bit RELEASE edition of FreeBSD 8.0. The issue is this: I provisioned 2 servers on two separate networks; one a 32bit system and the other a 64bit in order to log information coming from Cisco network equipment. The 32bit build works perfectly using the config below, however the 64bit version won't write the files as needed??? The /etc/syslog.conf file looks as such: # $FreeBSD: src/etc/syslog.conf,v 1.30.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # #Spaces ARE valid field separators in this file. However, #other *nix-like systems still insist on using tabs as field #separators. If you are sharing this file between systems, you #may want to use only tabs as field separators here. #Consult the syslog.conf(5) manpage. +Zeta-Ray.optiplex-networks.com *.err;kern.warning;auth.notice;mail.crit/dev/console *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages security.*/var/log/security auth.info;authpriv.info/var/log/auth.log mail.info/var/log/maillog lpr.info/var/log/lpd-errs ftp.info/var/log/xferlog cron.*/var/log/cron *.=debug/var/log/debug.log *.emerg* # uncomment this to log all writes to /dev/console to /var/log/console.log #console.info/var/log/console.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work #*.*/var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.*@loghost # uncomment these if you're running inn # news.crit/var/log/news/news.crit # news.err/var/log/news/news.err # news.notice/var/log/news/news.notice !ppp *.*/var/log/ppp.log !* +192.168.1.1 *.*/var/log/cisco857w.log !* +172.16.0.1 *.*/var/log/cisco1801w.log With the files having these permissions: -rw-r--r-- 1 root wheel0 Dec 5 17:02 cisco1801w.log -rw-r--r-- 1 root wheel0 Dec 5 19:32 cisco857w.log I also added these lines to the /etc/rc.conf file: syslogd_enable=YES #syslogd_flags=-d -b 192.168.1.120 -a 192.168.1.1/32:* -a 172.16.0.1/32:* -vv syslogd_flags= Using debugging by putting -d -vv within the comments of the last line I was able to see information get transferred to my server from the devices in question, however the FILE parameter was never specified meaning that nothing was getting written to the files created. The 32bit build works perfectly on a different network with the same config just different device IP's. The system hasn't had any packages updated though unlike the 64bit edition which might interfere with the build somehow. I also run BSD Jails on the 64bit server too so I don't know if something from that part is affecting things? It's a very odd problem and I don't know if anyone can give me any insight into this? I mean information is getting to the server as I can see it while running the debug with the -d -vv flags set in place, however nothing is being written! Can anyone help or suggest anything? Thanks, Kaya ___ 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
ZFS
Hello List! I install FreeBSD 8.1 RELEASE to friend server. I use this cool wiki post. http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror But i don't know 2.2 point. (Install FreeBSD to zroot) Fixit# cd /dist/8.0-* no such directory Fixit# cd /dist/8.1-* no such directory thx ___ 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: ZFS
Gabor == Gabor Illo stagel...@gmail.com writes: Gabor Hello List! Gabor I install FreeBSD 8.1 RELEASE to friend server. I use this cool wiki post. Gabor http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror Gabor But i don't know 2.2 point. (Install FreeBSD to zroot) Gabor Fixit# cd /dist/8.0-* no such directory Gabor Fixit# cd /dist/8.1-* no such directory What did you boot? I used a full release disk, and it worked fine. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ 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: ZFS
On Monday 06 of December 2010 00:33:48 Gabor Illo wrote: Hello List! I install FreeBSD 8.1 RELEASE to friend server. I use this cool wiki post. http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror But i don't know 2.2 point. (Install FreeBSD to zroot) Fixit# cd /dist/8.0-* no such directory Fixit# cd /dist/8.1-* no such directory thx ___ 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 As far as I can see, the correct command is Fixit# cd /8.1-RELEASE and then do the rest as described in the article. Regards Elias ___ 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: ZFS
On Monday 06 of December 2010 00:33:48 Gabor Illo wrote: Hello List! I install FreeBSD 8.1 RELEASE to friend server. I use this cool wiki post. http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror But i don't know 2.2 point. (Install FreeBSD to zroot) Fixit# cd /dist/8.0-* no such directory Fixit# cd /dist/8.1-* no such directory thx ___ 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 Sorry, my mistake... I used cd without the / when I was in the dist directory... So I cannot see why it does not work for you... What disk are you trying to use? Is it the official DVD? Regards Elias ___ 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: can't mount root during freebsd-update 7.0 - 8.1 on amd64
David DEMELIER demelier.da...@gmail.com wrote: Here : http://ivoras.sharanet.org/freebsd/freebsd8.html GEOM_PART becomes the default slicer Status: Committed to -CURRENT Will appear in 8.0: sure Author: Marcel Moolenaar others Web: commit message GEOM_PART (gpart) is a new GEOM partition class (slicer) and utility that rolls up support for many partitioning formats (MBR, BSD, GPT etc.) into a single code base. ... NOTE: Some old utilities like bsdlabel may not work if the kernel doesn't include GEOM_BSD and other old slicer classes. In other words, bsdlabel et al don't work with GEOM_PART. Does this mean that, in 8.1-RELEASE, bsdlabel/disklabel will not work with the GENERIC kernel (which includes GEOM_PART_GPT and GEOM_LABEL, but no other GEOM_ pieces AFAICT)? ___ 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: regex question....
On Sun, 2010-12-05 at 10:19 -0800, Chip Camden wrote: Quoth RW on Sunday, 05 December 2010: On Sat, 4 Dec 2010 20:32:57 -0800 Gary Kline kl...@thought.org wrote: On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote: Also, the + operator means '1 or more' but needs escaped: %s/[0-9]\+/foo/g Okay. I thought that the + must be perl-only regex... . It's from Extended REs rather than perl specifically, it works with sed -E but not plain sed. Not sure about vi. For me in works in vim but not in vi. In vi it requires setting the extended option which is unset by default - set all will display noextended. In POSIX extended REs '+' is a metacharacter so the expression for sed -E and vi with extended enabled is simply [0-9]+ (likewise for grep -E etc). It seems to be a gnuism that an escaped + works in basic REs, so it works in grep, gnu sed (gsed) etc. -- Wayne ___ 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
Can a home LAN server use a jail as a router?
Hello. Is it possible to use FreeBSD to create three jails on one box, so that one jail can be a router to the internet, and the other two can be webservers? I wanted to create an environment where if one webserver got compromised, the other webserver would be unaffected. I have old hardware, so I do not have hardware VT in the chip. I thought I previously read that a jail could only have 1 NIC, but I have not been able to confirm that. That would spoil my router plan, if true. I'm more familiar with Linux than FreeBSD, but Linux seems to be moving from Xen towards KVM (which requires VT). I could use Xen, probably on Debian if I did. Xen seems to require a specially built Linux kernel on Debian, and I'm not sure I like that. I'd also like to set up a personal samba file-server, but I'm deathly afraid the machine would get hacked while wired to the net. So I would also like to make a jail to be a samba server. All these jails are predicated on one of them being able to act as a router between the internet and my home LAN. I want some jails to talk the internet (via the router jail), and some jails to only be available in my house. ___ 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: Can a home LAN server use a jail as a router?
On 12/06/10 12:29, Xn Nooby wrote: Hello. Is it possible to use FreeBSD to create three jails on one box, so that one jail can be a router to the internet, and the other two can be webservers? I wanted to create an environment where if one webserver got compromised, the other webserver would be unaffected. I have old hardware, so I do not have hardware VT in the chip. I thought I previously read that a jail could only have 1 NIC, but I have not been able to confirm that. That would spoil my router plan, if true. I'm more familiar with Linux than FreeBSD, but Linux seems to be moving from Xen towards KVM (which requires VT). I could use Xen, probably on Debian if I did. Xen seems to require a specially built Linux kernel on Debian, and I'm not sure I like that. I'd also like to set up a personal samba file-server, but I'm deathly afraid the machine would get hacked while wired to the net. So I would also like to make a jail to be a samba server. All these jails are predicated on one of them being able to act as a router between the internet and my home LAN. I want some jails to talk the internet (via the router jail), and some jails to only be available in my house. ___ 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 You can have more than one IP, but the actual config of specific NICs is done by the host. As for being a router I don't know- I'm not sure you can access the sysctl needed, or whether the sysctl will affect the host (and therefore other services and jails). And thirdly I'm not sure of the validity of it. Jail your services and run a firewall (pf?) on the host. That will control who can get to what, and allow you to 'route' your network the way you want to. I'm sure someone else could point out any security flaws in this scenario, but it should do what you want and be relatively secure. I'd be reading up on Jails and understanding exactly what they are and what they are not too. They aren't actual 'emulators' per se, they are more a locked up chroot system. Make sure that is exactly what you want/need. HTH ___ 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
-- Could NOT find XMMS: the nowplaying dataengine will NOT support XMMS 1.x
Build of kdebase4-workspace claims: -- Could NOT find XMMS: the nowplaying dataengine will NOT support XMMS 1.x I have the xmms port installed and I rebuilt kdelibs. Why won't it see it? -- System Name: laptop2.StevenFriedrich.org Hardware:2.80GHz Intel Pentium 4 (HTT) with 2 GB memory OS version: FreeBSD 8.1-RELEASE-p2 i386 (5.1 MB kernel) Window Manager(s): kde4-4.5.4 X Window System: xorg-7.5X.Org X Server 1.7.5 ___ 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: -- Could NOT find XMMS: the nowplaying dataengine will NOT support XMMS 1.x
On Sun, Dec 5, 2010 at 11:46 PM, Steven Friedrich free...@insightbb.comwrote: Build of kdebase4-workspace claims: -- Could NOT find XMMS: the nowplaying dataengine will NOT support XMMS 1.x I have the xmms port installed and I rebuilt kdelibs. Why won't it see it? xmms or xmms2? IIRC, xmms was discontinued a long time ago lol ___ 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: Need to compile kernel for 2 or more processors?
On 5 December 2010 12:39, Jorge Biquez jbiq...@intranet.com.mx wrote: Hello all. Hello. I hope this question does not sound so stupid. I am sorry in advance. Well, that's life. I guess that actually we do not have to change the kernel so all processors can be seen? Am I right ? http://svn.freebsd.org/viewvc/base/releng/7.3/sys/i386/conf/GENERIC?revision=203736view=markup or http://tinyurl.com/28km4fc shows that --- # To make an SMP kernel, the next two lines are needed options SMP # Symmetric MultiProcessor Kernel device apic# I/O APIC --- is part of GENERIC on 7.3, ergo you needn't recompile to enjoy multiple processing joy in all(most of) its glory. HTH -- -- ___ 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 trace /dev/gpt/label to adaX to conroller?
On 8 November 2010 12:19, Peter fb...@peterk.org wrote: iH, Is there any easy straight forward way to trace my /dev/gpt/data.zfs disk to what ada device it is, and on what controller? I've traced it manually by doing a gpart list adaX |grep data.zfs on each adaX device, then somehow I found out what controller it is on [I think by manually looking at serial number of the disk, and tracing cables]. This was easy when I had 2 disks, but now I have 4, and figure there could be an easier way instead of doing a 'for i' loop on each adaX device, tracing cables, etc. FreeBSD 8-STABLE if it makes a difference. ]Peter[ I'm prolly doing something wrong. Variations on # gpart list do you any good? -- -- ___ 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
Qmail installation
I installed Qmail according to this tutorial http://www.unixmexico.org/files/html/qmail-how-to/qmail-how-to.html . It was succesful. Now I would like to install the rest of the related application like vqadmin, vpopmail, courier IMAP etc. Please give me a link to some good 'how to' or tutorail. -- Regards Basil Kurian http://basilkurian.tk RSA Public key : gpg --keyserver pgp.mit.edu --recv-keys 41005549 ___ 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: can't mount root during freebsd-update 7.0 - 8.1 on amd64
Andrey V. Elsukov bu7c...@yandex.ru wrote: NOTE: Some old utilities like bsdlabel may not work if the kernel doesn't include GEOM_BSD and other old slicer classes. In other words, bsdlabel et al don't work with GEOM_PART. Does this mean that, in 8.1-RELEASE, bsdlabel/disklabel will not work with the GENERIC kernel (which includes GEOM_PART_GPT and GEOM_LABEL, but no other GEOM_ pieces AFAICT)? No, It doesn't. You can create partitions with fdisk/bsdlabel. They do write directly to device and this does initiate tasting. And GPART detects created partitions. Thanks, that's what I had hoped (but had noticed a few things lately that had me wondering whether they might perhaps not be working entirely _correctly_ -- I need to do some more experimentation). The next question then is, when _does_ the kernel need to include added options like GEOM_BSD and/or GEOM_PART_BSD? ___ 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: can't mount root during freebsd-update 7.0 - 8.1 on amd64
On 06.12.2010 10:22, per...@pluto.rain.com wrote: Thanks, that's what I had hoped (but had noticed a few things lately that had me wondering whether they might perhaps not be working entirely _correctly_ -- I need to do some more experimentation). The next question then is, when _does_ the kernel need to include added options like GEOM_BSD and/or GEOM_PART_BSD? GEOM_BSD is deprecated in FreeBSD 8.x+ and should not be included. GEOM_PART_BSD is already included in DEFAULTS config. -- WBR, Andrey V. Elsukov signature.asc Description: OpenPGP digital signature
Archiving directories / zip format
Dear all, From time to time I want to archive a quite a few directories to download them conveniently. I have been using tar to do it, endingin up with a tar.gz file. But the problem with it is that I do not have a unix machine at home so if I want to extract something or unpack the content, there is no easy way to do that. My question basically is if there is a way to end up with a zip file? Or are there any windows tools to unzip and/or extract content from tar.gz files? Many thanks in advance! Zbigniew Szalbot ___ 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: Archiving directories / zip format
On Mon, 6 Dec 2010 08:17:17 +0100, Zbigniew Szalbot zszal...@gmail.com wrote: Dear all, From time to time I want to archive a quite a few directories to download them conveniently. I have been using tar to do it, endingin up with a tar.gz file. But the problem with it is that I do not have a unix machine at home so if I want to extract something or unpack the content, there is no easy way to do that. My question basically is if there is a way to end up with a zip file? You can install the zip program: # pkg_add -r zip and then use it recursively, e. g. % zip -r9 stuff.zip dir1 dir2 dir3 fileX fileY If there is no need for compression, change 9 to 0. Also see man zip for details. Or are there any windows tools to unzip and/or extract content from tar.gz files? There should be a TAR.EXE program, at least it existed as an addition to DOS. I'm not sure this exists for Windows, or if you need some additional program for that. -- 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