[SOLVED] sound card not recognized by freebsd 8.2 but mentioned in PC-BSD 8.2
I am actually amazed nobody nor the handbook mentioned OSS to me, because after learned this, it suddenly become obvious this option should be tried right after failure of snd_driver. In fact, the sound card in-topic is Ali M5455, the first on the list of sound card supported by OSS. http://manuals.opensound.com/devlists/FreeBSD.html The solution is as simple as 'pkg_add -vr oss'. done. solved. Consider OSS supported sound card list is rather long, it should be a must recommendation after snd_driver. Again amazed that lspci in Linux showed keyword M5455, but pciconf -lv didn't show keyword M5455. Having the keyword it's only a minute to figure out which is the right driver. -- 我的博客: http://zhangweiwu.ixiezi.com/ 网站进化论 --写给需要网站或后悔有了网站的人 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
sound card not recognized by freebsd 8.2 but mentioned in PC-BSD 8.2
Hello. I intend to use FreeBSD instead of PC-BSD. The sound card doesn't work on FreeBSD 8.2. I tried to follow the manual and loaded all sound card drivers # kldload snd_driver But no driver works: # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386) Installed devices: There is nothing after installed devices. And there is nothing about sound card mentioned in dmesg. I had the impression non of the drivers recognizes the card, which is: none1@pci0:0:4:0: class=0x040100 card=0x103b13bd chip=0x545510b9 rev=0x03 hdr=0x00 vendor = 'Acer Labs Incorporated (ALi/ULi)' device = 'AC'97 Audio Controller (M1563M Southbridge)' class = multimedia subclass = audio Search for the chip ID as keyword on google reveals in PC-BSD this keyword is mentioned in their driver database /PCBSD/soundDetect/soundcards.xml source: http://trac.pcbsd.org/changeset/3018/pcbsd Somehow this hints PC-BSD recognizes and can configure this sound card. My question is, if PC-BSD could play using this sound card, a FreeBSD method must not be too far away, right? Can I configure FreeBSD somehow to let a driver recognize and make use of this sound card? P. S. If it doesn't work, I guess I'll fall back to Windows instead of PC-BSD because I intend to use this machine for playing around and testing GNUStep including its multimedia. The computer has a hard-wired 8GB storage which is OK for the purpose, but not enough for PC-BSD. -- 我的博客: http://zhangweiwu.ixiezi.com/ 网站进化论 --写给需要网站或后悔有了网站的人 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sound card not recognized by freebsd 8.2 but mentioned in PC-BSD 8.2
On 04/16/2011 10:42 AM, Erich Dollansky wrote: On Friday 15 April 2011 22:11:05 Zhang Weiwu, Beijing wrote: # kldload snd_driver this will never work. You must load the driver for your sound card. Something like kldload snd_hda I am confused, because the handbook says the opposite: http://www.freebsd.org/doc/handbook/sound-setup.html To use your sound device, you will need to load the proper device driver. Then: If you are not sure which driver to use, you may try to load the snd_driver module: # kldload snd_driver This is a metadriver loading the most common device drivers at once. Even though I wish to use only the right driver, the manual didn't say how can I find which driver is the right one except trying with snd_driver. It didn't even mention what drivers are there on the system. One might expect it at /usr/src/sys/i386/conf/GENERIC but there is nothing mentioning sound card. You must replace snd_hda by the name of the driver for your card. I'd be glad to try that if you inform me what is the name of the driver for my card, or point me way to find this information:) Thanks for answering my mail! -- 我的博客: http://zhangweiwu.ixiezi.com/ 网站进化论 --写给需要网站或后悔有了网站的人 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
8.2-release no sound. error driver bug: Unable to set devclass (devname: (null))
Behavior: tobago# kldload snd_driver driver bug: Unable to set devclass (devname: (null)) ppc0: parallel port not found. driver bug: Unable to set devclass (devname: (null)) ppc0: parallel port not found. ppc0: parallel port not found. driver bug: Unable to set devclass (devname: (null)) ppc0: parallel port not found. driver bug: Unable to set devclass (devname: (null)) ppc0: parallel port not found. driver bug: Unable to set devclass (devname: (null)) ppc0: parallel port not found. tobago# It turns out the kldload command itself have no output. all output are from dmesg. What can I / should I do? Interesting section of 'pciconf -lv': none1@pci0:0:4:0: class=0x040100 card=0x103b13bd chip=0x545510b9 rev=0x03 hdr=0x00 vendor = 'Acer Labs Incorporated (ALi/ULi)' device = 'AC'97 Audio Controller (M1563M Southbridge)' class = multimedia subclass = audio uname: FreeBSD tobago 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 By the way I tried to compile a kernel without ppc driver, thinking it causing trouble. Result is: tobago# kldload snd_driver driver bug: Unable to set devclass (devname: (null)) driver bug: Unable to set devclass (devname: (null)) driver bug: Unable to set devclass (devname: (null)) driver bug: Unable to set devclass (devname: (null)) driver bug: Unable to set devclass (devname: (null)) tobago# -- 我的博客: http://zhangweiwu.ixiezi.com/ 网站进化论 --写给需要网站或后悔有了网站的人 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: cant burn a cd iso
Daniel Leal wrote: Hi ! It seams to start correctly, but in the midle gave me the input/output error: Can someone help me please? I guess you first try to burn something with a different CDR (better CD-RW in order not to waist), try different speed (set to speed=4 and see). Both helps locating the problem. I would also try to use a Linux Live CD so if it also does not work in Linux, you can suspect more on hardware problems then your FreeBSD setup. ___ 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
scripting suggestion: how to make this command shorter
Hello. I wrote this one-line command to fetch a page from a long uri, parse it twice: first time get subject second time get content, and send it as email to me. $ w3m -dump 'http://search1.taobao.com/browse/33/n-g,w6y4zzjaxxymvjomxy40--commend-0-all-33.htm?at_topsearch=1ssid=e-s5' | grep -A 100 对比 | mail -a 'Content-Type: text/plain; charset=UTF-8' -s '=?UTF-8?B?'`w3m -dump 'http://search1.taobao.com/browse/33/n-g,w6y4zzjaxxymvjomxy40--commend-0-all-33.htm?at_topsearch=1ssid=e-s5' | grep 找到.*件 | base64 -w0`'?=' zhangwe...@realss.com The stupid part of this script is it fetches the page 2 times and parse 2 times, thus making the command very long. If I can write the command in a way that the URI only appear once, then it is easier for me to maintain it. I plan to put it in cron yet avoid having to modify two places when the URI changes (and it does!). How do you suggest optimizing the one-liner? By the way I feel it stupid having to wrap the subject by using: $ mail -s '=?UTF-8?B?'`echo $subject | base64`'?=' instead of $ mail -s $subject Because mail(1), as defined, intelligent user agent, should know the current locale is UTF-8 and should know UTF-8 header must be base64 encoded for RFC compatibility. Yet it also should know if mail body is UTF-8 the header 'Content-Type: text/plain; charset=UTF-8' must not be omitted in case of UTF-8 content. I think this is a bug, as both are required by RFC. How do you think? ___ 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: scripting suggestion: how to make this command shorter
Modulok wrote: Zhang, Perhaps you could put it into a text file and have cron simply execute the text file. By doing so, you are free to break it up into a more digestible format and start using programming constructs to make your life easier. (Such as storing values in variables, or processing standard input so the script can be called with various URL's and so forth.) Your cron job could then simply execute /home/you/bin/foo, where 'foo' is whatever you decide to name the script. Is there any specific reason why this has to be all on one line? -Modulok- Nothing more than curiosity and small benefit of not having to take care one more file. I know what you mean:) ___ 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: newbie: does irq setting in device.hints work?
Lowell Gilbert wrote: Zhang Weiwu zhangwe...@realss.com writes: That's strange, I didn't find manual where it say it work in some condition or for some device only. Consult individual device drivers' manual pages for available keywords and their possible values. Thanks. I shouldn't have overlooked this. Is there a way to assign uhci to use an irq differently? seems it is the cause of an interrupt storm problem I am having. I'm not really sure if uhci is set up to do that. You definitely want uhci on its own interrupt if you can, not because it necessarily generates a lot of them, but because it can spend a lot of time handling each one... Have you checked what happens if you disable your APIC? You mean ACPI? When the PC boots, I got a menu looks alike this one: http://www.freebsd.org/doc/en/books/handbook/install/boot-loader-menu.png except my 2nd choice was with ACPI enabled instead of ACPI disabled. I chose 2, result was the same (irq at 11) I also tried to move other devices occupying irq 11 away (cbb0 and ed1) by setting so in device.hints and both didn't work. [zhangwe...@quasimodo ~]$ vmstat -i interrupt total rate irq0: clk 92204980 irq1: atkbd0 188 2 irq6: fdc011 0 irq8: rtc 11802125 irq11: cbb0 ed1+ 38 0 irq14: ata0 1699 18 Total 105942 1127 [zhangwe...@quasimodo ~]$ dmesg | grep 'irq 11' uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x9000-0x901f irq 11 at device 6.2 on pci0 ed1: IBM Corp. Ethernet at port 0x100-0x11f iomem 0x8800-0x88003fff irq 11 function 0 config 1 on pccard0 ___ 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
newbie: does irq setting in device.hints work?
Hello. I come across device.hints manual which says I can set irq for each device there. I am using 6.1. The settings I made in devices.hints never worked. e.g. hint.uhci.0.at=pci hint.uhci.0.irq=12 I can set whatever value for irq and it always rebooted as irq 11. However 'disabled=1' works. That's strange, I didn't find manual where it say it work in some condition or for some device only. Is there a way to assign uhci to use an irq differently? seems it is the cause of an interrupt storm problem I am having. ___ 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
cannot compile linphone due to compile error message in gio-fam-backend
Hello. I failed to compile linphone on my FreeBSD 6-1 (yes I know it's old but as it has been working well for the last several years I got no motivate to upgrade it unless have to). The last error message says: [from gio-fam-backend ]: cannot find -lgio-2.0 It seems I miss a package that provides gio-2.0. But what is that package? I tried to google this error message without luck. Thanks for help getting me having linphone installed. The whole compile error message is below: Script started on Thu Jan 1 11:18:29 2009 === Installing for linphone-base-2.1.1_1,1 === linphone-base-2.1.1_1,1 depends on executable: pkg-config - found === linphone-base-2.1.1_1,1 depends on file: /usr/local/lib/gio/modules/libgiofam.so - not found ===Verifying install for /usr/local/lib/gio/modules/libgiofam.so in /usr/ports/devel/gio-fam-backend === Building for gio-fam-backend-2.16.5 /bin/sh ../../libtool --tag=CC --mode=link cc -DG_LOG_DOMAIN=\GLib-GIO\ -I../.. -I../../glib -I../../gmodule -I../../gio -DG_DISABLE_CAST_CHECKS -DGIO_MODULE_DIR=\/usr/local/lib/gio/modules\ -DGIO_COMPILATION -DG_DISABLE_DEPRECATED -O2 -pipe -march=pentium-mmx -fno-strict-aliasing -Wall -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload)' -L/usr/local/lib -lintl -o libgiofam.la -rpath /usr/local/lib/gio/modules libgiofam_la-fam-helper.lo libgiofam_la-fam-module.lo libgiofam_la-gfamdirectorymonitor.lo libgiofam_la-gfamfilemonitor.lo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lfam rm -fr .libs/libgiofam.exp generating symbol list for `libgiofam.la' /usr/bin/nm -B .libs/libgiofam_la-fam-helper.o .libs/libgiofam_la-fam-module.o .libs/libgiofam_la-gfamdirectorymonitor.o .libs/libgiofam_la-gfamfilemonitor.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq .libs/libgiofam.exp /usr/bin/grep -E -e ^g_io_module_(load|unload) .libs/libgiofam.exp .libs/libgiofam.expT mv -f .libs/libgiofam.expT .libs/libgiofam.exp cc -shared .libs/libgiofam_la-fam-helper.o .libs/libgiofam_la-fam-module.o .libs/libgiofam_la-gfamdirectorymonitor.o .libs/libgiofam_la-gfamfilemonitor.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libintl.so -lgio-2.0 /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libfam.so -march=pentium-mmx -Wl,-soname -Wl,libgiofam.so -Wl,-retain-symbols-file -Wl,.libs/libgiofam.exp -o .libs/libgiofam.so /usr/bin/ld: cannot find -lgio-2.0 gmake: *** [libgiofam.la] Error 1 *** Error code 2 Stop in /usr/ports/devel/gio-fam-backend. *** Error code 1 Stop in /usr/ports/net/linphone-base. Script done on Thu Jan 1 11:18:38 2009 ___ 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: fail with wireless network configuration with SIOCS80211: Invalid argument
Paul B. Mahol wrote: send output of: # ifconfig -v wi0 Hi. Thanks for trying to help. I fixed the problem myself (and demonstrated I couldn't do a prudent thinking). The mistake is trying to use shared key in an open-systems wireless network. I managed to get it right by having authomode open after managed to learn the difference of shared and open authmode and how to tell the mode of local network. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fail with wireless network configuration with SIOCS80211: Invalid argument
Zhang Weiwu wrote: Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless card connected to my home network with 40-bit Hex WEP Encryption on FreeBSD 6.1. # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825 ifconfig: SIOCS80211: Invalid argument Did I made anything wrong or miss something in the kernel? I have the related lines in kernel: driver wi driver wlan It turns out this error message is a direct result of lack of wlan_wep neither loaded as module nor compiled in kernel. However I still could not make the card work (even though it works in Ubuntu Linux) after having wlan_wep compiled in, but at least I eliminated the SIOCS80211: Invalid argument error message, which may be helpful for someone who finds this thread by using this error message as search key to google. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: improvement idea of man page of strfile
another idea: 3 A Chinese poem in Tang-dynasty style is very short, fitting in 4 lines. Some people find getting familiar with all famous 300 such poem written in Tang-dynasty a good way to use up brain-power of the days. They can display random one of them on login or use a random one as desktop background. In fact, there are already public-published fortune data files collecting them. This one I didn't try. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
improvement idea of man page of strfile
Original text: OTHER USES What can you do with this besides printing sarcastic and obscene mes- sages to the screens of lusers at login or logout? There are some other possibilities. 1 Include strfile.h into a news reading/posting program, to gener- ate random signatures. Tin(1) does something similar, in a much more complex manner. 2 Include it in a game. While strfile doesn't support 'fields' or 'records', there's no reason that the text strings can't be con- sistent: first line, a die roll; second line, a score; third and subsequent lines, a text message. 3 Use it to store your address book. Hell, some of the guys I know would be as well off using it to decide who to call on Fri- day nights (and for some, it wouldn't matter whether there were phone numbers in it or not). 4 Use it in 'lottery' situations. If you're an ISP, write a script to store login names and GECOS from /etc/passwd in str- file format, write another to send 'congratulations, you've won' to the lucky login selected. The prize might be a month's free service, or if you're AOL, a month free on a real service provider. My improvement ideas: 5 Those who study a foreign language may find it useful to have a word-bank that shows sentences you want to understand better by reading them randomly and include in shell start script. Maybe you can start by picking your favorite novel from wikiquotes and convert the quotes into a format acceptable for strfile, and enjoy one quote every time opening a terminal. 6 Tip-of-the-day for message to show when user started your application. 7 A website of environmental protection can show a tip how to do things with least harm to the environment for every visitor, which simply invoke fortune on every page request, e.g. by using SSI. I know these things work well because I implemented all of use 5, 6 and 7. But being an infrequent participate of OSS I don't know how to contribute this information back to the author / maintainer of the manual (not mentioned in the manual itself). I also worry improving something that hasn't been changed for 10 years could be difficult because nobody wish to move them. What should I do or who should I contact to let them decide if they include my idea in their manual as well? In fact I think the 4th lottery idea isn't better than any of 5, 6, 7 because it is not a full use of strfile, which can produce random text repeatedly (in case of 4, random text is only needed as many time as you decide to give price to someone). And is the change going to spread to other systems that uses strfile? e.g. many Linux distributions contain the strfile manual from BSD distributions. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: improvement idea of man page of strfile
mdh wrote: Erm, I don't see this text in strfile(8) on RELENG_7 which is reasonably recent. Where did you get your man page from? - mdh Hi. Sorry, you are right. This text does not exist in FreeBSD. I have a freeBSD notebook and a Gentoo Linux notebook. I found this text by using the Gentoo Linux notebook in bed, the manual page says it is from the 4th BSD distribution. It was in winter too cold to get my FreeBSD notebook to verify this, and I assumed it must be inhered as it is derived from 4th BSD more directly than Linux (which only borrows). Sorry for posting in the wrong list. I will start a search on the origin for this different manual page. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fail with wireless network configuration with SIOCS80211: Invalid argument
Paul B. Mahol wrote: On 10/30/08, Zhang Weiwu [EMAIL PROTECTED] wrote: Zhang Weiwu wrote: Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless card connected to my home network with 40-bit Hex WEP Encryption on FreeBSD 6.1. # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825 ifconfig: SIOCS80211: Invalid argument Why is deftxkey 1 missing ? from ifconfig(8) Note that you must set a default transmit key with deftxkey for ^ the system to know which key to use in encrypting outbound traf- fic That quoted line of text is not appearing in my version (6.4) FreeBSD's manual. I tried to add deftxkey 1, same result. a.k.a. the interface is configured, but DHCP couldn't obtain IP address, manually assigned IP address couldn't communicate with other hosts. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fail with wireless network configuration with SIOCS80211: Invalid argument
Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless card connected to my home network with 40-bit Hex WEP Encryption on FreeBSD 6.1. # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825 ifconfig: SIOCS80211: Invalid argument Did I made anything wrong or miss something in the kernel? I have the related lines in kernel: driver wi driver wlan AboveCable wireless card uses PRIMSA II which is supported by driver wi. The same card is tested working fine on the same network on Ubuntu Linux (without needing of firmware or NDIS Wrapper) dmesg is attached. # ifconfig -a plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff00 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::260:b3ff:fe73:3f4f%wi0 prefixlen 64 scopeid 0x3 ether 00:60:b3:73:3f:4f media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: no carrier ssid ZWW channel 1 stationname FreeBSD WaveLAN/IEEE node authmode OPEN privacy ON deftxkey 1 txpowmax 100 bintval 100 Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Thu Jul 5 12:26:43 CST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/QUASIMODO Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Pentium/P55C (quarter-micron) (232.11-MHz 586-class CPU) Origin = GenuineIntel Id = 0x581 Stepping = 1 Features=0x8001bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX real memory = 100466688 (95 MB) avail memory = 88723456 (84 MB) Intel Pentium detected, installing workaround for F00F bug kbd1 at kbdmux0 cpu0 on motherboard pcib0: Host to PCI bridge pcibus 0 on motherboard pir0: PCI Interrupt Routing Table: 4 Entries on motherboard pci0: PCI bus on pcib0 cbb0: TI1250 PCI-CardBus Bridge mem 0x20822000-0x20822fff at device 2.0 on pci0 pccard0: 16-bit PCCard bus on cbb0 cbb1: TI1250 PCI-CardBus Bridge mem 0x20821000-0x20821fff at device 2.1 on pci0 pccard1: 16-bit PCCard bus on cbb1 pci0: display, VGA at device 3.0 (no driver attached) isab0: PCI-ISA bridge at device 6.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 UDMA33 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 6.1 on pci0 ata0: ATA channel 0 on atapci0 ata1: ATA channel 1 on atapci0 uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x9000-0x901f irq 11 at device 6.2 on pci0 uhci0: [GIANT-LOCKED] usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: bridge at device 6.3 (no driver attached) pmtimer0 on isa0 orm0: ISA Option ROM at iomem 0xc-0xc9fff on isa0 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: Enhanced floppy controller at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: 1440-KB 3.5 drive on fdc0 drive 0 ppc0: Parallel port at port 0x3bc-0x3c3 irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio2: configured irq 5 not in bitmap of probed irqs 0 sio2: port may not be enabled sio3: configured irq 9 not in bitmap of probed irqs 0 sio3: port may not be enabled vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: PNP0303 can't assign resources (port) unknown: PNP0f13 can't assign resources (irq) unknown: PNP0700 can't assign resources (port) unknown: PNP0c02 can't assign resources (memory) unknown: PNP0400 can't assign resources (port) pcm0: CS423x at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0 pcm0: [GIANT-LOCKED] unknown: IBM0071 can't assign resources (port) unknown: PNP0e03 can't assign resources (port) Timecounter TSC frequency 232106515 Hz quality 800 Timecounters tick every 1.000 msec wi0: AboveCable ACPC2000-11 at port 0x100-0x13f irq 10 function 0 config 1 on pccard1 wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A wi0: Intersil Firmware: Primary (0.3.0), Station (0.8.3) wi0: Ethernet address: 00:60:b3:73:3f:4f ad0: 3102MB IBM DTCA-23240 TC5OAB1A at ata0-master UDMA33 acd0: CDROM SANYO CRD-S372B/1.24F at ata0-slave PIO3 Trying to mount root from
command line tool to format or display tab-separate-value?
Hello. (to read this email you probably need to have a font that can display ideographs) I wish to be able to glance over my datasheet in tab-separate-value format. A typical data file is like this: 池田武 环境友好公益协会[EMAIL PROTECTED] 蔡涛 世界自然基金会 [EMAIL PROTECTED] 王香奕 中国民促会 [EMAIL PROTECTED] 魏娟 世界自然保护联盟[EMAIL PROTECTED] 吴若冰 美国环保协会 [EMAIL PROTECTED] 熊昆 北京地球村 [EMAIL PROTECTED] [EMAIL PROTECTED] 易懿敏 自然之友[EMAIL PROTECTED] 费晓静 绿色大学生论坛 [EMAIL PROTECTED] A Properly formatted version readable on the console would be like this: 池田武 环境友… takesh… 蔡涛 世界自… [EMAIL PROTECTED] 王香奕 中国民… wangxi… 魏娟 世界自… weijua… 吴若冰 美国环… [EMAIL PROTECTED] 熊昆 北京地… kimxio… [EMAIL PROTECTED] 易懿敏 自然之… yiyimi… 费晓静 绿色大… yzxiao… Is there a tool to output the properly formatted version? I guess I could easily write one with awk or C, but just in case someone already wrote such tool... Thanks for information in advance! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to fight concurrent connection DOS attack to FreeBSD ftpd?
Dear all I run a ftp site which is being attacked by someone who issue some 1000 concurrent connection for downloading as anonymous. How can I fight back? The behaviour is like this: after '#/etc/rc.d/ftpd start', the number of ftpd process goes to several thousands. ps told me they are all accessed from the same user. I read the manual and found ftpd.conf(5) says /etc/ftpd.conf is the configuration file for ftpd(8). But creating /etc/ftpd.conf with limit all 10 doesn't help (system behaviour the same), seems ftpd ignored the configuration file. I worry if ftpd.conf is REALLY the configuration of ftpd? because ftpd.conf is not mentioned in ftpd(8) manual page. Usually the configuration file of a daemon is always mentioned in the daemon manual page. If ftpd.conf is not the right manual page to read, can you suggest which configuration manual to read to fight back this attack? Thanks in advance! Here is the diagnostic output after ftpd started 3 seconds: [EMAIL PROTECTED] /home/zhangweiwu]# ps ax | grep ftpd 2028 ?? Ss 0:00.06 /usr/libexec/ftpd -D -l8 2035 ?? D 0:01.63 ftpd: 222.16.60.67: anonymous/IEUser@: RETR 18_æ\M^]\M^Næ\M^V¯ç\M^I¹_浪漫æ¨ 2043 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2044 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2045 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2048 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2049 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2050 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2051 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2052 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2053 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2055 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2057 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2059 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2063 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2065 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2069 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2070 ?? S 0:00.04 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2071 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2072 ?? S 0:00.04 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2074 ?? S 0:00.04 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2077 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: QUIT \r\n (ftpd) 2080 ?? S 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: RETR 18_æ\M^]\M^Næ\M^V¯ç\M^I¹_浪漫æ¨ 2081 ?? R 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: RETR 18_æ\M^]\M^Næ\M^V¯ç\M^I¹_浪漫æ¨ 2084 ?? R 0:00.03 ftpd: 222.16.60.67: anonymous/IEUser@: RETR 18_æ\M^]\M^Næ\M^V¯ç\M^I¹_浪漫æ¨ -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 135 9950 2413 http://www.realss.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[SOLVED] Re: how to fight concurrent connection DOS attack to FreeBSD ftpd?
Thank you very much for everyone helped me. As a summary: 1. Bill Moran pointed out the mistake in ftpd.conf which should refer to lukemftpd (but referred to ftpd); He also suggested using lukemftpd in place of ftpd, but my ftpd is patched by myself and I prefer not to patch it again to lukemftpd (too few time now), thus I prefer keep using ftpd; 2. JD Bronson suggested using pf for controlling traffic, which is more powerful and can solve more problems, but takes a learning curve; 3. Quan Qiu gave an instant fix method, start ftpd from inetd.conf, which worked instantly solved my problem. I also need to give not only nowait/50/10 But also nowait/50/10/10 Because the attacker is very determined, with nowait/50/10 he makes sure I got 50 connections after 5 minutes, making other people not able to login. Quan Qiu wrote: On Nov 24, 2007 10:34 PM, Zhang Weiwu [EMAIL PROTECTED] wrote: I run a ftp site which is being attacked by someone who issue some 1000 concurrent connection for downloading as anonymous. How can I fight back? If ftpd.conf is not the right manual page to read, can you suggest which configuration manual to read to fight back this attack? Thanks in advance! Try wrapping your ftpd using inetd. There are some limits to max child processes and max connections per ip in inetd.conf(5). An example for vsftpd: ftp stream tcp nowait/50/10 root/usr/local/libexec/vsftpd vsftpd Refer to the inetd.conf(5) manpage for more. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mc (GNU midnight commander) have I18N problem on FreeBSD?
Dear list I found mc 4.6.1 behave differently on FreeBSD 6.2 and SuSE 10.2 1) run urxvt on FreeBSD 6.2 2) run mc 4.6.1, take a screenshot: gopher://sdf.lonestar.org/I/users/weiwu/mconfreebsd.png 3) in the same urxvt window, ssh to another host running OpenSuSE 10.2; 4) run mc 4.6.1, take a screenshot: gopher://sdf.lonestar.org/I/users/weiwu/mconsuse.png So mc look different (and bad) on FreeBSD. Maybe I should post to questions list before I complain to porter, just in case I have wrong operation. Thanks for your time paying attention to this issue! P.S. before every screenshot I've checked LANG=en_US.UTF-8 Best Regards -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department):0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
is this possible? (let user able to access two moint points, one beneath another)
Dear all I wish to export two directories for other people to mount, so I write in my /etc/exports: /var/ftp/pub -ro /var/ftp/pub/music -ro Start NFS server then I found only /var/ftp/music is successfully exported, /var/log/message says: Jul 22 15:34:32 exupery mountd[404]: can't change attributes for /var/ftp/pub/music Jul 22 15:34:32 exupery mountd[404]: bad exports list line /var/ftp/pub/music -ro I cannot understand what is change attributes and why it cannot be done, so I go to read handbook. Here is the handbook section about this issue http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#EXPORTS-ERRORS 12.13. Why does mountd keep telling me it “can't change attributes” and that I have a “bad exports list” on my FreeBSD NFS server? The most frequent problem is not understanding the correct format of /etc/exports. Please review exports(5) and the NFS entry in the Handbook, especially the section on configuring NFS. And yes, I reviewed both document, and I am sure the format is correct because it's only two similar lines and the first line is accepted by server: /var/ftp/pub -ro /var/ftp/pub/music -ro Give up on this, then I think probably I can use -alldirs. I write my /etc/exports: /var/ftp/pub -alldirs -ro Start NFS server, check /var/log/messages I found: Jul 22 15:30:37 exupery mountd[404]: -alldirs requested but /var/ftp/pub is not a filesystem mountpoint Jul 22 15:30:37 exupery mountd[404]: bad exports list line /var/ftp/pub -alldirs This seems to suggest that I cannot use -alldirs because /var/ftp/pub is a plain directory, only a mount point can use -alldirs (in my case, /var). So I am stuck here. Any suggestion getting me out? Is it possible at all to export a directory and also it's sub-directory? Best Regards -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department):0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: is this possible? (let user able to access two moint points, one beneath another)
On Sun, 2007-07-22 at 00:49 -0800, Beech Rintoul wrote: Try writing the export: /var/ftp/pub /var/ftp/pub/music -ro Thanks, this solved the problem instantly! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mouse wheel doesn't work
Dear everyone on the list On my xorg-6.9.0 installed on FreeBSD 6.2, USB mouse work just fine with mouse wheel; ps/2 mouse do not work. Nothing happens when scrolling mouse wheel. As I have only one ps/2 mouse I cannot test if all ps/2 mice suffer from such problem or just this one, but I am sure this mouse works fine on Windows and Ubuntu Linux with wheel. By testing with xev it turns out no event is sent to X when scrolling mouse wheel. By running 'moused -df -p /dev/psm0' it turns out mouse daemon is not aware of scrolling at all (no message output when scrolling wheel, a lot of message output when moving mouse or clicking). Various parameter of moused is tried, including '-z 4' and various mouse type (which always get me the message mouse type mismatch (ps/2 != mouseman), ps/2 is assumed, as manual suggested there is only one type for ps/2 mice). Mouse section of xorg seems to be correct, and I think it's not useful to tweak X configuration if moused cannot by itself detect mouse wheel movement. Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse Option Buttons 5 Option ZAxisMapping 4 5 EndSection xmodmap also shows there is no re-mapping of mouse buttons. Again if moused isn't aware of scrolling, working on X level doesn't seem to be helpful. The box is thinkpad 380XD with an IBM red check-point on the keyboard, which as far as I know is also /dev/psm0, probably something on hardware level is done to merge signal of check-point and real ps/2 mouse together, and mouse wheel movement might be dropped during this merge. manual pages for psm0 suggested there are multiple operation level of the driver, at level one wheel events are ignored, at level two wheel events are included. The manual suggested how to set operation level in C, but didn't say how to set or get current operation level with command line (if it's possible at all). If it's because the model if my mouse is happen not to be in the model database of psm0 then what should I do to submit my mouse model to the database to help FreeBSD have a larger coverage of hardware information? Thanks. P.S. I can use USB mouse which is fine, just still like to ask about PS/2 mouse out of curious. Best Regards -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse wheel doesn't work
On Sat, 2007-07-21 at 01:42 +0200, Nikola Lecic wrote: I think that then middle (wheel) click doesn't work; if it does, then The middle click does work! However there is no middle key on thinkpad track-point, thus it means at least some signal cannot be produced by track-point is delivered to FreeBSD. just copy Ubuntu xorg.conf entry or check if trackpoint and external ps/2 mouse use different /dev. Unfortunately it seems in dmesg only psm0 is discovered. dmesg attached Mouse section of xorg seems to be correct, and I think it's not useful to tweak X configuration if moused cannot by itself detect mouse wheel movement. Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse Option Buttons 5 Option ZAxisMapping 4 5 EndSection Generally, using two parallel mouse devices calls for two separate InputDevice mouse entries and for SendCoreEvents option. Yes, if track-point and PS/2 have been discovered as two devices. Please read this page: http://salisburys.net/PetersNotes-TW.html (choose External mouse wheels and wheel emulation...) Very smart:) and consider experimenting with this: http://tpctl.sourceforge.net It doesn't seem ported, but they claim it runs on *BSD. Read the man page, --setup-pointing-device* options could maybe solve the problem. compile failed with a lot of error messages. I'll try the good old PS2.EXE later on DOS. Thanks for all the info and help:) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse wheel doesn't work
On Sat, 2007-07-21 at 01:42 +0200, Nikola Lecic wrote: Yes, this is more likely -- the trackpoint and external ps/2 mouse collide. Thank you for the information! Now I have made it work. 0) edit /etc/rc.d/moused, remove '-t {$mytype}' from moused parameter list: #/usr/sbin/moused ${myflags} -p ${myport} -t ${mytype} ${_pidarg} /usr/sbin/moused ${myflags} -p ${myport} ${_pidarg} 1) enter DOS mode with a Windows 98 rescue disk 2) use the PS2.EXE form Lenovo, run 'ps2.exe tpoint autodisable'; 3) reboot, enter FreeBSD, mouse wheel is working now. It's important to do step 0 because moused can only forward wheel scroll to X if it's invoked without -t parameter. I think there are two bugs: Bug A: As manual of moused says: For the PS/2 mouse: ps/2 This is the only protocol type available for the PS/2 mouse and should be specified for any PS/2 mice, regardless of the brand. In fact, it is wrong! If I invoke moused with -t ps/2, mouse wheel doesn't work. This doesn't work (according to manual it should): moused -p /dev/psm0 -t ps/2 In fact, only this works: moused -p /dev/psm0, no -t parameter. This must be a bug. 100% of all users who read the manual should directly conclude they should get equal or better result with -t ps/2 than with no -t parameter for their ps/2 mouse, this is wrong, they get better result without -t parameter. Bug B: As said in the manual, -t is an optional parameter. /etc/rc.d/moused should respect this. If user didn't specify -t, then it should not assume to use -t microsoft, it should launch moused without -t parameter. Even if there is a good reason to assume the device is microsoft type, this assume logic should be placed in moused source code. Moused should be the one knowing how to handle different situation automatically and fall-back sanely. The rc.d script tries to do too much and think it's smarter then device driver on deciding device type without even communicating to device at all. This is a user's point of view and welcome developer with background knowledge to correct me. Thanks again Nikola for helping me out! Best Regards Zhang Weiwu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
disable PCI interrupt sharing in 6.1?
Dear list I have one PCMCIA slot unusable in 6.1 but is fine in 4.7 (when OLDCARD is being used). I am just guessing perhaps this has something to do with interrupt sharing. I cannot find in man page of 'pccard' enough information on how to tweak any option, looks there is no option for pccard(4). Is there a way to disable interrupt sharing for PCI devices? As far as I know the whole concept of NEWCARD is to address the issue of PCI cards, however I only have ISA cards and 16-bit card bridge and NEWCARD didn't solve any of my problem (because I had no problem) but probably created more. Best Regards -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/boot/device.hints only work for some devices in FreeBSD 6.2?
Dear list I followed documents I found on the Internet which says by editing /boot/device.hints I can assign IRQ or disable devices, and I tried to do so, modification in /boot/device.hint do have effect over some device, for example: hint.fdc.0.disable=1 but some seetings do not have effect, e.g. hint.uhci.0.disable=1 No matter what I set to uhci (irq, disable, port, at etc), none of them works, next time the OS start it will always discover this device and assign the same irq, same port: [EMAIL PROTECTED] ~]$ dmesg | grep hci uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x9000-0x901f irq 11 at device 6.2 on pci0 uhci0: [GIANT-LOCKED] usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 [EMAIL PROTECTED] ~]$ Where can I get knowledge of how device.hints works? e.g. maybe it can only work with device that is not managed by a PNP BIOS or maybe it only manage ISA devices but not PCI devices? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
unknown: PNP0f13 can't assign resources (irq)
Dear list I have seen strange message in my dmesg which says it cannot assign resources to PNP device: [snip] sc0: VGA 16 virtual consoles, flags=0x300 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: PNP0303 can't assign resources (port) unknown: PNP0f13 can't assign resources (irq) unknown: PNP0700 can't assign resources (port) unknown: PNP0c02 can't assign resources (memory) unknown: PNP0400 can't assign resources (port) pcm0: CS423x at port 0x530-0x537,0x388-0x38b,0x220-0x233 irq 5 drq 1,0 on isa0 [/snip] I have googled around and discussion around the the topic of PNPxxx cannot assign resouce mostly happen in 2002 ~ 2005, they have suggested not to use PNPBIOS option in kernel, which I didn't use at all and cannot see references to this kernel option (so should be a removed option). Others on the forums suggested (in 2003) that I should disable PNP feature in BIOS, which is impossible for me because my old IBM Thinkpad don't offer such config option (the only config option had been change system date/time and start-up-sequence). Even if it doesn't affect the use of the system I'd like to know a bit about the background knowledge. At least two devices on my FreeBSD doesn't work, the COM port and the second PCMCIA slot (anything on that slot doesn't work), though I don't think the two devices are related to this kernel message. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: unknown: PNP0f13 can't assign resources (irq)
在 2007-07-05四的 23:55 +1000,Norberto Meijome写道: On Thu, 05 Jul 2007 20:21:42 +0800 Zhang Weiwu [EMAIL PROTECTED] wrote: Others on the forums suggested (in 2003) that I should disable PNP feature in BIOS, which is impossible for me because my old IBM Thinkpad don't offer such config option (the only config option had been change system date/time and start-up-sequence) Hi Zhang, I'm curious - what model iof thinkpad is it? Thank pad 380XD, press F1 to enter BIOS. I used it since many years ago first with 4.7, later with 5.1 and 6.2. Shamed to still be a newbie after so many years. I mostly use terminal on it for various tasks. what you describe (as only being able to set the date and the startup sequence) seems to indicate you dont have admin access to the BIOS...but i could be wrong... I guess I need some type of Windows 95 or MS DOS utility issued by IBM in order to do any change in BIOS settings. At least that's what I recall when I get it. Too many years passed and I am not sure now. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /boot/device.hints only work for some devices in FreeBSD 6.2?
在 2007-07-05四的 09:19 -0400,Lowell Gilbert写道: Zhang Weiwu [EMAIL PROTECTED] writes: Where can I get knowledge of how device.hints works? e.g. maybe it can only work with device that is not managed by a PNP BIOS or maybe it only manage ISA devices but not PCI devices? It sounds like you haven't read man device.hints. That is a good place to start. Thanks for pointing out which TFM to read, I am feeling much more welcomed than if someone just drop me a message to RTFM. Are you referring to this section of device.hints(5)? They are most often used by ISA device drivers to specify where the driver will probe for the relevant devices, and what resources it will attempt to use. My uhci0 on pci is using IRQ 11, so does my ep0 which is on 16-bit PCMCIA slot. At first I thought this is impossible because I learnt ISA interrupt share is difficult or impossible; but later I think, maybe my ep0 is an ISA device (PC Card Type II slot is shrinked version of ISA slot) but the PC Card bridget is on PCI, thus it can share interrupts. The fact cbb0 sits on PCI (in dmesg) also looks like a prove of this. Not sure if my understanding is correct. cbb0: TI1250 PCI-CardBus Bridge mem 0x20822000-0x20822fff at device 2.0 on pci0 pccard0: 16-bit PCCard bus on cbb0 Thanks again for comment:) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
only first PCMCIA card works
Dear list Running FreeBSD-6.1 RELEASE on Thinkpad 380XD, I have been using this notebook for many years (and used FreeBSD from 4.7 to 6.1). An ethernet card is plugged on the first PCMCIA slot and I inserted my FC card reader (PCMCIA card produced by Hitachi) and noticed it's not detected (no message about it in dmesg) Later I discovered any card in the first PCMCIA slot works, any card in second slot, be it ethernet card or FC card adapter, doesn't work. I have pccard_enable=YES in my rc.conf. dmesg told me this: # dmesg | grep pccard pccard0: 16-bit PCCard bus on cbb0 pccard1: 16-bit PCCard bus on cbb1 ep0: 3Com Corporation 3C589D at port 0x100-0x10f irq 11 function 0 config 1 on pccard0 Actually I am not sure what to do next. I checked dmesg and found irq 11 is used by uchi0, as well as ep0, surprisingly both works, maybe my knowledge of IRQ is outdated. I also checked that my IRQ 3, 4 and 10 are not used (3 4 are free because my sio hardware is borken so I disabled it in /boot/devices.hint), so I write /etc/pccard.conf which says: irq 3 4 10 But after reboot the ep0 device still get 10 (I suspect it can get 3?) Then I go to added this to /boot/devices: hint.uhci.0.at=pci hint.uhci.0.irq=3 After reboot uchi0 is still at irq 11. Strange. I attached both of my dmesg and kernel config file. Thanks for suggestions and hints on hardware knowledge to me! # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.7.2.2 2006/05/01 00:15:12 scottl Exp $ machine i386 cpu I586_CPU ident QUASIMODO # To statically compile in device wiring instead of /boot/device.hints #hints GENERIC.hints # Default places to look for devices. makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols options VESA options VGA_WIDTH90 options SC_PIXEL_MODE #optionsSCHED_ULE # ULE scheduler options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET# InterNETworking options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFS_ROOT# NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_GPT# GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. device apic# I/O APIC # Bus support. device eisa device pci #
Re: only first PCMCIA card works
On Wed, 2007-07-04 at 14:13 +0800, Zhang Weiwu wrote: Dear list Running FreeBSD-6.1 RELEASE on Thinkpad 380XD, I have been using this notebook for many years (and used FreeBSD from 4.7 to 6.1). An ethernet card is plugged on the first PCMCIA slot and I inserted my FC card reader (PCMCIA card produced by Hitachi) and noticed it's not detected (no message about it in dmesg) During researching for a solution I have discovered several interesting thing: it seems there had been two PCMCIA related device drivers in FreeBSD: old system: device pcic device card new system device cbb device pccard device cardbus #(if cardbus is needed) And I discovered on FreeBSD 6.1 (perhaps many of them are already corrected in the coming 7.x version: I. man pcic and man card shows two difference pages (check bottom for the difference) and one of them is likely outdated, too outdated even for OLDCARD system II. FreeBSD official document still refer to pccard_enable=YES which is no longer used thanks to the new card system. Link is here: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/laptop/pcmcia.html III. No information about deprecation of pcic/card is mentioned in manual, also the pccard manual is too short to provide useful information. No information about pccardc's dependency on old pcic/card device drive is mentioned in pccardc's manual (which would lead people to ask why pccardc complain /dev/card0 doesn't exist) and I cannot find the new userland tool that replaces pccardc for testing and adjusting pccard behavior. Not just someone who try to complain here, but having this note might help other people find useful information or serve as a note to developers help FreeBSD improve in next version. Now I try to compile a kernel using pcic/card device drive and see if my second card would work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
iftop doesn't work with tun0?
As of 0.17, iftop change log says it being to support ppp interface, while in my case it doesn't work for my tun0 which is created by /etc/rc.d/ppp (DSL connection). Launch 'iftop -i tun0' does correctly show up all active TCP connections and from/to address, but bandwidth usage for every connection are always '0b'. Any one hit this problem too or give me a hint? I googled but earliest post about tun0 and iftop is on 2004, before release 0f v0.17 of iftop. Again I am not sure if I should mail iftop developers, as maybe they didn't design specifically for FreeBSD. Or, at least, perhaps someone already successfully run iftop on ppp link and can tell me if this behavior I saw is normal or not. Thanks a lot in advance! Below is example output of monitoring tun0. When working on fxp0 it's 100% correct. 12.5Kb 25.0Kb 37.5Kb 50.0Kb 62.5Kb └───┴───┴───┴───┴ 242.6.198.160= 209.85.139.180b 0b 0b = 0b 0b 0b 242.6.45.125 = 209.85.139.180b 0b 0b = 0b 0b 0b 242.6.241.248= 209.85.139.180b 0b 0b = 0b 0b 0b 51.6.214.188 = 209.85.139.180b 0b 0b = 0b 0b 0b 51.6.214.186 = 209.85.139.180b 0b 0b = 0b 0b 0b 51.6.214.252 = 209.85.139.180b 0b 0b = 0b 0b 0b 51.6.214.96 = 209.85.139.180b 0b 0b = 0b 0b 0b ─ TX: cumm: 0B rates:k:0b0b0b 0b RX: 0B 0b0b0b 0b TOTAL:0B 0b0b0b 0b ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not able to output anything to /dev/ttyv8?
On Wed, 2007-06-06 at 03:14 -0400, Michael Hauber wrote: On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote: Dear list On Gentoo Linux I used to redirect the output of a certain app to /dev/tty10 and switch to tty10 (by using Alt+F10) this is useful to keep watching the application. this doesn't work on FreeBSD. I can do # ehco hello /dev/ttyv8 # ehco hello /dev/ttyv9 # ehco hello /dev/ttyva But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in advance. Best regards try 'man ttys' and edit your /etc/ttys. It doesn't make me nervous when I have to RTFM as I did many times and, now I am RTFMing, but, I got a feeling I am entering a maze filled with things I don't know: termcap, bound rate... Anyway this is how I did it after RTFM, stupid but works: 1) go to /etc/gettytab and add this: W|Wd|Wd console:\ :ht:np:al=root:sp#9600: 2) run /usr/libexec/getty Wd ttyv8 3) now you can run your application and redirect to ttyv8 # app /dev/ttyv8 This is ugly, but it works. I'd very like to see better solutions. If you don't add that line to /etc/gettytab, run /usr/libexec/getty Pc ttyv8 will get you a ttyv8 console that you can redirect output to, but that console seems ignore carrier return / line feed, making the output difficult to read. P.S. I'd very much like the console ttyv8 can be at a speed of 9600, now it output anything almost instantly, so sometimes I cannot watch the output scroll with my eyes (by the special nature of the application I am running, glance over the output of my application when I am free can help me find a lot of useful information). The application produce less then 20MB of data, so 9600 kbps is a good measure to control the pace of output. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not able to output anything to /dev/ttyv8?
On Wed, 2007-06-06 at 09:31 -0500, Jonathan Horne wrote: Im not sure what your application may be, but my simple solution is just to 'tail -f /path/logfile'. This way, I can see the output of my application from anywhere I am via ssh (not just the local tty). Year, sure, right! I have been using your method for months! I start to thinking of piping result to a tty because the box running this app is not far away and I just think it's fun and looking nice to have it poping up progress :) As you said, this is not very very necessary, it's mostly for fun and a little bit easier for me -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
share my experience: highlight parts of a text file that matches a regular expression
Dear list I'd like to highlight part of output of one application that matches a regular expression. First I thought this is simple: $ my_app | grep --color=auto 'regexp' This method have a big problem that lines doesn't match regexp is not displayed, in my case I want all output of my_app being displayed, only the matching part highlighted. First I thought grep might have a parameter to output everything it receive, and it seems it doesn't. And I discovered I can use '-e' parameter for this purpose: $ my_app | grep --color=auto -e 'regexp' -e '$' The second -e makes all line matched. Maybe useful for some newbies. -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: share my experience: highlight parts of a text file that matches a regular expression
于 Wed, 6 Jun 2007 11:16:17 -0500 Eric F Crist [EMAIL PROTECTED] 写道: That's great! One question, how do I make it highlight the entire line, rather than the searched-for text? Guess would be: $ my_app | grep --color=auto -e '.*regexp.*' -e '$' Add '.*' before and after your regular expression Thanks! Eric Crist On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote: Dear list I'd like to highlight part of output of one application that matches a regular expression. First I thought this is simple: $ my_app | grep --color=auto 'regexp' This method have a big problem that lines doesn't match regexp is not displayed, in my case I want all output of my_app being displayed, only the matching part highlighted. First I thought grep might have a parameter to output everything it receive, and it seems it doesn't. And I discovered I can use '-e' parameter for this purpose: $ my_app | grep --color=auto -e 'regexp' -e '$' The second -e makes all line matched. Maybe useful for some newbies. -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ 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]
not able to output anything to /dev/ttyv8?
Dear list On Gentoo Linux I used to redirect the output of a certain app to /dev/tty10 and switch to tty10 (by using Alt+F10) this is useful to keep watching the application. this doesn't work on FreeBSD. I can do # ehco hello /dev/ttyv8 # ehco hello /dev/ttyv9 # ehco hello /dev/ttyva But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in advance. Best regards -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cannot enable VESA_800x600 raster text mode
On Thu, 2007-05-31 at 20:09 +0200, Harald Schmalzbauer wrote: Am Donnerstag, 31. Mai 2007 schrieb Zhang Weiwu: Dear list I have been using raster text mode for years and I really like it. All I need to do is to put these options in kernel options VESA options SC_PIXEL_MODE For one box I have 'Rage 3D LT Pro AGP 133MHz (BGA-312 Package)' display, This is an old problem because the VESA_800x600 Mode uses 4 bit color depth which ATI doesn't support. But maybe you can use vidcontrol MODE_261 vidcontrol: cannot active raster display: Operation not supported by device Besides the ATI problem I can't use the SC_PIXEL_MODE any more in -current. I think some time ago it has be broken when the higher resolution support has been added. Okay, I think I'll live with VGA_90x30. I prefer 100x37 though. If XGA is supported, I prefer 128x48. Hope someone can fix raster mode at 800x600x8 and also add support for raster mode 128x48 at XGA resolution. FreeBSD should be able to provide console driver that works at XGA resolution because there are so few SVGA display anywhere around (at least, few SVGA display still in use in China) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cannot enable VESA_800x600 raster text mode
Dear list I have been using raster text mode for years and I really like it. All I need to do is to put these options in kernel options VESA options SC_PIXEL_MODE For one box I have 'Rage 3D LT Pro AGP 133MHz (BGA-312 Package)' display, simply having these two options doesn't work (FreeBSD 6.1). 'vidcontrol -i mode' shows that graphical mode 800x600 is supported (at 8, 15, 16, 24 color depth) but run 'vidcontrol -g 100x37 VESA_800x600' I always got: vidcontrol: cannot set videomode: Operation not supported by device vidcontrol: cannot set videomode: Operation not supported by device Note being able to find a clue I am starting to compile agp device into the kernel, hope it can solve the problem. Anyway please tell me if you knows the solution. Thanks a lot in advance. I also attached here 'vidcontrol -i mode' output: mode# flags typesize font window linear buffer -- 0 (0x000) 0x0001 T 40x25 8x8 0xb8000 32k 32k 0x 1 (0x001) 0x0001 T 40x25 8x8 0xb8000 32k 32k 0x 2 (0x002) 0x0001 T 80x25 8x8 0xb8000 32k 32k 0x 3 (0x003) 0x0001 T 80x25 8x8 0xb8000 32k 32k 0x 4 (0x004) 0x0003 G 320x200x2 1 8x8 0xb8000 32k 32k 0x 5 (0x005) 0x0003 G 320x200x2 1 8x8 0xb8000 32k 32k 0x 6 (0x006) 0x0003 G 640x200x1 1 8x8 0xb8000 32k 32k 0x 13 (0x00d) 0x0003 G 320x200x4 4 8x8 0xa 64k 64k 0x 14 (0x00e) 0x0003 G 640x200x4 4 8x8 0xa 64k 64k 0x 16 (0x010) 0x0003 G 640x350x2 2 8x14 0xa 64k 64k 0x 18 (0x012) 0x0003 G 640x350x4 4 8x14 0xa 64k 64k 0x 19 (0x013) 0x0001 T 40x25 8x14 0xb8000 32k 32k 0x 20 (0x014) 0x0001 T 40x25 8x14 0xb8000 32k 32k 0x 21 (0x015) 0x0001 T 80x25 8x14 0xb8000 32k 32k 0x 22 (0x016) 0x0001 T 80x25 8x14 0xb8000 32k 32k 0x 23 (0x017) 0x0001 T 40x25 8x16 0xb8000 32k 32k 0x 24 (0x018) 0x0001 T 80x25 8x16 0xb8000 32k 32k 0x 26 (0x01a) 0x0003 G 640x480x4 4 8x16 0xa 64k 64k 0x 27 (0x01b) 0x0003 G 640x480x4 4 8x16 0xa 64k 64k 0x 28 (0x01c) 0x0003 G 320x200x8 1 8x8 0xa 64k 64k 0x 30 (0x01e) 0x0001 T 80x50 8x8 0xb8000 32k 32k 0x 32 (0x020) 0x0001 T 80x30 8x16 0xb8000 32k 32k 0x 34 (0x022) 0x0001 T 80x60 8x8 0xb8000 32k 32k 0x 37 (0x025) 0x0003 G 320x240x8 4 8x8 0xa 64k 64k 0x 40 (0x028) 0x0001 T 90x25 8x16 0xb8000 32k 32k 0x 42 (0x02a) 0x0001 T 90x30 8x16 0xb8000 32k 32k 0x 44 (0x02c) 0x0001 T 90x43 8x8 0xb8000 32k 32k 0x 45 (0x02d) 0x T 90x43 8x8 0xb8000 32k 32k 0x 46 (0x02e) 0x0001 T 90x50 8x8 0xb8000 32k 32k 0x 48 (0x030) 0x0001 T 90x60 8x8 0xb8000 32k 32k 0x 112 (0x070) 0x T 80x43 8x8 0xb8000 32k 32k 0x 113 (0x071) 0x0001 T 80x43 8x8 0xb8000 32k 32k 0x 256 (0x100) 0x000f G 640x400x8 1 8x16 0xa 64k 64k 0x8100 257 (0x101) 0x000f G 640x480x8 1 8x16 0xa 64k 64k 0x8100 259 (0x103) 0x000f G 800x600x8 1 8x14 0xa 64k 64k 0x8100 261 (0x105) 0x000f G 1024x768x8 18x16 0xa 64k 64k 0x8100 263 (0x107) 0x000f G 1280x1024x8 1 8x16 0xa 64k 64k 0x8100 269 (0x10d) 0x000f G 320x200x15 18x8 0xa 64k 64k 0x8100 270 (0x10e) 0x000f G 320x200x16 18x8 0xa 64k 64k 0x8100 271 (0x10f) 0x000f G 320x200x24 18x8 0xa 64k 64k 0x8100 272 (0x110) 0x000f G 640x480x15 18x16 0xa 64k 64k 0x8100 273 (0x111) 0x000f G 640x480x16 18x16 0xa 64k 64k 0x8100 274 (0x112) 0x000f G 640x480x24 18x16 0xa 64k 64k 0x8100 275 (0x113) 0x000f G 800x600x15 18x14 0xa 64k 64k 0x8100 276 (0x114) 0x000f G 800x600x16 18x14 0xa 64k 64k 0x8100 277 (0x115) 0x000f G 800x600x24 18x14 0xa 64k 64k 0x8100 278 (0x116) 0x000f G 1024x768x15 1 8x16 0xa 64k 64k 0x8100 279 (0x117) 0x000f G 1024x768x16 1 8x16 0xa 64k 64k 0x8100 280 (0x118) 0x000f G 1024x768x24 1 8x16 0xa 64k 64k 0x8100 281 (0x119) 0x000f G 1280x1024x15 1 8x16 0xa 64k 64k 0x8100 282 (0x11a) 0x000f G 1280x1024x16 1 8x16 0xa 64k 64k 0x8100 283 (0x11b) 0x000f G 1280x1024x24 1 8x16 0xa 64k 64k 0x8100 ___ freebsd-questions@freebsd.org mailing list
harddisk failed strangely, badly need to recover data
Dear list. I added a 160 GB harddisk to the FreeBSD server several days ago. I have setup only one slice on it (/dev/ad6s1) and it has two partitions on it. /dev/ad6s1c is used as swap /dev/ad6s1d is used as /var Today I decided to reboot the FreeBSD server because I messed up nfs settings. After restart /var/ failed to mount. I was brought to a shell where I am suggested to do fsck manually. fsck manually couldn't help either: [EMAIL PROTECTED] /home/zhangweiwu]# fsck /dev/ad6s1d ** /dev/ad6s1d Cannot find file system superblock LOOK FOR ALTERNATE SUPERBLOCKS? [yn] y 32 is not a file system superblock 28780512 is not a file system superblock 57560992 is not a file system superblock 86341472 is not a file system superblock 115121952 is not a file system superblock 143902432 is not a file system superblock 172682912 is not a file system superblock 201463392 is not a file system superblock 230243872 is not a file system superblock 259024352 is not a file system superblock 287804832 is not a file system superblock SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE -b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8). I tried to fix it by do inga harddisk bad-sector checking for the beginning 1GB of the harddisk (result is successful, no bad sector in the beginning 1GB). The data on the harddisk is not modified/erased during checking Use 'dd if=/dev/ad6 bs=32k | hd -v | grep 19 01 54 19' to locate the super block and do some calculation to get the superblock sector number (following an Internet article) and pass it to fsck_ufs like this: 'fsck_ufs -b 12032 /dev/ad6s1d'. Under a lot of time pressure I confirmed twice with 'y' for the following questions of whether or not to set some values to default without fully understanding the questions, later seeing more questions I stopped fsck by Ctrl+C. Before running fsck I tried to backup the first 100MB data of /dev/ad6 using dd which should help me recover even if I destroyed superblock of /dev/ad6s1d. Later I realized I have by mistake only backed up the beginning 4.0MB of /dev/ad6 Is it possible now for me to recover the data in /var/ (especially /var/backups)? Thanks a lot in advance! P.S. I am being really unlucky because this harddisk is mostly used for backup purpose and thus is not backed up (who back up the back-up harddisk?) and when I today failed to mount this harddisk, 0.5 hour later the server being backed up by it has got an accident and need the backup data to recover. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[solved] Re: harddisk failed strangely, badly need to recover data
Actually this is not solved. I have discovered that it will not be easy to solve this problem and decided to accept the lose of data, that's how it solved/ Basically the accident took place because one line in /etc/fstab was wrong. in /etc/fstab /dev/ad6s1c is used as swap, when FreeBSD boots, it use /dev/ad6s1c as swap, destroying data blocks around these sectors. [EMAIL PROTECTED] /var/backups]# disklabel /dev/ad6s1 # /dev/ad6s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] c: 3125766420unused0 0 # raw part, don't edit d: 31257664204.2BSD 2048 16384 28552 So in this case the 'c' partition as far as I can understand should not be used for any purpose. I didn't intentionally create 'c' partition, nor can I see this partition in Disk Label Editor of sysinstall. I don't know why it's there. Zhang Weiwu On Tue, 2007-05-08 at 16:42 +0800, Zhang Weiwu wrote: Dear list. I added a 160 GB harddisk to the FreeBSD server several days ago. I have setup only one slice on it (/dev/ad6s1) and it has two partitions on it. /dev/ad6s1c is used as swap /dev/ad6s1d is used as /var Today I decided to reboot the FreeBSD server because I messed up nfs settings. After restart /var/ failed to mount. I was brought to a shell where I am suggested to do fsck manually. fsck manually couldn't help either: [EMAIL PROTECTED] /home/zhangweiwu]# fsck /dev/ad6s1d ** /dev/ad6s1d Cannot find file system superblock LOOK FOR ALTERNATE SUPERBLOCKS? [yn] y 32 is not a file system superblock 28780512 is not a file system superblock 57560992 is not a file system superblock 86341472 is not a file system superblock 115121952 is not a file system superblock 143902432 is not a file system superblock 172682912 is not a file system superblock 201463392 is not a file system superblock 230243872 is not a file system superblock 259024352 is not a file system superblock 287804832 is not a file system superblock SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE -b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8). I tried to fix it by do inga harddisk bad-sector checking for the beginning 1GB of the harddisk (result is successful, no bad sector in the beginning 1GB). The data on the harddisk is not modified/erased during checking Use 'dd if=/dev/ad6 bs=32k | hd -v | grep 19 01 54 19' to locate the super block and do some calculation to get the superblock sector number (following an Internet article) and pass it to fsck_ufs like this: 'fsck_ufs -b 12032 /dev/ad6s1d'. Under a lot of time pressure I confirmed twice with 'y' for the following questions of whether or not to set some values to default without fully understanding the questions, later seeing more questions I stopped fsck by Ctrl+C. Before running fsck I tried to backup the first 100MB data of /dev/ad6 using dd which should help me recover even if I destroyed superblock of /dev/ad6s1d. Later I realized I have by mistake only backed up the beginning 4.0MB of /dev/ad6 Is it possible now for me to recover the data in /var/ (especially /var/backups)? Thanks a lot in advance! P.S. I am being really unlucky because this harddisk is mostly used for backup purpose and thus is not backed up (who back up the back-up harddisk?) and when I today failed to mount this harddisk, 0.5 hour later the server being backed up by it has got an accident and need the backup data to recover. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is FreeBSD simple enough for Novices, Will FreeBSD accept Office 98 + Publisher?
On Sat, 2007-04-28 at 16:32 +0800, Zhang Weiwu wrote: Frankly it's so much easier on wine. If something doesn't work on wine, s/on/than/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is FreeBSD simple enough for Novices, Will FreeBSD accept Office 98 + Publisher?
Dear James I am afraid the answer is no. FreeBSD is simple enough on its technical structural but not the kind of simple as to novice user (so the right question might be if FreeBSD is novice-user friendly enough or easy to learn enough). The OS best fitting your requirement could be Ubuntu Linux or SuSE, while both can run Office 98, but you probably need to buy and install a software called CrossOffice (around 65$) before you can run Office 98. However the OpenOffice office suit which by default installed in SuSE and Ubuntu is superior than Office 98 in functionality, and can open your old Office 98 documents just fine (except, if you are in China, the Chinese compatibility is not very good for both Office 98 and OpenOffice). If you install CrossOffice, Microsoft Publisher 2000 can run on it, but better check with CrossOffice sales people first, this company designed and sells CrossOffice: http://www.codeweavers.com The interface of Ubunti Linux is very easy to learn and is not very different from Windows. I myself use OpenOffice Draw for making publications. For me it's enough, however it lack the feature of template publications which Publisher offers, so if you think templates are very important (e.g. being able to use template to create a Christmas Card in minutes without having design knowledge like match color) then maybe you still need Publisher. I myself use OpenSuSE for desktop, making publication and doing spreadsheet for business, writing documents, contracts and invoices, using email etc. (Right now I am using it). I know many friends use Ubuntu that can do these things just fine. FreeBSD is used as server system here in my office. FreeBSD also can run a lot of desktop software but all through the years I generally see much more Linux users using desktop software. Best Regards On Fri, 2007-04-27 at 22:20 -0400, james thompson wrote: How difficult is FreeBSD to use in place of MS windows, say compared to Apple OSX? I believe it may be able to run Offide 98; can Office 98 with Publisher be ran on FreeBSD? I want to use FreeBSD to compose articles, and combine them into a Book for publication, as a Home Office Operation by a person with little experience beyond windows. In 1995, I took a MicroComputer Operating Systems course in Windows 3.11 and DOS 6.22. I have used Windows 95, 98, and XP Home upgraded to Media Edition. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is FreeBSD simple enough for Novices, Will FreeBSD accept Office 98 + Publisher?
On Sat, 2007-04-28 at 14:30 +0800, Zhang Weiwu wrote: Dear James run Office 98. However the OpenOffice office suit which by default installed in SuSE and Ubuntu is superior than Office 98 in functionality, and can open your old Office 98 documents just fine I forgot to mention: using OpenOffice is completely free of charge, this software can also be used on MacOS. It's my everyday office life. And using OpenOffice you don't need to buy CrossOffice (65$) which is used to run Microsoft Office (which again is not free) If you have questions using OpenOffice, there are a lot of OpenOffice users there on the forum that are very willing to help. See www.oooforum.org I think both Ubuntu and Mac OS are your good choice! If you are interested in and have time on learning managing powerful system like FreeBSD it's also a good choice. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is FreeBSD simple enough for Novices, Will FreeBSD accept Office 98 + Publisher?
On Fri, 2007-04-27 at 23:58 -0700, Garrett Cooper wrote: As for running Windows binaries of Office on Wine / Crossoffice, this is tricky at best.. particularly with newer MS products (what with the Did you really try to run Windows applications on Crossoffice that crossoffice claimed to be supported? Frankly it's so much easier on wine. If something doesn't work on wine, after some search I probably can fix it; if something doesn't work on crossoffice I simply don't try spend one more minute searching for a solution, because generally that means there is no solution. Install some software on crossoffice is breezy: you follow a wizard and later it's working. That's only from my limited experience because I really didn't try a lot of windows software but I had this feeling. That's why when the original poster ask the question I even didn't mention the word wine, I did this intentionally so that I can save him time searching for solutions to fix wine or get disappointed by it. To techies like us we have 3 solutions: 1) use OOS replacement; 2) dig into wine and google around for a solution and 3) try buy crossoffice, for NOVINCE user there are only two choices: 1) use OOS replacement; 2) buy crossoffice if the software is supported. I simply give user-aspect opinion from me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: best programming language for console/sql application?
On Wed, 2007-04-25 at 21:03 -0700, L Goodwin wrote: Zhang (or Weiwu?), Weiwu:) I'm surprised there are no good open source bug tracking solutions out there already. There are a lot! There are no known console-based bug tracker (there are also a lot of console-based bug reporter) Sorry, I'm not familiar with ncurse, so can't comment on it. The system I developed ten years ago was centered on Informix RDBMS, which included tools for creating character-based forms (Perform), reports (ACE report writer), and of course queries and stored procs. The shell scripts were used in conjunction with the RDBMS for tasks such as running reports and emailing the results to various individuals and mail groups, and extracting bug regression tests into executable scripts. Overhead was very low -- that's one great advantage of character-based applications (the Windows lovers complained bitterly about it, but we proved it was far more efficient and effective than the junk they were building). Good luck finding or building a system that meets your needs. I simply don't have time for non-essential activities, as I'm a one-person operation. Thanks for the info. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] simpliest way to process this data file
An example that is probably not simple enough: awk 'BEGIN { FS=\n; RS=\n\n;} { print ; print $NF; for (i=1; iNF; i++) print $i;}' On Thu, 2007-04-26 at 11:18 +0800, Zhang Weiwu wrote: I know this is OT but we got so many sysops here and this might be something very easy for them to drop me a quick answer? I have a data file formatted like this each block of data consist of several lines; blocks are separated by empty lines like this This is a block of data with lines and another block of data The task is to move the last line of each block to the first line of the block. So the processed data look like this: with lines This is a block of data data and other block of I have tried a lot reading info pages of sed still cannot figure out an easy solution (tried to play with N command a lot of times). I know how to do it in awk but I am pretty interested to learn a second language and I really think sed or other tools should be able to handle this:) -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[OT] simpliest way to process this data file
I know this is OT but we got so many sysops here and this might be something very easy for them to drop me a quick answer? I have a data file formatted like this each block of data consist of several lines; blocks are separated by empty lines like this This is a block of data with lines and another block of data The task is to move the last line of each block to the first line of the block. So the processed data look like this: with lines This is a block of data data and other block of I have tried a lot reading info pages of sed still cannot figure out an easy solution (tried to play with N command a lot of times). I know how to do it in awk but I am pretty interested to learn a second language and I really think sed or other tools should be able to handle this:) -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: best programming language for console/sql application?
If this is a product you developed long time ago, and especially if it's no longer used or the old company quit this business, it's probably possible to ask them if they can opensource the old product, and someone may come up and make it better? P.S. I was thinking of an ncurse-style interface, so can shell script do this? I thought shell tools like dialog wasn't powerful enough to support an user interface required by a bug tracker. On Mon, 2007-04-23 at 18:07 -0700, L Goodwin wrote: I co-developed a UNIX-based multi-product bug tracking system using an RDBMS (Informix, ISQL, Perform and ACE), bourne shell scripts, cron, and UNIX Mail. This solution also worked on PC clients (we used Reflection-X, but I'd recommend XWin32). Our design was selected over a PC-only solution that another faction was pushing (we had more UNIX clients than PC's at that time). It had some pretty sophisticated features for the time (some carried over from a previous version), including: Automated email notifications and summaries designed to support our software development methodology. Retrieve and display SCCS deltas to display code changed for a bug fix. Ability to store bug regression tests (manual and automated) in several different languages, and automatically generate automated regression tests based on several different criteria, including Product, Platform, Version Range, and Programming Language. This one was my baby (brag). I've also rewritten HPUX makefiles in bsh to permit execution on multiple UNIX platforms (HPUX make has some unique features not found in make on other UNIX platforms). Based on the above experience, I'd recommend shell scripts, though this will likely generate some opposition. In any case, if your system only needs to run on one platform, I'd use built-in tools. Since then, I've played around with using perl for CGI scripting (hated it), then PHP, which I love for this purpose. Zhang Weiwu [EMAIL PROTECTED] wrote: Dear list This is OT. I am a 4 year php developer and is very familiar with javascript and awk (familiar = knows and used all functions and features of the language itself) and I am a 5 year FreeBSD user. Being frustrated for the lack of a good console-based issue tracking tool (like mantis or bugzilla), I think I should start to write my own. I'll either start from scratch or (better) write a frontend for mantis which I used for years. 1. If someone has already started, I should try join him/her rather than reinventing the wheel. So if someone knows any person who is starting to work on a slim console-based issue tracker, please let me know. I already did quit a few searches. I know someone is working on a console front-end of G-Forge, but a big software like G-Forge is not what I am thinking of. 2. If I start my own, I think I'll be using a console widget library (ncurse? because it's famous), an SQL database (no problem) and a programming language. I never developed console application before, so here asking for suggestions on what programming language to choose. Non of my known language php/javascript/awk are suitable so I guess I have to learn a new language anyway. The language better be easy to learn and work with (C++ is out), not necessarily have complicated calculation feature (like the graphical report mantis makes), not necessarily OOP. I have perl and tcl in my head now, can you make some recommendations? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] __ Ahhh...imagining that irresistible new car smell? Check out new cars at Yahoo! Autos. -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
best programming language for console/sql application?
Dear list This is OT. I am a 4 year php developer and is very familiar with javascript and awk (familiar = knows and used all functions and features of the language itself) and I am a 5 year FreeBSD user. Being frustrated for the lack of a good console-based issue tracking tool (like mantis or bugzilla), I think I should start to write my own. I'll either start from scratch or (better) write a frontend for mantis which I used for years. 1. If someone has already started, I should try join him/her rather than reinventing the wheel. So if someone knows any person who is starting to work on a slim console-based issue tracker, please let me know. I already did quit a few searches. I know someone is working on a console front-end of G-Forge, but a big software like G-Forge is not what I am thinking of. 2. If I start my own, I think I'll be using a console widget library (ncurse? because it's famous), an SQL database (no problem) and a programming language. I never developed console application before, so here asking for suggestions on what programming language to choose. Non of my known language php/javascript/awk are suitable so I guess I have to learn a new language anyway. The language better be easy to learn and work with (C++ is out), not necessarily have complicated calculation feature (like the graphical report mantis makes), not necessarily OOP. I have perl and tcl in my head now, can you make some recommendations? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dhcpd assign duplicated IP address
Bill Moran 写道: In response to Zhang Weiwu [EMAIL PROTECTED]: snip P.S. In recent days we some times got another network problem and I'm not sure if it's related to this DHCP server behavior. It happens on both Linux and Windows hosts that a host suddenly is no longer accessible (Ping no response). Check 'arp -a' on other hosts shows the host being accessed have wrong Mac Address. e.g. yesterday 218.193.55.195 suddenly become in-accessible, this host is Linux and we got this behavior on a nearby host: sappho # arping 218.193.55.195 Unicast reply from 218.193.55.195 [00:0F:EA:4B:82:58] 0.638ms Unicast reply from 218.193.55.195 [00:0F:EA:4B:82:58] 0.637ms Sent 113 probes (1 broadcast(s)) Received 113 response(s) sappho # arp -a 218.193.55.195 ? (218.193.55.195) at 00:02:2A:C1:53:87 [ether] on eth0 arping reply is different from arp cache. This host become accessible the next day. Strange. Are these two problems related? You have something seriously wrong somewhere. They may be related but there's not enough information here to be sure. Consider installing arpwatch on one or more systems and see if the reports it sends narrow down the problem. I have followed Jeffrey's suggestion and reconfigured dhcpd.conf to make sure no host with specified IP address is within dynamic assigned IP range. I was mislead by my previous experience with Microsoft DHCP server configuration where a host with fixed IP address should be within the range. After updated dhcpd.conf I haven't see an IP conflict yet, I'll watch a few days. For the ARP issue, thanks for suggesting arpwatch. I'd like to take a deeper look into how ARP works later. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dhcpd assign duplicated IP address
I am not sure if I understood DHCP correctly. I have this configuration in my /usr/local/etc/dhcpd.conf (Using FreeBSD 6.1): subnet 218.193.55.192 netmask 255.255.255.192 { range 218.193.55.194 218.193.55.254; option routers 218.193.55.193; } [snip] host sappho.realss.com { hardware ethernet 80:00:20:B0:99:31; fixed-address 218.193.55.196; option routers 218.193.55.193; } And I think this means the DHCP server should not assign IP address 218.193.55.196 to any hosts that do not have MAC address of 80:00:20:B0:99:31. But today a Windows user come with a notebook and he got assigned 218.193.55.196 IP address (and he complain he cannot surf the web). Check /var/db/dhcpd/dhcpd.leases and there is: lease 218.193.55.196 { starts 4 2007/04/19 01:49:23; ends 4 2007/04/19 11:49:23; tstp 4 2007/04/19 11:49:23; binding state active; next binding state free; hardware ethernet 00:c0:9f:73:0d:0a; uid \001\000\300\237s\015\012; client-hostname dawnlinux; } So the question is, did I misconfigured dhcpd.conf or what's the reason dhcpd is assigning an IP address it should not? Thanks a lot in advance! My dhcpd.conf is attached. P.S. In recent days we some times got another network problem and I'm not sure if it's related to this DHCP server behavior. It happens on both Linux and Windows hosts that a host suddenly is no longer accessible (Ping no response). Check 'arp -a' on other hosts shows the host being accessed have wrong Mac Address. e.g. yesterday 218.193.55.195 suddenly become in-accessible, this host is Linux and we got this behavior on a nearby host: sappho # arping 218.193.55.195 Unicast reply from 218.193.55.195 [00:0F:EA:4B:82:58] 0.638ms Unicast reply from 218.193.55.195 [00:0F:EA:4B:82:58] 0.637ms Sent 113 probes (1 broadcast(s)) Received 113 response(s) sappho # arp -a 218.193.55.195 ? (218.193.55.195) at 00:02:2A:C1:53:87 [ether] on eth0 arping reply is different from arp cache. This host become accessible the next day. Strange. Are these two problems related? -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 option domain-name realss.com; # when ADSL is online, we use schools' name server because it's fast; # when ADSL is offline, clients who failed to reach schools' name server will try # China Telcom's name server option domain-name-servers 210.34.0.14, 210.34.0.18, 202.101.103.55, 202.101.103.54; option subnet-mask 255.255.255.0; default-lease-time 36000; max-lease-time 72000; # our DHCP server is the only one used here. authoritative; # ad-hoc DNS update scheme - set to none to disable dynamic DNS updates. ddns-update-style none; # this subnet does not only cover our office, but also the whole office building # our office is assigned 218.193.55.194 to 218.193.55.198 which is not enough # we simply occupy up to 218.193.55.202 and use this DHCP server to suggest # all other computers in this office building to use the rest IP address space; subnet 218.193.55.192 netmask 255.255.255.192 { range 218.193.55.194 218.193.55.254; # HITACHI PC with Pentium II processor # FreeBSD 6.1 # host 218.193.55.198 is the gateway of our office which routes packets to # ChinaTelcom if target IP address is not in CERNET # we don't want to share this gateway so we assign the rest of computers to # use school's gateway option routers 218.193.55.193; } host emerson.realss.com { # Gentoo Linux 2006.1 # 1. Development server of Real SS (a copy of the productional server); # 2. SVN server of all our projects # 2.1 SVN server of our groupware product running on Apache; # 2.2 SVN server for our small projects running on svn port; hardware ethernet 00:11:11:9d:ae:9c; fixed-address 218.193.55.194; option routers 218.193.55.198; } host joe.realss.com { # 1. Multi-seat compuater in the office; # SuSE 10.1 # 2. Offer free Internet cafe for the campus to test multi-user system; # 3. have a lot of tools for users and developers; hardware ethernet 00:0f:ea:4b:82:58; fixed-address 218.193.55.195; option routers 218.193.55.198; } host sappho.realss.com { # Ultrasparc U5 with additional 160GB IDE HDD # Gentoo Linux 2006.1 # 1. Public ftp server offering download of free-opensource software; # 2. Public rsync server offering gentoo portage rsync; # 3. Music Play Daemon runs on this host for the office; # 4. Print server for the office # note the below hw addr is not correct, sappho don't use dhcp hardware ethernet 80:00:20:B0:99:31; fixed-address 218.193.55.196; # It's important sappho.realss.com use the default router of CERNET # it is serving CERNET as well as fast networks OUTSIDE cernet option routers 218.193.55.193; } host www.linasp.com { # Mr Zhu Chenglin's PC # Windows XP hardware ethernet 00:90:27:58:9F:B5; fixed-address 218.193.55.197; option routers 218.193.55.198; } host ushang.net { # Shang Wenbin's PC # Debian Linux
Re: [OT] can sed handle this situation? (might require variable)
On Sun, 2007-04-15 at 01:40 -0400, Parv wrote: in message [EMAIL PROTECTED], wrote Zhang Weiwu thusly... Dear list. I could not find a mailing list about 'sed' (there is an very inactive Yahoo Group though) so I wish to try some luck here. Try, comp.unix.misc newsgroup. I've got a situation that looks like require using variable and not possible to process with sed. But I am not sure. Can someone suggest me if this task is out of scope of sed? Try some variation of what Garret suggested if sed is the requirement and skip rest of the message. Thank you very much for all of you providing insights. I have not yet tried all possibilities in sed but I have just discovered it's relatively easy to handle this task in awk with this script: /^$/ { print createTimestamp:, timeStamp; timeStamp = ; } /^ahkCreateTimeStamp:/ { timeStamp = $2;} /^createTimestamp:/ { if (timeStamp == ) timeStamp = $2; } $0 !~ /^ahkCreateTimeStamp:/ $0 !~ /^createTimestamp:/ { print; } ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] can sed handle this situation? (might require variable)
Parv 写道: in message [EMAIL PROTECTED], wrote Zhang Weiwu thusly... On Sun, 2007-04-15 at 01:40 -0400, Parv wrote: in message [EMAIL PROTECTED], wrote Zhang Weiwu thusly... ... I've got a situation that looks like require using variable and not possible to process with sed. But I am not sure. Can someone suggest me if this task is out of scope of sed? Try some variation of what Garret suggested if sed is the requirement and skip rest of the message. Thank you very much for all of you providing insights. I have not yet tried all possibilities in sed but I have just discovered it's relatively easy to handle this task in awk with this script: /^$/ { print createTimestamp:, timeStamp; timeStamp = ; } This prints a createTimestamp: line on its own block for every 2 consecutive empty lines (in context of the whole program). Ah, yes, if there are two empty lines this line would create a mistake. The original input file's sections are strictly one-empty-line-divided and one empty line before EOF, thus I was lucky. However I wasn't aware of your point when I wrote this. /^ahkCreateTimeStamp:/ { timeStamp = $2;} /^createTimestamp:/ { if (timeStamp == ) timeStamp = $2; } $0 !~ /^ahkCreateTimeStamp:/ $0 !~ /^createTimestamp:/ { print; } Interesting, your description of the solution (sadly not in the quoted reply) allowed for createTimestamp move to ahkCreateTimeStamp line, but implementation above keeps the createTimestamp at its place. So I suppose order does not matter(?). Well, actually order is not important. I forgot to mention this... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[OT] can sed handle this situation? (might require variable)
Dear list. I could not find a mailing list about 'sed' (there is an very inactive Yahoo Group though) so I wish to try some luck here. Sorry for OT. I've got a situation that looks like require using variable and not possible to process with sed. But I am not sure. Can someone suggest me if this task is out of scope of sed? The input document is sections of data separated by an empty new line; in each section there are a few lines. It's like this: dn: uid=ABB,ou=contacts,ou=china,dc=ahk,dc=de uid: ABB ahkCreateTimeStamp: 1996032800Z creatorsName: cn=manager,dc=ahk,dc=de createTimestamp: 20060425094550Z dn: uid=paulblome,ou=contacts,ou=china,dc=ahk,dc=de uid: paulblome sn: Blome createTimestamp: 20060417071950Z modifiersName: cn=manager,dc=ahk,dc=de modifyTimestamp: 20060630094026Z The above sample showed two sections in input data. It's required to process the data in following rule: if a data section has ahkCreateTimeStamp: abc, replace it with createTimestamp: abc and remove the original createTimestamp: def line; That is, the result data of above sample should be: dn: uid=ABB,ou=contacts,ou=china,dc=ahk,dc=de uid: ABB createTimestamp: 1996032800Z creatorsName: cn=manager,dc=ahk,dc=de dn: uid=paulblome,ou=contacts,ou=china,dc=ahk,dc=de uid: paulblome sn: Blome createTimestamp: 20060417071950Z modifiersName: cn=manager,dc=ahk,dc=de modifyTimestamp: 20060630094026Z -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
tsclient removed from SuSE?
I recall that there had been tsclient come with SuSE 9.x. Now I am using SuSE 10.2. I cannot find tsclient in the SuSE standard repository nor in packman. (Can I know why this is removed?) tsclient is not important to me, because I always use vncviewer commandline. But we are in a company and I don't like to frighten away my colleagues by telling them when they want a remote desktop session (e.g. discuss a contact) they have to start gnome-terminal and type something there (and, I am sure many of them will type wrongly, with incorrect placed space ett, because they don't know how to use command line. To accept vnc session is easy, go to Control Center and click Remote Desktop. To start vnc session does one have to use command-line? Yes I can create a desktop shortcut for them so that they can directly launch vncviewer which prompt for server address. But I prefer the standard way: installing some software for them (unless I have to make the desktop shortcuts). -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tsclient removed from SuSE?
Sorry, sent to the wrong list! I use both SuSE (for desktop) and freebsd (for server) and subscribed to both lists. Sorry for posting this OT. On Wed, 2007-03-28 at 11:05 +0800, Zhang Weiwu wrote: I recall that there had been tsclient come with SuSE 9.x. Now I am using SuSE 10.2. I cannot find tsclient in the SuSE standard repository nor in packman. (Can I know why this is removed?) tsclient is not important to me, because I always use vncviewer commandline. But we are in a company and I don't like to frighten away my colleagues by telling them when they want a remote desktop session (e.g. discuss a contact) they have to start gnome-terminal and type something there (and, I am sure many of them will type wrongly, with incorrect placed space ett, because they don't know how to use command line. To accept vnc session is easy, go to Control Center and click Remote Desktop. To start vnc session does one have to use command-line? Yes I can create a desktop shortcut for them so that they can directly launch vncviewer which prompt for server address. But I prefer the standard way: installing some software for them (unless I have to make the desktop shortcuts). -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recommend console email client?
On Mon, 2007-03-19 at 15:30 +0100, Wojciech Puchar wrote: For years I am not yet satisfied with ANY console email client, though I have tried quite a few. My requirement is actually very simple: a email client must be able to: 1. do the automatic charset conversion, so if I got an email in GB18030 charset, it display correct on my UTF-8 console; pine does it at least with UTF-8 and ISO yeah, that means most westerners will have no problem :) 2. is able to connect to IMAP server, copy sent emails to INBOX.Sent folder and let me browse IMAP folders; pine does it with folder-collections=myfolders #md/Maildir/.[] in .pinerc making it compatible with imap (dot before foldernames). 3. is able to look up contact information (including telephone number) by LDAP; IMHO no pine can do it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
recommend console email client?
Dear list For years I am not yet satisfied with ANY console email client, though I have tried quite a few. My requirement is actually very simple: a email client must be able to: 1. do the automatic charset conversion, so if I got an email in GB18030 charset, it display correct on my UTF-8 console; 2. is able to connect to IMAP server, copy sent emails to INBOX.Sent folder and let me browse IMAP folders; 3. is able to look up contact information (including telephone number) by LDAP; mutt = charset conversion is not 100% correct (e.g. cannot display double-width ideograph correctly when it's on the edge); poor ldap support and me not knowing how to keep sent message in INBOX/Sent pine = no charset conversion at all and Washington University don't seems wish to add this feature; alpine = said to support charset conversion but cannot find any link for downloading it. Maybe there are good applications that I didn't try yet? Thanks a lot in advance! Best Regards Zhang Weiwu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recommend console email client?
Jeffrey Goldberg 写道: On Mar 18, 2007, at 9:21 AM, Zhang Weiwu wrote: alpine = said to support charset conversion but cannot find any link for downloading it. The link for downloading alpine is deliberately not made public. That is because alpine is considered alpha and UW seems to want everyone who is testing it to be a member of the alpine alpha testers mailing list. You can join the list at http://mailman1.u.washington.edu/mailman/listinfo/alpine-alpha and you'll get the location of the latest alpine source, with many reminders that it is alpha. Alpine has the same look and feel of pine. -j Al, okay, I'll join that list and hope alpine is as many other opensource software that is pretty mature on its 0.8 version. But, I'd think Washington University better take an approach like release early, release often. That might help. Off topic though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
export nfs to a host with dynamic IP address
Maybe this is not possible, but can I export NFS share to a host that have dynamic IP address? My office server export an NFS share folder to several local desktop computers. I often need to access these NFS share from my home computer, which have dynamic IP address. I do have a fixed domain name, myhome.ods.org always have a A dns record pointing to my home computer. Having dynamic IP address never caused a problem for me because, as I said I have fixed domain name (updated with ez-ipupdate) but when it comes to NFS it is a problem. If I write my fixed domain name in /etc/export I wouldn't be able to mount that share. NFS server seems to check the IP address that wish to connect to it, reverse lookup its domain name, and compare it with what's written in /etc/exports. For me it doesn't work because my dynamic IP address cannot reverse resolve to my fixed domain address. So, is there a network file system that can work for my case? I never tried NFS SSL authentication things because after a google search it looks quit complex to install and configure: but if that's the only way to go I'll start to learn it. I also know samba can provide authentication so I don't have to rely on IP address to control access. However I never set up samba server before: also I would do it if that's the only way to go. Any suggestions? Thanks a lot in advance. Best Regards Zhang Weiwu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recommend console email client?
On Sun, 2007-03-18 at 22:29 +0200, Giorgos Keramidas wrote: Bearing in mind that you have relatively strict requirements (but, nevertheless, quite reasonable) for multibyte support, it may be worth considering one of the email clients bundled with or supported by GNU Emacs. Thanks very much for your detailed explanation; thanks a lot for your time writing this. Given that my requirement is both reasonable and high level, I believe that shows Asian people generally participated this area of development relatively lesser than western people. Again purely free software looks a little bit better than their non-free alternative (mutt perform better on Chinese text than pine, though still has fault). I'll try your suggestions later. Thanks a lot! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[SOLVED] Re: laptop screen always shutdown if no keyboard interaction for several minutes
在 2007-01-23二的 16:47 +0800,Zhang Weiwu写道: Hello. I tried various ways to stop the laptop screen from being shutting down, as I use this screen to watch debug message of an application I am working on, I need monitor always on, no screensaver, no blank, no dpms etc. I cannot do it. I have tried: 1. set blanktime to NO in /etc/rc.conf 2. set saver to NO in /etc/rc.conf 3. start X server and run a terminal in it, run xset -dpms 4. check laptop BIOS setting (there is no setting for automatic blank time I have not tried: I. remove 'apm' from kernel (I didn't compile ACPI into kernel because this is an old notebook I am not sure if ACPI works, but I have compiled apm in kernel, which is not shown in dmesg and doesn't seem to work, e.g. 'shutdown -p' do not turn off the power) II. install Windows on the same computer to see if Windows can keep the monitor on. III. boot the system to FreeDOS and see if monitor keep turned up (to decide if LCD is turned off by hardware or software) I have solved my problem. I cannot / didn't make APM work on my FreeBSD so basicaly turning of LCD/DFP is done by BIOS on its own. So my problem is actually not related to OS (FreeBSD). The solution: 1) get an IBM BIOS upgrade diskette (do a search on IBM website can find this diskette very easily; 2) use this diskette upgrade BISO from my current version (some version released in 1998) to the latest one (released in 1999). The new bios default setting is chagned a lot, including a change that by default BIOS lcd turn-off timer is not activated. If someone got the same problem as I got and don't wish to upgrade BIOS (as stated in an very early post I found by googling around, the latest BISO breaks apm feature on FreeBSD, not confirmed and don't know if this is a problem already solved) you can still get a Configuration utility for DOS - ThinkPad General (UTTPFDOS.EXE) from IBM (now Lenovo) website. Use it to configure BIOS to turn of timer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
laptop screen always shutdown if no keyboard interaction for several minutes
Hello. I tried various ways to stop the laptop screen from being shutting down, as I use this screen to watch debug message of an application I am working on, I need monitor always on, no screensaver, no blank, no dpms etc. I cannot do it. I have tried: 1. set blanktime to NO in /etc/rc.conf 2. set saver to NO in /etc/rc.conf 3. start X server and run a terminal in it, run xset -dpms 4. check laptop BIOS setting (there is no setting for automatic blank time I have not tried: I. remove 'apm' from kernel (I didn't compile ACPI into kernel because this is an old notebook I am not sure if ACPI works, but I have compiled apm in kernel, which is not shown in dmesg and doesn't seem to work, e.g. 'shutdown -p' do not turn off the power) II. install Windows on the same computer to see if Windows can keep the monitor on. III. boot the system to FreeDOS and see if monitor keep turned up (to decide if LCD is turned off by hardware or software) Any suggestions? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how do I tell if my sio0 port is broken?
Hello List. I guess my sio0 port is broken on my Thinkpad, OS is FreeBSD-6.1. Reason: 1) I have tested a null-modem serial cable is working by using it on a dumb-terminal and a headless server. With the same cable and same headless server, but replace dumb-terminal with my thinkpad, run $ tip com1 connected Then, whatever key I press, nothing happens. Usually I should see login prompt after I pressed Enter key. Test was done with FreeBSD Generic kernel. 2) I have plugged a modem (with ordinary serial cable, not the null-modem one) on it and run minicom. If I type 'at' I should get 'OK' as prompt, but I didn't. The same modem and same cable work for another Linux box. 3) I go to BIOS and do a serial port test, test result is OK, but I think bios have no knowledge if a port is broken when it's not connected to anything at all. So, I think next morning I should go and check if there are PCMCIA card that can provide an extra COM port, but before that I think I should write this letter to the list to see what you guys would do in this case: do you also think this looks like COM1 port is broken? Thank you very much for advices. Zhang Weiwu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
a console issue tracking tool?
Hello. For one of the small project I am working on, a console-based or X-based issue tracker is preferred over web-based solutions (like Trac or Bugzilla). Basically it only need to be able to work with issue priority, category, dates and status. So far I know a lot of webbased issue tracker, but never heard/knew anything that works on console or X. I guess maybe any console/X application that work as a project management tool can be used for this purpose too. After having found nothing useful by searching for issue tracker tool on google, I am begining to try searching for project management tool but the results are too much to pick from, many Linux desktop project management tool are not suitable for issue tracking Can someone provide some suggestions on avaialbe products to choose from? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mount_smbfs: charset convertion (-E) doesn't work
Hello. I tried a lot of different methods but I cannot mount a Windows share which is in GB18030 charset to my FreeBSD host in UTF-8 charset. I always gets junk text. this process is better illustrated with this screenshot (I don't copy and paste the console text because that way the junk character in it might confuse email clinets). gopher://sdf.lonestar.org/I/users/weiwu/mount_chinese_smbshare.png In the screenshot, I do have mounted the share with -E parameter which should convert GB18030 folder names to UTF-8 but actually no convertion is done (see the ls | iconv which shows what it should be looking like if the convertion is done) Actually I have never succesfully done charset convertion with mount_smbfs, what did I do wrong? -E parameter which should convert GB18030 folder names to UTF-8 but actually no convertion is done (see the ls | iconv which shows what it should be looking like if the convertion is done) Actually I have never succesfully done charset convertion with mount_smbfs, what did I do wrong? -- [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where to use the xdm host chooser?
Rob wrote: Zhang Weiwu wrote: Hello. Now I have my /usr/X11R6/lib/X11/xdm/Xaccess contain (only) this: * CHOOSER BROADCAST according to xdm(1) this will enable XDMCP host chooser upon user login. Now I reboot, xdm login box pops up, everything like it was before. I think it means any host can connect and asks in a broadcast. If, on your network, a host does X -broadcast your machine will/may appear in the that machine's chooser list. I don't really get you, I'm a xdm newbie;) I am not sure of the inner machenism but in my local network (192.168.0.0/24) everyone in the office use gdm and turned on XDMCP, so you pick up a box with gdm login screen, select 'run host chooser' from 'system' menu, you will see all the computers in the office listed there and I can pick up one to login. I believe this means they are all broadcasting. I don't know if it also allows an indirect request: X -indirect your X host Oh, and take also a note of this in xdm-config file: ! SECURITY: do not listen for XDMCP or Chooser requests ! Comment out this line if you want to manage X terminals with xdm DisplayManager.requestPort: 0 What does this mean? I am running a slow box I don't need myself to be listed in the host chooser of other boxes, but I need to be able to login to other boxes. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
where to use the xdm host chooser?
Hello. Now I have my /usr/X11R6/lib/X11/xdm/Xaccess contain (only) this: * CHOOSER BROADCAST according to xdm(1) this will enable XDMCP host chooser upon user login. Now I reboot, xdm login box pops up, everything like it was before. I thought there will be a bottom to click to launch the chooser (like gdm - system - Run XDMCP host chooser), or there will be a list of clickable hosts to send query to. Any hints? Thank you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
the most light weight X web browser?
Hello. My friend is running a tea house, she want to put her ancient Pentium 100 notebook (24MB memory) running FreeBSD 4.9, on the bar so customers can use it check mails and browse the web. (and I want to help her.) She want it to just function as a browser machine, she don't even need a window manager, the X starts up just to run a browser. (However a memory saving window manager is okay, too. But such a slow notebook what browser do you suggest to use? The harddisk don't have much space after the OS is installed, and memory is pretty limited. Epiphany comes to my mind, but it depends on Mozilla and gtk. If there is an extremely light weighted browser that just use Athena (or can be compiled so) it would be better. Perhaps Epiphany is the only choice? If so can we make it even lighter? Thank you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sshd: cannot disable password authentication, users can alwayslogin with password.
Hello. I'm today following the FreeBSD security how to http://www.it.daemonnews.org/200108/security-howto.html to secury my FreeBSD server. I configured dsa ssh access, now I can use my own computer to login to the server with ssh with dsa no problem, no password authentication is necessary. Following the guide I edit /etc/ssh/sshd_config and made sure PasswordAuthentication no But I tried restart sshd and even reboot the server, I can always login with password on any other computer. Please drop me a hint. Here is my server's configuration: uname -a FreeBSD dino.realss 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Feb 29 04:29:22 CST 2004 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/DINO i386 cat /etc/ssh/sshd_config # $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $ # $FreeBSD: src/crypto/openssh/sshd_config,v 1.33 2003/09/24 19:20:23 des Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. # Note that some of FreeBSD's defaults differ from OpenBSD's, and # FreeBSD has a few additional options. #VersionAddendum FreeBSD-20030924 Port 22 Protocol 2 #ListenAddress 0.0.0.0 #ListenAddress :: # HostKey for protocol version 1 #HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 #HostKey /etc/ssh/ssh_host_dsa_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 3600 #ServerKeyBits 768 # Logging #obsoletes QuietMode and FascistLogging #SyslogFacility AUTH #LogLevel INFO # Authentication: #LoginGraceTime 120 PermitRootLogin no StrictModes yes RSAAuthentication no PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys # rhosts authentication should not be used RhostsAuthentication no # Don't read the user's ~/.rhosts and ~/.shosts files #IgnoreRhosts yes # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no # similar for protocol version 2 #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # RhostsRSAAuthentication and HostbasedAuthentication #IgnoreUserKnownHosts no # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no PermitEmptyPasswords no # Change to no to disable PAM authentication #ChallengeResponseAuthentication yes # Kerberos options KerberosAuthentication no KerberosOrLocalPasswd no #KerberosTicketCleanup yes #AFSTokenPassing no # Kerberos TGT Passing only works with the AFS kaserver #KerberosTgtPassing no X11Forwarding yes #X11DisplayOffset 10 #X11UseLocalhost yes #PrintMotd yes #PrintLastLog yes #KeepAlive yes #UseLogin no #UsePrivilegeSeparation yes #PermitUserEnvironment no #Compression yes #MaxStartups 10 # no default banner path #Banner /some/path #VerifyReverseMapping no # override default of no subsystems Subsystem sftp/usr/libexec/sftp-server ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sshd: cannot disable password authentication, users canalwayslogin with password.
Okay, I figured out the problem myself. I should set ChallengeResponseAuthentication no to disable password authentication. Zhang Weiwu wrote: Hello. I'm today following the FreeBSD security how to http://www.it.daemonnews.org/200108/security-howto.html to secury my FreeBSD server. I configured dsa ssh access, now I can use my own computer to login to the server with ssh with dsa no problem, no password authentication is necessary. Following the guide I edit /etc/ssh/sshd_config and made sure PasswordAuthentication no But I tried restart sshd and even reboot the server, I can always login with password on any other computer. Please drop me a hint. Here is my server's configuration: uname -a FreeBSD dino.realss 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Feb 29 04:29:22 CST 2004 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/DINO i386 cat /etc/ssh/sshd_config # $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $ # $FreeBSD: src/crypto/openssh/sshd_config,v 1.33 2003/09/24 19:20:23 des Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. # Note that some of FreeBSD's defaults differ from OpenBSD's, and # FreeBSD has a few additional options. #VersionAddendum FreeBSD-20030924 Port 22 Protocol 2 #ListenAddress 0.0.0.0 #ListenAddress :: # HostKey for protocol version 1 #HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 #HostKey /etc/ssh/ssh_host_dsa_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 3600 #ServerKeyBits 768 # Logging #obsoletes QuietMode and FascistLogging #SyslogFacility AUTH #LogLevel INFO # Authentication: #LoginGraceTime 120 PermitRootLogin no StrictModes yes RSAAuthentication no PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys # rhosts authentication should not be used RhostsAuthentication no # Don't read the user's ~/.rhosts and ~/.shosts files #IgnoreRhosts yes # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no # similar for protocol version 2 #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # RhostsRSAAuthentication and HostbasedAuthentication #IgnoreUserKnownHosts no # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no PermitEmptyPasswords no # Change to no to disable PAM authentication #ChallengeResponseAuthentication yes # Kerberos options KerberosAuthentication no KerberosOrLocalPasswd no #KerberosTicketCleanup yes #AFSTokenPassing no # Kerberos TGT Passing only works with the AFS kaserver #KerberosTgtPassing no X11Forwarding yes #X11DisplayOffset 10 #X11UseLocalhost yes #PrintMotd yes #PrintLastLog yes #KeepAlive yes #UseLogin no #UsePrivilegeSeparation yes #PermitUserEnvironment no #Compression yes #MaxStartups 10 # no default banner path #Banner /some/path #VerifyReverseMapping no # override default of no subsystems Subsystem sftp/usr/libexec/sftp-server ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: new administrator: please help me choose news server
Matthew Seaman wrote: Another consideration you will want to bear in mind: do you want to give all of your e-mail users full blown accounts on your mail server, or do you want to provide and 'e-mail only' service? If the latter, you will need to look at the more 'professional' solutions, which are designed to work generally on a larger scale and which tend to be a bit more complicated to set up. The Cyrus stuff is the extreme expression of that. Oh I'm a new administrator, I'm frightened:) It seems if I want it to extend to max ability in future I should use Cyrus. I'll search more on this topic. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
new administrator: please help me choose news server
Hello. I never did this before, but now I'll setup a mail server in the coming weeks. Here is the requirement: 1) the mail server should run both smtp and imap, sending and accepting emails 2) mail server should be able to ask for confirm before it deliever executables. Or it should be able to reject all emails with Windows executable file attached 3) should be albe to extend to handle multi-domains in the future I don't really understand what part of email server is handled by what program. I thought I need a sendmail plus a imap server (cyrus comes out in my mind, but I don't know if it should be my choice), is that all? I'm the kind of lazy guy not to RTFM, but I need direction guide, suggestion from you so that I know what the f**k manual to read:) Thank you! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: new administrator: please help me choose news server
Zhang Weiwu wrote: I'm the kind of lazy guy not to RTFM, but I need direction guide, suggestion from you so that I know what the f**k manual to read:) Oh what a mistake. I am not English speaker. I meant to say I'm not too lazy to RTFM but I still need directional suggestions on what manuals to read. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sf.net: host not found
Shantanoo wrote: +++ Zhang Weiwu [freebsd] [30-03-04 16:29 +0800]: | | Hello. It has been three days since I cannot access sourceforge.net, using | many different Chinese dns server: | | [EMAIL PROTECTED]:~host sf.net | Host not found, try again. | [EMAIL PROTECTED]:~host sourceforge.net | Host not found, try again. | | It behave like the last year's Google being blocked in China. But I don't | know sourceforge has anything to do with political stuff. | | Can anyone tell me sourceforge's ip address? Or better tell me a | world-accessible dns server, that I can help myself with such things. | | If it is truly blocked, then it is no use to have IP address. But I'll have | a try. | | Thank you. As you are using FreeBSD, why not have your own caching name server? Method: 1. set your hostname hostname=test.tld in your /etc/rc.conf 2. cd /etc/namedb 3. sh make-localhost 4. start named. add following line in /etc/rc.conf named_enable=YES to test dig -x 127.0.0.1 That does not solve my problem. Perhaps I'm not clear. The situation is my ISP's dns server cannot return IP address for *.sourceforge.net, *.slashdot.org. Other local ISP's dns server cannot return IP address for *.sourceforge.net *.slashdot.org. [EMAIL PROTECTED]:~dig @210.34.0.14 sourceforge.net ; DiG 8.3 @210.34.0.14 sourceforge.net ; (1 server found) ;; res options: init recurs defnam dnsrch ;; res_nsend: Operation timed out Exit 9 I talked about it on local forums and happen to find most Chinese dns servers behave the same. If you heard of the last year's Chinese political event of blocking google access from non-experts, you know what I'm talking about. This time it seems sourceforge and slashdot are blocked. The best solution to me perhaps is to find a free-accessible dns server. I happen to find one on local forums: 69.67.108.10 is working for me. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sf.net: host not found
Hello. It has been three days since I cannot access sourceforge.net, using many different Chinese dns server: [EMAIL PROTECTED]:~host sf.net Host not found, try again. [EMAIL PROTECTED]:~host sourceforge.net Host not found, try again. It behave like the last year's Google being blocked in China. But I don't know sourceforge has anything to do with political stuff. Can anyone tell me sourceforge's ip address? Or better tell me a world-accessible dns server, that I can help myself with such things. If it is truly blocked, then it is no use to have IP address. But I'll have a try. Thank you. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
about Ultra-sparc and alpha: what makes the difference?
Hello. The question sounds really silly, but google with compare sparc i386 alpha / benchmark sparc i386 alpha doesn't give meaningful result in several pages. Please suggest me a better keyword compilation:) I don't know about anything other than i386, but the sparc servers and alpha servers are much more expensive than i386 servers on the same clock rate. People keep telling me they are expensive because they are more advanced, but I prefer to read some comperhasive data, benchmarks and such like. Thank you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
easy way to do batch mail?
Hello. I am running a local small non-profit club, every two-week I need to send news email to about 30+ club members. The number is still growing. I'm not a spammer but my ISP's smtp server refuse to send emails with 10+ recipients. So I split recipients and send 4 mails, silly way it is. In my LAN the dns server cannot return mx record correctly (yes I tried and complained, it's another story though) so I prefer to rely on ISP's smtp server. There is also another reason: big email providers in China like sina.com do a mx reverse look up on incoming mails, so if I send it use sendmail from my compuer (no public domain name) they will be rejected. Is it possible to have a plugin or set some settings to let my mozilla split recipients list for me? Or is there an alternative workaround? I read a bit about bsmtp port, it sounds too complicated for occasional use Thank you. And truely I'm not a spammer, I hate spamming and I hate to google around for spammer's way to do it. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
fast way to rename files?
Say, I have photo_1.jpg, photo_2.jpg ... photo_500.jpg in a directory. Is there a fast way to rename these files to 001.jpg, 002.jpg ... 500.jpg? Thank you. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
tell sendmail to use a different dns server?
Hello. I'm using the dns service on a router box. This router does provide dns service, on which every computer in the LAN has a local domain name (computername.our.lan) Now the built in dns server's function is limited; it does not relay MX type of record. Thus sending mail using sendmail always get hostname lookup failure. 1. If I change my name server address in resolv.conf to use my ISP's dns server, I cannot access lan computers using local hostnames. 2. If I use our dns server, I cannot send mails through sendmail. So what should I do? Can I ask sendmail to use ISP's dns server, while the rest programs use local dns server? _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tell sendmail to use a different dns server?
Zhang Weiwu wrote: Hello. I'm using the dns service on a router box. This router does provide dns service, on which every computer in the LAN has a local domain name (computername.our.lan) Now the built in dns server's function is limited; it does not relay MX type of record. Thus sending mail using sendmail always get hostname lookup failure. 1. If I change my name server address in resolv.conf to use my ISP's dns server, I cannot access lan computers using local hostnames. 2. If I use our dns server, I cannot send mails through sendmail. So what should I do? Can I ask sendmail to use ISP's dns server, while the rest programs use local dns server? I just realized I can do this in resolve.conf: # our LAN's dns server nameserver 192.168.0.1 # ISP nameserver 202.101.103.54 Hope this is the best method. _ MSN Hotmail http://www.hotmail.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tell sendmail to use a different dns server?
Zhang Weiwu wrote: Zhang Weiwu wrote: Hello. I'm using the dns service on a router box. This router does provide dns service, on which every computer in the LAN has a local domain name (computername.our.lan) Now the built in dns server's function is limited; it does not relay MX type of record. Thus sending mail using sendmail always get hostname lookup failure. 1. If I change my name server address in resolv.conf to use my ISP's dns server, I cannot access lan computers using local hostnames. 2. If I use our dns server, I cannot send mails through sendmail. So what should I do? Can I ask sendmail to use ISP's dns server, while the rest programs use local dns server? I just realized I can do this in resolve.conf: # our LAN's dns server nameserver 192.168.0.1 # ISP nameserver 202.101.103.54 Hope this is the best method. But this works on my notebook but not on my desktop computer, both 5.2 RELEASE dino is my desktop computer: dino# cat /etc/resolv.conf search realss nameserver 192.168.0.138 nameserver 202.101.103.54 dino# host -t mx hotmail.com Host not found, try again. thinkpad is my notebook: thinkpad# cat /etc/resolv.conf search realss nameserver 192.168.0.138 nameserver 202.101.103.54 thinkpad# host -t mx hotmail.com hotmail.com mail is handled (pri=5) by mx4.hotmail.com hotmail.com mail is handled (pri=5) by mx1.hotmail.com hotmail.com mail is handled (pri=5) by mx2.hotmail.com hotmail.com mail is handled (pri=5) by mx3.hotmail.com _ MSN Hotmail http://www.hotmail.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
configure CUPS without web interface problem
Hello. I just installed cups on my old P160MMX desktop computer, the printer is Canon S100 on usb0. Now I need to configure the box properly to print something. I found this printer's PPD file on LinuxPrinting.org. I followed the instructions on both LinuxPrintng.org and CUPS software administrator, so far everything went smooth. Only that both doc suggest me go to http://localhost:631/admin, but I got connection refused using lynx(1). (I don't know if I need to run apache or configure inetd for this.) I managed to go to section 4-3-6 of the manual through command-line, all things went smooth: http://www.cups.org/sam.html#4_3_6 According to the manual, it seems so far the printer is properly configured, ready to print. Here is my status information: dino# lpstat -t scheduler is running system default destination: S100 device for S100: usb:/dev/ulpt0 S100 accepting requests since Jan 01 00:00 printer S100 is idle. enabled since Jan 01 00:00 dino# /usr/local/etc/rc.d/cups.sh status cups: scheduler is running. dino# uname -a FreeBSD dino.realss 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Feb 29 04:29:22 CST 2004 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/DINO i386 So i send a text file to the print: dino# lpr -PS100 .cshrc lpr: Unable to connect to /var/run/printer: No such file or directory lpr: Check to see if the master 'lpd' process is running. jobs queued, but cannot start daemon. It seems I still need to run smothing called lpd? Why? The manual didn't ask me to do so. Please help. Thank you. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: configure CUPS without web interface problem
Zhang Weiwu wrote: Only that both doc suggest me go to http://localhost:631/admin, but I got connection refused using lynx(1). (I don't know if I need to run apache or configure inetd for this.) Sorry I wasn't clear. The actual error message from lynx is: Looking up localhost:631 localhost:631 Making HTTP connection to localhost:631 socket failed: family 28 addr ::1 port 631. Sending HTTP request. Alert!: Unexpected network write error; connection aborted. Can't Access `http://localhost:631/admin' Alert!: Unable to access document. lynx: Can't access startfile I took a glance on /usr/local/etc/cups/cupsd.conf it is set to listen on port 631. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: configure CUPS without web interface problem
Zhang Weiwu wrote: So i send a text file to the print: dino# lpr -PS100 .cshrc lpr: Unable to connect to /var/run/printer: No such file or directory lpr: Check to see if the master 'lpd' process is running. jobs queued, but cannot start daemon. It seems I still need to run smothing called lpd? Why? The manual didn't ask me to do so. I luckily found this article from freebsdbsddiary http://www.freebsddiary.org/cups.php Nice article. I realized I should call /usr/local/bin/lpr rather than /usr/bin/lpr. Now the printer is working. And it seems I cannot go to 631 port because of permission denied. I think I can fix it soon. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
what's the difference of -R and -r?
From cp(1): Historic versions of the cp utility had a -r option. This implementation supports that option, however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links or fifo's. So I keep using -R rather than -r in cp. But I found other commands like scp(1), ncftp(1), does not support -R; they use -r. Does that mean other tools like scp, ncftp, do not copy special files, follow symbolic links rather than re-create them, do not deal with fifo's correctly? I think it is reasonable, because creating symbolic links cross different hosts is useless, so it is with special files. About fifo files, I don;t know what that is:) _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
burncd not able to create multisession disco?
Hello. I'm learning to burn CD-R in FreeBSD 5.2 on my Thinkpad T40 with an atapi combo-disco drive. I read some docs on cdrecord(1), all these emulate-SCSI things are spining my head! To me burncd(8) is much more easier. The manual says if I don't do fixate, I don't get TOC; if I do fixate, the disco is finalized. What I wish to do is to burn a multisession data disco, the data session should be closed but the disco should not be finalized so I can add other files later. So it seems burncd(8) cannot do it? I just wanna make it sure rather than diging into all the docs only to find it is impossible. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
time sync tool?
Hello. Is there a time sync tool for FreeBSD? My local clock seems alway several minutes late, can I run a daemon and sync with a time server once several day? Thank you. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
downmix wave file from stereo to mono
Today I got a simple job to convert a 600MB stereo .wav file to mono .wav file. Very simple task. First I read the lame(1) manual carefully, and decide it cannot help. I tried to install several sound editor, glame tried to pull down the gtk1 library and depended packages, so stopped it. audacity takes too long time to compile (still doing now). I tried sweep, and it hung my machine; it seems trying to load the whole wave file into memory. I find xwava compiles correctly, runs okay, but it can do downmix only when the file fits memory. I also tried several other ports I don't remember now. Now I worked the whole afternoon without any progress. I think there must be some handy tools can do this. On audio port directory I tried make search key=mono make search key=downmix Both returned nothing. So what do you suggest me to use? If this happens to be your situation, dudes, how do you find a handy tool quickly? I don't want to waste time on such jobs in future again. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: downmix wave file from stereo to mono
Zhang Weiwu wrote: Today I got a simple job to convert a 600MB stereo .wav file to mono .wav file. Very simple task. Oh god. Now I installed audacity. What the hell, I don't find a menuitem/settings dialogue box to let me downmix it. Should I finish learning a whole sound editor before I can do simple work like downmixing a wave file? OMG someone help me out. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[OT?] write C program with UTF16LE
Hello. Although I write some php/perl script, I don't write C program. Now I have a very large text file in UTF16LE format, the rule is strings are seperated by numbers. Say 0300 6100 6200 6300 0400 6700 5400 9800 7400 0300 Leading 0300 means the following 3 characters (6 bytes) is a string, and the next 0400 means the following 4 characters makes another string. I need to read the file and replace every number-style string seperator with a linefeed. I decide to use C, it is a good chance to start some practice on C. The old getc() I learnt from school is not my cup of tea, because I always need to do two getcs at once, and for the seperators I need to do getc()+getc()*256. What is the best practics to deal with such number/UTF16 mixed text? I googled around and find some tutorials, most i18n toturials think I'm already a C expert:( I find the glibc manual looks good learning resource, but I am the kind of newbie don't know if I am using glibc at all. When I just write #include stdio.h Am i using the stdio.h from glibc? I think simply point me a tutorial that fits me will do me more help. Thank you. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: priority-- curious about cpu resouce share
Sergey 'DoubleF' Zaharchenko wrote: On Wed, 03 Mar 2004 00:34:37 +0800 Zhang Weiwu [EMAIL PROTECTED] probably wrote: Today I did't experiment on {rt|id}prio(1), just to be interesting. I am trying to understand FreeBSD priority mechenism. IMHO realtime/idle priority only starvs processes when there is no cpu resource at all. To test, I run mpg321 on realtime priority 3, run ppp on realtime priority 4, a little lower than mpg321, and scp over the ppp tunnel on normal priority. Top(1) shows an average about: 55.2% user, 0.0% nice, 21.5% system, 12.2% interrupt, 11.1% idle * mpg321 takes average about 70%; * ppp is seriously slowed down, it takes about 1.5% (normally 17% on full speed); * sshd almost starves; it takes 0.00% (normally 2%) and only transfer several bytes once several minutes; the otherside scp prompts stalled. sshd doesn't starve CPU, I guess; as you reach it through ppp, and ppp gets slow, sshd does, too. I'm the kind of newbie think 11.1% idle cpu time to be free cpu resource, because I don't have idle process. I wish to know why, as there are still 11.1% free cpu resource, ppp and sshd doesn't get this share? The most frequent cause is that they don't need the CPU so much as something else, like disk I/O, etc. Could you please post the whole output of top (and a snapshot of systat -vmstat, for example)? Here is my systat -vmstat = 2 usersLoad 1.44 0.91 0.42 Mar 5 20:00 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act9004214462560 42282232 count All 221043040 2307048 7032 pages4 Interrupts Proc:r p d s wCsw Trp Sys Int Sof Flt 6 cow 352 total 1 33 624 130 96 465 99 37 11312 wire100 0: clk 6392 act 1: atkb 6.0%Sys 6.3%Intr 33.9%User 0.0%Nice 53.9%Idl 3356 inact86 5: sbc0 ||||||||| 1452 cache 6: fdc0 ===+++ 780 free 31 7: ppc0 daefr 128 8: rtc amei Name-cacheDir-cache 29 prcfr 5 11: rl0 Calls hits% hits% 1 react 13: npx 82 72 88 pdwak 2 14: ata 13 zfodpdpgs Disks ad0 9 ofodintrn KB/t 14.1567 %slo-z 5072 buf tps 251 tfree14 dirtybuf = And my top: = last pid: 3451; load averages: 1.01, 0.72, 0.33 up 0+18:29:36 19:59:22 35 processes: 1 running, 34 sleeping CPU states: 39.3% user, 0.0% nice, 9.5% system, 20.6% interrupt, 30.6% idle Mem: 6512K Active, 3596K Inact, 11M Wired, 1616K Cache, 5072K Buf, 356K Free Swap: 128M Total, 13M Used, 115M Free, 10% Inuse PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 3445 music -8 -104 5556K 884K pcmwr1:43 36.08% 36.08% mpg123 2075 root980 3856K 1292K select 7:43 6.79% 6.79% ppp 3448 zhangweiwu 960 6436K 2072K select 0:04 1.61% 1.61% sshd 3451 zhangweiwu 960 2212K 1220K RUN 0:02 0.93% 0.93% top 211 root960 1812K 228K select 0:23 0.00% 0.00% dhclient 420 root960 3488K 328K select 0:09 0.00% 0.00% sshd 271 root960 1312K 228K select 0:03 0.00% 0.00% syslogd 444 root 80 1336K 188K nanslp 0:02 0.00% 0.00% cron 3426 music5 -91 9936K 2704K ttyin0:01 0.00% 0.00% cmp3 3450 zhangweiwu 40 2576K 1124K sbwait 0:01 0.00% 0.00% scp 3446 root 40 6220K 1688K sbwait 0:01 0.00% 0.00% sshd 373 root960 1236K84K select 0:01 0.00% 0.00% usbd 3415 root 40 6244K 0K sbwait 0:00 0.00% 0.00% sshd 3420 root 40 6244K 768K sbwait 0:00 0.00% 0.00% sshd = Before this vmstat and top snapshoot, I tried ppp+ssh send a file, speed is average 40KB/s, cpu is mostly free. And I start the mpg123 at rtprio 20, ssh begin to speed down. 10 seconds since the music begin, ssh display higovdemo.avi 10% 2064KB 4.8KB/s
Re: priority-- curious about cpu resouce share
Sergey 'DoubleF' Zaharchenko wrote: * sshd almost starves; it takes 0.00% (normally 2%) and only transfer several bytes once several minutes; the otherside scp prompts stalled. sshd doesn't starve CPU, I guess; as you reach it through ppp, and ppp gets slow, sshd does, too. Sounds reasonable:) Things can hardly be perfect. Now I begin to use mpg123, I used your method of rtprio up and su back, very useful to me. But if mpg123 has higher priority than ppp, sometimes mpg123 decides to move to another song, it reloads buffer, starveing ppp and timeouting bluetooth device... If mpg123 has equal/lower priority with ppp, they struggle for CPU, and that *sounds* bad. Now I adjusted buffer, it works so so. I read the handbook it says no way to limit CPU percentage. It's my toy, a old P166M box, I let other people in the office ssh to the box with cmp3 console DJ (backended mpg123) to play music, because it has good speakers. I use ppp over bluetooth to connect to the box when I'm enjoying sun shine outdoor. The best way seems to buy a new one:) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
priority-- curious about cpu resouce share
Today I did't experiment on {rt|id}prio(1), just to be interesting. I am trying to understand FreeBSD priority mechenism. IMHO realtime/idle priority only starvs processes when there is no cpu resource at all. To test, I run mpg321 on realtime priority 3, run ppp on realtime priority 4, a little lower than mpg321, and scp over the ppp tunnel on normal priority. Top(1) shows an average about: 55.2% user, 0.0% nice, 21.5% system, 12.2% interrupt, 11.1% idle * mpg321 takes average about 70%; * ppp is seriously slowed down, it takes about 1.5% (normally 17% on full speed); * sshd almost starves; it takes 0.00% (normally 2%) and only transfer several bytes once several minutes; the otherside scp prompts stalled. I'm the kind of newbie think 11.1% idle cpu time to be free cpu resource, because I don't have idle process. I wish to know why, as there are still 11.1% free cpu resource, ppp and sshd doesn't get this share? Just to be curious. Thank you. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scheduling priority not working?
Sergey 'DoubleF' Zaharchenko wrote: There's more than nice to change priority; for example, check out rtprio(1) and idprio(1). Just FYI. GREAT TOOL rtprio(1) is. Now I can run 'rtprio 5 mpg321 *.mp3' it produce very smooth sound. Perhaps rtprio is averagely used even more frequently than nice(1)? nice(1) is just what I learned from school; school books are often not very practical these days. _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
a good solution share the speaker?
Several people are using notebooks in the office, the big desktop computer stores music. A good speaker is pluged into the desktop computer (FreeBSD). What do you think is the best solution to share the speaker? These are what I can think of: * Marc Lehmann wrote a perl module for playing music with mpg123. Write a cgi script and let people select playlist/control play on the webpage. * Find a existing good mpg123 frontend, modify it, let it control the mpg123 on another computer through ssh or even let inetd bring up the mpg123 player and let the fontend talk to a socket. What do you think is the best approach? Thank you. _ MSN Explorer: http://explorer.msn.com/lccn/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
scheduling priority not working?
Hello. I thought scheduling priority is the kind of absolute priority, that is only when the higher priority process don't ask for resource, can the lower priority process gets resource. If the higher priority process sucks, the lower priority process starvs. Now I have a old Pentium-mmx 166 box, running mpg321 fine. I wish to listen to music when recompile the kernel, so turn on the music, do: #nice make; I thought nice make use the resouce mpg321 left to it, but actually the music process is seriously disturbed, it begins to sound like terrible. So I don't realy understand the scheduling priority mechnism in FreeBSD? _ MSN Messenger: http://messenger.msn.com/cn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]