Control-M question
Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Regard / Saludos.- Leonardo Santagostini ___ 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: Control-M question
On 8 August 2013 17:15, Leonardo Santagostini lsantagost...@gmail.com wrote: Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Well, assuming you're talking about the BMC software, they don't list FreeBSD as a supported platform. http://www.bmc.com/modules/module-html/Control-M-by-applications.html?height=488width=940 Given that it's not open source, if the doesn't run successfully under Linux emulation, I strongly doubt you can do anything outside of con- tacting the company. Also, AFIK Linux emulation is i386 only, not amd64/x86_64 (or what- ever obnoxious neologism they're using to-day) so you'll probably have to run something other than Linux-x86_64. -- -- ___ 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: Control-M question
Ok thank you very much =) Regards / Saludos.- Leonardo Santagostini http://ar.linkedin.com/in/santagostini 2013/8/8 ill...@gmail.com ill...@gmail.com On 8 August 2013 17:15, Leonardo Santagostini lsantagost...@gmail.com wrote: Hello list, Im trying to install control-m agent on FreeBSD doing some searching i didnt find anything that point to me to a sucessfull installation. I would really appreciate if someone can give to me a clue or some recipe or some howto !! Arquitecture is: FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and CTM agent is: PIM PLATFORMPACKAGE DATEINSTALL DATE VERSION INSTALL TYPECOMME NTS DRKAI.6.3.01Linux-x86_64Dec-04-2006 Nov-04-2009 6.3.01.000 INSTALLATION Well, assuming you're talking about the BMC software, they don't list FreeBSD as a supported platform. http://www.bmc.com/modules/module-html/Control-M-by-applications.html?height=488width=940 Given that it's not open source, if the doesn't run successfully under Linux emulation, I strongly doubt you can do anything outside of con- tacting the company. Also, AFIK Linux emulation is i386 only, not amd64/x86_64 (or what- ever obnoxious neologism they're using to-day) so you'll probably have to run something other than Linux-x86_64. -- -- ___ 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
newfs -m for large filesystem
Hello, are the remarks given for the -m option in tunefs(8) and newfs(8) still the same for very large filesystems, or the free-space margin might be safely reduced in these cases? For instance, when I have a 12TB filesystem then the default 8% margin gets close to the value of 1TB, which seems like a waste of capacity. Thanks Irek. ___ 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: newfs -m for large filesystem
From owner-freebsd-questi...@freebsd.org Fri Nov 23 09:31:00 2012 Date: Fri, 23 Nov 2012 16:27:23 +0100 From: Ireneusz Pluta ipl...@wp.pl To: freebsd-questions@freebsd.org Subject: newfs -m for large filesystem Hello, are the remarks given for the -m option in tunefs(8) and newfs(8) still the same for very large filesystems, or the free-space margin might be safely reduced in these cases? For instance, when I have a 12TB filesystem then the default 8% margin gets close to the value of 1TB, which seems like a waste of capacity. the tunefs remarks do apply. especially the threshold for space vs. time optimization. That said, there is nothing detrimental to reducing minfee to 5% ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Victor Sudakov wrote: 2. It looses one of the HDDs during intensive read/write operations: Jun 2 00:55:33 vas kernel: ahcich1: Timeout on slot 4 port 0 Jun 2 00:55:33 vas kernel: ahcich1: is cs 00c0 ss 00f0 rs 00f0 tfd c0 serr cmd c617 Jun 2 00:56:48 vas kernel: ahcich1: Timeout on slot 0 port 0 Jun 2 00:56:48 vas kernel: ahcich1: is cs 0001 ss rs 0001 tfd c0 serr cmd c017 Jun 2 00:57:20 vas kernel: ahcich1: AHCI reset: device not ready after 31000ms (tfd = 0080) I shall of course check the HDD and cable, but they worked flawlessly on the previous system. The cable is OK. I have tried different SATA slots on the motherbord too, the HDD losses persist. How can a rule out a kernel driver bug in ahci or ada, perhaps a PR is due? Well, there is already a very similar PR kern/161248 -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Peter Vereshagin wrote: VS What video card would the collective mind of FreeBSD users recommend? VS I'm not a gamer, this box runs FreeBSD only with a recent xorg, I VS often watch movies on it. I'd try with nvidia. Any modern one has support of 'xvideo' extension with the 'driver nv' that is 'just enough' for watching movies. I've no modern hardware but the model that works good for years for me is: tnt2 agp 32M. Just the same as out of every TransNeft's trashcan around the corner these days. ;-) They gave me the following from the TransNeft trashcan, indeed: VendorName NVIDIA Corporation BoardName NV18 [GeForce4 MX 440 AGP 8x] Driver nv It says AGP but in reality it is PCI, perhaps some very rare species :) It has X-Video Extension version 2.2, my movies are back, hurrah! In the meanwhile, I'll wait for the development of the SandyBrdige Intel driver. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Victor Sudakov wrote: 2. It looses one of the HDDs during intensive read/write operations: Jun 2 00:55:33 vas kernel: ahcich1: Timeout on slot 4 port 0 Jun 2 00:55:33 vas kernel: ahcich1: is cs 00c0 ss 00f0 rs 00f0 tfd c0 serr cmd c617 Jun 2 00:56:48 vas kernel: ahcich1: Timeout on slot 0 port 0 Jun 2 00:56:48 vas kernel: ahcich1: is cs 0001 ss rs 0001 tfd c0 serr cmd c017 Jun 2 00:57:20 vas kernel: ahcich1: AHCI reset: device not ready after 31000ms (tfd = 0080) I shall of course check the HDD and cable, but they worked flawlessly on the previous system. The cable is OK. I have tried different SATA slots on the motherbord too, the HDD losses persist. How can a rule out a kernel driver bug in ahci or ada, perhaps a PR is due? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
2. It looses one of the HDDs during intensive read/write operations: Jun 2 00:55:33 vas kernel: ahcich1: Timeout on slot 4 port 0 Jun 2 00:55:33 vas kernel: ahcich1: is cs 00c0 ss 00f0 rs 00f0 tfd c0 serr cmd c617 Jun 2 00:56:48 vas kernel: ahcich1: Timeout on slot 0 port 0 Jun 2 00:56:48 vas kernel: ahcich1: is cs 0001 ss rs 0001 tfd c0 serr cmd c017 Jun 2 00:57:20 vas kernel: ahcich1: AHCI reset: device not ready after 31000ms (tfd = 0080) I shall of course check the HDD and cable, but they worked flawlessly on the previous system. well i've had such problems regularly with many motherboard. It happens often when you have many disks and put heavy load on them. And it is only result of poor hardware (not sure - poor controller, motherboard design, both?). i tried changing disks, ports, until i replaced this server with dell poweredge ;) if this is quite random, swapping ports change the behaviour but not solve it, swapping cables does not, yet there is no real rule when and why it happens you have same problem that i've had. 3. I had to run xorg in VESA mode, because xf86-video-intel-2.7.1_4 does not recognize the video chip on the motherboard on question. That is a tried this from ports? drwxr-xr-x 2 root wheel 512 18 maj 16:49 xf86-video-intel29 depends of hardware model. actually intel GFX is the only one i tolerate and it works. Eg the one in my lenovo G550 laptop needs 2.7 driver, the one builtin in Atom D525 processor needs 2.9 driver. Completely new intel GFX are not YET supported but that what i only heard as i don't have any of them. ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Wojciech Puchar wrote: 2. It looses one of the HDDs during intensive read/write operations: Jun 2 00:55:33 vas kernel: ahcich1: Timeout on slot 4 port 0 Jun 2 00:55:33 vas kernel: ahcich1: is cs 00c0 ss 00f0 rs 00f0 tfd c0 serr cmd c617 Jun 2 00:56:48 vas kernel: ahcich1: Timeout on slot 0 port 0 Jun 2 00:56:48 vas kernel: ahcich1: is cs 0001 ss rs 0001 tfd c0 serr cmd c017 Jun 2 00:57:20 vas kernel: ahcich1: AHCI reset: device not ready after 31000ms (tfd = 0080) I shall of course check the HDD and cable, but they worked flawlessly on the previous system. well i've had such problems regularly with many motherboard. It happens often when you have many disks and put heavy load on them. Indeed this happens under load. I would not call it particularly heavy though, it's more like moving large files between zfs datasets causes the loss of drive. And it is only result of poor hardware (not sure - poor controller, motherboard design, both?). i tried changing disks, ports, until i replaced this server with dell poweredge ;) Can we be sure that it is not a bug in the ahci or ada driver? Is there a way to reinit and reattach the failed drive? if this is quite random, swapping ports change the behaviour but not solve it, swapping cables does not, yet there is no real rule when and why it happens you have same problem that i've had. Could it have been a power problem? 3. I had to run xorg in VESA mode, because xf86-video-intel-2.7.1_4 does not recognize the video chip on the motherboard on question. That is a tried this from ports? drwxr-xr-x 2 root wheel 512 18 maj 16:49 xf86-video-intel29 Yes, I have too. It says no device detected or something like that. depends of hardware model. actually intel GFX is the only one i tolerate and it works. Eg the one in my lenovo G550 laptop needs 2.7 driver, the one builtin in Atom D525 processor needs 2.9 driver. Completely new intel GFX are not YET supported but that what i only heard as i don't have any of them. What video card would the collective mind of FreeBSD users recommend? I'm not a gamer, this box runs FreeBSD only with a recent xorg, I often watch movies on it. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Hello. 2012/06/02 23:40:25 +0700 Victor Sudakov v...@mpeks.tomsk.su = To freebsd-questions@freebsd.org : VS What video card would the collective mind of FreeBSD users recommend? VS I'm not a gamer, this box runs FreeBSD only with a recent xorg, I VS often watch movies on it. I'd try with nvidia. Any modern one has support of 'xvideo' extension with the 'driver nv' that is 'just enough' for watching movies. I've no modern hardware but the model that works good for years for me is: tnt2 agp 32M. Just the same as out of every TransNeft's trashcan around the corner these days. ;-) -- Peter Vereshagin pe...@vereshagin.org (http://vereshagin.org) pgp: A0E26627 ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
On 06/02/12 12:07, Peter Vereshagin wrote: I am using a MSI N210 w/ FreeBSD 9-Stable. Seems to work Ok. Tom Dean ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
On Sat, 2 Jun 2012 23:07:45 +0400, Peter Vereshagin wrote: Hello. 2012/06/02 23:40:25 +0700 Victor Sudakov v...@mpeks.tomsk.su = To freebsd-questions@freebsd.org : VS What video card would the collective mind of FreeBSD users recommend? VS I'm not a gamer, this box runs FreeBSD only with a recent xorg, I VS often watch movies on it. I'd try with nvidia. Any modern one has support of 'xvideo' extension with the 'driver nv' that is 'just enough' for watching movies. I'm also using nVidia GeForce 7600 GS (G73) here, using the nvidia driver and the kernel module. Works very good, except my GPU is broken and occassionally freezes the whole system in an unpredictable manner. :-) Previously I've been using an ATI Radeon 9200 (RV250) with less trouble, using XFree86's (and later on X.org's) stock ati driver. Any not-too-recent card should work fine. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
On Sat, 2 Jun 2012, Polytropon wrote: On Sat, 2 Jun 2012 23:07:45 +0400, Peter Vereshagin wrote: Hello. 2012/06/02 23:40:25 +0700 Victor Sudakov v...@mpeks.tomsk.su = To freebsd-questions@freebsd.org : VS What video card would the collective mind of FreeBSD users recommend? VS I'm not a gamer, this box runs FreeBSD only with a recent xorg, I VS often watch movies on it. I'd try with nvidia. Any modern one has support of 'xvideo' extension with the 'driver nv' that is 'just enough' for watching movies. I'm also using nVidia GeForce 7600 GS (G73) here, using the nvidia driver and the kernel module. Works very good, except my GPU is broken and occassionally freezes the whole system in an unpredictable manner. :-) Previously I've been using an ATI Radeon 9200 (RV250) with less trouble, using XFree86's (and later on X.org's) stock ati driver. Any not-too-recent card should work fine. More specifically, up to 4000-series Radeons. The HD4650 works well. ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
I have installed 9.0-RELEASE on this motherboard with the following brief results: $ cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA Realtek ALC892 PCM #0 Analog (play/rec) default pcm1: HDA Realtek ALC892 PCM #1 Analog (play/rec) pcm2: HDA Realtek ALC892 PCM #2 Digital (play) pcm3: HDA Realtek ALC892 PCM #3 Digital (play) pcm4: HDA Intel Cougar Point HDMI PCM #0 DisplayPort (play) $ The devices /dev/dsp0, /dev/dsp1 even play to different audio outputs (front panel and rear panel). However, there are some more or less serious problems: 1. The green console screensaver does not poweroff the monitor. It just blanks the screen and sometimes displays white rubbish thereon. 2. It looses one of the HDDs during intensive read/write operations: Jun 2 00:55:33 vas kernel: ahcich1: Timeout on slot 4 port 0 Jun 2 00:55:33 vas kernel: ahcich1: is cs 00c0 ss 00f0 rs 00f0 tfd c0 serr cmd c617 Jun 2 00:56:48 vas kernel: ahcich1: Timeout on slot 0 port 0 Jun 2 00:56:48 vas kernel: ahcich1: is cs 0001 ss rs 0001 tfd c0 serr cmd c017 Jun 2 00:57:20 vas kernel: ahcich1: AHCI reset: device not ready after 31000ms (tfd = 0080) I shall of course check the HDD and cable, but they worked flawlessly on the previous system. 3. I had to run xorg in VESA mode, because xf86-video-intel-2.7.1_4 does not recognize the video chip on the motherboard on question. That is a pain! mplayer is incredibly slow on all movies. It complains that your system is too slow to play this and gives a plethora of obscure recommendations, but I basically thought that the sheer CPU power should be sufficient to play the video. Is there a solution which just works? Replacing mplayer with something else? Buying a video card (what model)? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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
what 'M' is meaning?
Hi, Freebsd-questions. 8.3-STABLE #8 r236325M what does 'M' in revision number mean? -- Eugen mailto:kes-...@yandex.ru ___ 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: what 'M' is meaning?
On 30/05/2012 20:59, Eugen Konkov wrote: Hi, Freebsd-questions. 8.3-STABLE #8 r236325M what does 'M' in revision number mean? That you have local, uncommitted modifications to the /usr/src tree you compiled from. Try 'svn diff' Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re[2]: what 'M' is meaning?
Hi, Matthew. MS On 30/05/2012 20:59, Eugen Konkov wrote: Hi, Freebsd-questions. 8.3-STABLE #8 r236325M what does 'M' in revision number mean? MS That you have local, uncommitted modifications to the /usr/src tree you MS compiled from. Try 'svn diff' MS Cheers, MS Matthew oh, yes, I have local modifications. I have removed that modules, because of make installkernel fail with 'no such file or directory' despite on 'geom_part_ldm.ko' compiled successfully and exists such situation and with others commeted. Thank you. Index: sys/modules/Makefile === --- sys/modules/Makefile(revision 236325) +++ sys/modules/Makefile(working copy) @@ -315,8 +315,6 @@ vr \ vte \ vx \ - wb \ - ${_wbwd} \ ${_wi} \ wlan \ wlan_acl \ Index: sys/modules/ralfw/Makefile === --- sys/modules/ralfw/Makefile (revision 236325) +++ sys/modules/ralfw/Makefile (working copy) @@ -1,5 +1,6 @@ # $FreeBSD$ -SUBDIR=rt2561 rt2561s rt2661 rt2860 +SUBDIR=rt2561 rt2561s rt2661 +# rt2860 .include bsd.subdir.mk Index: sys/modules/geom/geom_part/Makefile === --- sys/modules/geom/geom_part/Makefile (revision 236325) +++ sys/modules/geom/geom_part/Makefile (working copy) @@ -4,7 +4,6 @@ geom_part_bsd \ geom_part_ebr \ geom_part_gpt \ - geom_part_ldm \ geom_part_mbr \ geom_part_pc98 \ geom_part_vtoc8 -- С уважением, Eugen mailto:kes-...@yandex.ru ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
On 17/05/2012 14:31, Victor Sudakov wrote: Thanks for the good news. Can you please show 'cat /dev/sndstat' and what the kernel thinks about the NIC (is it the re(4) driver?) cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: HDA NVidia (Unknown) PCM #0 DisplayPort (play) pcm1: HDA NVidia (Unknown) PCM #1 DisplayPort (play) pcm2: HDA Realtek ALC887 PCM #0 Analog (play/rec) default pcm3: HDA Realtek ALC887 PCM #1 Analog (play/rec) pcm4: HDA Realtek ALC887 PCM #2 Digital (play) dmesg hdac0: HDA Codec #0: NVidia (Unknown) pcm0: HDA NVidia (Unknown) PCM #0 DisplayPort at cad 0 nid 1 on hdac0 pcm1: HDA NVidia (Unknown) PCM #1 DisplayPort at cad 0 nid 1 on hdac0 hdac1: HDA Codec #0: Realtek ALC887 pcm2: HDA Realtek ALC887 PCM #0 Analog at cad 0 nid 1 on hdac1 pcm3: HDA Realtek ALC887 PCM #1 Analog at cad 0 nid 1 on hdac1 pcm4: HDA Realtek ALC887 PCM #2 Digital at cad 0 nid 1 on hdac1 re0: RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet port 0xd000-0xd0ff mem 0xf2104000-0xf2104fff,0xf210-0xf2103fff irq 18 at device 0.0 on pci4 re0: Using 1 MSI-X message re0: Chip rev. 0x2c80 re0: MAC rev. 0x miibus0: MII bus on re0 rgephy0: RTL8169S/8110S/8211 1000BASE-T media interface PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 14:da:xx:xx:xx:xx ifconfig re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC ether 14:da:xx:xx:xx:xx inet 192.168.xx.xx netmask 0xff00 broadcast 192.168.xx.xx inet6 fe80:::::%re0 prefixlen 64 scopeid 0x3 nd6 options=23PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
On 16/05/2012 13:52, Victor Sudakov wrote: Colleagues, Do you have success stories running FreeBSD on an ASUS P8H67-M LGA1155 H67 motherboard? This will be mostly a desktop system on 9.0-RELEASE. I am worried especially about the Sandy Bridge video, shall I be able to use it with xorg at least in VESA modes? Do also the sound/NIC/etc drivers work well with this motherboard? I am running 9.0-RELEASE on an ASUS P8H61-M LE/USB3 with a corei5 Having the same audio and LAN chips I can say they work. Had some trouble getting the audio working to start with, vaguely recall it was something with the generic sound detection didn't pick the right driver, once I enabled one specific sound device I haven't had trouble (also that was back in rc3). Only using stereo speakers so can't vouch for any surround features. Add snd_hda_load=YES to /boot/loader.conf Using an Nvidia PCIe card - haven't tried the on-board video. ___ 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: FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Shane Ambler wrote: Do you have success stories running FreeBSD on an ASUS P8H67-M LGA1155 H67 motherboard? This will be mostly a desktop system on 9.0-RELEASE. I am worried especially about the Sandy Bridge video, shall I be able to use it with xorg at least in VESA modes? Do also the sound/NIC/etc drivers work well with this motherboard? I am running 9.0-RELEASE on an ASUS P8H61-M LE/USB3 with a corei5 Having the same audio and LAN chips I can say they work. Had some trouble getting the audio working to start with, vaguely recall it was something with the generic sound detection didn't pick the right driver, once I enabled one specific sound device I haven't had trouble (also that was back in rc3). Only using stereo speakers so can't vouch for any surround features. Add snd_hda_load=YES to /boot/loader.conf Thanks for the good news. Can you please show 'cat /dev/sndstat' and what the kernel thinks about the NIC (is it the re(4) driver?) Using an Nvidia PCIe card - haven't tried the on-board video. I have tried PC-BSD 9.0 on a similar motherboard with a Sandy Bridge video, it seems to work in VESA mode. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD on the ASUS P8H67-M LGA1155 H67 motherboard
Colleagues, Do you have success stories running FreeBSD on an ASUS P8H67-M LGA1155 H67 motherboard? This will be mostly a desktop system on 9.0-RELEASE. I am worried especially about the Sandy Bridge video, shall I be able to use it with xorg at least in VESA modes? Do also the sound/NIC/etc drivers work well with this motherboard? TIA. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:suda...@sibptus.tomsk.ru ___ 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: Problems with the Asus P8h61 -m pro motherboard
I did check the whole dmesg output, but nothing. I also tried to recompile the kernel, but I found no acceptable non-included nic drivers, so I just backed off. Now I have Ubuntu installed, but that does not mean that I am too happy about it... The manufacturer of the nic is realtek, by the way... Matevž ___ 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: Problems with the Asus P8h61 -m pro motherboard
On Wed, 2011-07-20 at 08:24 +0200, Matevž Markovič wrote: Asus P8h61 -m pro motherboard Did you try the re driver? The chipset is Realtek 8111e. This is supported by 8-stable, I think. Did you look at: http://lists.freebsd.org/pipermail/freebsd-stable/2011-June/062886.html tomdean ___ 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: Problems with the Asus P8h61 -m pro motherboard
Matevž Markovič ivwcorporation.mat...@gmail.com writes: I just installed the FreeBSD 8.2 on my computer, but unfortunately my integrated network card was not recognised. Only the loopback and plip (or something like that) interfaces are present in the sysinstall / ifconfig -a. I have the Asus P8h61 -m pro motherboard. I wanted to configure this computer to take part in boinc projects (like einstein@home, in the freebsd group, of course :) ), but without a working internet connection, I am not able to do this. I think that the re device should see the LAN port. Make sure it's enabled, and grep the boot output for it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problems with the Asus P8h61 -m pro motherboard
Hy! I just installed the FreeBSD 8.2 on my computer, but unfortunately my integrated network card was not recognised. Only the loopback and plip (or something like that) interfaces are present in the sysinstall / ifconfig -a. I have the Asus P8h61 -m pro motherboard. I wanted to configure this computer to take part in boinc projects (like einstein@home, in the freebsd group, of course :) ), but without a working internet connection, I am not able to do this. By the way, does FreeBSD support CUDA? I bought a CUDA graphics card and it would be useful for BOINC projects. Thank you for you answers and your time, Matevž ___ 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
LibreOffice 3.3.0: incapable of opening M$ Office Excel sheets which could be opened by OO 3.2.1
I got a serious problem: LibeOffice 3.3.0 rejects opening Microsoft Office Excel created spreadsheets with an 'internal import error'. Is there anything to be aware of or is this a real bug? Regards, Oliver ___ 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: LibreOffice 3.3.0: incapable of opening M$ Office Excel sheets which could be opened by OO 3.2.1
On Wed, 09 Feb 2011 13:05 +0100, O. Hartmann ohart...@zedat.fu-berlin.de wrote: I got a serious problem: LibeOffice 3.3.0 rejects opening Microsoft Office Excel created spreadsheets with an 'internal import error'. Is there anything to be aware of or is this a real bug? The libreoffice port was updated today. One change: - Fix input/output error on MS Office files -Herbert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: .sh check for sufix g or m on size field
On Mon, Jul 12, 2010 at 08:58:05AM -0700, Chip Camden wrote: Quoth Aiza on Monday, 12 July 2010: Sorry miss send, was not done yet. Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` I plan to strip just the m or g if its there and the result should be numeric. If not numeric know invalid suffix. Need help with the sed syntax. Or if there is better way I want to learn it. Thanks ___ 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 It sounds like what you want is simply: sed 's/[gm]//' Or am I missing something? I get the impression it's something more like this: sed 's/[gm]$//' I'm not sure, but there may be a need to check whether the rest of the line is solely numeric, too. The original question was not exactly clear on that point. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpxVfg5ChZoS.pgp Description: PGP signature
Re: .sh check for sufix g or m on size field
On Tue, Jul 13, 2010 at 08:59:54AM +0800, Aiza wrote: This is real close but it allows a numeric value through as valid which is not a valid condition. The $size value has to be suffixed with g or m to be valid. A numeric value only or a numeric value suffixed with anything else than m or g is invalid. What exactly is your desired behavior for input containing something other than a series of numbers and either a 'g' or an 'm'? What *should* happen if you get '25gm' as input, since the preceding example was not sufficient for your needs? Please clarify your requirements. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpNCVvuvwgos.pgp Description: PGP signature
.sh check for sufix g or m on size field
Have a .sh script that accepts an -s sparse file size Only 2 suffix's are valid m and g. Been trying to get this line of code to just strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` I plan to strip just the m or g if its there and the result shouls be j ___ 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
.sh check for sufix g or m on size field
Sorry miss send, was not done yet. Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` I plan to strip just the m or g if its there and the result should be numeric. If not numeric know invalid suffix. Need help with the sed syntax. Or if there is better way I want to learn it. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: .sh check for sufix g or m on size field
Aiza aiz...@comclark.com writes: Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` You didn't state what's your input. I guess smth like following will do strip() { local size= if printf - 2- %g ${size:=${1%[gm]}}; then echo it's a \`$size' without suffix else echo $1 has invalid suffix fi } $ strip 17m it's a `17' without suffix $ strip 33g it's a `33' without suffix $ strip 25gm 25gm has invalid suffix I plan to strip just the m or g if its there and the result should be numeric. If not numeric know invalid suffix. Need help with the sed syntax. Or if there is better way I want to learn it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: .sh check for sufix g or m on size field
--On July 12, 2010 10:29:08 PM +0800 Aiza aiz...@comclark.com wrote: Sorry miss send, was not done yet. Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` I plan to strip just the m or g if its there and the result should be numeric. If not numeric know invalid suffix. Need help with the sed syntax. Or if there is better way I want to learn it. Thanks Is this what you want? sed -n 's/^\([0-9]\{1,\}[gm]\)$/\1/p' Prints output only if the input begins with digits and ends with g or m. Or this? sed -n 's/^\([0-9]\{1,\}\)[gm]$/\1/p' Prints numeric output only if the input begins with digits and ends with g or m. http://www.grymoire.com/Unix/Sed.html http://sed.sourceforge.net/sed1line.txt pgp0dDi9HpJYK.pgp Description: PGP signature
Re: .sh check for sufix g or m on size field
Quoth Aiza on Monday, 12 July 2010: Sorry miss send, was not done yet. Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` I plan to strip just the m or g if its there and the result should be numeric. If not numeric know invalid suffix. Need help with the sed syntax. Or if there is better way I want to learn it. Thanks ___ 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 It sounds like what you want is simply: sed 's/[gm]//' Or am I missing something? -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpDDzND6NDjl.pgp Description: PGP signature
Re: .sh check for sufix g or m on size field
Anonymous wrote: Aiza aiz...@comclark.com writes: Have a .sh script that accepts an -s sparse file size. Only 2 suffix's are valid m and g. Been trying to get this line of code to strip out just the single letter. But it strips the letter and every thing to the right of it. Timagesize=`echo-n ${imagesize} | sed 's/g.*$//'` You didn't state what's your input. I guess smth like following will do strip() { local size= if printf - 2- %g ${size:=${1%[gm]}}; then echo it's a \`$size' without suffix else echo $1 has invalid suffix fi } $ strip 17m it's a `17' without suffix $ strip 33g it's a `33' without suffix $ strip 25gm 25gm has invalid suffix This is real close but it allows a numeric value through as valid which is not a valid condition. The $size value has to be suffixed with g or m to be valid. A numeric value only or a numeric value suffixed with anything else than m or g is invalid. ___ 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
boot0cfg, how to use -m option
I installed the FreeBSD boot loader and have now the following options: F1 Win F2 Win F3 FreeBSD F4 FreeBSD F6 PXE Now I wan't to enable only partition 1 and 3 and PXE (F1, F3, F6). The manpage of boot0cfg says: -m mask Specify slices to be enabled/disabled, where mask is an integer between 0 (no slices enabled) and 0xf (all four slices enabled). which I find very confusing. Could someone explain me what value (and why?) I have to chose to achieve the above mentioned. Thanks for any enlightenment. Sandra ___ 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: boot0cfg, how to use -m option
On Sat, 24 Oct 2009, Sandra Kachelmann wrote: I installed the FreeBSD boot loader and have now the following options: F1 Win F2 Win F3 FreeBSD F4 FreeBSD F6 PXE Now I wan't to enable only partition 1 and 3 and PXE (F1, F3, F6). The manpage of boot0cfg says: -m mask Specify slices to be enabled/disabled, where mask is an integer between 0 (no slices enabled) and 0xf (all four slices enabled). which I find very confusing. Could someone explain me what value (and why?) I have to chose to achieve the above mentioned. I can't say I've used that, but it appears to just be bit values. They should be: PartitionMask bit value 11 22 34 48 Add together the ones you need. For partitions 1 and 3, it would be 1+4, so... 5. I don't know if boot0cfg wants that as a plain decimal or the leading 0x of a hex format, and the man page doesn't explicitly say. It implies hex, but I suspect it wants decimal. Again, untested. -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 freebsd-questions-unsubscr...@freebsd.org
7.2 i386 and 7.2 amd64 on M/B Asus K8S-MX problems
Good day! I'm install freebsd 7.2 on computer with Asus K8S-MX motherboard, and there is such problems: Not recognized LAN. Here info about this M/B: http://www.asus.com/product.aspx?P_ID=0kP4nePr06XiYdYQ -- С уважением, Гуляев Гоша. ___ 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
disklabel output format ? How to see in G M ..
Using disklabel -A /dev/da0s1 I would like to see the sizes in G or M format, how can I do this? Also, googling arround i found output showing the cylinder space occupied by a partition (like : # cyl* X - Y ). How do I see that ? PS: i did man disklabel and bsdlabel but i didnt find the correct arguments. thank you. ___ 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: disklabel output format ? How to see in G M ..
On Thu, Apr 30, 2009 at 12:51 PM, Anonymous tutor...@gawab.com wrote: Also, googling arround i found output showing the cylinder space occupied by a partition (like : # cyl* X - Y ). How do I see that ? I think that fdisk will show you this. Good luck-- ___ 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: disklabel output format ? How to see in G M ..
On Thu, Apr 30, 2009 at 08:51:13PM +0300, Anonymous wrote: Using disklabel -A /dev/da0s1 I would like to see the sizes in G or M format, how can I do this? Also, googling arround i found output showing the cylinder space occupied by a partition (like : # cyl* X - Y ). How do I see that ? PS: i did man disklabel and bsdlabel but i didnt find the correct arguments. thank you. I don't know if it will display them that way, but you can enter them as 100M or 12G or whatever is appropriate when you are creating partitions. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: make, list and M pattern
On Tuesday 07 April 2009 21:54:13 Boris Samorodov wrote: Hello List, I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - Doesn't work because the match is not on words of the list but on the full list and you're not using globs. Aside from Giorgos' method, one might consider: LIST=f8 f9 LINUX_VER=invalid .for _VERSION in ${LIST} .if (${USE_LINUX} == ${_VERSION}) LINUX_VER=${_VERSION} .endif .endfor all: .if !empty(LINUX_VER:Minvalid) @echo Invalid linux version: ${USE_LINUX} .else @echo Using linux version ${LINUX_VER} .endif -- 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: make, list and M pattern
On Wed, 08 Apr 2009 00:09:43 +0300 Giorgos Keramidas wrote: On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov b...@ipt.ru wrote: Hello List, I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - Hi Boris! :) Hi Giorgos! :) This is not exactly what you asked for, but you can probably loop instead of trying to match regular expressions: keram...@kobe:/tmp$ cat -n Makefile 1 LIST= f8 f9 2 USE_LINUX?= f9 3 4 LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/} 5 6 .if defined(USE_LINUX) 7 .for item in ${LIST} 8 .if ${USE_LINUX} == ${item} 9 RESULT= ${item} 10 .endif 11 .endfor 12 .endif 13 14 all: 15 .if empty(RESULT) 16 @echo Version ${LINUX_VERSION} is not valid. 17 .else 18 @echo Valid version ${RESULT} selected. 19 .endif keram...@kobe:/tmp$ make Valid version f9 selected. keram...@kobe:/tmp$ make -e USE_LINUX=f10 Version f10 is not valid. keram...@kobe:/tmp$ Thanks, that would fit enough. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ 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: make, list and M pattern
On Wed, 8 Apr 2009 08:45:04 +0200 Mel Flynn wrote: On Tuesday 07 April 2009 21:54:13 Boris Samorodov wrote: Hello List, I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - Hi Mel! Doesn't work because the match is not on words of the list but on the full list and you're not using globs. You are ringht, but not for the case. The case here seems to exist because variables are not guaranteed to be expanded for M modifier. I.e. even with globs the result will not be as expected. Aside from Giorgos' method, one might consider: LIST=f8 f9 LINUX_VER=invalid .for _VERSION in ${LIST} .if (${USE_LINUX} == ${_VERSION}) LINUX_VER=${_VERSION} .endif .endfor all: .if !empty(LINUX_VER:Minvalid) @echo Invalid linux version: ${USE_LINUX} .else @echo Using linux version ${LINUX_VER} .endif Works. Thanks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ 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: make, list and M pattern
On Wed, 08 Apr 2009 00:09:43 +0300 Giorgos Keramidas wrote: On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov b...@ipt.ru wrote: I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - Hi Boris! :) Hi Giorgos, Mel and list! This is not exactly what you asked for, but you can probably loop instead of trying to match regular expressions: keram...@kobe:/tmp$ cat -n Makefile 1 LIST= f8 f9 2 USE_LINUX?= f9 3 4 LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/} 5 6 .if defined(USE_LINUX) 7 .for item in ${LIST} 8 .if ${USE_LINUX} == ${item} 9 RESULT= ${item} 10 .endif 11 .endfor 12 .endif 13 14 all: 15 .if empty(RESULT) 16 @echo Version ${LINUX_VERSION} is not valid. 17 .else 18 @echo Valid version ${RESULT} selected. 19 .endif keram...@kobe:/tmp$ make Valid version f9 selected. keram...@kobe:/tmp$ make -e USE_LINUX=f10 Version f10 is not valid. keram...@kobe:/tmp$ Hm, And what if I need to compare two lists and detect if they have any common items? VALID_LIST=f8 f9 INPUT_LIST=f6 f7 f8 Nested .for loops are not helpful since .if statement is not useful here: .for x in ${VALID_LIST} . for y in ${INPUT_LIST} . if $x == $y -- make error here Thanks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ 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
make, list and M pattern
Hello List, I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ 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: make, list and M pattern
On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov b...@ipt.ru wrote: Hello List, I need to create a list with some valid values and check an input value. Should this makefile work? - LIST=f8 f9 all: @echo USE_LINUX=${USE_LINUX}, LIST=${LIST} .if empty(LIST:M${USE_LINUX}) @echo The value is invalid .else @echo The value is valid .endif - % make USE_LINUX=f8 USE_LINUX=f8, LIST=f8 f9 The value is invalid - Hi Boris! :) This is not exactly what you asked for, but you can probably loop instead of trying to match regular expressions: keram...@kobe:/tmp$ cat -n Makefile 1 LIST= f8 f9 2 USE_LINUX?= f9 3 4 LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/} 5 6 .if defined(USE_LINUX) 7 .for item in ${LIST} 8 .if ${USE_LINUX} == ${item} 9 RESULT= ${item} 10 .endif 11 .endfor 12 .endif 13 14 all: 15 .if empty(RESULT) 16 @echo Version ${LINUX_VERSION} is not valid. 17 .else 18 @echo Valid version ${RESULT} selected. 19 .endif keram...@kobe:/tmp$ make Valid version f9 selected. keram...@kobe:/tmp$ make -e USE_LINUX=f10 Version f10 is not valid. keram...@kobe:/tmp$ ___ 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
netstat -M and netstat -N
While looking at the netstat man pages, I saw an interesting option: -MExtract values associated with the name list from the specified core instead of the default /dev/kmem. -NExtract the name list from the specified system instead of the default, which is the kernel image the system has booted from. what do these two options mean? Does it tell netstat to load its values from somewhere else? This seems to exist only in FreeBSD's version of netstat. Thanks in advance. Cipta ___ 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
Detecting network memory leaks using netstat -m
Hi All, I'm trying to find out whether my ethernet driver is leaking. I just found out about netstat -m, but I don't understand some of it's output. Can somebody explain me what is mbuf+clusters out of packet secondary zone in use ? My output shows it raised significantly during equilibrium after several stress runs: BEFORE 16641/217734/234375 mbufs in use (current/cache/total) 16640/217766/234406/262144 mbuf clusters in use (current/cache/total/max) 256/1664 mbuf+clusters out of packet secondary zone in use (current/cache) AFTER 625083/86562/711645 mbufs in use (current/cache/total) 180264/81880/262144/262144 mbuf clusters in use (current/cache/total/max) 160420/311 mbuf+clusters out of packet secondary zone in use (current/cache) Thanks Yony ___ 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
Detecting network memory leaks using netstat -m
Hi All, I'm trying to find out whether my ethernet driver is leaking. I just found out about netstat -m, but I don't understand some of it's output. Can somebody explain me what is mbuf+clusters out of packet secondary zone in use ? My output shows it raised significantly during equilibrium after several stress runs: BEFORE 16641/217734/234375 mbufs in use (current/cache/total) 16640/217766/234406/262144 mbuf clusters in use (current/cache/total/max) 256/1664 mbuf+clusters out of packet secondary zone in use (current/cache) AFTER 625083/86562/711645 mbufs in use (current/cache/total) 180264/81880/262144/262144 mbuf clusters in use (current/cache/total/max) 160420/311 mbuf+clusters out of packet secondary zone in use (current/cache) Thanks Yony ___ 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: cd and rm a directory with '^M'
On Thu, 2008-09-04 at 01:28 -0400, DAve wrote: Edwin Groothuis wrote: I had rsync create a directory with a '^M' in it. Use command-line completion: [~/xx] [EMAIL PROTECTED]touch foo^Mbar # that's ^V^M [~/xx] [EMAIL PROTECTED]ls -l total 0 -rw-r--r-- 1 edwin edwin 0 Sep 4 13:46 foo?bar [~/xx] [EMAIL PROTECTED]rm foo TAB # autocompletes to foo^Mbar If you find yourself on a machine without a full featured shell you can delete by the inode number. Chuck Swiger saved my bacon with that trick several years ago. [sysadmin /usr/home/sysadmin]$ touch abc^M [sysadmin /usr/home/sysadmin]$ ls -i 2449500 abc? 2449511 env.sh [sysadmin /usr/home/sysadmin]$ find . -type f -inum 2449500 | xargs rm [sysadmin /usr/home/sysadmin]$ ls -i 2449511 env.sh However, note that using find's -x option could avoid subsequent consternation, embarrassment, or worse. -x avoids having find search over multiple filesystems which in this case avoids having find stumble upon files with the same inode num on different filesystems. Relevant to any type of find criteria, but -inum introduces a nice degree of (user-level) randomness to the mix. Of course, the old adage always applies - If in doubt - print it out! (Not very catchy, is it?) Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd and rm a directory with '^M'
Wayne Sierke wrote: On Thu, 2008-09-04 at 01:28 -0400, DAve wrote: Edwin Groothuis wrote: I had rsync create a directory with a '^M' in it. Use command-line completion: [~/xx] [EMAIL PROTECTED]touch foo^Mbar # that's ^V^M [~/xx] [EMAIL PROTECTED]ls -l total 0 -rw-r--r-- 1 edwin edwin 0 Sep 4 13:46 foo?bar [~/xx] [EMAIL PROTECTED]rm foo TAB # autocompletes to foo^Mbar If you find yourself on a machine without a full featured shell you can delete by the inode number. Chuck Swiger saved my bacon with that trick several years ago. [sysadmin /usr/home/sysadmin]$ touch abc^M [sysadmin /usr/home/sysadmin]$ ls -i 2449500 abc? 2449511 env.sh [sysadmin /usr/home/sysadmin]$ find . -type f -inum 2449500 | xargs rm [sysadmin /usr/home/sysadmin]$ ls -i 2449511 env.sh However, note that using find's -x option could avoid subsequent consternation, embarrassment, or worse. -x avoids having find search over multiple filesystems which in this case avoids having find stumble upon files with the same inode num on different filesystems. Relevant to any type of find criteria, but -inum introduces a nice degree of (user-level) randomness to the mix. Good point to remember. Of course, the old adage always applies - If in doubt - print it out! (Not very catchy, is it?) I *always* look at what I am going to remove, *before* I remove it. A lesson learned the hard way once, learned forever the second time. DAve -- Don't tell me I'm driving the cart! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kldxref: file isn't dynamically-linked^M -- TECRA
Chris Hill wrote: On Wed, 10 Sep 2008, Polytropon wrote: [snip] I'm sure you noticed the Ctrl-M (^M) at the ends of each line. This seems to be an MS-DOS-like line break (ASCII 0x13 + 0x10). UNIX (and so FreeBSD) use the NL or LF character 0x10. And 0x13 is the CR character which is equivalent to Ctrl-M, if I do remember correctly. Almost correctly. ASCII CR (Ctrl-M) is 0x0d, which is decimal 13; ASCII LF (Ctrl-J or newline) is 0x0a, which is decimal 10. Sorry for the off-topic pedantry. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging | ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] While I do appreciate your efforts, both of you gentlemen did not address the issue at hand. I have found what was needed to either fix or work around the topic of discussion at this URL: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2007-10/msg00314.html Unfortunately for me, I'm not subscribed to nor did I search the other FreeBSD mail list for this particular issue as I don't run 'stable' or '-Current'. For anyone else reading this thread and/or bumping in to this problem, use the above URL or link to bring closure. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kldxref: file isn't dynamically-linked^M -- TECRA
# uname -a FreeBSD 6281.domain.net 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:4 5 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP i386 ##--- cvsup the src # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 # $FreeBSD: src/sys/conf/newvers.sh,v 1.72.2.5.2.8 2008/09/03 19:09:47 simon Exp TYPE=FreeBSD REVISION=7.0 BRANCH=RELEASE-p4 ## ## HERE WE GO ... ## ##-- Contents of /etc/make.conf # cat /etc/make.conf # added by use.perl 2008-09-09 00:29:14 PERL_VER=5.8.8 PERL_VERSION=5.8.8 ## -- END Contents /etc/make.conf cd /usr/src env -i make -DALWAYS_CHECK_MAKE buildworld ## The above appears to work fine. script bk.out env -i make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=GENERIC env -i make -DALWAYS_CHECK_MAKE installkernel KERNCONF=GENERIC bk2.out make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=GENERIC make -DALWAYS_CHECK_MAKE installkernel KERNCONF=GENERIC bk3.out make buildkernel KERNCONF=GENERIC make installkernel KERNCONF=GENERIC ## Using any of the above commands yield: === zyd (install)^M install -o root -g wheel -m 555 if_zyd.ko /boot/kernel^M install -o root -g wheel -m 555 if_zyd.ko.symbols /boot/kernel^M kldxref /boot/kernel^M kldxref: file isn't dynamically-linked^M kldxref: ## We made a slight change to the above commands, instead of 'buildkernel' or 'installkernel' we just used 'kernel' in each and every command line shown above and re_ran the command. Which resulted in the same results shown above. What are we doing incorrectly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kldxref: file isn't dynamically-linked^M -- TECRA
I'm not sure if I can help you, but there's something that looks strange to me: On Tue, 9 Sep 2008 14:47:49 -0400, [EMAIL PROTECTED] wrote: === zyd (install)^M install -o root -g wheel -m 555 if_zyd.ko /boot/kernel^M install -o root -g wheel -m 555 if_zyd.ko.symbols /boot/kernel^M kldxref /boot/kernel^M kldxref: file isn't dynamically-linked^M kldxref: I'm sure you noticed the Ctrl-M (^M) at the ends of each line. This seems to be an MS-DOS-like line break (ASCII 0x13 + 0x10). UNIX (and so FreeBSD) use the NL or LF character 0x10. And 0x13 is the CR character which is equivalent to Ctrl-M, if I do remember correctly. Why is it displayed in the masked (!) form in the output of make? Is there - eventually - a file involved that does use this strange 2-byte-linebreak? Could this be a reason? Is it possible that at this stage of compilation a file named /boot/kernel^M is requested, but does not exist? I'm not sure at this, I'm just guessing. Maybe it helps... -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kldxref: file isn't dynamically-linked^M -- TECRA
On Wed, 10 Sep 2008, Polytropon wrote: [snip] I'm sure you noticed the Ctrl-M (^M) at the ends of each line. This seems to be an MS-DOS-like line break (ASCII 0x13 + 0x10). UNIX (and so FreeBSD) use the NL or LF character 0x10. And 0x13 is the CR character which is equivalent to Ctrl-M, if I do remember correctly. Almost correctly. ASCII CR (Ctrl-M) is 0x0d, which is decimal 13; ASCII LF (Ctrl-J or newline) is 0x0a, which is decimal 10. Sorry for the off-topic pedantry. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging | ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cd and rm a directory with '^M'
Hi there, I had rsync create a directory with a '^M' in it. how do I rm -rf the directory? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd and rm a directory with '^M'
On Wed, 03 Sep 2008 18:51:11 -0700, Noah [EMAIL PROTECTED] wrote: Hi there, I had rsync create a directory with a '^M' in it. how do I rm -rf the directory? These are a few options: (1) In most shells, you can type a ^M character as part of a filename by prefixing the ^M character with ^V. (2) Use tab completion. Type the first part of the filename and hit the TAB key. The shells which support tab completion will fill in the remaining bits of the filename in the 'correct' way. (3) Use a GUI file manager or the `dired' mode of GNU Emacs to delete the file. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd and rm a directory with '^M'
On Wed, Sep 03, 2008 at 06:51:11PM -0700, Noah wrote: Hi there, I had rsync create a directory with a '^M' in it. how do I rm -rf the directory? Cheers, Noah There are multiple possibilities: 1) Use a shell which supports tab completion, and tab-complete the entry. 2) Embed the '^M' using '^V''^M' (type ctrl-v then ctrl-m.) 3) Use shell globbing (if the file is abra^Mcadabra, type: ls abra* rm abra* (only if the above matched exactly what you want to delete.) Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cd and rm a directory with '^M'
I had rsync create a directory with a '^M' in it. Use command-line completion: [~/xx] [EMAIL PROTECTED]touch foo^Mbar # that's ^V^M [~/xx] [EMAIL PROTECTED]ls -l total 0 -rw-r--r-- 1 edwin edwin 0 Sep 4 13:46 foo?bar [~/xx] [EMAIL PROTECTED]rm foo TAB # autocompletes to foo^Mbar -- Edwin Groothuis |Personal website: http://www.mavetju.org [EMAIL PROTECTED]| Weblog: http://www.mavetju.org/weblog/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cd and rm a directory with '^M'
Edwin Groothuis wrote: I had rsync create a directory with a '^M' in it. Use command-line completion: [~/xx] [EMAIL PROTECTED]touch foo^Mbar # that's ^V^M [~/xx] [EMAIL PROTECTED]ls -l total 0 -rw-r--r-- 1 edwin edwin 0 Sep 4 13:46 foo?bar [~/xx] [EMAIL PROTECTED]rm foo TAB # autocompletes to foo^Mbar If you find yourself on a machine without a full featured shell you can delete by the inode number. Chuck Swiger saved my bacon with that trick several years ago. [sysadmin /usr/home/sysadmin]$ touch abc^M [sysadmin /usr/home/sysadmin]$ ls -i 2449500 abc? 2449511 env.sh [sysadmin /usr/home/sysadmin]$ find . -type f -inum 2449500 | xargs rm [sysadmin /usr/home/sysadmin]$ ls -i 2449511 env.sh I've needed but a few times since then, but when I did... DAve -- Don't tell me I'm driving the cart! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SATA raid controller on Asustek's P5M2-M
Hello, people! Does anybody know whether the SATA raid controller on Asustek's P5M2-M motherboard is supported by FreeBSD 6.3 ... or 7.0? -- We are choosing a motherboard for a low-end mail server (this is a small company with lots of mail,... and the host will also serve as Internet gateway... that's the strange configuration -) ) ) -- Thanks in advance! Best regards, --les ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SATA raid controller on Asustek's P5M2-M
On Monday 04 February 2008 09:43:56 am Leonid Satanovsky wrote: Hello, people! Does anybody know whether the SATA raid controller on Asustek's P5M2-M motherboard is supported by FreeBSD 6.3 ... or 7.0? -- We are choosing a motherboard for a low-end mail server (this is a small company with lots of mail,... and the host will also serve as Internet gateway... that's the strange configuration -) ) ) -- Thanks in advance! Best regards, --les My experience with the onboard BIOS RAID of various motherboards has been horrific. I'd suggest one of two paths, depending on the RAID configuration you're going for. If you strictly doing mirroring check out gmirror. If you are planning on some sort of striping and want boot support think about populating one of the 8x PCI-e slots in the board with a RAID controller. I've had good luck with the highpoint 23xx and 3ware 9650s, I'm sure there are other well supported options as well. If you really need boot support and striping but costs are so touchy that you can't afford a RAID controllre I'd boot the thing off USB and use gstripe+gmirror before I used the motherboard RAID. It's that bad. -- Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB signature.asc Description: This is a digitally signed message part.
Re: SATA raid controller on Asustek's P5M2-M
My experience with the onboard BIOS RAID of various motherboards has been horrific. I'd suggest one of two paths, depending on the RAID configuration you're going for. you well called it BIOS RAID. because it is actually completely normal hardware, just with crappy software RAID in BIOS. gmirror, gstripe is software RAID, gconcat is useful too, all is much better and is portable (you may move that disks to any other controller). and you may gmirror partition, not whole drive. for booting it's best to create small boot partition. as it's not much space i usually create boot partition on every disk so it can boot with disks swapped, missing etc. it's just important to make boot partition as a. example of my /boot/install.sh which i run every time i change anything in /boot on 6 disk system: #!/bin/sh for x in ad10a ad12a ad14a ad16a ad18a ad20a ;do newfs -m 0 -i 32768 -b 16384 -f 2048 /dev/$x mount /dev/$x /root/mnt-boot cp -pR /boot /root/mnt-boot umount /root/mnt-boot done replace /root/mnt-boot with something else if prefered. please don't ask me how to do it with sysinstall. the answer is impossible or very difficult like temporary install without gmirror, boot partitions and copying. best way is to use liveCD/DVD and do manual install. is there anywhere manual-install-howto? if not i could write it having a bit of time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing the output of uname -m or -p
On Mon, 14 Jan 2008 01:03:42 +0100 Kris Kennaway wrote: Can this even be done and if so how? See the manpage, and the UNAME_* variables. One other thing: Will that change the way the system reacts in any way? Apps should run normally (well, a browser may give a wrong plattform information but that should be it). But what happens if you try to compile something? Will a wrong plattform or CPU variable screw up what the compiler spits out? Could be rather unhealthy if the compiler optimizes code for a sun4u on an i386. :-) Regards, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing the output of uname -m or -p
Christian Baer wrote: On Mon, 14 Jan 2008 01:03:42 +0100 Kris Kennaway wrote: Can this even be done and if so how? See the manpage, and the UNAME_* variables. One other thing: Will that change the way the system reacts in any way? Apps should run normally (well, a browser may give a wrong plattform information but that should be it). But what happens if you try to compile something? Will a wrong plattform or CPU variable screw up what the compiler spits out? Could be rather unhealthy if the compiler optimizes code for a sun4u on an i386. :-) It will confuse some things, yes. e.g. buildworld and ports, and maybe some things at runtime. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Changing the output of uname -m or -p
Hello Folks! This may be a bit of a hacker's question, but I'll just go for it in here - at least for starters. I want to play a prank on a friend of mine. He does a csup at least once a day and also makes a new world at least once a day. He is pretty nutty about that which is ok for some -CURRENT system, but he also does that on production systems. Now I don't want to judge him about that, but he is a bit sensitive about the output of uname. The version is very important to him. :-) The prank I want to pull is to somehow change the output of uname -m to read something different. The best thing would be to change that to something ancient like C-64, i286, i8086. Or, if only plattforms that FreeBSD supports are allowed, then mips, alpha or sparc64 on an i386. That should keep him thinking for a while. :-) I don't want to do any damage, so I just want to screw up the output of uname and the system should work normally apart from that. I realise that I may have to change some of the OS's code and that's not a problem. I just don't know where to look for this kind of thing and I don't really want to do too much reading just for a little prank. This guy is a really good friend of mine but sometimes get up my neck because I am much more conservative about updating my production systems. As you can see on this machine, I go along the lines of RELENG_6_2 which he can't understand. This should buy me a little peace and quite for a week or two. Getting access to his machines is no problem as I am often at his place. Can this even be done and if so how? Regards, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing the output of uname -m or -p
Christian Baer wrote: Hello Folks! This may be a bit of a hacker's question, but I'll just go for it in here - at least for starters. I want to play a prank on a friend of mine. He does a csup at least once a day and also makes a new world at least once a day. He is pretty nutty about that which is ok for some -CURRENT system, but he also does that on production systems. Now I don't want to judge him about that, but he is a bit sensitive about the output of uname. The version is very important to him. :-) The prank I want to pull is to somehow change the output of uname -m to read something different. The best thing would be to change that to something ancient like C-64, i286, i8086. Or, if only plattforms that FreeBSD supports are allowed, then mips, alpha or sparc64 on an i386. That should keep him thinking for a while. :-) I don't want to do any damage, so I just want to screw up the output of uname and the system should work normally apart from that. I realise that I may have to change some of the OS's code and that's not a problem. I just don't know where to look for this kind of thing and I don't really want to do too much reading just for a little prank. This guy is a really good friend of mine but sometimes get up my neck because I am much more conservative about updating my production systems. As you can see on this machine, I go along the lines of RELENG_6_2 which he can't understand. This should buy me a little peace and quite for a week or two. Getting access to his machines is no problem as I am often at his place. Can this even be done and if so how? See the manpage, and the UNAME_* variables. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing the output of uname -m or -p
On Mon, 14 Jan 2008 01:03:42 +0100 Kris Kennaway wrote: Can this even be done and if so how? See the manpage, and the UNAME_* variables. I already did that once and it didn't work out. I just found the reason: I'm too thick. :-/ I though all the letters had to be capitals, so I set UNAME_M instead of UNAME_m. The days my brain leaves me... :-) Thanks for the help! Regards, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX
On Thu, 15 Mar 2007 14:39:00 -0500 Jeffrey Goldberg [EMAIL PROTECTED] wrote: I've had two responses telling me that the make.conf defaults are just fine, and two (one off list) recommending i686/pentiumpro. One for pentiumpro and the other for i686, but as Andreas Rudish helpfully pointed out, those two are probably the same thing. No one suggested using c3. In fact, cpghost emphatically stated not to use C3 in make.conf Adbullah Ibn Hamad Al-Marri also helpfully directed me for information about safe CFLAGS to http://gentoo-wiki.com/Safe_Cflags where the entry for the Via Nehemiah says: == Nehemiah (C5XL)/C5P (Via) CHOST=i686-pc-linux-gnu CFLAGS=-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer CXXFLAGS=${CFLAGS} note: The more recent versions of the C3 do support the cmov instruction and hence -march=i686. If you must be compatible with all VIA C3 versions, do not use the settings in this section. note: it is also possible to use -march=c3-2. -- Comment to this: I got a problem compiler can't create executables with this setting. From: /usr/share/mk/bsd.cpu.mk . elif ${CPUTYPE} == c3 MACHINE_CPU = 3dnow mmx i586 i486 i386 . elif ${CPUTYPE} == c3-2 MACHINE_CPU = sse mmx i586 i486 i386 If you look at the screenshot of the CPUID window from the review linked by Garrett, it says the Nehemiah has sse but not 3dnow, which matches the c3-2 settings above. I would recommend that you comment out C[XX]FLAGS and try again with CPUTYPE=c3-2 FreeBSD isn't Gentoo, and using Gentoo's settings may cause trouble in the long-term. If you set CPUTYPE properly, FreeBSD will normally come-up with sensible optimizations. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX
On Fri, Mar 16, 2007 at 04:33:15PM +, RW wrote: On Thu, 15 Mar 2007 14:39:00 -0500 Jeffrey Goldberg [EMAIL PROTECTED] wrote: I've had two responses telling me that the make.conf defaults are just fine, and two (one off list) recommending i686/pentiumpro. One for pentiumpro and the other for i686, but as Andreas Rudish helpfully pointed out, those two are probably the same thing. No one suggested using c3. In fact, cpghost emphatically stated not to use C3 in make.conf From: /usr/share/mk/bsd.cpu.mk . elif ${CPUTYPE} == c3 MACHINE_CPU = 3dnow mmx i586 i486 i386 . elif ${CPUTYPE} == c3-2 MACHINE_CPU = sse mmx i586 i486 i386 If you look at the screenshot of the CPUID window from the review linked by Garrett, it says the Nehemiah has sse but not 3dnow, which matches the c3-2 settings above. I would recommend that you comment out C[XX]FLAGS and try again with CPUTYPE=c3-2 FreeBSD isn't Gentoo, and using Gentoo's settings may cause trouble in the long-term. If you set CPUTYPE properly, FreeBSD will normally come-up with sensible optimizations. The above is good advice, but I personally don't recall there ever being a c3 CPUTYPE designation. For example: $ grep -i c3 /usr/share/mk/bsd.cpu.mk $ sed q /usr/share/mk/bsd.cpu.mk ; uname -r # $FreeBSD: src/share/mk/bsd.cpu.mk,v 1.48 2005/05/24 21:24:40 cognet Exp $ 6.1-RELEASE On other hand, from reading your headers: X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.11; i386-portbld-freebsd6.2) suggests to me that it may have been added to 6.2. If that's the case, then it merits being pointed out. Cheers. -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPUTYPE for VIA EPIA M-Series Mini-ITX
On Wed, Mar 14, 2007 at 08:44:21PM -0500, Jeffrey Goldberg wrote: I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE http://www.via.com.tw/en/products/mainboards/motherboards.jsp? motherboard_id=81 And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Now that I've entered the FreeBSD world and am building everything from source, I would like to take advantage of that by compiling for my system. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? I have CPU: VIA C3 Samuel 2 (533.36-MHz 686-class CPU) Origin = CentaurHauls Id = 0x673 Stepping = 3 Features=0x803035FPU,DE,TSC,MSR,MTRR,PGE,MMX real memory = 528416768 (503 MB) running FreeBSD 6.2 without problems. The key here is NOT to set CPUTYPE in /etc/make.conf. Just use the defaults and you're fine. A dmesg for the system is available at http://ntp0.goldmark.org/temp/dmesg Cheers, -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ Regards, -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: CPUTYPE for VIA EPIA M-Series Mini-ITX
On Thu, 15 Mar 2007 02:44:21 +0100, Jeffrey Goldberg [EMAIL PROTECTED] wrote: I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? I have a Via Epia PD1 with the same CPU and use: CPUTYPE= i686 Although it does not seem to be mentioned in /usr/share/examples/etc/make.conf anymore (afaik i686==pentiumpro), it works just fine. Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CPUTYPE for VIA EPIA M-Series Mini-ITX
On 3/15/07, cpghost [EMAIL PROTECTED] wrote: On Wed, Mar 14, 2007 at 08:44:21PM -0500, Jeffrey Goldberg wrote: I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE http://www.via.com.tw/en/products/mainboards/motherboards.jsp? motherboard_id=81 And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Now that I've entered the FreeBSD world and am building everything from source, I would like to take advantage of that by compiling for my system. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? I have CPU: VIA C3 Samuel 2 (533.36-MHz 686-class CPU) Origin = CentaurHauls Id = 0x673 Stepping = 3 Features=0x803035FPU,DE,TSC,MSR,MTRR,PGE,MMX real memory = 528416768 (503 MB) running FreeBSD 6.2 without problems. The key here is NOT to set CPUTYPE in /etc/make.conf. Just use the defaults and you're fine. A dmesg for the system is available at http://ntp0.goldmark.org/temp/dmesg Cheers, -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/ As cpghost said, there is no big difference when you make an optimization for the time being. You can also check http://gentoo-wiki.com/Safe_Cflags and see what cflag you can use with it. -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX
[mailed, posted and bcc'ed to off list respondents] First let me quote my original query: I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE http://www.via.com.tw/en/products/mainboards/motherboards.jsp? motherboard_id=81 And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Now that I've entered the FreeBSD world and am building everything from source, I would like to take advantage of that by compiling for my system. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? A dmesg for the system is available at http://ntp0.goldmark.org/temp/dmesg I've had two responses telling me that the make.conf defaults are just fine, and two (one off list) recommending i686/pentiumpro. One for pentiumpro and the other for i686, but as Andreas Rudish helpfully pointed out, those two are probably the same thing. No one suggested using c3. In fact, cpghost emphatically stated not to use C3 in make.conf Adbullah Ibn Hamad Al-Marri also helpfully directed me for information about safe CFLAGS to http://gentoo-wiki.com/Safe_Cflags where the entry for the Via Nehemiah says: == Nehemiah (C5XL)/C5P (Via) CHOST=i686-pc-linux-gnu CFLAGS=-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer CXXFLAGS=${CFLAGS} note: The more recent versions of the C3 do support the cmov instruction and hence -march=i686. If you must be compatible with all VIA C3 versions, do not use the settings in this section. note: it is also possible to use -march=c3-2. -- Comment to this: I got a problem compiler can't create executables with this setting. note: I had much better luck with -Os than with -O2. The cache on the nehemiah chips is really small, so making the executables small helps more than anything else. == The off list response added - Setting CPUTYPE to pentium, or pentiumpro both work fine. IIRC, the C3 designation is Linux-specific and doesn't exist for FreeBSD. If everybody agrees that the c3 designation is unwise to use, then probably the distributed /usr/share/examples/etc/make.conf The off list responded gave extremely helpful and detailed information about trimming the kernel for a similar box. I've already done most of what that recommends. In sum, don't use the c3 specification in /etc/make.conf even though the example would suggested otherwise. Thanks all for your help -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SUMMARY: CPUTYPE for VIA EPIA M-Series Mini-ITX
Jeffrey Goldberg wrote: [mailed, posted and bcc'ed to off list respondents] First let me quote my original query: I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=81 And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Now that I've entered the FreeBSD world and am building everything from source, I would like to take advantage of that by compiling for my system. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? A dmesg for the system is available at http://ntp0.goldmark.org/temp/dmesg I've had two responses telling me that the make.conf defaults are just fine, and two (one off list) recommending i686/pentiumpro. One for pentiumpro and the other for i686, but as Andreas Rudish helpfully pointed out, those two are probably the same thing. No one suggested using c3. In fact, cpghost emphatically stated not to use C3 in make.conf Adbullah Ibn Hamad Al-Marri also helpfully directed me for information about safe CFLAGS to http://gentoo-wiki.com/Safe_Cflags where the entry for the Via Nehemiah says: == Nehemiah (C5XL)/C5P (Via) CHOST=i686-pc-linux-gnu CFLAGS=-march=i686 -msse -mmmx -O2 -pipe -fomit-frame-pointer CXXFLAGS=${CFLAGS} note: The more recent versions of the C3 do support the cmov instruction and hence -march=i686. If you must be compatible with all VIA C3 versions, do not use the settings in this section. note: it is also possible to use -march=c3-2. -- Comment to this: I got a problem compiler can't create executables with this setting. note: I had much better luck with -Os than with -O2. The cache on the nehemiah chips is really small, so making the executables small helps more than anything else. == The off list response added - Setting CPUTYPE to pentium, or pentiumpro both work fine. IIRC, the C3 designation is Linux-specific and doesn't exist for FreeBSD. If everybody agrees that the c3 designation is unwise to use, then probably the distributed /usr/share/examples/etc/make.conf The off list responded gave extremely helpful and detailed information about trimming the kernel for a similar box. I've already done most of what that recommends. In sum, don't use the c3 specification in /etc/make.conf even though the example would suggested otherwise. Thanks all for your help -j Indeed. After reading a mock up of the processor is appears that it's an Intel 686 clone. See: http://www.digit-life.com/articles2/roundupmobo/via-c3-nehemiah.html (it's a bit old for an article, so I hope you don't mind the dust :)..). -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CPUTYPE for VIA EPIA M-Series Mini-ITX
I have one of these CPU: VIA C3 Nehemiah (999.52-MHz 686-class CPU) Origin = CentaurHauls Id = 0x691 Stepping = 1 Features=0x380b035FPU,DE,TSC,MSR,MTRR,PGE,CMOV,MMX,FXSR,SSE http://www.via.com.tw/en/products/mainboards/motherboards.jsp? motherboard_id=81 And 6.2-RELEASE p2 When I set CPUTYPE=c3 in /etc/make.conf the world seemed to build just fine, but (at least) gcc ended up broken. Most compiling attempts after that ended up with gcc reporting an internal error. Now that I've entered the FreeBSD world and am building everything from source, I would like to take advantage of that by compiling for my system. Does anyone have a similar system? And what CPUTYPE or local tuning do you recommend? A dmesg for the system is available at http://ntp0.goldmark.org/temp/dmesg Cheers, -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006-10-28 04:18, Tsampros Leonidas [EMAIL PROTECTED] wrote: I think there is something similar in emacs by using the set-buffer-file-coding-system (binded at C-x RET f in default configurations). So to cure and succesfully convert DOS files into unix format, i use C-x RET f unix RET. I'm not sure `set-buffer-file-coding-system' will have any effect on an already opened file though. I just tried this with a file which was created outside Emacs, and contained: $ cat -vte foo fooo^M$ $ Opening this file with `C-x C-f foo RET' and setting the buffer file coding system with `C-x RET f unix RET', marks the buffer as modified, but saving the file does not modify the contents of the file to use UNIX newlines only. If you really want to use Emacs for the conversion, you have to *explicitly* replace ^M characters, either with `M-x replace-string RET C-q C-m RET RET' or some either way. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006-10-27 16:30, Noah [EMAIL PROTECTED] wrote: Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html `C-q' is an Emacs-specific prefix for `quoting' the next character when you are inserting text. This way, you can enter special characters, like C-a, C-b, C-c, ... C-z while you are typing text. Just hitting the respective control-key combination may be bound to an Emacs command. The relevant text from the Emacs manual describes this much better than me: Only printing characters and SPC insert themselves in Emacs. Other characters act as editing commands and do not insert themselves. These include control characters, and characters with codes above 200 octal. If you need to insert one of these characters in the buffer, you must quote it by typing the character `Control-q' (`quoted-insert') first. (This character's name is normally written `C-q' for short.) There are two ways to use `C-q': * `C-q' followed by any non-graphic character (even `C-g') inserts that character. * `C-q' followed by a sequence of octal digits inserts the character with the specified octal character code. You can use any number of octal digits; any non-digit terminates the sequence. If the terminating character is RET, it serves only to terminate the sequence. Any other non-digit terminates the sequence and then acts as normal input--thus, `C-q 1 0 1 B' inserts `AB'. The use of octal sequences is disabled in ordinary non-binary Overwrite mode, to give you a convenient way to insert a digit instead of overwriting with it. This is from section 8.1 (Inserting Text), of the Emacs 22 manual. I hope this helps :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006-10-30 10:03, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2006-10-28 04:18, Tsampros Leonidas [EMAIL PROTECTED] wrote: I think there is something similar in emacs by using the set-buffer-file-coding-system (binded at C-x RET f in default configurations). So to cure and succesfully convert DOS files into unix format, i use C-x RET f unix RET. I'm not sure `set-buffer-file-coding-system' will have any effect on an already opened file though. I just tried this with a file which was created outside Emacs, and contained: $ cat -vte foo fooo^M$ $ Opening this file with `C-x C-f foo RET' and setting the buffer file coding system with `C-x RET f unix RET', marks the buffer as modified, but saving the file does not modify the contents of the file to use UNIX newlines only. If you really want to use Emacs for the conversion, you have to *explicitly* replace ^M characters, either with `M-x replace-string RET C-q C-m RET RET' or some either way. Oops... Apparently, I have `inhibit-eol-conversion' modified locally. This is what makes Emacs avoid EOL conversion when `set-buffer-file-coding-system' is called. Sorry for the confusion. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On Sat, 28 Oct 2006 12:27 pm, Noah wrote: well I am pressing control-J for return not control-M so I dont understand your rationale. There seems to be considerable confusion in this thread between keystrokes and the codes they produce. Most modern keyboards report some form of scan code for each key pressed whether or not it is one of the modifier or special keys. At this stage there is no connection between the key or key combination pressed and an ASCII code. What an application sees in terms of codes depends on the OS and anything else that may get in between. We mostly think of keys and key combinations as being connected to the the codes seen by an ordinary console application, but this can vary according to the OS. With a standard setup running X applications with a graphics interface are able to see all keys translated to some form of symbol code (some sort of a super set of ASCII including codes for special keys) which can be customised with xmodmap. Character mode programs under X through some terminal emulation window will see codes (usually ASCII) as further translated by that terminal emulator. I find that by default xterm reports ^M on pressing the enter/return key but this can further customised through XTerm or .Xdefaults. A basic key is generally combined with the currently active modifier keys(shift,ctrl,alt, etc) to produce the code reported to the application. Other keys such as function keys might be reported as a sequence of codes. Utilities and applications may manage codes differently when they recognise the source as the keyboard so for example Ctrl-J, Ctrl-M and enter from the keyboard are all reported by cat as ^J. Malcolm Jerry McAllister wrote: Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. They are ASCII characters. For example, the ^M you wanted to get rid of is CTRL-M.There are ASCII tables in various places. A quick search should turn up a few. The assignment of the characters are ancient and traditional and somewhat weird by how things are currently used, but will probably continue to stay that way. Line-Feed, for example - which is that character that marks the end of a line in text files, means it causes the printer to move the paper up one line - in old line printers and teletypes. CTRL-M or ^M is a RETURN (also ENTER nowdays) and that caused the print head to return to the beginning of the line. By the time UNIX came along, it wasn't necessary to use both characters to move the paper and print head because those were virtual. So, they just used one character - the line feed. But, MS-DOS and some others continued to use the pair to mean a new line for some reason - maybe the original association with IBM, although they didn't use ASCII, but EBCDIC - another animal. So, look up an ASCII chart with explanations and you can make an educated guess on the meanings. jerry also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On Fri, Oct 27, 2006 at 07:57:08PM -0700, Noah wrote: well I am pressing control-J for return not control-M so I dont understand your rationale. I don't understand your comment. There was no rationale. That is just what the ASCII characters are used for and a little of the history of how they got that way - though the choice of numeric code was mostly arbitrary, some of it had to do with easy processing of codes as control for printers and teletypes. If you use the characters in a non-traditional way, that is up to you, but other systems and utilities won't follow your pattern most likely. Now, in UNIX, since it doesn't end lines with a pair of ^M^J but only uses ^J, it may look like it is a RETURN, but the original designation is Line Feed. UNIX just picked that one. jerry Jerry McAllister wrote: Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. They are ASCII characters. For example, the ^M you wanted to get rid of is CTRL-M.There are ASCII tables in various places. A quick search should turn up a few. The assignment of the characters are ancient and traditional and somewhat weird by how things are currently used, but will probably continue to stay that way. Line-Feed, for example - which is that character that marks the end of a line in text files, means it causes the printer to move the paper up one line - in old line printers and teletypes. CTRL-M or ^M is a RETURN (also ENTER nowdays) and that caused the print head to return to the beginning of the line. By the time UNIX came along, it wasn't necessary to use both characters to move the paper and print head because those were virtual. So, they just used one character - the line feed. But, MS-DOS and some others continued to use the pair to mean a new line for some reason - maybe the original association with IBM, although they didn't use ASCII, but EBCDIC - another animal. So, look up an ASCII chart with explanations and you can make an educated guess on the meanings. jerry also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ 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: replacing ^M with emacs
On Sun, Oct 29, 2006 at 11:30:45AM +1030, Malcolm Kay wrote: On Sat, 28 Oct 2006 12:27 pm, Noah wrote: well I am pressing control-J for return not control-M so I dont understand your rationale. There seems to be considerable confusion in this thread between keystrokes and the codes they produce. Most modern keyboards report some form of scan code for each key pressed whether or not it is one of the modifier or special keys. At this stage there is no connection between the key or key combination pressed and an ASCII code. The original post talked about the characters in a text file - most particularly the ^M and I responded to that and not to anything about keyboard codes. Generally, regardless of what scan codes the machine generates with keypresses, a text editor still puts certain codes in the text file, essentially according to the ASCII character set. Now a wordprocessor file or a WYSIWYG or a GUI system uses a much more extended set of character codes and representations and action codes. But, that wasn't the orginal post topic. jerry What an application sees in terms of codes depends on the OS and anything else that may get in between. We mostly think of keys and key combinations as being connected to the the codes seen by an ordinary console application, but this can vary according to the OS. With a standard setup running X applications with a graphics interface are able to see all keys translated to some form of symbol code (some sort of a super set of ASCII including codes for special keys) which can be customised with xmodmap. Character mode programs under X through some terminal emulation window will see codes (usually ASCII) as further translated by that terminal emulator. I find that by default xterm reports ^M on pressing the enter/return key but this can further customised through XTerm or .Xdefaults. A basic key is generally combined with the currently active modifier keys(shift,ctrl,alt, etc) to produce the code reported to the application. Other keys such as function keys might be reported as a sequence of codes. Utilities and applications may manage codes differently when they recognise the source as the keyboard so for example Ctrl-J, Ctrl-M and enter from the keyboard are all reported by cat as ^J. Malcolm Jerry McAllister wrote: Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. They are ASCII characters. For example, the ^M you wanted to get rid of is CTRL-M.There are ASCII tables in various places. A quick search should turn up a few. The assignment of the characters are ancient and traditional and somewhat weird by how things are currently used, but will probably continue to stay that way. Line-Feed, for example - which is that character that marks the end of a line in text files, means it causes the printer to move the paper up one line - in old line printers and teletypes. CTRL-M or ^M is a RETURN (also ENTER nowdays) and that caused the print head to return to the beginning of the line. By the time UNIX came along, it wasn't necessary to use both characters to move the paper and print head because those were virtual. So, they just used one character - the line feed. But, MS-DOS and some others continued to use the pair to mean a new line for some reason - maybe the original association with IBM, although they didn't use ASCII, but EBCDIC - another animal. So, look up an ASCII chart with explanations and you can make an educated guess on the meanings. jerry also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
replacing ^M with emacs
Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. How might I get emacs to search replace also is there a mail list focused specifically on emacs usability? please refer me to it? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006/10/27 11:26, Noah seems to have typed: How might I get emacs to search replace Put a mark right before the character (control-space) move to right after the character and cut the character (control-w). Move to the top of the document (esc-) and start a query replace (esc-%). Yank in the character that you previously cut (control-y). Hit return (or enter) type in the character that you want to replace the ^M with, hit return (or enter) again. Enter y or n for each case... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006-10-27 12:26, Noah [EMAIL PROTECTED] wrote: Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. Open the file in Emacs with: M-x find-file-literally RET filename RET and then replace all ^M occurences with the empty string, with: M-x replace-string RET C-q C-m RET RET The important trick here is that you use C-q to 'quote' the C-m character in the substitution string :) also is there a mail list focused specifically on emacs usability? please refer me to it? There are at least 2 USENET newsgroups where GNU Emacs questions can be posted: comp.emacs gnu.emacs.help I'm not sure about mailing lists, though. Regards, Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
Those ^M's are the MS-DOS EOL character. You can use sed, or tr to remove them via a commandline pipe. -Derek At 02:26 PM 10/27/2006, Noah wrote: Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. How might I get emacs to search replace also is there a mail list focused specifically on emacs usability? please refer me to it? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
There is a program in ports called unix2dos. With it comes the command dos2unix that automatically goes through the specified file and removes all of the ^M --Mike Ginsburg Derek Ragona wrote: Those ^M's are the MS-DOS EOL character. You can use sed, or tr to remove them via a commandline pipe. -Derek At 02:26 PM 10/27/2006, Noah wrote: Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. How might I get emacs to search replace also is there a mail list focused specifically on emacs usability? please refer me to it? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
Peter A. Giessel writes: On 2006/10/27 11:26, Noah seems to have typed: How might I get emacs to search replace Put a mark right before the character (control-space) move to right after the character and cut the character (control-w). Move to the top of the document (esc-) and start a query replace (esc-%). Yank in the character that you previously cut (control-y). Hit return (or enter) type in the character that you want to replace the ^M with, hit return (or enter) again. Enter y or n for each case... Or if you're feeling lucky, type '!' and it will do them all Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On Fri, Oct 27, 2006 at 12:26:25PM -0700, Noah wrote: Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. This is probably MS-DOS type text file. MS text file lines all end in a CR-LF character pair whereas UNIX text file lines have only a LF (line feed) and the end of each line. All text editors on MS systems do that and if you do a binary transfer of a file from MS to UNIX you will get all the extra ^M characters showing up. most versions of ftp have an ASCII mode that will do the conversion for you as you transfer the file back and forth between MS and UNIX. I think SCP only does binary transfers. I am not an Emacs user, but, You can easily use tr(1) to remove all the ^M characters from a file.tr -r \r badfile goodfile where badfile is the one with the ^M characters and goodfile is the newly cleaned copy. The only anoying thing is having to write to a second file and then get rid of the first or mv the new one back to the old (as in: mv goodfile badfile after doing the tr. jerry How might I get emacs to search replace also is there a mail list focused specifically on emacs usability? please refer me to it? Cheers, Noah ___ 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: replacing ^M with emacs
this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? cheers, Noah Peter A. Giessel wrote: On 2006/10/27 11:26, Noah seems to have typed: How might I get emacs to search replace Put a mark right before the character (control-space) move to right after the character and cut the character (control-w). Move to the top of the document (esc-) and start a query replace (esc-%). Yank in the character that you previously cut (control-y). Hit return (or enter) type in the character that you want to replace the ^M with, hit return (or enter) again. Enter y or n for each case... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On Fri, Oct 27, 2006 at 04:20:49PM -0700, Noah wrote: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? The nice thing about that method is that it'll work for odd characters when you don't know what they are. For simple things like ^M you can always use ^Q^M to produce an actual ^M when doing the query-replace stuff. -- Darrin Chandler| Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/ | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
On 2006/10/27 15:30, Noah seems to have typed: where is the logic here? Logic? I thought we were using emacs here? just kidding... (mostly) What is control-q for As Giorgos posted earlier: The important trick here is that you use C-q to 'quote' the C-m character in the substitution string :) so then its just a matter of knowing the character for newline: what is control-j for? The character for new line. Which, if you are using the Xwindows version of emacs, it gives you the shortcut in the Minibuf menu for new line when you start a query... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. They are ASCII characters. For example, the ^M you wanted to get rid of is CTRL-M.There are ASCII tables in various places. A quick search should turn up a few. The assignment of the characters are ancient and traditional and somewhat weird by how things are currently used, but will probably continue to stay that way. Line-Feed, for example - which is that character that marks the end of a line in text files, means it causes the printer to move the paper up one line - in old line printers and teletypes. CTRL-M or ^M is a RETURN (also ENTER nowdays) and that caused the print head to return to the beginning of the line. By the time UNIX came along, it wasn't necessary to use both characters to move the paper and print head because those were virtual. So, they just used one character - the line feed. But, MS-DOS and some others continued to use the pair to mean a new line for some reason - maybe the original association with IBM, although they didn't use ASCII, but EBCDIC - another animal. So, look up an ASCII chart with explanations and you can make an educated guess on the meanings. jerry also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ 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: replacing ^M with emacs
On Fri, Oct 27, 2006 at 05:30:34PM -0400, Jerry McAllister wrote: On Fri, Oct 27, 2006 at 12:26:25PM -0700, Noah wrote: Hi there, It appears that a text editor placed a bunch on ^M throughout a text file I am working with. I assure this is equivalent to eh keystroke control-M. This is probably MS-DOS type text file. MS text file lines all end in a CR-LF character pair whereas UNIX text file lines have only a LF (line feed) and the end of each line. All text editors on MS systems do that and if you do a binary transfer of a file from MS to UNIX you will get all the extra ^M characters showing up. most versions of ftp have an ASCII mode that will do the conversion for you as you transfer the file back and forth between MS and UNIX. I think SCP only does binary transfers. I am not an Emacs user, but, You can easily use tr(1) to remove all the ^M characters from a file.tr -r \r badfile goodfile where badfile is the one with the ^M characters and goodfile is the newly cleaned copy. The only anoying thing is having to write to a second file and then get rid of the first or mv the new one back to the old (as in: mv goodfile badfile after doing the tr. jerry I think there is something similar in emacs by using the set-buffer-file-coding-system (binded at C-x RET f in default configurations). So to cure and succesfully convert DOS files into unix format, i use C-x RET f unix RET. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: replacing ^M with emacs
well I am pressing control-J for return not control-M so I dont understand your rationale. Jerry McAllister wrote: Thanks Peter, where is the logic here? What is control-q for and what is control-j for? I am trying to figure out how I could have figured that out. They are ASCII characters. For example, the ^M you wanted to get rid of is CTRL-M.There are ASCII tables in various places. A quick search should turn up a few. The assignment of the characters are ancient and traditional and somewhat weird by how things are currently used, but will probably continue to stay that way. Line-Feed, for example - which is that character that marks the end of a line in text files, means it causes the printer to move the paper up one line - in old line printers and teletypes. CTRL-M or ^M is a RETURN (also ENTER nowdays) and that caused the print head to return to the beginning of the line. By the time UNIX came along, it wasn't necessary to use both characters to move the paper and print head because those were virtual. So, they just used one character - the line feed. But, MS-DOS and some others continued to use the pair to mean a new line for some reason - maybe the original association with IBM, although they didn't use ASCII, but EBCDIC - another animal. So, look up an ASCII chart with explanations and you can make an educated guess on the meanings. jerry also is there a better page than the one I am using below to figure all these keystrokes out? http://www.math.uh.edu/~bgb/emacs_keys.html Cheers, Noah Peter A. Giessel wrote: On 2006/10/27 15:20, Noah seems to have typed: this is the best answer. Hits it right on the head of what I want. What if I want the character to replace the ^M with a new line what do I enter in the replace field? control-q control-j ___ 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]
Wireless adapter not shown in Network Interfaces in KDE Control M odule
I installed FreeBSD 6.1 on Compaq Evo N800c laptop. After installing KDE internal NIC fxp0 appeared in Network Settings. I added Proxim wireless PCMCIA card, recompile the kernel and I can see it in output of ifconfig: UNIX# ifconfig fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 192.168.1.39 netmask 0xfc00 broadcast 192.168.3.255 ether 00:08:02:63:54:b0 media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ether 00:20:a6:57:4e:f1 media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps) status: no carrier ssid Puppy channel 6 authmode OPEN privacy OFF txpowmax 36 protmode CTS burst bintval 100 In KDE Network settings I can see only fxp0 card. Help please, Thanks, Nathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]