STILL cannot login as kline!
This is what is in my ~/.xsession-errors file: (process:1038): Gtk-WARNING **: This process is currently running setuid or setgid. This is not a supported use of GTK+. You must create a helper program instead. For further details, see: http://www.gtk.org/setuid.html Refusing to initialize GTK+. /usr/local/etc/gdm/Xsession: Beginning session setup... /usr/local/etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 2: IOR file '/var/tmp/gconfd-kline/lock/ior' not opened successfully, no gconfd located: No such file or directory) GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/gconf/ for information. (Details - 2: IOR file '/var/tmp/gconfd-kline/lock/ior' not opened successfully, no gconfd located: No such file or directory) Can't remove file (null): Bad address gconf-sanity-check-2 did not pass, logging back out [EMAIL PROTECTED]:/home/kline# I have fixed all of the possibilities with the exception of the TCP/IP ORBit networking. I have set up root entirely well; orev'ly there was nothing on the title/menu bar. But I keep getting bounced out of kline whenI try to login as myself. Clues, people?? I'm plumb out of ideas. gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fsck gave up on me!
Hi, I have been using FreeBSD 6.2 for a couple of months now with no major snags. Until now. I did a portupgrade this morning and afterwards, when I logged in as a user into Gnome, my desktop was missing most of the programs (Accessories, System Tools, etc.). I rebooted the machine and that other terminal screen came up (Single User?) and I was prompted to run fsck manually so I did so. Well, fsck gave up on me. I have no idea what happened or why. Can anyone help me understand what is going on with my machine and any possible actions I can take to resolve this? Script started on Fri Nov 2 17:13:22 2007 You have mail. root# fscd[Kk ** /dev/ad1s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, CG 2: BAD MAGIC NUMBER FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no fsck: /dev/ad1s1a: Segmentation fault: 11 kirkwood# exit exit Script done on Fri Nov 2 17:14:23 2007 Thank you in advance, Larry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem of install 7.0 on notebook
Thank you, David! The verbose logging messages: --- pcib2: ACPI PCI-PCI bridge at device 4.0 on pci0 pcib2: domain 0 pcib2: secondary bus 16 pcib2: subordinate bus 16 pcib2: I/O decode 0xf000-0xfff pcib2: memory decode 0xcc00-0xcc0f pcib2: no prefetched decode pcib2: could not get PCI interrupt routing table for \_SB_.C08B.C24F - AE_NOT_FOUND pci16: ACPI PCI bus on pcib2 pci16: domain=0, physical bus=16 found- vendor=0x14e4, dev=0x1693, revid=0x02 domain=0, bus=16, slot=0, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0010, cachelnsz=16, (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=10 powerspec 3 supports D0 D3 current D0 MSI supports 1 message, 64 bit map[10]: type Memory, range 64, base 0xcc00, size 16, enabled pcib2: requested memory range 0xcc00-0xcc00: good pcib0: matched entry for 0.4.INTA pcib0: slot 4 INTA hardwired to IRQ16 pcib2: slot 0 INTA is routed to irq 16 -- This is the last screen shown, and I write it here handy. 2007/11/2, David Yeske [EMAIL PROTECTED]: On 11/2/07, Zhang hw [EMAIL PROTECTED] wrote: I have now could work on my notebook with freebsd 6.2-release and 6.3-prerelease, but there are still some problems such as acpi. So I want to have a try of freebsd 7.0-beta-1.5, but I can't install it, the boot process stop at pci probing: pcib2:PCI-PCI brige at device 4.0 on pci0 pci16:PCI-PCI bus on pcib2 if acpi enable, it maybe show as: pcib2:ACPI PCI-PCI brige... pci16:ACPI... my cpu is athlon 64x2, I've tried both amd64 and i386 versions. Help! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] What happens if you boot verbose? That might better indicate where the kernel is hanging. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Determining the number of files in a directory
This is probably a dumb question; however, I never let a little thing like that bother me in the past. Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. Other than, by writing a script to accomplish this feat, how could I achieve my goal? Thanks! -- White Hat [EMAIL PROTECTED] __ 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: Determining the number of files in a directory
On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpfFHUz0Kapy.pgp Description: PGP signature
Re: Determining the number of files in a directory
On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpxwNPZjXDGB.pgp Description: PGP signature
Re: vim doesn't preserve the terminal content
On Fri, Nov 02, 2007 at 06:09:15PM -0700, Philip Hallstrom wrote: I use vim both on Linux and FreeBSD. On Linux after I exit vim original screen content is restored. On FreeBSD vim leaves the last content viewed in vim. How do I make vim preserve the screen? I don't know how to do that, but it is one Lunix (bash?) feature that I hate and would like to know how to change it to function the way it does under FreeBSD (tcsh). I hate it when it restores my screen and to prevent that in linux I added this to my .vimrc: set t_ti = set t_te = So read about whatever those options mean and set them accordingly... There's a bit about restoring the screen and setting these variables in vim help. :help rs -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck gave up on me!
On Fri, 2 Nov 2007, [EMAIL PROTECTED] wrote: I have been using FreeBSD 6.2 for a couple of months now with no major snags. Until now. I did a portupgrade this morning and afterwards, when I logged in as a user into Gnome, my desktop was missing most of the programs (Accessories, System Tools, etc.). I rebooted the machine and that other terminal screen came up (Single User?) and I was prompted to run fsck manually so I did so. Well, fsck gave up on me. I have no idea what happened or why. Can anyone help me understand what is going on with my machine and any possible actions I can take to resolve this? Script started on Fri Nov 2 17:13:22 2007 You have mail. root# fscd[Kk ** /dev/ad1s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, That looks like a hard drive going bad. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
El día Saturday, November 03, 2007 a las 05:27:06AM -0700, White Hat escribió: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. Other than, by writing a script to accomplish this feat, how could I achieve my goal? $ ls | wc -l 293 matthias -- Matthias Apitz Manager Technical Support - OCLC PICA GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclcpica.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
not sure which list for 7beta items...
now that 7.0 is in official beta, which list should i post to concerning issues im having (specifically, unreliability of the built-in iwi driver)? thanks, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
using healthd or lmmon or mbmon with SMBus
Hi, I have an IBM xSeries 225, Type: 8647, Model: 3AX server (Dual processor Intel Xeon 2.4 GHz, 8 GB RAM). I would like to monitor system and CPU temperature using healthd or lmmon or mbmon. My OS: # uname -srp FreeBSD 6.2-RELEASE-p8 i386 I have compiled (among other - it is an SMB, PAE kernel, acpi and apic enabled) the following stuff info kernel: # I2C Bus Support device iicbus device iicbb # System Management Bus support device smbus device intpm device smb # smb over ich bridge device ichsmb # smb over ich bridge device iicsmb If I look at dmesg.boot: # cat /var/run/dmesg.boot | grep smb ichsmb0: Intel 82801DC (ICH4) SMBus controller port 0x5000-0x501f irq 17 at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] smbus0: System Management Bus on ichsmb0 smb0: SMBus generic I/O on smbus0 also: # ls -la /dev | grep smb crw--- 1 root wheel 0, 31 Oct 30 18:33 smb0 But when I try to run healthd: # healthd -d -S ioctl(SMB_READB): Device not configured InitMBInfo: Device not configured When I try to run lmmon: # lmmon -s IOCTL: Device not configured when I try to run mbmon: # mbmon -S InitMBInfo: Device not configured +++ If I try to run whichever of those utils using the ISA I/O port (/dev/io), the utils shows output, but not the actual readings but the default values only... +++ Has anybody successfuly set up any motherboard monitoring utility under similar system and OS? I have read many forum posts and grep google, but hasn't find any answer that would solve my problems... -- Kind regards, Marko Kobal. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. Dan Well just use the Unix tool for everything - grep: $ ls -F | grep -Ev '/$'|wc -l or if you also want to exclude symlinks: $ ls -F | grep -Ev '/$|@$'|wc -l ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
On Saturday 03 November 2007, Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. find /target/directory -type f -maxdepth 1 | wc -l should do the trick. See also man find and man wc, of course. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
wireless network using ndisgen
Trying to set-up wireless internet access through a Belkin FSD6020 ver.2 wireless card has proved less than useful. Seeing that this isn't on the supported hardware list I had some fun unpacking .cab files from their distribution cdroms to attempt to wrap this using ndisgen. All seemed to go well as far as the utility itself is concerned, but I didn't get any messages (success or error) after running kldload ... I followed the instructions from the current FreeBSD handbook. From looking at the dmesg maybe there's a problem with cbb2 that's blocking ndis? Can a guru help me? I really don't want to have to use Win98 on this machine any longer... what's left of my sanity is at stake. My conclusions: FreeBSD 7.0-BETA1.5 installs from CDROM, not much else to say. FreeBSD 6.2-RELEASE didn't so that's at least something to be proud of. Hardware: Compaq Presario 1920 Internet Zone with no built-in ethernet. output from kldstat: Id Refs AddressSize Name 19 0xc040 8ca35c kernel 22 0xc0ccb000 e730 if_ndis.ko 33 0xc0cda000 1aa10ndis.ko 41 0xc0cf5000 14ac4bkpcmxp_sys.ko (I also tried similar with the win98 ndis driver; similar results) Nothing printed to console. output from ifconfig: plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 No ndis0 as I hoped. output from dmesg: Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-BETA1.5 #0: Thu Oct 25 01:19:36 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (298.65-MHz 686-class CPU) Origin = GenuineIntel Id = 0x66a Stepping = 10 Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR real memory = 201326592 (192 MB) avail memory = 182984704 (174 MB) kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) cpu0 on motherboard pcib0: Intel 82443BX (440 BX) host to PCI bridge pcibus 0 on motherboard pir0: PCI Interrupt Routing Table: 7 Entries on motherboard pci0: PCI bus on pcib0 agp0: Intel 82443BX (440 BX) host to PCI bridge on hostb0 pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 vgapci0: VGA-compatible display mem 0xf500-0xf5ff,0xf440-0xf47f,0xf410-0xf41f irq 9 at device 0.0 on pci1 pci1: multimedia, audio at device 0.1 (no driver attached) isab0: PCI-ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 UDMA33 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1050-0x105f at device 7.1 on pci0 ata0: ATA channel 0 on atapci0 ata0: [ITHREAD] ata1: ATA channel 1 on atapci0 ata1: [ITHREAD] uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x1060-0x107f irq 10 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0 uhub0: 2 ports with 2 removable, self powered piix0: PIIX Timecounter port 0x1040-0x104f at device 7.3 on pci0 Timecounter PIIX frequency 3579545 Hz quality 0 cbb0: TI1221 PCI-CardBus Bridge irq 9 at device 8.0 on pci0 cbb0: chip is in D3 power mode -- setting to D0 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 cbb0: [ITHREAD] cbb1: TI1221 PCI-CardBus Bridge irq 9 at device 8.1 on pci0 cbb1: chip is in D3 power mode -- setting to D0 cardbus1: CardBus bus on cbb1 pccard1: 16-bit PCCard bus on cbb1 cbb1: [ITHREAD] pci0: simple comms at device 9.0 (no driver attached) pmtimer0 on isa0 orm0: ISA Option ROM at iomem 0xc-0xcbfff pnpid ORM on isa0 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 fdc0: Enhanced floppy controller at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FILTER] fd0: 1440-KB 3.5 drive on fdc0 drive 0 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled
Re: Determining the number of files in a directory
On Sat, 2007-11-03 at 12:49 +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. $ find /target/directory -maxdepth 1 -type f -print | wc -l should do what you want though. Dan signature.asc Description: This is a digitally signed message part
Re: not sure which list for 7beta items...
On Sat, 03 Nov 2007 09:03:38 -0500 Jonathan Horne [EMAIL PROTECTED] wrote: now that 7.0 is in official beta, which list should i post to concerning issues im having (specifically, unreliability of the built-in iwi driver)? thanks, There seems to be a fair number of 7.0 questions on freebsd-stable so I guess that would be the place: http://docs.freebsd.org/mail/current/freebsd-stable.html There's a thread about the iwi driver here: http://docs.freebsd.org/cgi/mid.cgi?20071029224155.GG97703 -- Thanks, John. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck gave up on me!
[EMAIL PROTECTED] writes: Hi, I have been using FreeBSD 6.2 for a couple of months now with no major snags. Until now. I did a portupgrade this morning and afterwards, when I logged in as a user into Gnome, my desktop was missing most of the programs (Accessories, System Tools, etc.). I rebooted the machine and that other terminal screen came up (Single User?) and I was prompted to run fsck manually so I did so. Well, fsck gave up on me. I have no idea what happened or why. Can anyone help me understand what is going on with my machine and any possible actions I can take to resolve this? Script started on Fri Nov 2 17:13:22 2007 You have mail. root# fscd[Kk ** /dev/ad1s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, CG 2: BAD MAGIC NUMBER FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no fsck: /dev/ad1s1a: Segmentation fault: 11 kirkwood# exit exit Script done on Fri Nov 2 17:14:23 2007 Either your disk is going bad or you have been extraordinarily unlucky to lose a critical sector. Try to run manufacturer's diagnostic tools on it; failing that, you could try smartmontools (which, I guess, you would need to boot and run from other media, like a CD). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting/examining dd image?
Hm, anything that works in Freebsd 4.9? I've never been able to install 5.0 or higher on this machine, it always freezes when booting. On Nov 2, 2007 10:22 PM, John Nielsen [EMAIL PROTECTED] wrote: On Friday 02 November 2007, Jon Drukman wrote: I was trying to transplant my system from a small, old drive to a big, new one. I made a dd dump of the entire small drive, but then I accidentally destroyed the drive (be careful with bare drives and metal PC cases...) Anyway, I have the dd file but I don't have a spare drive onto which to copy it. Is there a way to read its contents/mount it/explore it/hopefully extract files from it on a running system? Yes there is: mdconfig -a -t vnode -f /path/to/dd/image/file That will cause the file to be treated as an md device. See also man mdconfig. The output of that command is the newly created /dev/md? device node. Depending on whether you dumped the whole disk, a slice, or a partition there may be additional devices. If you dd'ed the whole disk your former root partition might show up as /dev/md0s1a, for example. Once you've identified the device node(s) that contain(s) the filesystem(s) you're interested in, just mount it/them like you would any other device, e.g. mount /dev/md0s1a /mnt JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck gave up on me!
On Sat, Nov 03, 2007 at 07:42:59AM -0600, Warren Block wrote: On Fri, 2 Nov 2007, [EMAIL PROTECTED] wrote: I have been using FreeBSD 6.2 for a couple of months now with no major snags. Until now. I did a portupgrade this morning and afterwards, when I logged in as a user into Gnome, my desktop was missing most of the programs (Accessories, System Tools, etc.). I rebooted the machine and that other terminal screen came up (Single User?) and I was prompted to run fsck manually so I did so. Well, fsck gave up on me. I have no idea what happened or why. Can anyone help me understand what is going on with my machine and any possible actions I can take to resolve this? Script started on Fri Nov 2 17:13:22 2007 You have mail. root# fscd[Kk ** /dev/ad1s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, That looks like a hard drive going bad. Best make a backup if you still can. Install the sysutils/smartmontools port. Then use smartctl(8) with the -a option on /dev/ad1. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpF3rYhpoqzZ.pgp Description: PGP signature
Re: fsck gave up on me!
[EMAIL PROTECTED] wrote: Hi, I have been using FreeBSD 6.2 for a couple of months now with no major snags. Until now. I did a portupgrade this morning and afterwards, when I logged in as a user into Gnome, my desktop was missing most of the programs (Accessories, System Tools, etc.). I rebooted the machine and that other terminal screen came up (Single User?) and I was prompted to run fsck manually so I did so. Well, fsck gave up on me. I have no idea what happened or why. Can anyone help me understand what is going on with my machine and any possible actions I can take to resolve this? Script started on Fri Nov 2 17:13:22 2007 You have mail. root# fscd[Kk ** /dev/ad1s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups CANNOT READ BLK: 524544 CONTINUE? [yn] y THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, CG 2: BAD MAGIC NUMBER FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no fsck: /dev/ad1s1a: Segmentation fault: 11 kirkwood# exit exit Script done on Fri Nov 2 17:14:23 2007 Thank you in advance, Larry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It seems your hard disk is actually giving up on you: THE FOLLOWING DISK SECTORS COULD NOT BE READ: 524544, CANNOT READ BLK: 524544 Do you have any manufacturer utilities to run on the disk? This looks like a surface failure. Does it make any weird noise like trying to read the same area again and again? This is certainly a sign of disk failure ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting/examining dd image?
On Sat, 3 Nov 2007, Jon Drukman wrote: Hm, anything that works in Freebsd 4.9? I've never been able to install 5.0 or higher on this machine, it always freezes when booting. Please don't top post. vnconfig is the predecessor of mdconfig. It should be present in 4.9. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting/examining dd image?
On Saturday 03 November 2007, Jon Drukman wrote: Hm, anything that works in Freebsd 4.9? I've never been able to install 5.0 or higher on this machine, it always freezes when booting. In 4.x the analogous command is called vnconfig with slightly different syntax. On Nov 2, 2007 10:22 PM, John Nielsen [EMAIL PROTECTED] wrote: On Friday 02 November 2007, Jon Drukman wrote: I was trying to transplant my system from a small, old drive to a big, new one. I made a dd dump of the entire small drive, but then I accidentally destroyed the drive (be careful with bare drives and metal PC cases...) Anyway, I have the dd file but I don't have a spare drive onto which to copy it. Is there a way to read its contents/mount it/explore it/hopefully extract files from it on a running system? Yes there is: mdconfig -a -t vnode -f /path/to/dd/image/file That will cause the file to be treated as an md device. See also man mdconfig. The output of that command is the newly created /dev/md? device node. Depending on whether you dumped the whole disk, a slice, or a partition there may be additional devices. If you dd'ed the whole disk your former root partition might show up as /dev/md0s1a, for example. Once you've identified the device node(s) that contain(s) the filesystem(s) you're interested in, just mount it/them like you would any other device, e.g. mount /dev/md0s1a /mnt JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
5.2.1 to 6.2 Migration.
Hi all, I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? if so ... 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Duplicate existing FreeBSD Server in VM
On Fri, Nov 02, 2007 at 12:46:09PM +1100, Terry Sposato wrote: I have just installed a machine and have it setup running a web based CRM solution. I want to have an exact duplicate of this machine running as a VM for redundancy reasons. The best and easiest way I know of is using /usr/ports/net/rsync for this task. I often used it to move BSD or Linux systems to new hardware or transfer them into a VM. I usually make sure that the kernel supports all important hardware on the target machine and that /etc/fstab is correct. After that I start to transfer filesystem after filesystem with e.g.: # rsync -avxH --delete --exclude /etc/fstab / [EMAIL PROTECTED]:/ You might want to exclude other files (e.g. /etc/rc.conf) from being overwritten, I guess. The nice thing with rsync is that only diffs are transferred, so it would be easy and fast to keep your VM in sync with the source machine. Uwe P.S.: Yesterday I moved a FreeBSD 4.5 system from a Proliant 3000 (~7 years old) to a VMware Server VM using rsync. All I had to take care of was the use of a GENERIC kernel, a new /etc/fstab and a changed ifconfig line in /etc/rc.conf. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
What kind of audio device is this?
Hi, dmesg says I have got ugen0: vendor 0x0d8c PnP Audio Device, class 0/0, rev 1.10/0.10, addr 4 on uhub0 on board. What is this? Do we have a driver for it? Of course I tried # kldload snd_driver but all I get is # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64) Installed devices: I am running FreeBSD 7.0-BETA2 FreeBSD 7.0-BETA2 #0: Sat Nov 3 17:55:42 CET 2007 amd64 Thanks, Uli. Peter Ulrich Kruppa Wuppertal Germany ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
TSM stops working after kernel upgrade
Hi, I've got a TSM-client (Tivoli Storage Manger - Backup-System) running under FreeBSD 6.2 without any problems over the past months. However after a recent kernel upgrade (about Mid September) the TSM client stopped working. Whatever I try to backup I get the following messages: tsm inc /TSM-Backup Incremental backup of volume '/TSM-Backup' ANS1228E Sending of object '/TSM-Backup' failed ANS1063E The specified path is not a valid file system or logical volume name. tsm with /TSM-Backup being a snapshot-mounted (/dev/md...) partition of my machine. Please note that nothing else has changed on the machine - only the kernel/system has been updated! So here are my questions: o) Has anybody out there got TSM running under FreeBSd 6.2 and experienced similar problems? What did you do in order to get TSM back running again? o) Is there any way to step-back to an older kernel/system source? To be specific: Is there a way to cvs the kernel/system so that sources reflect the situatino at e.g. September 15,2007? If yes, how can that be done? (CVS?) Thanks much in advance for your help, -ewald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Request a Free Catalog and receive $10 off your first purchase
Request a free catalog and receive $10 your first purchase http://www.tackwholesale.com/Catalog_Request_Special02.htm put this link in your browser Click here on http://server1.streamsend.com/streamsend/unsubscribe.php?cd=34302md=192ud=0315a027f8f7a4a6f8562fc95996c688 http://server1.streamsend.com/streamsend/unsubscribe.php?cd=34302md=192ud=0315a027f8f7a4a6f8562fc95996c688 to update your profile or Unsubscribe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: [...] Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. ls -aF | grep -v /$ | wc -l is a quick, if somewhat ugly, way to do it. It counts the dotfiles too. Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
On Sat, 3 Nov 2007 10:44:43 -0400 John Nielsen [EMAIL PROTECTED] wrote: On Saturday 03 November 2007, Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. find /target/directory -type f -maxdepth 1 | wc -l should do the trick. See also man find and man wc, of course. That's better than ls(1), which is terribly slow at displaying (actually: at sorting) large directories. In this case, better turn off sorting with 'ls -f': $ time ls -f /usr/local/news/News | wc -l 0.42 real 0.29 user 0.07 sys 35935 $ time ls /usr/local/news/News | wc -l 147.02 real33.92 user 0.07 sys 35935 -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1 to 6.2 Migration.
At 11:56 AM 11/3/2007, Grant Peel wrote: Hi all, I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? if so ... 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? -Grant I did a source upgrade and rebuild from 5.1 to 6.1 remotely. Read upgrading carefully after you pull down the new src though for any extra steps you might need to make. However, also be prepared to make the trip should the upgrade go awry. -Derek -- 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: 5.2.1 to 6.2 Migration.
Hi all, I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? Yes. if so ... 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? I've done 5.x to 6.x upgrades via ssh. It is possible. In the handbook, you will see mentions of booting into single user mode and I can tell you that it is not required. Chris -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
compile ports and base using both cores
Hi, Installing ports or upgrading the base system only uses around 50% cpu utilization (measured with the top utility) on my dual core machine. Is there some way I can get higher cpu usage? /usr/src/UPDATING says don't use make -j. I tried installing openoffice.org-2 with make -j 2 but it failed at some stage saying it couldn't find a directory. It works not using -j. I'm using 7.0-BETA1.5 i386 on an AMD 64 system. Thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim doesn't preserve the terminal content
On Fri, Nov 02, 2007 at 04:00:05PM -0700, Pete Slagle wrote: Yuri wrote: I use vim both on Linux and FreeBSD. On Linux after I exit vim original screen content is restored. On FreeBSD vim leaves the last content viewed in vim. How do I make vim preserve the screen? Thanks, Yuri This behavior is controlled by xterm settings. I didn't notice that he mentioned xterm (if he's not using xterm, it's harder to fix ;-) Try holding the control key and middle-clicking with the mouse on an xterm window. You should see an Enable Alternate Screen Switching option. See 'man 1 xterm' or http://www.x.org/archive/X11R6.8.0/doc/xterm.1.html http://invisible-island.net/xterm/xterm.faq.html#xterm_tite http://invisible-island.net/xterm/manpage/xterm.html -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpRWaizlHUvA.pgp Description: PGP signature
Re: Mounting/examining dd image?
On Nov 3, 2007 9:23 AM, Warren Block [EMAIL PROTECTED] wrote: vnconfig is the predecessor of mdconfig. It should be present in 4.9. thanks, it is. however, i am unable to mount the vnconfig'd device. any ideas? i made the backup originally just by doing dd if=/dev/ad0 of=some.file then i ran vnconfig vn0 some.file if i dd /dev/ad0 i see all the boot sector stuff, etc. however i can't use disklabel or mount. # disklabel -r vn0 disklabel: bad pack magic number (label is damaged, or pack is unlabeled) # disklabel -r vn0a disklabel: bad pack magic number (label is damaged, or pack is unlabeled) # disklabel -r vn0b disklabel: bad pack magic number (label is damaged, or pack is unlabeled) # mount /dev/vn0s1a /mnt mount: /dev/vn0s1a on /mnt: incorrect super block it seems like the data is there but i don't know how to access it. fc 31 c0 8e c0 8e d8 8e d0 bc 00 7c be 1a 7c bf |.1.|..|.| 0010 1a 06 b9 e6 01 f3 a4 e9 00 8a 31 f6 bb be 07 b1 |..1.| 0020 04 38 2f 74 08 7f 78 85 f6 75 74 89 de 80 c3 10 |.8/t..x..ut.| 0030 e2 ef 85 f6 75 02 cd 18 80 fa 80 72 0b 8a 36 75 |u..r..6u| 0040 04 80 c6 80 38 f2 72 02 8a 14 89 e7 8a 74 01 8b |8.r..t..| 0050 4c 02 bb 00 7c 80 fe ff 75 32 83 f9 ff 75 2d 51 |L...|...u2...u-Q| 0060 53 bb aa 55 b4 41 cd 13 72 20 81 fb 55 aa 75 1a |S..U.A..r ..U.u.| 0070 f6 c1 01 74 15 5b 66 6a 00 66 ff 74 08 06 53 6a |...t.[fj.f.t..Sj| 0080 01 6a 10 89 e6 b8 00 42 eb 05 5b 59 b8 01 02 cd |.j.B..[Y| 0090 13 89 fc 72 0f 81 bf fe 01 55 aa 75 0c ff e3 be |...r.U.u| 00a0 bc 06 eb 11 be d4 06 eb 0c be f3 06 eb 07 bb 07 || 00b0 00 b4 0e cd 10 ac 84 c0 75 f4 eb fe 49 6e 76 61 |u...Inva| 00c0 6c 69 64 20 70 61 72 74 69 74 69 6f 6e 20 74 61 |lid partition ta| 00d0 62 6c 65 00 45 72 72 6f 72 20 6c 6f 61 64 69 6e |ble.Error loadin| 00e0 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst| 00f0 65 6d 00 4d 69 73 73 69 6e 67 20 6f 70 65 72 61 |em.Missing opera| 0100 74 69 6e 67 20 73 79 73 74 65 6d 00 00 00 00 00 |ting system.| 0110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 5.2.1 to 6.2 Migration.
Chris Haulmark [EMAIL PROTECTED] writes: Grant Peel wrote: Hi all, I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? Yes. if so ... 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? I've done 5.x to 6.x upgrades via ssh. It is possible. In the handbook, you will see mentions of booting into single user mode and I can tell you that it is not required. It's a good safety precaution; if your updated kernel won't boot, you will need to reinstall most of the system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Determining the number of files in a directory
On Sat, Nov 03, 2007 at 09:07:18PM +0100, cpghost wrote: On Sat, 3 Nov 2007 10:44:43 -0400 John Nielsen [EMAIL PROTECTED] wrote: On Saturday 03 November 2007, Daniel Bye wrote: On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote: On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Heheh! You and many more, my friend, myself absolutely included! Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. $ ls | wc -l will show you how many files and directories in the current (target) directory. To count just files, and exclude directories, you could try something like $ find /target/directory -type f -print | wc -l Except of course, that would descend into the subdirectories you're trying not to count... Sorry - an object lesson in not hitting send before you've tested what you scribbled. find /target/directory -type f -maxdepth 1 | wc -l should do the trick. See also man find and man wc, of course. That's better than ls(1), which is terribly slow at displaying (actually: at sorting) large directories. In this case, better turn off sorting with 'ls -f': $ time ls -f /usr/local/news/News | wc -l 0.42 real 0.29 user 0.07 sys 35935 $ time ls /usr/local/news/News | wc -l 147.02 real33.92 user 0.07 sys 35935 And ls -lf makes working with awk faster, too. E.g: % ls -lf | awk '$8 == 2007 {print $9}' % ls -ltf | awk '$8 == 2007 {print $9}' If you've got a large number of files, ls -lf is roughly twice as fast. gary -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Another Tag issue
Dear FreeBSD folks, What is the proper Tag for 8-CURRENT in cvs? Ist it '.'? Best regards, Tino pgpAeQMiYGrKi.pgp Description: PGP signature
Re: Determining the number of files in a directory
White Hat wrote: This is probably a dumb question; however, I never let a little thing like that bother me in the past. Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. Other than, by writing a script to accomplish this feat, how could I achieve my goal? I find that the most intuitive way is to use something like: find . -maxdepth 1 | wc -l Where you can specify how many levels of subdirectories to include in the count. Please note that count also includes the current directory (.). To exclude hidden files (.*), use find * -maxdepth 0 | wc -l or expr `ls -l | wc -l` - 1 instead. Thanks! -- Pietro Cerutti PGP Public Key: http://gahr.ch/pgp signature.asc Description: OpenPGP digital signature
Re: 5.2.1 to 6.2 Migration.
Lowell Gilbert wrote: Chris Haulmark [EMAIL PROTECTED] writes: Grant Peel wrote: I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? Yes. 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? I've done 5.x to 6.x upgrades via ssh. It is possible. In the handbook, you will see mentions of booting into single user mode and I can tell you that it is not required. It's a good safety precaution; if your updated kernel won't boot, you will need to reinstall most of the system. That sounds a tad alarmist; if the new kernel won't boot, you'll have to be at (or have someone at) the console who can boot kernel.old (I stand open for correction, but last time I did it, 'twas that way). And, possibly, that person (you?) will also have to be able to do some other magic. But the phrase reinstall most of the system doesn't, at the very least, *sound* like the BSD Way(tm). Granted, sometimes it's quicker --- I know that's why it's used so often on that Other System ;-) Kevin Kinsey -- Only through hard work and perseverance can one truly suffer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
reverse grep
How is it possible to select lines that do NOT match a specific pattern? For example, I'm connecting to 192.168.123.254 via telnet (port 23), and do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs something, the system sends me some packets, which generates output in tcpdump, and vice versa. I want to filter out packets of telnet access to the FreeBSD machine, that is, something like: tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
On Sun, Nov 04, 2007 at 01:12:45AM +0100, [EMAIL PROTECTED] wrote: How is it possible to select lines that do NOT match a specific pattern? By using the '-v' option to grep. For example, I'm connecting to 192.168.123.254 via telnet (port 23), and do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs something, the system sends me some packets, which generates output in tcpdump, and vice versa. I want to filter out packets of telnet access to the FreeBSD machine, that is, something like: tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23 You can also tell tcpdump directly to not generate certain output. E.g. 'tcpdump -nli rl0 not port 23' will not display any traffic to/from port 23. Read the tcpdump(1) manpage for the details - many more options are available. -- Insert your favourite quote here. Erik Trulsson [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: reverse grep
On 2007-11-04 01:12, [EMAIL PROTECTED] wrote: How is it possible to select lines that do NOT match a specific pattern? grep -v 'pattern' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
reverse grep
[EMAIL PROTECTED] writes: How is it possible to select lines that do NOT match a specific pattern? Read any good man pages lately? Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pdf edit again.
A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
On 11/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How is it possible to select lines that do NOT match a specific pattern? For example, I'm connecting to 192.168.123.254 via telnet (port 23), and do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs something, the system sends me some packets, which generates output in tcpdump, and vice versa. I want to filter out packets of telnet access to the FreeBSD machine, that is, something like: tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23 grep -v man grep ___ 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: reverse grep
On Sunday 04 November 2007 00:12:45 [EMAIL PROTECTED] wrote: How is it possible to select lines that do NOT match a specific pattern? grep -v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On November 3, 2007 08:38:55 pm Gary Kline wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) gary Try gv and xpdf. You might get lucky. Otherwise - try od :-) -- Mike Jeays http://www.jeays.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
On Sun, Nov 04, 2007 at 01:12:45AM +0100, [EMAIL PROTECTED] wrote: How is it possible to select lines that do NOT match a specific pattern? For example, I'm connecting to 192.168.123.254 via telnet (port 23), and do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs something, the system sends me some packets, which generates output in tcpdump, and vice versa. I want to filter out packets of telnet access to the FreeBSD machine, that is, something like: tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23 % tcpdump -nli rl0 | grep -v 192.168.123.254.23 will print everything except the IP you have shown. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sat, 3 Nov 2007 16:38:55 -0800 Gary Kline [EMAIL PROTECTED] wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) Old books in PDF are normally scanned bitmaps. There are no characters or whatever therein; just pixels (EPS files). If you want to convert that to ASCII, you'd need to extract the EPS files (use something like pdfimages from the xpdf port), turn them into some bitmap format, and run some kind of OCR software on that. It's a slow, unreliable, error-prone and painful process though. Good luck! -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sat, Nov 03, 2007 at 09:03:17PM -0400, Mike Jeays wrote: On November 3, 2007 08:38:55 pm Gary Kline wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) gary Try gv and xpdf. You might get lucky. Otherwise - try od :-) Welll, yeah, I can view ths file with xpdf or any other viewer, but can't figure out what's blocking it from being converted to ASCII. I've seen pdfedit for linux, but haven't found it thanks, gary PS: can't figure out whyanybody would take a pub domain book 125 years old any say copyright.. *mumble* -- Mike Jeays http://www.jeays.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sun, Nov 04, 2007 at 02:39:14AM +0100, cpghost wrote: On Sat, 3 Nov 2007 16:38:55 -0800 Gary Kline [EMAIL PROTECTED] wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) Old books in PDF are normally scanned bitmaps. There are no characters or whatever therein; just pixels (EPS files). If you want to convert that to ASCII, you'd need to extract the EPS files (use something like pdfimages from the xpdf port), turn them into some bitmap format, and run some kind of OCR software on that. It's a slow, unreliable, error-prone and painful process though. Good luck! Arrrgh (Charlie Brown). If it's that tortured, I'll forget it; thanks for the clue. Pretty sure this *was* just phot'd and scanned in. (Much be how amazon.com has thir zillions of boooks online. OCR'ing is serious work; I know that first hand.) gary -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
Hello deeptech71, Sunday, November 4, 2007, 1:12:45 AM, you wrote: How is it possible to select lines that do NOT match a specific pattern? grep -v ; next time please try man grep -- Best regards, Danielmailto:[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: 5.2.1 to 6.2 Migration.
Kevin Kinsey [EMAIL PROTECTED] writes: Lowell Gilbert wrote: Chris Haulmark [EMAIL PROTECTED] writes: Grant Peel wrote: I thought I would ask the question before I do it the hard way 1. Can FreeBSD be upgraded from 5.2.1 to 6.2 ? Yes. 2. Can it be done through an ssh connection, or MUST I make the trip to the farm and do it from the console? I've done 5.x to 6.x upgrades via ssh. It is possible. In the handbook, you will see mentions of booting into single user mode and I can tell you that it is not required. It's a good safety precaution; if your updated kernel won't boot, you will need to reinstall most of the system. That sounds a tad alarmist; if the new kernel won't boot, you'll have to be at (or have someone at) the console who can boot kernel.old (I stand open for correction, but last time I did it, 'twas that way). And, possibly, that person (you?) will also have to be able to do some other magic. But the phrase reinstall most of the system doesn't, at the very least, *sound* like the BSD Way(tm). Granted, sometimes it's quicker --- I know that's why it's used so often on that Other System ;-) If you have reinstalled a userland that depends on a kernel that doesn't boot, you are quite likely to be in trouble. The BSD way does not necessarily involve easy recovery from making up procedures that haven't been worked out or tested by the release engineers. In fact, I don't think any operating system guarantees that you will have an easy time after making up your own upgrade procedures. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/libexec/ld-elf.so.1: Shared object libm.so.6 not found, required by libstdc++.so.5
HI there, I am not quite sure what library I need to cure this issue up. $ nmap -sP -v 192.168.1.1-255 /libexec/ld-elf.so.1: Shared object libm.so.6 not found, required by libstdc++.so.5 Any clues please? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
odd entry appeared in my routing table
I am sincerely sorry if this is the wrong place to post. Please direct me to the proper forum if possible. A couple of entries for bannerconnect.com have appeared in the routing table of my laptop. In one case the entry is in both destination and gateway columns and in the other, my IP is in the destination and bannerconnect.com is the gateway entry. It shows as being up and as host. The normal entries are in the table as well and these have not replaced the normal routing entries. I am in a home network using DSL on OSX. Looking back through the daily cron, it appeared on October 30th and that's all I have been able to figure out. I know Apple changed things and that you folks may not be able to help me but what I'm asking about is a probable method of attack. I flushed the table and the entry came back. I believe my hosts file has prevented it from being used by directing it to the loopback but that may be superstition on my part. Thanks, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
need Linux help (watch and LVS)
Can someone tell me the FreeBSD equivalent of the Linux command watch. In Linux, watch is like top, but you can run it against any command and have it refresh every N seconds. There is a watch command in FreeBSD but it does something else entirely. Also, does FreeBSD have an equivalent for Linux LVS? Is it HAProxy? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
The FreeBSD Diary: 2007-10-14 - 2007-11-03
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives http://www.freebsd.org/search/search.html#mailinglists and/or The FreeBSD Diary http://www.freebsddiary.org/. -- Dan Langille BSDCan - http://www.BSDCan.org/ - BSD Conference ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sat, 03 Nov 2007 17:42:03 -0800, Gary Kline wrote: On Sat, Nov 03, 2007 at 09:03:17PM -0400, Mike Jeays wrote: On November 3, 2007 08:38:55 pm Gary Kline wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) gary Try gv and xpdf. You might get lucky. Otherwise - try od :-) Welll, yeah, I can view ths file with xpdf or any other viewer, but can't figure out what's blocking it from being converted to ASCII. I've seen pdfedit for linux, but haven't found it thanks, gary PS: can't figure out whyanybody would take a pub domain book 125 years old any say copyright.. *mumble* The guy who scanned the book did actually invest a considerable amount of work into scanning it and he can claim copyright for that work. The text itself may be in the public domain but the pdf file is subject to copyright. Best regards, Jona ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
heh I've read (kind of skimmed) the grep man page but i seem to have missed the -v for some reason ^^ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sat, 3 Nov 2007 17:54:53 -0800 Gary Kline [EMAIL PROTECTED] wrote: On Sun, Nov 04, 2007 at 02:39:14AM +0100, cpghost wrote: On Sat, 3 Nov 2007 16:38:55 -0800 Gary Kline [EMAIL PROTECTED] wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) Old books in PDF are normally scanned bitmaps. There are no characters or whatever therein; just pixels (EPS files). If you want to convert that to ASCII, you'd need to extract the EPS files (use something like pdfimages from the xpdf port), turn them into some bitmap format, and run some kind of OCR software on that. It's a slow, unreliable, error-prone and painful process though. Good luck! Arrrgh (Charlie Brown). If it's that tortured, I'll forget it; thanks for the clue. Pretty sure this *was* just phot'd and scanned in. (Much be how amazon.com has thir zillions of boooks online. OCR'ing is serious work; I know that first hand.) If you need help on imperfectly OCR'ed texts, esp. on texts that are no longer copyrighted, there's always Distributed Proofreaders from the venerable Project Gutenberg: http://www.pgdp.net/ Good luck! -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cannot get screen out of black/black mode...
Where do I set up the screen to never go blan? both in console (white on black) mode and in X? Every so often my video card driver (mga) remains blank after 10 to 15 minutes. And gets stuck in this mode. --FWIW, this did not happen in xorg-6.9-- only in the 7.x versions. My hunch is to never let the screen blank. The screensaver does seem to work, tho. Anybody help me here? thanks much, gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: reverse grep
On Nov 3, 2007, at 19:35, [EMAIL PROTECTED] wrote: heh I've read (kind of skimmed) the grep man page but i seem to have missed the -v for some reason ^^ The use of grep -v will work as long as the tcpdump output is limited to one line per packet. However, some of the tcpdump options produce multiple lines per packet. Those will appear to be jumbled as the initial line for the packet will not be included but the following lines will. The best approach to using tcpdump in these situations is to use the -w option to write the raw data to a file. Then use the -r to read it back in and filter using the tcpdump filters which do include the not function. That way if you don't get what you need, you can try again on the same data. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdf edit again.
On Sun, Nov 04, 2007 at 05:12:48AM +0100, Jona Joachim wrote: On Sat, 03 Nov 2007 17:42:03 -0800, Gary Kline wrote: On Sat, Nov 03, 2007 at 09:03:17PM -0400, Mike Jeays wrote: On November 3, 2007 08:38:55 pm Gary Kline wrote: A couple weeks ago I skimmed thru the postings on editing PDF files. Wasn't entirely clear what the answer it because I never thought I would need to edit a GUI file. I just found a book from 1883 in pdf format. I would like a text/ASCII/ISO_8859-1 version. Tried pfdtotext, but it doesn't work. Nutshell: is there something I can use to edit/look-at this book and get rid of whateveriit is that's causing pdftotext to fail. (sorry for the grammar ) gary Try gv and xpdf. You might get lucky. Otherwise - try od :-) Welll, yeah, I can view ths file with xpdf or any other viewer, but can't figure out what's blocking it from being converted to ASCII. I've seen pdfedit for linux, but haven't found it thanks, gary PS: can't figure out whyanybody would take a pub domain book 125 years old any say copyright.. *mumble* The guy who scanned the book did actually invest a considerable amount of work into scanning it and he can claim copyright for that work. The text itself may be in the public domain but the pdf file is subject to copyright. So then I could consier my HTML version of the philosophy books that friends and I OCR'd in. --Yes, it is a Lot of work... but as least for myself, i wouldn't be that crass. gary Best regards, Jona ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]