Re: Search Replace Issue
in message [EMAIL PROTECTED], wrote Josh Paetzel thusly... On Saturday 23 December 2006 21:29, Jack Stone wrote: Appreciate a tip on how to search replace hundreds of *.htm files: From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm Is -0777 really necessary (causes whole file to be stored in memory)? But that is not really the point of this reply. Above is a fine opportunity to use alternative delimiters (and to restrict the matching (only to link URLs)) ... perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' *.html ... in case of hundreds of *.htm, use xargs(1) pipeline ... find dir-of-HTML-files -type f -name '*.html' -print0 \ | xargs -0 perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' Feel free to change Perl version with sed (the version of sed with -i option[0]) one ... find ... \ | ... sed -i -e 's,\(href=\)http://www\.domain\.com,\1,g' [0] That makes this reply on point. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Replace Issue
OK, specifically, sed -e 's/http\:\/\/www\.domain\.htm\///g' *.htm *.htm The sed command processes files with some regexp stuff, this command removes the http://www.domain.htm/ from htms. NOTE: not sure if u have to use a '\' before that ':' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Message (Your message dated Sun, 24 Dec 2006 14:57:03...)
Your message dated Sun, 24 Dec 2006 14:57:03 +0300 with subject Returned mail: Data format error has been submitted to the moderator of the HARVEYPROJ list: [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looking for advice on NAS
You can do an implementation of NAS using FreeBSD with samba this works pretty well. If you want a simpler implementation you can use FreeNAS, http://www.freenas.org/ With drive prices so low, and RAID easily available, you can do a mirrored or mirrored stripped RAID array for redundancy. Doing backups depends on what type of backup media you want to use (tape, disk, etc.) and how much you will backup. More current RAID controllers support snapshots and backups directly through the controller. With any backup scenario though you need to choose the value of the data and data loss, then choose the backup/restore method that will work given the value and your budget. -Derek At 07:01 PM 12/22/2006, Peter Matulis wrote: I am currently setting up a FreeBSD box that is currently running some ugly kind of Linux (Mandrakelinux?). It currently has 350 GB of data residing in Samba shares so I am thinking about exporting storage to a NAS device. So I am looking for advice or comments on this move. I am attracted by a small form factor device but I also know about software that zombifies a normal PC into a NAS device (FreeBSD-based OpenNAS). Another issue is an eventual backup to another portable device. Does NAS allow for this? Any comments welcome. Peter __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portversion vs. pkg_version
Mr. Lee: imho, portversion(uses the INDEX file to look up port versions) is like the desktop search(searh an index file), and the pkg_version( queries the port versions directly) is like the find command(search the entire disk);) use portversion instead, it's efficient cause it use port database. however, it will take a long time using portsdb to update the database file (the INDEX file) when you want to use portversion. ps,i like your essays on GNU/Linux, LaTex, etc. and I gain a lot from them Sherry Zhang On 12/24/06, Edward G.J. Lee [EMAIL PROTECTED] wrote: Hi all, What's the difference between `portversion' and `pkg_version -I'? Thanks. Edward ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [ot] can I have an account on your host? (so that I can edit wikipedia)
hi,张�|武 imho. maybe you can use https instead if you can stand for the slow speed. but you'd better not do that for your safety:) btw, use tor to browse the wikipedia, there are several ways on how to edit wikipedia inside the great firewall. the great firewall is great! Sherry Zhang On 12/22/06, Fabian Keil [EMAIL PROTECTED] wrote: Girish Venkatachalam [EMAIL PROTECTED] wrote: On Fri, Dec 22, 2006 at 11:59:59AM +0800, ? wrote: Hello. I am from China and I'd like to contribute to wikipedia, but this is not easy / possible because we cannot access wikipedia from inland (the great firewall) and my usual method accesssing wikipedia (through ssh -L 80:en.wikipedia.org:80 my_server_in_german) can allow me to visit wikipedia but do not allow me to edit it (open proxy, your host IP address is detected to be belonging to a hosting company). Can I have an account on your host (or maybe not an account, any means let me access wikipedia from a host that is not in datacenter) so that I can go on editing wikipedia? I think you need tor Wikipedia doesn't allow edits coming from known Tor exit nodes. Fabian -- http://www.fabiankeil.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problems with UBUNTU mounting NFS share from FreeBSD
I've got a 4.11-STABLE FreeBSD machine that I'd like to provide NFS services to some UBUNTU 6.10 machines. I've put the following in /etc/exports: /usr /usr/local/www/data/pictures -alldirs-maproot=0 all When I try to mount this, I get: [EMAIL PROTECTED]:~# mount black:/usr /tmp/mnt mount: black:/usr failed, reason given by server: Permission denied And I see the following in dmesg on the FreeBSD machine: NFS request from unprivileged port (205.159.77.59:36731) nfsd send error 32 I thought that I rembered having to add an option to omethng (monthd ?) to allow it to prvide services on on privleged port, but the mountd man page does not seem to have such an option. How can I amke this work? -- Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portversion vs. pkg_version
On Sun, 24 Dec 2006 13:42:39 +0800 Edward G.J. Lee [EMAIL PROTECTED] wrote: Hi all, What's the difference between `portversion' and `pkg_version -I'? Probably not much. pkg_version is part of the base-system, portversion is one of the portupgrade package tools. Since portversion was created, pkg_version has I think acquired some new features blurring the distinction. Personally, I don't like to get version information from the INDEX file, I'd rather get an accurate answer, than a fast one. Another reason I don't like portversion is that it's forever asking me to run pkgdb. Aside from being a pain, it makes portversion unsuitable for use in scripts. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems with UBUNTU mounting NFS share from FreeBSD
stan [EMAIL PROTECTED] wrote: I've got a 4.11-STABLE FreeBSD machine that I'd like to provide NFS services to some UBUNTU 6.10 machines. I've put the following in /etc/exports: /usr /usr/local/www/data/pictures -alldirs-maproot=0 all When I try to mount this, I get: [EMAIL PROTECTED]:~# mount black:/usr /tmp/mnt mount: black:/usr failed, reason given by server: Permission denied And I see the following in dmesg on the FreeBSD machine: NFS request from unprivileged port (205.159.77.59:36731) nfsd send error 32 I thought that I rembered having to add an option to omethng (monthd ?) to allow it to prvide services on on privleged port, but the mountd man page does not seem to have such an option. How can I amke this work? From the man page for mountd: -n Allow non-root mount requests to be served. This should only be specified if there are clients such as PC's, that require it. It will automatically clear the vfs.nfsrv.nfs_privport sysctl flag, which controls if the kernel will accept NFS requests from reserved ports only. Alternatively, you can adjust the Ubuntu clients so they're trying to mount the drives as root from the assigned port. -Bill ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Replace Issue
From: Parv [EMAIL PROTECTED] To: Josh Paetzel [EMAIL PROTECTED] CC: Jack Stone [EMAIL PROTECTED], freebsd-questions@freebsd.org Subject: Re: Search Replace Issue Date: Sun, 24 Dec 2006 02:56:32 -0500 in message [EMAIL PROTECTED], wrote Josh Paetzel thusly... On Saturday 23 December 2006 21:29, Jack Stone wrote: Appreciate a tip on how to search replace hundreds of *.htm files: From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm Is -0777 really necessary (causes whole file to be stored in memory)? But that is not really the point of this reply. Above is a fine opportunity to use alternative delimiters (and to restrict the matching (only to link URLs)) ... perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' *.html ... in case of hundreds of *.htm, use xargs(1) pipeline ... find dir-of-HTML-files -type f -name '*.html' -print0 \ | xargs -0 perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' Feel free to change Perl version with sed (the version of sed with -i option[0]) one ... find ... \ | ... sed -i -e 's,\(href=\)http://www\.domain\.com,\1,g' [0] That makes this reply on point. - Parv Parv and all: Many thanks for these various tips and your time to make them! I usually use sed(1) myself, but for the life of me, I could not find a way to properly apply delimiters or syntax to get it to work. I was close, but no cigar! Too many slashes and commas I guess. Such a tool will indeed be a giant timesaver! Merry Xmas! All the best, Jack _ Get live scores and news about your team: Add the Live.com Football Page www.live.com/?addtemplate=footballicid=T001MSN30A0701 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portversion vs. pkg_version
Thanks, Sherry, On Sun, Dec 24, 2006, Sherry Zhang wrote: Mr. Lee: imho, portversion(uses the INDEX file to look up port versions) is like the desktop search(searh an index file), and the pkg_version( queries the port versions directly) is like the find command(search the entire disk);) But pkg_version -I use INDEX file too. use portversion instead, it's efficient cause it use port database. however, it will take a long time using portsdb to update the database file (the INDEX file) when you want to use portversion. If I run `pkg_version -v -I -L=', will fast then `portversion -v -L='. ps,i like your essays on GNU/Linux, LaTex, etc. and I gain a lot from them Thanks, I hope you like it.:) Edward ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portversion vs. pkg_version
On Sun, Dec 24, 2006, RW wrote: Personally, I don't like to get version information from the INDEX file, I'd rather get an accurate answer, than a fast one. Another reason I don't like portversion is that it's forever asking me to run pkgdb. Aside from being a pain, it makes portversion unsuitable for use in scripts. You are right. INDEX file will not allways up to date. Edward ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where are /usr/local/etc/rc.d init scripts run from?
On 12/23/06, Kevin Brunelle [EMAIL PROTECTED] wrote: I was unintentionally confusing in my answer. Sorry about that. If your startup script is in the old style, it will be handled by /etc/rc.d/localpkg when that is called during the boot process. That is ONLY if it's the old style. I should have mentioned that I'm running 5.4. I suspect you're talking about 6.X code, as some of what you're mentioning, I don't see on my system. Something to look forward to when I upgrade then. Thanks for the detail explanation. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portversion vs. pkg_version
On Sun, Dec 24, 2006 at 11:21:54PM +0800, Edward G.J. Lee wrote: On Sun, Dec 24, 2006, RW wrote: Personally, I don't like to get version information from the INDEX file, I'd rather get an accurate answer, than a fast one. Another reason I don't like portversion is that it's forever asking me to run pkgdb. Aside from being a pain, it makes portversion unsuitable for use in scripts. You are right. INDEX file will not allways up to date. Edward I have used both pkg_version and portversion. I perfer pkg_version. I use it in the following way: portsnap fetch portsnap update pkg_version -voIL'=' portsnap creates an index file faster than pkgdb...if you use it often. I like to portsnap once a week. otherwise use the pkg_verison without the 'I' -- Alexander FreeBSD 6.0-RELEASE i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
error when doing make installworld
Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! So I rebooted again into multi-user mode and here I tried the mergemaster -p but it failed with: === lib/libcom_err/doc (install) lockf -k /usr/share/info/dir install-info --quiet --defsection=Programming development tools. --defentry=* libcom_err: (com_err).A Common Error Description Library for UNIX. com_err.info /usr/share/info/dir install -o root -g wheel -m 444 com_err.info.gz /usr/share/info === lib/libcrypt (install) install -C -o root -g wheel -m 444 libcrypt.a /usr/lib install -C -o root -g wheel -m 444 libcrypt_p.a /usr/lib install -s -o root -g wheel -m 444 -fschg -S libcrypt.so.3 /lib install: rename: /lib/[EMAIL PROTECTED] to /lib/libcrypt.so.3: Operation not permitted *** Error code 71 Stop in /usr/src/lib/libcrypt. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] /usr/src]# So, what to do now??? O yeah, I've been running my system from securelevel=3, so maybe that has something to do with this also. Any help will be appreciated... (Yes, it's Christmas eve, I know, but hey that gives me a lot of time to check things out). Thanks ps is this bad? Should I start evacuate all my important files while I'm still able to? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Possibility for FreeBSD 4.11 Extended Support
On Sat, 2006-12-23 at 07:45, Robert Watson wrote: It's interesting that so far I've actually not yet seen even one person e-mail security-team since the EoL announcement to say, If I volunteer my time or pay for your time to support 4.11 for security patches, can we extend the EoL?. If I missed your e-mail, sorry about that, but I do read pretty fairly carefully so feel some justification in making this claim. [the rest of the msg cut] Just wanted you to know I loved your message. It is very to the point and you took the time to elaborate on almost every aspect of this discussion. Not that it'll help I'm afraid. You must be willing to reason first ;-) But at least we can refer to your message in future times. -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ Solaris 10 6/06 ++ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error when doing make installworld
On Sunday 24 December 2006 07:46, Dino Vliet wrote: Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! The filesystem is not mounted in single user mode. You need to do a mount -a which will read /etc/fstab and mount the slices. After that you can cd normally. Also, you should not do a make installworld in multi-user. You should do that step in single user before you run mergemaster. Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point. Believe me I've been there. Beech So I rebooted again into multi-user mode and here I tried the mergemaster -p but it failed with: === lib/libcom_err/doc (install) lockf -k /usr/share/info/dir install-info --quiet --defsection=Programming development tools. --defentry=* libcom_err: (com_err).A Common Error Description Library for UNIX. com_err.info /usr/share/info/dir install -o root -g wheel -m 444 com_err.info.gz /usr/share/info === lib/libcrypt (install) install -C -o root -g wheel -m 444 libcrypt.a /usr/lib install -C -o root -g wheel -m 444 libcrypt_p.a /usr/lib install -s -o root -g wheel -m 444 -fschg -S libcrypt.so.3 /lib install: rename: /lib/[EMAIL PROTECTED] to /lib/libcrypt.so.3: Operation not permitted *** Error code 71 Stop in /usr/src/lib/libcrypt. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] /usr/src]# So, what to do now??? O yeah, I've been running my system from securelevel=3, so maybe that has something to do with this also. Any help will be appreciated... (Yes, it's Christmas eve, I know, but hey that gives me a lot of time to check things out). Thanks ps is this bad? Should I start evacuate all my important files while I'm still able to? -- --- Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com --- pgpErUZljsqAI.pgp Description: PGP signature
Re: error when doing make installworld
Hi Beech, many thanks for your clear help. I will try that in a few moments However, I wanted to ask you something else becuase of your quote: Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point Unquote How am I able to find out if the new kernel will boot then? Because I have done this a few times alreadybut I don't like to be biten:-) A nice Christmas eve too:-) Dino --- Beech Rintoul [EMAIL PROTECTED] wrote: On Sunday 24 December:46, Dino Vliet wrote: Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! The filesystem is not mounted in single user mode. You need to do a mount -a which will read /etc/fstab and mount the slices. After that you can cd normally. Also, you should not do a make installworld in multi-user. You should do that step in single user before you run mergemaster. Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point. Believe me I've been there. Beech So I rebooted again into multi-user mode and here I tried the mergemaster -p but it failed with: === lib/libcom_err/doc (install) lockf -k /usr/share/info/dir install-info --quiet --defsection=Programming development tools. --defentry=* libcom_err: (com_err).A Common Error Description Library for UNIX. com_err.info /usr/share/info/dir install -o root -g wheel -m 444 com_err.info.gz /usr/share/info === lib/libcrypt (install) install -C -o root -g wheel -m 444 libcrypt.a /usr/lib install -C -o root -g wheel -m 444 libcrypt_p.a /usr/lib install -s -o root -g wheel -m 444 -fschg -S libcrypt.so.3 /lib install: rename: /lib/[EMAIL PROTECTED] to /lib/libcrypt.so.3: Operation not permitted *** Error code 71 Stop in /usr/src/lib/libcrypt. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] /usr/src]# So, what to do now??? O yeah, I've been running my system from securelevel=3, so maybe that has something to do with this also. Any help will be appreciated... (Yes, it's Christmas eve, I know, but hey that gives me a lot of time to check things out). Thanks ps is this bad? Should I start evacuate all my important files while I'm still able to? -- --- Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com --- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error when doing make installworld
On Sunday, 24 December, 2006 at 08:46:15 -0800, Dino Vliet wrote: Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! Probably because /usr wasn't mounted. Try mount -a and then cd /usr/src Cheers, Nick. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error when doing make installworld
On Sunday 24 December 2006 09:00, Dino Vliet wrote: Hi Beech, many thanks for your clear help. I will try that in a few moments However, I wanted to ask you something else becuase of your quote: Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point Unquote How am I able to find out if the new kernel will boot then? Because I have done this a few times alreadybut I don't like to be biten:-) A nice Christmas eve too:-) Dino --- Beech Rintoul [EMAIL PROTECTED] wrote: On Sunday 24 December:46, Dino Vliet wrote: Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! The filesystem is not mounted in single user mode. You need to do a mount -a which will read /etc/fstab and mount the slices. After that you can cd normally. Also, you should not do a make installworld in multi-user. You should do that step in single user before you run mergemaster. Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point. Believe me I've been there. Beech So I rebooted again into multi-user mode and here I tried the mergemaster -p but it failed with: === lib/libcom_err/doc (install) lockf -k /usr/share/info/dir install-info --quiet --defsection=Programming development tools. --defentry=* libcom_err: (com_err).A Common Error Description Library for UNIX. com_err.info /usr/share/info/dir install -o root -g wheel -m 444 com_err.info.gz /usr/share/info === lib/libcrypt (install) install -C -o root -g wheel -m 444 libcrypt.a /usr/lib install -C -o root -g wheel -m 444 libcrypt_p.a /usr/lib install -s -o root -g wheel -m 444 -fschg -S libcrypt.so.3 /lib install: rename: /lib/[EMAIL PROTECTED] to /lib/libcrypt.so.3: Operation not permitted *** Error code 71 Stop in /usr/src/lib/libcrypt. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] /usr/src]# So, what to do now??? O yeah, I've been running my system from securelevel=3, so maybe that has something to do with this also. Any help will be appreciated... (Yes, it's Christmas eve, I know, but hey that gives me a lot of time to check things out). Thanks ps is this bad? Should I start evacuate all my important files while I'm still able to? The proper way is: make buildworld make kernel (KERNCONF=YOURKERNEL) if custom reboot to single user If the new kernel doesn't boot reboot and hit the space bar at the boot prompt boot kernel.old If the new kernel boots OK mount -a cd /usr/src make installworld mergemaster exit The main thing is you don't want to install the new userland before finding out if the new kernel boots. If you install the userland it's very possible that your old kernel may not boot either. Then you're looking at re-installing the system so you can restore from backups. I've had to do that and while not hard, is very time consuming. Plus I lost everything between when I backed up and the date I restored. Also, please don't top post. Beech -- --- Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com --- pgpFsf4b3g0fX.pgp Description: PGP signature
hardware acceleration for ATI Radeon 9600 ?
Last official ATI video card support for FreeBSD was the 9400 series drivers. I've heard about some reverse engineered drivers from Linux. Is there any way to get hardware acceleration for ATI Radeon 9600 series? I want to run OpenGL applications, and not with software rendering. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FF 2.0 hogging the cpu in FreeBSD 6.2-PRELEASE
Christian Walther wrote: On 23/12/06, Michael P. Soulier [EMAIL PROTECTED] wrote: [...] Firefox is a pig on every platform. Plus, more sites are using javascript for AJAX these days, pushing more and more load onto the client. I agree. It's painfull to see that you browse a website and it consumes all your cpu cycles eventually. Since most of these scripts are used to power adverts or some graphical stuff that really isn't necessary, I use FF with the Adblock, NoScript, and Flashblock-Extension. Adblock filters known ads, together with Adblock Filter.G Updater you get a decent list of ad placing sites. NoScript is configured to block all JavaScripts by default, and if I think that a website doesn't behave as I would expect (e.g. doesn't react on URL- oder buttonpresses in forms), I temporarily allow scripts for this site. Sites I visit regularly that require JavaScript get general permission. Flashblock teaches embedded Flash-Objects on demand-behaviour by replacing them with a play button. The Animation is only started after this button is being pressed. This puts an end to high CPU load... Strange. Firefox 2.0 doesn't appear to be much of a problem for me on my P4 2.4GHz machine. Then again I run NoScript and Adblock by default. Also, if you dig through the tabs in NoScript a bit, it has options to disable Flash stuff by default and then you can whitelist the Flash animation as well. The only problem I have had with Firefox CPU-wise has been caused by annoying, poorly created blog sites (40+ some animated gifs in the background--ate up nearly all my available CPU resources). Another thing, there were some known problems with Firefox 2.0.1 that were addressed with GTK filechoosers, if that's part of what you're doing. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FF 2.0 hogging the cpu in FreeBSD 6.2-PRELEASE
Abdullah Al-Marrie wrote: On 12/23/06, Christian Walther [EMAIL PROTECTED] wrote: On 23/12/06, Michael P. Soulier [EMAIL PROTECTED] wrote: [...] Firefox is a pig on every platform. Plus, more sites are using javascript for AJAX these days, pushing more and more load onto the client. I agree. It's painfull to see that you browse a website and it consumes all your cpu cycles eventually. Since most of these scripts are used to power adverts or some graphical stuff that really isn't necessary, I use FF with the Adblock, NoScript, and Flashblock-Extension. Adblock filters known ads, together with Adblock Filter.G Updater you get a decent list of ad placing sites. NoScript is configured to block all JavaScripts by default, and if I think that a website doesn't behave as I would expect (e.g. doesn't react on URL- oder buttonpresses in forms), I temporarily allow scripts for this site. Sites I visit regularly that require JavaScript get general permission. Flashblock teaches embedded Flash-Objects on demand-behaviour by replacing them with a play button. The Animation is only started after this button is being pressed. This puts an end to high CPU load... Thank you for the tips, when I posted this in the list I already have Adblock installed, but I still FF acts like a hungry pig. The question now, is FF-linux runs faster than native FreeBSD FF? I highly doubt it. It's like saying Does another layer of complexity make something run better?.. most likely no. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: uncalled for reboot
Rico Secada wrote: On Sat, 23 Dec 2006 14:38:43 -0700 Z. Wade Hampton [EMAIL PROTECTED] wrote: Thanks Bill. I'll keep that in mind. I think I have the problem figured out. *base=/var/db was set in the supfile. After changing it to /usr, the problem went away. You can be 99.9% sure that the problem wasn't that. It is, like it is stated, most likely a hardware problem but initialized by using cvsup. My guess is RAM problems. Try using MEMTESTER. Regards, ZWH However, spontaneous reboots are almost always hardware problems. Have you verified that your RAM, hard drive, cooling, power, and all other hardware factors are in proper operation? That would be the first logical step in diagnosing this. -Bill I agree with what everyone else has said before me. My recommendations: 1. Run Dell diags CD. 2. Run memtest86+. 3. Upgrade the BIOS if possible; Dell's move to AMD chipsets is recent, and a BIOS upgrade might be beneficial for your machine. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hardware acceleration for ATI Radeon 9600 ?
On 12/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Last official ATI video card support for FreeBSD was the 9400 series drivers. I've heard about some reverse engineered drivers from Linux. Is there any way to get hardware acceleration for ATI Radeon 9600 series? I want to run OpenGL applications, and not with software rendering. AFAIK, you get that with Xorg 7.x. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Replace Issue
Jack Stone wrote: Appreciate a tip on how to search replace hundreds of *.htm files: From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html In other words, I just want the relative path and remove all the extra: http://www.domain.htm/ portions of the lines. Large thanks in advance for help. Happy Holidays! Jack cat file.html | sed -e s|http://www.domain.com||g file.tmp.html mv file.tmp.html file.html -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Replace Issue
Jack Stone wrote: From: Parv [EMAIL PROTECTED] To: Josh Paetzel [EMAIL PROTECTED] CC: Jack Stone [EMAIL PROTECTED], freebsd-questions@freebsd.org Subject: Re: Search Replace Issue Date: Sun, 24 Dec 2006 02:56:32 -0500 in message [EMAIL PROTECTED], wrote Josh Paetzel thusly... On Saturday 23 December 2006 21:29, Jack Stone wrote: Appreciate a tip on how to search replace hundreds of *.htm files: From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm Is -0777 really necessary (causes whole file to be stored in memory)? But that is not really the point of this reply. Above is a fine opportunity to use alternative delimiters (and to restrict the matching (only to link URLs)) ... perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' *.html ... in case of hundreds of *.htm, use xargs(1) pipeline ... find dir-of-HTML-files -type f -name '*.html' -print0 \ | xargs -0 perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' Feel free to change Perl version with sed (the version of sed with -i option[0]) one ... find ... \ | ... sed -i -e 's,\(href=\)http://www\.domain\.com,\1,g' [0] That makes this reply on point. - Parv Parv and all: Many thanks for these various tips and your time to make them! I usually use sed(1) myself, but for the life of me, I could not find a way to properly apply delimiters or syntax to get it to work. I was close, but no cigar! Too many slashes and commas I guess. Such a tool will indeed be a giant timesaver! Merry Xmas! All the best, Jack One thing with regular expressions though, is that you can control the command characters to use with defining the search and replace keywords and replacements. If you see my example, I used pipes because you had a number of forward slashes (/), so it allows you to cut down on the number of escaping backslashes in your regular expression / replacement. Cheers and a Merry Christmas to you too! -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[Fwd: Re: Search Replace Issue]
---BeginMessage--- On Sun, 2006-12-24 at 12:13 -0800, Garrett Cooper wrote: Jack Stone wrote: From: Parv [EMAIL PROTECTED] To: Josh Paetzel [EMAIL PROTECTED] CC: Jack Stone [EMAIL PROTECTED], freebsd-questions@freebsd.org Subject: Re: Search Replace Issue Date: Sun, 24 Dec 2006 02:56:32 -0500 in message [EMAIL PROTECTED], wrote Josh Paetzel thusly... On Saturday 23 December 2006 21:29, Jack Stone wrote: Appreciate a tip on how to search replace hundreds of *.htm files: From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm Is -0777 really necessary (causes whole file to be stored in memory)? But that is not really the point of this reply. Above is a fine opportunity to use alternative delimiters (and to restrict the matching (only to link URLs)) ... perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' *.html ... in case of hundreds of *.htm, use xargs(1) pipeline ... find dir-of-HTML-files -type f -name '*.html' -print0 \ | xargs -0 perl -pi -e 's!(?=href=)\Qhttp://www.domain.com!!g' Feel free to change Perl version with sed (the version of sed with -i option[0]) one ... find ... \ | ... sed -i -e 's,\(href=\)http://www\.domain\.com,\1,g' [0] That makes this reply on point. - Parv Parv and all: Many thanks for these various tips and your time to make them! I usually use sed(1) myself, but for the life of me, I could not find a way to properly apply delimiters or syntax to get it to work. I was close, but no cigar! Too many slashes and commas I guess. Such a tool will indeed be a giant timesaver! Merry Xmas! All the best, Jack One thing with regular expressions though, is that you can control the command characters to use with defining the search and replace keywords and replacements. If you see my example, I used pipes because you had a number of forward slashes (/), so it allows you to cut down on the number of escaping backslashes in your regular expression / replacement. Cheers and a Merry Christmas to you too! -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] The -i option to sed enables it to rewrite a file in place, removing the need to create new files, delete the old ones, and rename the new ones. But it needs careful testing, and should never be used without a good backup of all the files that it might touch. Powerful tools are often dangerous! ---End Message--- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hardware acceleration for ATI Radeon 9600 ?
Andrew Pantyukhin wrote: On 12/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Last official ATI video card support for FreeBSD was the 9400 series drivers. I've heard about some reverse engineered drivers from Linux. Is there any way to get hardware acceleration for ATI Radeon 9600 series? I want to run OpenGL applications, and not with software rendering. AFAIK, you get that with Xorg 7.x. Last time I was FreeBSDing was half a year ago. I'll test some 3D games on the 6.2-RELEASE. I will get a decent framerate, will I? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Search Replace Issue
From this: lia href=http://www.domain.com/tales/wouf.html To this: lia href=tales/wouf.html In other words, I just want the relative path and remove all the extra: http://www.domain.htm/ portions of the lines. ... cat file.html | sed -e s|http://www.domain.com||g file.tmp.html mv file.tmp.html file.html I don't think the cat accomplishes anything in a case like this (and BTW he also wanted to remove the / after com): sed -e s|http://www.domain.com/||g file.html file.tmp.html ... Additional logic (or use of -i) may be desirable to avoid loss of file ownership and permission settings. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: error when doing make installworld
On Sunday 24 December 2006 16:42, Dino Vliet wrote: --- Beech Rintoul [EMAIL PROTECTED] wrote: On Sunday 24 December 2006 09:00, Dino Vliet wrote: Hi Beech, many thanks for your clear help. I will try that in a few moments However, I wanted to ask you something else becuase of your quote: Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point Unquote How am I able to find out if the new kernel will boot then? Because I have done this a few times alreadybut I don't like to be biten:-) A nice Christmas eve too:-) Dino --- Beech Rintoul [EMAIL PROTECTED] wrote: On Sunday 24 December:46, Dino Vliet wrote: Hi peeps, I have tried to update my src with cvsup and got stuck because of an error while doing make installworld. My system is an amd64 machine running freebsd 6.1 and I have performed the steps without problems: -make buildworld -make buildkernel kernconf=mykkernel -make installkernel kernconf=mykernel Normally I would then immediately follow this sequence with a mergemaster -p, make installworld and mergemaster -i and then reboot. However, this time I decided to check the handbook and saw that it recommended to do a boot into single user mode between the step -make installkernel kernconf=mykernel AND the step mergemaster -p. So I did it and when I rebooted and saw the beastie splash screen, I hit option 4. Then I had to press enter to get to the shell. When I did I noticed I couldn't cd into the /usr/src directory because the /usr/src directory was missing! The filesystem is not mounted in single user mode. You need to do a mount -a which will read /etc/fstab and mount the slices. After that you can cd normally. Also, you should not do a make installworld in multi-user. You should do that step in single user before you run mergemaster. Doing a make installworld before finding out if the new kernel will boot will bite you big time at some point. Believe me I've been there. Beech So I rebooted again into multi-user mode and here I tried the mergemaster -p but it failed with: === lib/libcom_err/doc (install) lockf -k /usr/share/info/dir install-info --quiet --defsection=Programming development tools. --defentry=* libcom_err: (com_err).A Common Error Description Library for UNIX. com_err.info /usr/share/info/dir install -o root -g wheel -m 444 com_err.info.gz /usr/share/info === lib/libcrypt (install) install -C -o root -g wheel -m 444 libcrypt.a /usr/lib install -C -o root -g wheel -m 444 libcrypt_p.a /usr/lib install -s -o root -g wheel -m 444 -fschg -S libcrypt.so.3 /lib install: rename: /lib/[EMAIL PROTECTED] to /lib/libcrypt.so.3: Operation not permitted *** Error code 71 Stop in /usr/src/lib/libcrypt. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] /usr/src]# So, what to do now??? O yeah, I've been running my system from securelevel=3, so maybe that has something to do with this also. Any help will be appreciated... (Yes, it's Christmas eve, I know, but hey that gives me a lot of time to check things out). Thanks ps is this bad? Should I start evacuate all my important files while I'm still able to? The proper way is: make buildworld make kernel (KERNCONF=YOURKERNEL) if custom reboot to single user If the new kernel doesn't boot reboot and hit the space bar at the boot prompt boot kernel.old If the new kernel boots OK mount -a cd /usr/src make installworld mergemaster exit The main thing is you don't want to install the new userland before finding out if the new kernel boots. If you install the userland it's very possible === message truncated === Thanks Beech, you helped me out very well and I have learned a lot too. I will go on and update my notes because I had it all wrong. You're welcome. Please note that issues such as this are discussed in detail in the handbook. /usr/share/doc/en_US.ISO8859-1/books/handbook on your machine or http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html online. Also doing a google search will more
Re: Search Replace Issue
in message [EMAIL PROTECTED], wrote Garrett Cooper thusly... cat file.html | sed -e s|http://www.domain.com||g ... Not really a need for cat(1), just use input redirection ... sed -e '...' file - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OT: sed usage (was Re: Search Replace Issue)
in message [EMAIL PROTECTED], wrote DeepTech thusly... sed -e 's/http\:\/\/www\.domain\.htm\///g' *.htm *.htm That will most likely destroy the original file(s). Depending on your shell, you will get redirection error from the shell if there happen to be more than one file matching the pattern '*.htm'. In particular, in zsh 4.2.6 ... # cat p polka dot # cp -f p q; cp -f p qq # ls -l p q* -rw--- 1 parv people 10 Dec 24 23:32 p -rw--- 1 parv people 10 Dec 24 23:32 q -rw--- 1 parv people 10 Dec 24 23:32 qq # sed -e '' q* | q* # ls -l q* -rw--- 1 parv people 0 Dec 24 23:34 q -rw--- 1 parv people 0 Dec 24 23:34 qq NOTE: not sure if u have to use a '\' before that ':' No, ':' need not be escaped. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]