Re: is there a way of usinf greo to find 3 or 4 blank lines?
I know its not in commandline, but in vim (maybe even vi) you could just /\n\n\n This would find new lines... And you could jump between them with n.. and :set ruler so you can find linenumber On Sun, Sep 6, 2009 at 2:36 AM, Gary Kline wrote: > >in my manuscript, i have many places where i'ved used several > newlines to indicate a >jump in time, or topic, or mood, or <>. i have lost these > vertical spacing >in all but my original draft. can i use grep somehow to find these > extra newlines? > >if not grep, then sed, ed, or what?! > >tia, > >gary > > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service > Unix >http://jottings.thought.org http://transfinite.thought.org >The 5.67a release of Jottings: http://jottings.thought.org/index.php > > ___ > 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" > -- Med Venlig Hilsen Kalle R. Møller ___ 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: Inconsistency in root partition size
Galactic_Dominator wrote: > > Sun, Sep 6, 2009 at 9:24 PM, jaymax wrote: > > >> >> Mel Flynn-2 wrote: >> > > > -- >> >> ufs by default keeps a certain portion in reserve for use by root. 8% is > the standard amount I believe so that capacity reading is technically > valid. On rare occasion, I've had to run fsck multiple times. you may > wish > to try this also, w/ no reboot in between. > > > I ran fsck -vy 10 times, status unchanged > > Is there somewhere I can find a listing of files and directories that are > supposed to be at the / level? if there is perchance some bizarre file, > that du is not accounting for. > > Thanks! > > -- > Adam Vande More > ___ > 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" > > -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25325443.html Sent from the freebsd-questions mailing list archive at Nabble.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: Is there such thing as a 'soft checksum' tool?
M> I'm looking for a pseudo-checksum tool for use with cataloging images. I've seen such tools advertised, but they were proprietary products and only worked on windows. One way you could approach it might be to use a blur filter to blur each of your images, and then to compare the blurred images. Small differences in individual pixels would be blurred away. Mike -- Michael David Crawford m...@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen ___ 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: Inconsistency in root partition size
Sun, Sep 6, 2009 at 9:24 PM, jaymax wrote: > > > > Mel Flynn-2 wrote: > > > > > > No, single user mode. Root partition in single user mode can be fsck'd > and > > repaired if mounted ro in single user. The system does fsck -p by > default, > > which skips partitions marked clean. Since you can shutdown cleanly, > > nothing > > will happen. > > Have a look at /etc/defaults/rc.conf for setting different behaviors by > > overriding the defaults in /etc/rc.conf. > > > > In single user mode I ran fsck -vy / > there were a few Salvages along the way > Rebooted but the condition remained unchanged. > rebooted again in single user mode ran fsck -vy /dev/ad0s1a > everything seemed clear - no salvage operation > Normal reboot, but discrepancy still persits > > Hope we have not reached a checkmate! > > from the logs the only things discernable, were > dmesg => > > > > ad0: 39083MB at ata0-master UDMA100 > > ad1: 76345MB at ata0-slave UDMA100 > > acd0: CDROM at ata1-master UDMA33 > > acd1: DVDR at ata1-slave UDMA33 > > ad4: 381554MB at ata2-master UDMA100 > > Trying to mount root from ufs:/dev/ad0s1a > > WARNING: /usr was not properly dismounted > > WARNING: /disk02 was not properly dismounted > > WARNING: /disk03 was not properly dismounted > > > > from /var/all.log the record for today > > Earlier mount attempt > > # grep -in ad0s1a all.log > 143:Sep 6 02:23:41 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 158:Sep 6 02:23:41 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND > CHECKING > 472:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT > //.snap/fsck_snapshot: No space left on device > 474:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN > fsck MANUALLY. > 985:Sep 6 03:11:21 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 1000:Sep 6 03:11:21 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND > CHECKING > 1315:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT > //.snap/fsck_snapshot: No space left on device > 1317:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; > RUN > fsck MANUALLY. > > > last mount > > > 6311:Sep 6 17:39:33 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 6325:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; > SKIPPING > CHECKS > 6326:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: clean, 1982 free (1966 > frags, 2 blocks, 0.8% fragmentation) > 6772:Sep 6 17:51:19 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 6786:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; > SKIPPING > CHECKS > 6787:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: clean, 1968 free (1968 > frags, 0 blocks, 0.8% fragmentation) > > > and > df -k => > df -k > Filesystem 1K-blocks UsedAvail Capacity Mounted on > /dev/ad0s1a507630503694 -36674 108%/ > > Don't know if the above can show anything > Could this be a kernel issue, tuning etc? > > Thanks! > -- > > ufs by default keeps a certain portion in reserve for use by root. 8% is the standard amount I believe so that capacity reading is technically valid. On rare occasion, I've had to run fsck multiple times. you may wish to try this also, w/ no reboot in between. -- Adam Vande More ___ 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: Inconsistency in root partition size
Mel Flynn-2 wrote: > > > No, single user mode. Root partition in single user mode can be fsck'd and > repaired if mounted ro in single user. The system does fsck -p by default, > which skips partitions marked clean. Since you can shutdown cleanly, > nothing > will happen. > Have a look at /etc/defaults/rc.conf for setting different behaviors by > overriding the defaults in /etc/rc.conf. > In single user mode I ran fsck -vy / there were a few Salvages along the way Rebooted but the condition remained unchanged. rebooted again in single user mode ran fsck -vy /dev/ad0s1a everything seemed clear - no salvage operation Normal reboot, but discrepancy still persits Hope we have not reached a checkmate! from the logs the only things discernable, were dmesg => > ad0: 39083MB at ata0-master UDMA100 > ad1: 76345MB at ata0-slave UDMA100 > acd0: CDROM at ata1-master UDMA33 > acd1: DVDR at ata1-slave UDMA33 > ad4: 381554MB at ata2-master UDMA100 > Trying to mount root from ufs:/dev/ad0s1a > WARNING: /usr was not properly dismounted > WARNING: /disk02 was not properly dismounted > WARNING: /disk03 was not properly dismounted > from /var/all.log the record for today Earlier mount attempt # grep -in ad0s1a all.log 143:Sep 6 02:23:41 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 158:Sep 6 02:23:41 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND CHECKING 472:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device 474:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 985:Sep 6 03:11:21 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 1000:Sep 6 03:11:21 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND CHECKING 1315:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device 1317:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. last mount 6311:Sep 6 17:39:33 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 6325:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS 6326:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: clean, 1982 free (1966 frags, 2 blocks, 0.8% fragmentation) 6772:Sep 6 17:51:19 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 6786:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS 6787:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: clean, 1968 free (1968 frags, 0 blocks, 0.8% fragmentation) and df -k => df -k Filesystem 1K-blocks UsedAvail Capacity Mounted on /dev/ad0s1a507630503694 -36674 108%/ Don't know if the above can show anything Could this be a kernel issue, tuning etc? Thanks! -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25324178.html Sent from the freebsd-questions mailing list archive at Nabble.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: Clock delays in FreeBSD guest VM on VirtualBox
On 9/6/09, Hashimoto wrote: > Hello. > > I am running several FreeBSD(8.0-BETA3) guest VMs > on VirtualBox on OpenSolaris. > On all hosts, I am configuring & running ntpd. > > However, only one host (naming HostX) can sync the clock. > All hosts except for HostX cannot sync the clock. > (The time delays about 10 minutes in an hour.) > What's the cause of this problem? > Regards. > > /etc/rc.conf > ntpd_enable="YES" > ntpd_sync_on_start="YES" > > /etc/ntp.conf (default config file) > server 0.freebsd.pool.ntp.org iburst maxpoll 9 > server 1.freebsd.pool.ntp.org iburst maxpoll 9 > server 2.freebsd.pool.ntp.org iburst maxpoll 9 > > -- > Kouki Hashimoto > hsm...@gmail.com Timing problems can be due to kern.hz The older kern.hz was set to 100, and now it's set at 1000 The hardware clock may need adjusting, see sysctl kern.timecounter.choice Only one that seems relatively current is installing the vmtools with vmware hypervisor. Said tools even support guest shutdown and the rest. I would say without tools support, you have slim possible chances to synchronize timings, and timing problems will keep you guessing. ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
On Sun, Sep 06, 2009 at 04:23:01PM -0700, Gary Kline wrote: > On Sun, Sep 06, 2009 at 08:11:48PM +0100, Mark Willson wrote: > > Gary Kline wrote: > > >in my manuscript, i have many places where i'ved used several > > >newlines to indicate a jump in time, or topic, or mood, or > > ><>. i have lost these vertical spacing in all but my > > >original draft. can i use grep somehow to find these extra newlines? > > > > > > > > >if not grep, then sed, ed, or what?! > > > > > >tia, > > > > > >gary > > > > > > > > > > > Gary, > > > > If I understand your question correctly (by no means certain), the > > following may help. This is an awk script, which will print out the > > lines in the source file at which it finds more than three consecutive > > empty lines. > > > > BEGIN { > > ncnt = 0 > > } > > /^ *$/ { > > ncnt++; > > if (ncnt > 3) > > {print "Emphasis at: " NR; > > ncnt = 0;} > > next; > > } > >{ncnt = 0;} > > > > You can invoke this (assuming the awk source in is a file called > > "em.awk" and your original manuscript is in a file called "manuscript") by: > > > > $ awk -f em.awk manuscript > > > > -mark > > > Yes, this works just fine. I findthat there are about 130 places that > I need to > track... --yeah, i did over-do it in the time-breaks in my story. > > Is there a way of printing the string/line in the `manuscript' file > along with the line > number? I'm well into a copyedit of the manuscript and would rather > not start over! > > thanks for this. > :wq Sorry:: sounds a bit moronic:: not print the blank line/newline! but print the NR-1-th line. > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php ___ 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: wireless: host access point w/ WAP help!
I added this to /boot/loader.conf: wlan_xauth_load="YES" After a complete reboot of my system I get this line in /var/log/messages: Sep 6 17:46:47 speedy kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 Not sure if this is something to worry about. ___ 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: wireless: host access point w/ WAP help!
I was brave enough to find out that logging on hostapd was going to /var/log/messages. I see this there after trying to start hostapd using the /etc/rc.d/ script: Sep 6 17:39:12 speedy kernel: ieee80211_load_module: load the wlan_xauth module by hand for now. Sep 6 17:39:12 speedy hostapd: ath0: DRIVER Error enabling WPA/802.1X! Am looking into it now, doing google searches. ___ 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"
wireless: host access point w/ WAP help!
I am following the Handbook instructions for setting up a FreeBSD wireless host access point: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html r...@speedy# dmesg | grep ath ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xff8f-0xff8f irq 21 at device 0.0 on pci1 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:02:6f:61:e6:7d ath0: mac 7.9 phy 4.5 radio 5.6 ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 r...@speedy# ifconfig ath0 list caps ath0=6783edcf I am able to set up an access point with no authentication or encryption. I verified this by connecting to my FreeBSD router from a Windows [wireless] laptop computer over SSH. It seems that the minute I try to turn WAP on (based on the instructions in the Handbook), things stop working. The steps I follow to enable WAP (after verifying that the host access point is working without encryption) are based on the instructions in the Handbook, and are as follows: 1. Create /etc/hostapd.conf: interface=ath0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=speedy.i wpa=1 wpa_passphrase=xxx3xxx3 wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP 2. Add this line to /etc/rc.conf: hostapd_enable="YES" 3. Execute "/etc/rc.d/hostapd forcestart". I realize this is only needed for changes to take effect before rebooting the system. I also tried rebooting (with the line in rc.conf) but the results are the same. With WAP "enabled" (following the three steps above), my Windows laptop does not scan to find the "speedy.i" access point. Also, here are some things output by "ifconfig ath0" before and after I follow these steps to enable WAP: BEFORE ENABLING WAP (without hostapd): nlan...@speedy# ifconfig ath0 ath0: flags=8843 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ssid speedy.i channel 1 (2412 Mhz 11g) bssid 00:02:6f:61:e6:7d authmode OPEN privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 AFTER ENABLING WAP (with hostapd): r...@speedy# ifconfig ath0 ath0: flags=8802 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: no carrier ssid speedy.i channel 1 (2412 Mhz 11g) authmode AUTO privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 The output from "ifconfig ath0" above after WAP has been enabled differs significantly from the sample output in the Handbook. One more important thing. I look at processes from top and I see nothing running that corresponds to hostapd. Is this a daemon? I also did the following: r...@speedy# find /var | grep -i hostapd And it returns nothing. Does /var/run/hostapd need to exist as a directory for things to work? ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
On Sun, Sep 06, 2009 at 03:44:13PM -0500, Mak Kolybabi wrote: > On 2009-09-05 17:36, Gary Kline wrote: > > in my manuscript, i have many places where i'ved used several newlines to > > indicate a jump in time, or topic, or mood, or <>. i have lost > > these > > vertical spacing in all but my original draft. can i use grep somehow to > > find > > these extra newlines? > > > > if not grep, then sed, ed, or what?! > > Sed has the ability to pull into the current line the next line, appended and > separated by a "\n" character. It's hard to use correctly, I've found, and my > simple demo: > > sed -e '/^$/{N;N;N; s/^\n\n\n$/===4 blank lines==/; }' > > Does not quite work as I'd hoped. But hopefully it's enough to get you > started. > Thanks, Mak. iT really *is* more difficult that grep can handle. I could catch the three newlines in C, but the string/line above the break would be painful unless i kept a linked list of linenumbers. too much like work:-) gary > -- > Matthew Anthony Kolybabi (Mak) > > > () ASCII Ribbon Campaign | Against HTML e-mail > /\ www.asciiribbon.org | Against proprietary extensions > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
On Sun, Sep 06, 2009 at 08:11:48PM +0100, Mark Willson wrote: > Gary Kline wrote: > >in my manuscript, i have many places where i'ved used several > >newlines to indicate a jump in time, or topic, or mood, or > ><>. i have lost these vertical spacing in all but my > >original draft. can i use grep somehow to find these extra newlines? > > > > > >if not grep, then sed, ed, or what?! > > > >tia, > > > >gary > > > > > > > Gary, > > If I understand your question correctly (by no means certain), the > following may help. This is an awk script, which will print out the > lines in the source file at which it finds more than three consecutive > empty lines. > > BEGIN { > ncnt = 0 > } > /^ *$/ { > ncnt++; > if (ncnt > 3) > {print "Emphasis at: " NR; >ncnt = 0;} >next; > } >{ncnt = 0;} > > You can invoke this (assuming the awk source in is a file called > "em.awk" and your original manuscript is in a file called "manuscript") by: > > $ awk -f em.awk manuscript > > -mark Yes, this works just fine. I findthat there are about 130 places that I need to track... --yeah, i did over-do it in the time-breaks in my story. Is there a way of printing the string/line in the `manuscript' file along with the line number? I'm well into a copyedit of the manuscript and would rather not start over! thanks for this. gary > > ___ > 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" -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php ___ 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 display pkg-message
Mel Flynn wrote: On Sunday 06 September 2009 20:18:38 Chris Whitehouse wrote: Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus list archives If you want to see the dynamically generated pkg-message of a *port*, before building/installing it (f.e. to identify what gotchas there are), use the following: make -C /usr/ports/category/portname WRKDIR=/tmp apply-slist && cat /tmp/pkg- message That's exactly what I was trying to do though the other replies gave me an alternative way. thanks very much Chris ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
On 2009-09-05 17:36, Gary Kline wrote: > in my manuscript, i have many places where i'ved used several newlines to > indicate a jump in time, or topic, or mood, or <>. i have lost these > vertical spacing in all but my original draft. can i use grep somehow to find > these extra newlines? > > if not grep, then sed, ed, or what?! Sed has the ability to pull into the current line the next line, appended and separated by a "\n" character. It's hard to use correctly, I've found, and my simple demo: sed -e '/^$/{N;N;N; s/^\n\n\n$/===4 blank lines==/; }' Does not quite work as I'd hoped. But hopefully it's enough to get you started. -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions ___ 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: is there a way of usinf greo to find 3 or 4 blank lines?
Gary Kline wrote: in my manuscript, i have many places where i'ved used several newlines to indicate a jump in time, or topic, or mood, or <>. i have lost these vertical spacing in all but my original draft. can i use grep somehow to find these extra newlines? if not grep, then sed, ed, or what?! tia, gary Gary, If I understand your question correctly (by no means certain), the following may help. This is an awk script, which will print out the lines in the source file at which it finds more than three consecutive empty lines. BEGIN { ncnt = 0 } /^ *$/ { ncnt++; if (ncnt > 3) {print "Emphasis at: " NR; ncnt = 0;} next; } {ncnt = 0;} You can invoke this (assuming the awk source in is a file called "em.awk" and your original manuscript is in a file called "manuscript") by: $ awk -f em.awk manuscript -mark ___ 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 display pkg-message
On Sunday 06 September 2009 20:18:38 Chris Whitehouse wrote: > Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus > list archives If you want to see the dynamically generated pkg-message of a *port*, before building/installing it (f.e. to identify what gotchas there are), use the following: make -C /usr/ports/category/portname WRKDIR=/tmp apply-slist && cat /tmp/pkg- message -- Mel ___ 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 display pkg-message
Randy Belk wrote: On Sun, Sep 6, 2009 at 10:29 AM, Kalle Møller wrote: Looking for that feature to :) On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: Hello Could someone remind of the make target for showing messages which are displayed when installing ports please. I thought it was some variant of make showinfo but I can't find one that works. I am assuming that if /files/pkg-message.in exists the this make target would show a result. thanks Chris ___ 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" -- Med Venlig Hilsen Kalle R. Møller ___ 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" This is explained in the pkg_info man page. To Show the install-message file for the installed package postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus list archives and google but because I was so convinced it was a make target I didn't think of pkg_info. It all makes sense now. What's more next time I forget I will be able to look up my own post :) Thanks Matthew S for the tip about tarballs too. cheers Chris ___ 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 display pkg-message
On Sun, Sep 6, 2009 at 10:29 AM, Kalle Møller wrote: > Looking for that feature to :) > > On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: > >> Hello >> >> Could someone remind of the make target for showing messages which are >> displayed when installing ports please. I thought it was some variant of >> make showinfo but I can't find one that works. I am assuming that if >> /files/pkg-message.in exists the this make target would show a >> result. >> >> thanks >> >> Chris >> ___ >> 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" >> > > > > -- > > Med Venlig Hilsen > > Kalle R. Møller > ___ > 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" > This is explained in the pkg_info man page. To Show the install-message file for the installed package postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use 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: Is there such thing as a 'soft checksum' tool?
Modulok writes: > I'm not even sure such a tool exists, but it's worth asking: > > I'm looking for a pseudo-checksum tool for use with catalogging > images. For example, a strict checksum algorithm, like the sha family, > will produce a dramatically different checksum for two files which > differ by only a single bit. I'm looking for something where two > images images, which are similar, get a proportionally similar > checksum. When I speak of similarities I'm referring to their image > patterns. i.e two images of differing sizes, which are otherwise > identical, would produce very similar checksums. So the closer the > checksums are, the more similar two given images are. > > Does anyone know of anything like this? It turns out this is a remarkably hard problem. You can look at p5-Image-Compare, but be prepared to experiment before trusting the results. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ 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 display pkg-message
Chris Whitehouse wrote: Could someone remind of the make target for showing messages which are displayed when installing ports please. I thought it was some variant of make showinfo but I can't find one that works. I am assuming that if /files/pkg-message.in exists the this make target would show a result. Once the port is installed, you can do: % pkg_info -Dx portname What is probably less known is that if you have the package tarball, you can run pkg_info on it *without* it being installed: % pkg_info -D ./portname.tbz There isn't a specific make target for displaying pkg-message -- it's generally done as part of the post-install: target, but that target also typically runs any of the scripts that should be bundled with the pkg. That's things like creating a UID to own files or processes, which is not necessarily something you would want to happen when just trying to see some messages. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: how to display pkg-message
On Sun, Sep 6, 2009 at 12:21 PM, Randy Belk wrote: > On Sun, Sep 6, 2009 at 10:29 AM, Kalle > Møller wrote: >> Looking for that feature to :) >> >> On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: >> >>> Hello >>> >>> Could someone remind of the make target for showing messages which are >>> displayed when installing ports please. I thought it was some variant of >>> make showinfo but I can't find one that works. I am assuming that if >>> /files/pkg-message.in exists the this make target would show a >>> result. >>> >>> thanks >>> >>> Chris >>> ___ >>> 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" >>> >> >> >> >> -- >> >> Med Venlig Hilsen >> >> Kalle R. Møller >> ___ >> 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" >> This is explained in the pkg_info man page. To Show the install-message file for the installed package postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD. -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use 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: how to display pkg-message
Looking for that feature to :) On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: > Hello > > Could someone remind of the make target for showing messages which are > displayed when installing ports please. I thought it was some variant of > make showinfo but I can't find one that works. I am assuming that if > /files/pkg-message.in exists the this make target would show a > result. > > thanks > > Chris > ___ > 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" > -- Med Venlig Hilsen Kalle R. Møller ___ 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"
how to display pkg-message
Hello Could someone remind of the make target for showing messages which are displayed when installing ports please. I thought it was some variant of make showinfo but I can't find one that works. I am assuming that if /files/pkg-message.in exists the this make target would show a result. thanks Chris ___ 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"
Clock delays in FreeBSD guest VM on VirtualBox
Hello. I am running several FreeBSD(8.0-BETA3) guest VMs on VirtualBox on OpenSolaris. On all hosts, I am configuring & running ntpd. However, only one host (naming HostX) can sync the clock. All hosts except for HostX cannot sync the clock. (The time delays about 10 minutes in an hour.) What's the cause of this problem? Regards. /etc/rc.conf ntpd_enable="YES" ntpd_sync_on_start="YES" /etc/ntp.conf (default config file) server 0.freebsd.pool.ntp.org iburst maxpoll 9 server 1.freebsd.pool.ntp.org iburst maxpoll 9 server 2.freebsd.pool.ntp.org iburst maxpoll 9 -- Kouki Hashimoto hsm...@gmail.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: How to correct *Failed sysctlbyname("net.inet.ip.fw.tables_max")*
In freebsd-questions Digest, Vol 274, Issue 12, Message 18 On Sat, 5 Sep 2009 12:57:46 +0300 ??? ??? wrote: > vpn# ipfw table 12 list > ipfw: Failed sysctlbyname("net.inet.ip.fw.tables_max") > vpn# sysctl -a | grep net.inet.ip.fw > net.inet.ip.fw.dyn_keepalive: 1 > net.inet.ip.fw.dyn_short_lifetime: 5 > net.inet.ip.fw.dyn_udp_lifetime: 10 > net.inet.ip.fw.dyn_rst_lifetime: 1 > net.inet.ip.fw.dyn_fin_lifetime: 1 > net.inet.ip.fw.dyn_syn_lifetime: 20 > net.inet.ip.fw.dyn_ack_lifetime: 300 > net.inet.ip.fw.static_count: 46 > net.inet.ip.fw.dyn_max: 4096 > net.inet.ip.fw.dyn_count: 0 > net.inet.ip.fw.curr_dyn_buckets: 256 > net.inet.ip.fw.dyn_buckets: 256 > net.inet.ip.fw.default_rule: 65535 > net.inet.ip.fw.verbose_limit: 0 > net.inet.ip.fw.verbose: 1 > net.inet.ip.fw.debug: 1 > net.inet.ip.fw.one_pass: 0 > net.inet.ip.fw.autoinc_step: 100 > net.inet.ip.fw.enable: 1 > vpn# uname -a > FreeBSD vpn.in 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #1: Sat Sep 5 00:26:18 > EEST 2009 k...@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v71 i386 > > I just upgrade from 7.0. > Sources are RELENG_7_1 Kes, perhaps your kernel and userland sources may be out of synch? I haven't hunted through CVS, but located a message in ipfw@ from Ganbold with a patch proposing to add that very sysctl to ip_fw2.c dated 1st September 2008 .. was that before or after 7.1-RELEASE? Happy hunting, 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: Inconsistency in root partition size
On Sunday 06 September 2009 12:17:59 jaymax wrote: > ran fsck on / mounted partition, is that reasonable or possible, since it > is / or do I have to use a livefs disk like Fixit or Frenzy for this No, single user mode. Root partition in single user mode can be fsck'd and repaired if mounted ro in single user. The system does fsck -p by default, which skips partitions marked clean. Since you can shutdown cleanly, nothing will happen. Have a look at /etc/defaults/rc.conf for setting different behaviors by overriding the defaults in /etc/rc.conf. -- Mel ___ 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: Inconsistency in root partition size
Mel Flynn-2 wrote: > > On Sunday 06 September 2009 04:34:20 jaymax wrote: >> I apparently have open file handles in my / partitions. >> It was partitioned at 512 Mb size, used about 150Mb >> df shows >> Filesystem SizeUsed Avail Capacity Mounted on >> /dev/ad0s1a496M492M-36M 108%/ > >> adjkerntz 147 root0uVBAD >> (revoked) adjkerntz 147 root1uVBAD > > >> Can't really identify lines I can say does not belong so I don't have any >> rational basis to kill any process. All seems legit! >> >> Rebooting does not correct the descrepancy > > For one, you could've used fstat -f / to reduce the noise. Secondly, since You were correct fstat -f / showed no open files handles rebooting does not help, open files are not the cause. Rather the VBAD up > there. Do an fsck -y. Chances are your file system got filled, a hardware > write error occurred and the kernel could therefore not return the space > to > the disk. > If you still have logs, I would grep for WRITE_DMA in > ran fsck on / mounted partition, is that reasonable or possible, since it is / or do I have to use a livefs disk like Fixit or Frenzy for this # fsck -vy -B /dev/ad0s1a start / wait fsck_ufs -y -F /dev/ad0s1a start / wait fsck_ufs -y -B /dev/ad0s1a /: write failed, filesystem is full CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device ** /dev/ad0s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=3417 OWNER=root MODE=100400 SIZE=0 MTIME=Sep 6 02:41 2009 RECONNECT? no CLEAR? no UNREF FILE I=3495 OWNER=root MODE=140666 SIZE=0 MTIME=Sep 5 01:17 2009 CLEAR? no UNREF FILE I=3524 OWNER=root MODE=100644 SIZE=154 MTIME=Sep 5 01:23 2009 RECONNECT? no CLEAR? no ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no 16849 files, 251849 used, 1966 free (1966 frags, 0 blocks, 0.8% fragmentation) - # grep -in WRITE_DMA /var/log/messages Yielded nothing either Rebooted - came back up with the same condition. On rebooting, doesn't the system run fsck -y before mounting the disks Still stuck, at least we have eliminated the "open file handler" belief Thanks -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25316313.html Sent from the freebsd-questions mailing list archive at Nabble.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: Inconsistency in root partition size
On Sunday 06 September 2009 04:34:20 jaymax wrote: > I apparently have open file handles in my / partitions. > It was partitioned at 512 Mb size, used about 150Mb > df shows > Filesystem SizeUsed Avail Capacity Mounted on > /dev/ad0s1a496M492M-36M 108%/ > adjkerntz 147 root0uVBAD > (revoked) adjkerntz 147 root1uVBAD > Can't really identify lines I can say does not belong so I don't have any > rational basis to kill any process. All seems legit! > > Rebooting does not correct the descrepancy For one, you could've used fstat -f / to reduce the noise. Secondly, since rebooting does not help, open files are not the cause. Rather the VBAD up there. Do an fsck -y. Chances are your file system got filled, a hardware write error occurred and the kernel could therefore not return the space to the disk. If you still have logs, I would grep for WRITE_DMA in /var/log/messages. -- Mel ___ 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"