MBA new vision
MBA (Master of business administration ) one of the most required degree around the world. We offer a lot of books helping you to gain this degree. We attached one of our .doc word formatted books on "Marketing basics" to download. Our web site http://www.tazeunv.edu.cr/mba/info.htm Contacts: Human resource Ajy klaf ajyko...@tazeunv.com The sender has added your name to be informed with our services. The original file name is Marketing.rar and compressed by WinRAR no virus found. Use WinRAR to decompress the file. ___ 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: [6.3] Assigning "shutdown" to eg. Syst?
On Tue, 23 Dec 2008, Robert Huff wrote: > Ian Smith writes: > > > Or let your dad login with his own account and password. Just > > add him to the operator group so that he can run /sbin/shutdown. > > If that's the only priveledged command he needs ... is there a > reason "sudo" isn't a better answer? Well, it's certainly another answer :) The only other thing being in group operator lets you run, apart from what you've added into /etc/devfs.{conf,rules} is /sbin/mksnap_ffs .. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
MBA new vision
MBA (Master of business administration ) one of the most required degree around the world. We offer a lot of books helping you to gain this degree. We attached one of our .doc word formatted books on "Marketing basics" to download. Our web site http://www.tazeunv.edu.cr/mba/info.htm Contacts: Human resource Ajy klaf ajyko...@tazeunv.com The sender has added your name to be informed with our services. The original file name is Marketing.rar and compressed by WinRAR no virus found. Use WinRAR to decompress the file. ___ 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: [6.3] Assigning "shutdown" to eg. Syst?
Ian Smith writes: > Or let your dad login with his own account and password. Just > add him to the operator group so that he can run /sbin/shutdown. If that's the only priveledged command he needs ... is there a reason "sudo" isn't a better answer? Robert Huff ___ 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: [6.3] Assigning "shutdown" to eg. Syst?
On Mon, 22 Dec 2008 20:53:39 +0100 Gilles wrote: > On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon > wrote: > >I have a similar setting, but it requires X, WindowMaker and a > >Sun Type 6 USB keyboard. :-) :) > Thanks for the input, but this server is text-only. I'll try to find > how FreeBSD is configured so that ALT-CTRL-DEL maps to "reboot", and > add my own keyboard key to shut it down. Or let your dad login with his own account and password. Just add him to the operator group so that he can run /sbin/shutdown. If he's shy, write him a little script that does 'shutdown -p now [comment ..]' Shutdown is cleaner than reboot, runs 'stop' rc.d scripts for all active daemons, and leaves a nice log entry in messages, including any comment. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: 7.0-RELEASE-p6:/boot/kernel/linker.hints not updating?
On Mon, Dec 22, 2008 at 2:07 PM, Tom Worster wrote: > after running freebsd-update install and rebooting, i ran freebsd-update > fetch to check the status and it said: > > The following files will be updated as part of updating to 7.0-RELEASE-p6: > /boot/kernel/linker.hints > > running freebsd-update install and rebooting again did not clear the > message. > > should that be any concern? > > > ___ > 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" No think it's a small issue since your not the first that actually ran into this problem. ___ 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"
Shared object "libintl.so.6" not found
Hi Karol ! Try to copy the /usr/local/lib/libintl.so.6 to /lib That should work ! Regards, -- Gustavo Oliveira *** ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
Nerius Landys wrote: Thank you all for your suggestions. This will be a project for me over the holidays. I decided to go the standalone wireless router approach. Good man! I will need to figure out how to configure my standalone wireless router to "pass everything through" to the internal LAN that I already have. It's called "Bridge mode" on most APs-- it does exactly what you describe. Just make sure things like "DHCP server" are turned off or you'll see some... odd breakages. Also I don't know too much about security, like how to prevent eavesdroppers from connecting to my internal network. One of you mentioned access lists, and I assume that means I tell the wireless router which MAC addresses it accepts, and nothing else. Ugh. MAC addresses are trivial to spoof-- I usually don't bother with using them for security, although I do use 'em to ensure that particular machines always inherit particular addresses. Is there any other way to provide security? Like a password-protected network? What are the buzzwords for these security schemes? Which security scheme do you recommend for preventing random people within proximity from connecting to my internal netowrk? Absolutely. Google for WPA or WPA2; WEP has been broken and is trivial to bruteforce, so I'd not bother with that. Once you get the unit in, feel free to email me off list for configuration questions; it sounds like a fun project! -- CJC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do I obtain a copy of the FreeBSD operating system
On Mon, Dec 22, 2008 at 06:59:50PM -0500, theresascottie wrote: > How can I download or obtain a copy of FreeBSD? cheapbytes.com or bsdmall.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: Wireless router?
Thank you all for your suggestions. This will be a project for me over the holidays. I decided to go the standalone wireless router approach. I will need to figure out how to configure my standalone wireless router to "pass everything through" to the internal LAN that I already have. Also I don't know too much about security, like how to prevent eavesdroppers from connecting to my internal network. One of you mentioned access lists, and I assume that means I tell the wireless router which MAC addresses it accepts, and nothing else. Is there any other way to provide security? Like a password-protected network? What are the buzzwords for these security schemes? Which security scheme do you recommend for preventing random people within proximity from connecting to my internal netowrk? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do I obtain a copy of the FreeBSD operating system
Le Mon, 22 Dec 2008 18:59:50 -0500, "theresascottie" a écrit : > How can I download or obtain a copy of FreeBSD? http://www.freebsd.org No? Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How do I obtain a copy of the FreeBSD operating system
On Mon, Dec 22, 2008 at 6:59 PM, theresascottie wrote: > How can I download or obtain a copy of FreeBSD? > You found the mailing list, but not the download link? http://www.freebsd.org/where.html -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
How do I obtain a copy of the FreeBSD operating system
How can I download or obtain a copy of FreeBSD? Theresa L. Scottie Boynton Beach FL ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
Roger Olofsson wrote: Nerius Landys skrev: I have a PC with FreeBSD set up as a router (NAT). The PC has several network cards and I'm grouping the internal-facing network cards as a bridge (promiscuous mode for the interfaces). Everything works well. Now I'd like to extend my wired network to include wireless. I really have no experience with wireless networks. I have a couple of computers that are wireless-ready (a laptop and a Playstation 3 that I won in a raffle). Is it possible to somehow add some hardware to my FreeBSD router PC to make it into a wireless router? What kind of hardware would I install? What is it called? The PC only has PCI slots, can you recommend a brand and model of "wireless server equiptment" if such a thing exists? Would a normal wireless card suffice? What model should I get? I would prefer to set up static internal IPs for my wireless network at home, would this be possible? Or is DHCP the way to go (I hesitate at the thought of configuring a DHCP server). Another way to go is to hook up a standalone wireless router appliance to my FreeBSD machine's network interface (one of the interfaces). I already have such a device, I think it's made by Linksys. But then, I would be NAT'ing both through the FreeBSD machine and through the wireless router. So it would be a double-NAT so to speak. Is there anything wrong with that approach? So in a nutshell, I have a wired FreeBSD router with multiple ethernet jacks at home, and I want to extend it to include wireless network. Any suggestions would be appreciated. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1861 - Release Date: 2008-12-22 11:23 Hello Nerius, I simply bought a standard wireless router, turned off all services in it except the access list and plugged it in the LAN. The access list filters on mac addresses and that level of security is fine where I live. The wireless router does have firewall, dhcp, port triggering and such but I disabled all of those since my FreeBSDs do all of that already. The wireless router has one port for internet and four ports as a normal switch, I don't use the internet port. I just plug in the ethernet cable in the switch part as uplink. I considered having a wifi nic as accesspoint in the FreeBSD main router, however, it was better for me to be able to place the wifi router for optimal range of the wifi. Turned out that the centre point for wifi is not the same as where the main router is Greetings /Roger This is definitely the route I'd go. I'm a BIG fan of the Buffalo wireless access points if they've re-entered the channel near you (a patent troll prevented their sale for the last 18 months, but that court case was just overturned), as they support DD-WRT. Failing that, the Linksys WRT54GL isn't a half bad unit. Custom firmware (dd-wrt, OpenWRT, Tomato) also give you a lot finer grained control over what happens on the AP. -- CJC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
On Mon, Dec 22, 2008 at 1:49 PM, Nerius Landys wrote: > So in a nutshell, I have a wired FreeBSD router with multiple ethernet > jacks at home, and I want to extend it to include wireless network. > Any suggestions would be appreciated. Thanks. If you have another PCI slot available in your router, one of these should work: http://www.provantage.com/scripts/search.dll?QUERY=pci+802.11g&Submit.x=0&Submit.y=0 HTH, Kurt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
Nerius Landys skrev: I have a PC with FreeBSD set up as a router (NAT). The PC has several network cards and I'm grouping the internal-facing network cards as a bridge (promiscuous mode for the interfaces). Everything works well. Now I'd like to extend my wired network to include wireless. I really have no experience with wireless networks. I have a couple of computers that are wireless-ready (a laptop and a Playstation 3 that I won in a raffle). Is it possible to somehow add some hardware to my FreeBSD router PC to make it into a wireless router? What kind of hardware would I install? What is it called? The PC only has PCI slots, can you recommend a brand and model of "wireless server equiptment" if such a thing exists? Would a normal wireless card suffice? What model should I get? I would prefer to set up static internal IPs for my wireless network at home, would this be possible? Or is DHCP the way to go (I hesitate at the thought of configuring a DHCP server). Another way to go is to hook up a standalone wireless router appliance to my FreeBSD machine's network interface (one of the interfaces). I already have such a device, I think it's made by Linksys. But then, I would be NAT'ing both through the FreeBSD machine and through the wireless router. So it would be a double-NAT so to speak. Is there anything wrong with that approach? So in a nutshell, I have a wired FreeBSD router with multiple ethernet jacks at home, and I want to extend it to include wireless network. Any suggestions would be appreciated. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1861 - Release Date: 2008-12-22 11:23 Hello Nerius, I simply bought a standard wireless router, turned off all services in it except the access list and plugged it in the LAN. The access list filters on mac addresses and that level of security is fine where I live. The wireless router does have firewall, dhcp, port triggering and such but I disabled all of those since my FreeBSDs do all of that already. The wireless router has one port for internet and four ports as a normal switch, I don't use the internet port. I just plug in the ethernet cable in the switch part as uplink. I considered having a wifi nic as accesspoint in the FreeBSD main router, however, it was better for me to be able to place the wifi router for optimal range of the wifi. Turned out that the centre point for wifi is not the same as where the main router is Greetings /Roger ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
On Mon, Dec 22, 2008 at 01:49:44PM -0800, Nerius Landys wrote: > I have a PC with FreeBSD set up as a router (NAT). The PC has several > network cards and I'm grouping the internal-facing network cards as a > bridge (promiscuous mode for the interfaces). Everything works well. > > Now I'd like to extend my wired network to include wireless. I really > have no experience with wireless networks. I have a couple of > computers that are wireless-ready (a laptop and a Playstation 3 that I > won in a raffle). Is it possible to somehow add some hardware to my > FreeBSD router PC to make it into a wireless router? Yes. > What kind of hardware would I install? What is it called? Wireless card. > The PC only has PCI slots, can you recommend a brand and model of > "wireless server equiptment" if such a thing exists? Would a normal > wireless card suffice? Yes > What model should I get? Now that's the tricky bit. If you look at the wlan(4) manual page, you will see the supported wireless chipset in the SEE ALSO section. The trick is knowing which chipset a certain card has. It is usually _not_ listed on the box or on the manufacturer's website, because it comes with windoze drivers so most of the users don't give a damn about the chipset. And some manufacturers put different chipsets in different batches of the same card depending on what they can get their hands on. If you see a card that you like and you cannot get the name and type of chipset used, download the windows driver. It will come with an in information file (.inf) that usually contains the name and type of the chipset. > I would prefer to set up static internal IPs for my wireless network > at home, would this be possible? Or is DHCP the way to go (I hesitate > at the thought of configuring a DHCP server). You could use the wlan_acl module to grant access based on the MAC address. But it might be better to do it somewhat more sophisticated and run hostapd(8). > Another way to go is to hook up a standalone wireless router appliance > to my FreeBSD machine's network interface (one of the interfaces). I > already have such a device, I think it's made by Linksys. But then, I > would be NAT'ing both through the FreeBSD machine and through the > wireless router. So it would be a double-NAT so to speak. Is there > anything wrong with that approach? It's probably easier. But you'll have to be on the lookout for vulnerabilities in the router software. When I got a wireless card for my desktop, the idea was to make a wireless conncetion to my laptop. But you have to set up hostapd on the access point, and wpa_supplicant on the laptop. And the manual pages in question don't give an overview of the process, and neither does the handbook. The section of the handbook dealing with wireless networks is outdated and in need of expert attention. Unfortunately I didn't get far enough to be that expert. In the end it was much easier and faster for me to just plug a cross-cable into the laptop from the desktop. (fast=nice when you're running rsync(1) or if you're transferring dumps via nc(1)) Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpr6YmGn2WIN.pgp Description: PGP signature
Re: No sound from snd_hda
On Mon, Dec 22, 2008 at 11:49 AM, Alexander Motin wrote: > Damian Gerow wrote: >> >> I've got an Intel HDA device that is sort-of detected, but I get no sound >> from it: >> >> - >> FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64) >> Installed devices: >> pcm0: at cad 0 nid 1 on hdac0 kld >> snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default) >> pcm1: at cad 0 nid 1 on hdac0 kld >> snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) >> - >> >> The same device looked almost exactly the same on a 7.1-BETA build, but I >> actually had audio output. >> >> I've checked the mixer device, tried muting and unmuting various channels, >> all to no avail. The audio devices are created, and every program I've >> tried opens them successfully, but I get no actual sound. >> >> I've tried searching around, but I haven't been able to turn anything up. >> Is there something I'm missing? Something I should be doing that I'm not? > > You are missing new snd_hda man page reading. RTFM. :) > > 1) Read new man page; > 2) Driver provides you two pcm devices for different purposes, so try to use > both (as man page recommends); > 3) If your system has several audio connectors - try all of them, they are > not equal any more. > 4) Boot with verbose logs enabled to get much more information about your > codec and driver operation (as man page recommends); > 5) Connexant audio codecs are rare, so send your verbose output to me, I > would like to see it. > > -- > Alexander Motin > ___ > freebsd-curr...@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > Should I be asking you about the old snd_hda? I'm having this same problem and ignoring it for some time (no sound), but on FreeBSD aire.franks-development.dyndns.biz 6.4-STABLE FreeBSD 6.4-STABLE #9: Sat Dec 13 18:25:36 MST 2008 r...@aire.franks-development.dyndns.biz:/usr/obj/usr/src/sys/GENERIC amd64 instead of current. I read the warning: A few Hardware/OEM vendors tend to screw up BIOS settings, thus rendering the snd_hda driver useless, which usually results in a state where the snd_hda driver seems to attach and work, but without any sound. In the man page, and I suspect that may be my problem. Chipset is Intel. I played with the bios, but only got it to be worse (snd_hda not detected at all). [st...@aire ~]$ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at memory 0xfdff8000 irq 16 kld snd_hda [20071129_0050] (1p/1r/1v channels duplex default) Is there any further info that would help? I've been limping along on a usb dongle and it's a bit sad ;) Thanks, Steve ___ 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: Snow in my Server
But then you have to add in the "flood-control" port. {^_^} - Original Message - From: "lysergius2001" Sent: Monday, 2008, December 22 08:23 Hmm, I'm surprised that no one suggested that you build and install the snow-melt port? On Mon, Dec 22, 2008 at 4:01 PM, Brian A. Seklecki < bsekle...@collaborativefusion.com> wrote: On Fri, 2008-12-19 at 22:46 +0300, Jeff Laine wrote: > Just mv teh snowflakes to /dev/null ^_- $ sudo pkill -9 xsnow ~BAS -- Brian A. Seklecki Collaborative Fusion, Inc. ___ 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: SOLVED: Snow in my Server
From: "Glen Barber" Sent: Monday, 2008, December 22 12:09 On Mon, Dec 22, 2008 at 2:58 PM, Gary Hartl wrote: Well to all who responded to my emails I thank you...I plus I'm sure everyone else enjoyed the responses and to those who might have considered that I really had a problem...well well I got nothing... Surely you recognize my last email was sent in humor. :) Surely you know that is why it was taken seriously, don't you? Merry Christmas, Happy Chanukah, Kwanza, or whatever it is you enjoy / celebrate this holiday season, and if you're one of those types that doesn't celebrate anything this time of year...well...enjoy yourself. What he said. Enjoy! -- Glen Barber {^_^} ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
Nerius Landys wrote: > I have a PC with FreeBSD set up as a router (NAT). The PC has several > network cards and I'm grouping the internal-facing network cards as a > bridge (promiscuous mode for the interfaces). Everything works well. > > Now I'd like to extend my wired network to include wireless. I really > have no experience with wireless networks. I have a couple of > computers that are wireless-ready (a laptop and a Playstation 3 that I > won in a raffle). Is it possible to somehow add some hardware to my > FreeBSD router PC to make it into a wireless router? What kind of > hardware would I install? What is it called? The PC only has PCI > slots, can you recommend a brand and model of "wireless server > equiptment" if such a thing exists? Would a normal wireless card > suffice? What model should I get? Yes, a supported Wireless net card would suffice. It can be configured to work in "Access Point" mode, essentially what a cheap wireless router would. Instructions in section 32.3.5 here: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html While I haven't used FreeBSD in this mode, from my experience atheros-based (ath(4)) cards work well. I have no less than three Dlink DWL-G520 cards and never had any problems. This is a rather older model now, newer atheros cards may need a newer HAL than the one currently in the source tree (e.g. the Aspire One uses a newer atheros, and needs a custom kernel with some of the original files replaced. I believe -CURRENT has the newer HAL though). I recently also got a Linksys WMP 54G that is based on a Ralink chipset (ral(4)). This also works nicely. > I would prefer to set up static > internal IPs for my wireless network at home, would this be possible? > Sure. I am using static IPs in all my wireless clients. > Or is DHCP the way to go (I hesitate at the thought of configuring a > DHCP server). > > Configuring a DHCP server is very easy. I've only used it with wired ethernet though. Have a read at this: http://www.freebsd.org/doc/en/books/handbook/network-dhcp.html > Another way to go is to hook up a standalone wireless router appliance > to my FreeBSD machine's network interface (one of the interfaces). I > already have such a device, I think it's made by Linksys. But then, I > would be NAT'ing both through the FreeBSD machine and through the > wireless router. So it would be a double-NAT so to speak. Is there > anything wrong with that approach? > I've used something similar and it worked. Don't know about possible drawbacks, cause it was only a toy for me. My setup was something like this: Wireless standalone router (built in NAT) --> FreeBSD system as wireless client of the router + wired ethernet card --> FreeBSD NAT using pf / ipfw --> Wired internal ethernet (with DHCP server) --> Wired client(s) So I guess your approach is also possible. > So in a nutshell, I have a wired FreeBSD router with multiple ethernet > jacks at home, and I want to extend it to include wireless network. > Any suggestions would be appreciated. Thanks. > Probably multiple solutions exist, start up by buying a cheap but supported wireless card. ___ 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: Network Stack Code Re-write (Possible motivations...?)
Martes G Wigglesworth writes: > Thanks again for further information on this topic. > > Where can I find more information this as a research topic. I am > talking about Academic/PHD-level information or industry-level > information. Academic and commercial information tend to be separate topics. The former is mostly found in peer-reviewed journals, like most academic publication. The latter is harder to get access to, but you can often find corporate white papers and so forth to give you some ideas. I can't think of anything more useful to say unless you have a more specific set of questions to investigate. If you're looking for more of an overview, the usual suspects (books by Comer, Stevens, Tanenbaum, etc.) will be a good start. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
On Monday 22 December 2008 19:05:32 Mario Lobo wrote: > On Monday 22 December 2008 18:49:44 Nerius Landys wrote: > > I have a PC with FreeBSD set up as a router (NAT). The PC has several > > network cards and I'm grouping the internal-facing network cards as a > > bridge (promiscuous mode for the interfaces). Everything works well. > > > > Now I'd like to extend my wired network to include wireless. I really > > have no experience with wireless networks. I have a couple of > > computers that are wireless-ready (a laptop and a Playstation 3 that I > > won in a raffle). Is it possible to somehow add some hardware to my > > FreeBSD router PC to make it into a wireless router? What kind of > > hardware would I install? What is it called? The PC only has PCI > > slots, can you recommend a brand and model of "wireless server > > equiptment" if such a thing exists? Would a normal wireless card > > suffice? What model should I get? I would prefer to set up static > > internal IPs for my wireless network at home, would this be possible? > > Or is DHCP the way to go (I hesitate at the thought of configuring a > > DHCP server). > > > > Another way to go is to hook up a standalone wireless router appliance > > to my FreeBSD machine's network interface (one of the interfaces). I > > already have such a device, I think it's made by Linksys. But then, I > > would be NAT'ing both through the FreeBSD machine and through the > > wireless router. So it would be a double-NAT so to speak. Is there > > anything wrong with that approach? > > > > So in a nutshell, I have a wired FreeBSD router with multiple ethernet > > jacks at home, and I want to extend it to include wireless network. > > Any suggestions would be appreciated. Thanks. > > ___ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscr...@freebsd.org" > > If you already have a wireless router, all you have to do is to turn it > into an access point to your internal lan. Disable its DHCP server, assign > a free LAN IP to the router LAN ethernet,plug one of its LAN ports into > your switch and assign free LAN IPs to the wireless cards of your LAN > machines. > > That's what I did here at home and works like a charm. > > If you need a DHCP server you have to set it up on the FreeBSD router. Sorry for replying to myself but it needed a correction. You CAN use the wireless router as your DHCP server!. Just assign a range from your LAN's IPs. The WAN port won't matter. It won't be used. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE) ___ 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: Network Stack Code Re-write (Possible motivations...?)
RW writes: > On Sat, 20 Dec 2008 17:54:24 -0500 > Lowell Gilbert wrote: > >> However, >> commercial routers generally do not use their OS kernel this way -- it >> is far more common that the kernel does send and receive packets >> within its native IP stack. > > If I'm understanding you right, I'm surprised by that (the native part). > It make any proprietary software less portable. You're also tying your > code into third-party internals, which sounds like a maintenance > problem. Yes, but I think that's a fairly small effect. The packet send/receive interface involved is generally pretty small, regardless of how you implement it. > I would have thought that the likes of Cisco and Alcatel > etc would would have reusable codebases that abstract the OS and > minimize OS dependencies. That's always a goal, of course. Completely throwing out the protocol stacks in the OS kernel doesn't make most things more portable, though. There are a fair number of system parameters that are already implemented in OS kernels, and reinventing that wheel doesn't buy you anything. > What's the advantage, don't routers usually lead OS's in terms > of new protocol support? Protocol support per se is generally fairly independent from the OS in a hardware router; high level protocols are usually handled in userland, and low level protocols are mostly a hardware issue. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: disk error / reboot / 6.3
Hi Paul, Ok, thanks. Will let you know the outcome. -Jerome _ From: Paul B. Mahol [mailto:one...@gmail.com] To: jerome [mailto:jer...@code-monkey.nl] Cc: freebsd-questions@freebsd.org Sent: Mon, 22 Dec 2008 13:15:12 +0100 Subject: Re: disk error / reboot / 6.3 On 12/22/08, jerome wrote: > Hi Paul, > > The server resets while running, like pressing the reset button... Try this patch: --- src/sys/dev/ata/ata-queue.c 2008/10/27 09:26:24 1.74 +++ src/sys/dev/ata/ata-queue.c 2008/11/27 03:37:46 1.75 @@ -357,7 +357,7 @@ ata_completed(void *context, int dummy) "\6MEDIA_CHANGED\5NID_NOT_FOUND" "\4MEDIA_CHANGE_REQEST" "\3ABORTED\2NO_MEDIA\1ILLEGAL_LENGTH"); - if ((request->flags & ATA_R_DMA) && + if ((request->flags & ATA_R_DMA) && request->dma && (request->dma->status & ATA_BMSTAT_ERROR)) printf(" dma=0x%02x", request->dma->status); if (!(request->flags & (ATA_R_ATAPI | ATA_R_CONTROL))) -- Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Wireless router?
On Monday 22 December 2008 18:49:44 Nerius Landys wrote: > I have a PC with FreeBSD set up as a router (NAT). The PC has several > network cards and I'm grouping the internal-facing network cards as a > bridge (promiscuous mode for the interfaces). Everything works well. > > Now I'd like to extend my wired network to include wireless. I really > have no experience with wireless networks. I have a couple of > computers that are wireless-ready (a laptop and a Playstation 3 that I > won in a raffle). Is it possible to somehow add some hardware to my > FreeBSD router PC to make it into a wireless router? What kind of > hardware would I install? What is it called? The PC only has PCI > slots, can you recommend a brand and model of "wireless server > equiptment" if such a thing exists? Would a normal wireless card > suffice? What model should I get? I would prefer to set up static > internal IPs for my wireless network at home, would this be possible? > Or is DHCP the way to go (I hesitate at the thought of configuring a > DHCP server). > > Another way to go is to hook up a standalone wireless router appliance > to my FreeBSD machine's network interface (one of the interfaces). I > already have such a device, I think it's made by Linksys. But then, I > would be NAT'ing both through the FreeBSD machine and through the > wireless router. So it would be a double-NAT so to speak. Is there > anything wrong with that approach? > > So in a nutshell, I have a wired FreeBSD router with multiple ethernet > jacks at home, and I want to extend it to include wireless network. > Any suggestions would be appreciated. Thanks. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscr...@freebsd.org" If you already have a wireless router, all you have to do is to turn it into an access point to your internal lan. Disable its DHCP server, assign a free LAN IP to the router LAN ethernet,plug one of its LAN ports into your switch and assign free LAN IPs to the wireless cards of your LAN machines. That's what I did here at home and works like a charm. If you need a DHCP server you have to set it up on the FreeBSD router. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Wireless router?
I have a PC with FreeBSD set up as a router (NAT). The PC has several network cards and I'm grouping the internal-facing network cards as a bridge (promiscuous mode for the interfaces). Everything works well. Now I'd like to extend my wired network to include wireless. I really have no experience with wireless networks. I have a couple of computers that are wireless-ready (a laptop and a Playstation 3 that I won in a raffle). Is it possible to somehow add some hardware to my FreeBSD router PC to make it into a wireless router? What kind of hardware would I install? What is it called? The PC only has PCI slots, can you recommend a brand and model of "wireless server equiptment" if such a thing exists? Would a normal wireless card suffice? What model should I get? I would prefer to set up static internal IPs for my wireless network at home, would this be possible? Or is DHCP the way to go (I hesitate at the thought of configuring a DHCP server). Another way to go is to hook up a standalone wireless router appliance to my FreeBSD machine's network interface (one of the interfaces). I already have such a device, I think it's made by Linksys. But then, I would be NAT'ing both through the FreeBSD machine and through the wireless router. So it would be a double-NAT so to speak. Is there anything wrong with that approach? So in a nutshell, I have a wired FreeBSD router with multiple ethernet jacks at home, and I want to extend it to include wireless network. Any suggestions would be appreciated. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [6.3] Assigning "shutdown" to eg. Syst?
On Mon, Dec 22, 2008 at 9:31 AM, Gilles wrote: > Hello > > I'd like to make it easier for my dad to shutdown a server. Instead of > having him plug a keyboard, log on as root (with a complicated > password) and finally type "shutdown -h now", is it possible to assign > this command to some unused key like eg. Syst? Even better, send this > command only if the key is hit eg. three times within 2 seconds? > You could add him to the operator group, which would not require him to be root. -- Glen Barber ___ 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: Status of hyperthreading in FreeBSD
Wojciech Puchar wrote: >> >> Atom's HTT is actually pretty good - I saw up to 25% more performance >> simply by using multithreading in 7zip's compression benchmark (on >> WinXP, though). Of course, OTOH it uses about that much more transistors >> on the CPU die so it's not exactly free performance. > > really that much? i thought maybe 1-2% (just 2 sets of registers). Screenshots are available :) I was also surprised because in this case both threads use the same algorithm with the same requirements on registers. It used to be (in the days of Pentium 4) that HTT would work best if the two threads used different sets of instructions and registers (e.g. one doing integer math and another doing floating point math). I guess they made more effort this time. signature.asc Description: OpenPGP digital signature
Re: Status of hyperthreading in FreeBSD
Sam Fourman Jr. wrote: >> as far as i know, just enabling smp will allow ht to function. also, i don't >> know if intel changed ht in the new atom processor, they could have. > is FreeBSD's smp special in some way that it would be the exception to > the following statement. > I know there was a lot of changes made in the new ULE2 scheduler maybe > that is why? > > /* > Hyper-threading relies on support in the operating system as well as > the CPU. Conventional multiprocessor support is not enough to take > advantage of hyper-threading.[1] For example, even though Windows 2000 > supports multiple CPUs, Intel does not recommend that hyper-threading > be enabled under that operating system. > */ > > I found this in wikipedia at the following link > http://en.wikipedia.org/wiki/Hyper-threading Yes, system respond variously to hyperthreading but it's mostly in two areas: a) Granularity of locking - systems with "big locks" like FreeBSD's Giant was when HTT was new don't scale well in multi-CPU configurations ("logical" CPUs) and simply using HTT can expose and increase these inefficiencies. Modern FreeBSD locking is "good enough" for 8 cores in 7.x and it's improving in 8.x. b) Behaviour in multi-core (or multi-CPU) case when individual CPUs or cores support HTT. This is a scheduler issue - if the scheduler isn't aware that some logical CPU's are "fake" and some are not (i.e. if it treats all of them equally) it could move processes or threads from one CPU or CPU core to another when it would be much better to move it from one "fake" (hyperthreaded) CPU to another within the same "real" CPU. There are more similar issues here, but none of them (including those I described) are applicable to Atom since a) locking in FreeBSD is good enough for it in recent releases (even in 6.x) and b) there are only two "fake" logical CPUs and they really can be treated equally. Now, with Nehalem design (i7) the system can have a quad-core CPU (actually, several of those) with each core supporting hyperthreading. A system with 16 logical CPUs (2 x quadcore x HTT) isn't really strange any more. The scheduler knows about HTT, so the issues under "a)" are much more noticable. signature.asc Description: OpenPGP digital signature
Re: SOLVED: Snow in my Server
On Mon, Dec 22, 2008 at 2:58 PM, Gary Hartl wrote: > Well to all who responded to my emails I thank you...I plus I'm sure > everyone else enjoyed the responses and to those who might have considered > that I really had a problem...well well I got nothing... > Surely you recognize my last email was sent in humor. :) > Merry Christmas, Happy Chanukah, Kwanza, or whatever it is you enjoy / > celebrate this holiday season, and if you're one of those types that doesn't > celebrate anything this time of year...well...enjoy yourself. > Enjoy! -- Glen Barber ___ 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: [6.3] Assigning "shutdown" to eg. Syst?
In the last episode (Dec 22), Gilles said: > On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon > wrote: > >I have a similar setting, but it requires X, WindowMaker and a > >Sun Type 6 USB keyboard. :-) > > Thanks for the input, but this server is text-only. I'll try to find > how FreeBSD is configured so that ALT-CTRL-DEL maps to "reboot", and > add my own keyboard key to shut it down. See the kbdcontrol(1) manpage; the -d and -l options are what you need. The keyboard(4) manpage sort of describes the layout of the keymap file. The full list of actions isn't documented anywhere, but all you need is 'boot'. -- Dan Nelson dnel...@allantgroup.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: Snow in my Server
Glen Barber wrote: This may be kind of late to bring this up, but... I sincerely hope the OP did not have a real issue... Cheers. I dunno, the idea of some idiot sitting somewhere with his servers in a snowbank upset because dozens of people responded to his earnest plea for help with laughter... I'd like to say I have more faith in people than that, but... -- CJC ___ 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"
SOLVED: Snow in my Server
Well to all who responded to my emails I thank you...I plus I'm sure everyone else enjoyed the responses and to those who might have considered that I really had a problem...well well I got nothing... Merry Christmas, Happy Chanukah, Kwanza, or whatever it is you enjoy / celebrate this holiday season, and if you're one of those types that doesn't celebrate anything this time of year...well...enjoy yourself. Cheers, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [6.3] Assigning "shutdown" to eg. Syst?
On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon wrote: >I have a similar setting, but it requires X, WindowMaker and a >Sun Type 6 USB keyboard. :-) Thanks for the input, but this server is text-only. I'll try to find how FreeBSD is configured so that ALT-CTRL-DEL maps to "reboot", and add my own keyboard key to shut it down. ___ 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: [solved] Re: usb-stick accessible, but doesn't boot
Hi, Try the attached patch to "sys/kern/vfs_mount.c" Thanks for reporting. I have been aware about this issue for some time now, but the patch has not been committed to current yet. I have FreeSBIE reliably up and running with USB2. --HPS On Monday 22 December 2008, clemens fischer wrote: > On Sun, 21 Dec 2008 14:47:54 +0100 clemens fischer wrote: > > [ re. a bootable CURRENT backup system on a USB stick] > > > I am very sorry for this inaccurate information. As it turns out, > > only the GENERIC kernel is bootable, my custom configuration doesn't. > > On the bright side, this indicates some feature missing from my > > normally very lean kernels, nothing is kaputt beyond repair. I'll > > just have to find out which module just has to be in the kernel to > > make it boot from an USB stick. > > The "custom configuration" uses the new USB2 stack, whereas GENERIC > still includes the older one. When replacing USB2 with the old stack, > I can reliably boot the system from the stick. > > I have another backup on a MMC card in a $5 card reader, but that one > boots with USB2. > > The USB stick which only runs on the old stack identifies as: > > ugen1.2: at usbus1 > umass0: on > usbus1 pass0: Removable Direct Access SCSI-0 > device da0: Removable Direct Access SCSI-0 > device umass0: SCSI over Bulk-Only; quirks = 0x > > I don't know if any quirks would make this product work. To me it seems > as if it has to do with bulk handling? > > -c > > ___ > freebsd-...@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org" --- vfs_mount.c.orig Mon Dec 22 14:43:36 2008 +++ vfs_mount.c Mon Dec 22 15:09:14 2008 @@ -58,6 +58,7 @@ #include #include #include +#include #include #include @@ -1606,7 +1607,11 @@ vfs_mountroot(void) { char *cp; - int error, i, asked = 0; + const char *rootdevname_orig; + int error; + unsigned int i; + unsigned char asked = 0; /* set if asked for mount point */ + unsigned char timeout = 16; /* seconds */ root_mount_prepare(); @@ -1624,6 +1629,10 @@ asked = 1; } + /* store a copy of the initial root device name */ + rootdevname_orig = ctrootdevname; + retry: + /* * The root filesystem information is compiled in, and we are * booted with instructions to use it. @@ -1674,12 +1683,27 @@ if (!vfs_mountroot_try(ctrootdevname)) goto mounted; /* - * Everything so far has failed, prompt on the console if we haven't - * already tried that. + * Check if we should try more times. + */ + if (timeout != 0) { + timeout--; + pause("WROOT", hz); + if (cncheckc() == -1) { + /* no key press - try again */ + ctrootdevname = rootdevname_orig; + goto retry; + } + } + + /* + * Everything so far has failed, prompt on the console if we + * haven't already tried that. */ - if (!asked) + if (!asked) { + printf("\n"); if (!vfs_mountroot_ask()) goto mounted; + } panic("Root mount failed, startup aborted."); ___ 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: I cant register
On Mon, Dec 22, 2008 at 12:55 PM, Eric Turgeon wrote: > > > On Mon, Dec 22, 2008 at 5:01 PM, Glen Barber > wrote: >> >> On Mon, Dec 22, 2008 at 11:44 AM, Eric Turgeon >> wrote: >> > Hi. I cant register in your forum because: Image verification could not >> > be >> > verified due to server issues. Please try again later. >> > Please check the problem please. 1 month lather never have access to the >> > forum. >> >> The forum is maintained separately. Please contact the forum >> administrator(s). >> >> do you have the mail please for because i dont have it Please reply to the list, not just to me. Use the contact form on the page. -- Glen Barber ___ 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"
NFS Cache
Greetings, We are having problems with Record Based Log Shipping from our PostGreSQL database server that appears to stem from NFS caching the files. PostGreSQL are continously writing to its WAL files located in the pg_xlog directory which is shared via NFS Our program is in turn continously detecting the changes as described in 24.4.4 at http://www.postgresql.org/docs/8.3/static/warm-standby.html and copying a segment of the WAL file to the local harddisk. The changes written by PostGreSQL however doesn't appear to be reflected through the mapped NFS drive until at some later point in time (not sure how long the delay is, but it appears to be 10+ seconds). The delay causes the transferred WAL files to become corrupt. Running the same program directly on the PostGreSQL machine provides the expected result. The following is the NFS configuration on both the Client and Server machines: sysctl -a |grep nfs vfs.nfs.downdelayinitial: 12 vfs.nfs.downdelayinterval: 30 vfs.nfs.skip_wcc_data_onerr: 1 vfs.nfs.nfs3_jukebox_delay: 10 vfs.nfs.reconnects: 0 vfs.nfs.bufpackets: 4 vfs.nfs.realign_count: 0 vfs.nfs.realign_test: 0 vfs.nfs.defect: 0 vfs.nfs.iodmax: 20 vfs.nfs.iodmin: 0 vfs.nfs.iodmaxidle: 120 vfs.nfs.diskless_rootpath: vfs.nfs.diskless_valid: 0 vfs.nfs.nfs_ip_paranoia: 1 vfs.nfs.nfs_directio_allow_mmap: 1 vfs.nfs.nfs_directio_enable: 1 vfs.nfs.clean_pages_on_close: 1 vfs.nfs.nfsv3_commit_on_close: 0 vfs.nfs.access_cache_timeout: 0 vfs.nfs4.access_cache_timeout: 0 vfs.nfsrv.nfs_privport: 0 vfs.nfsrv.commit_miss: 0 vfs.nfsrv.commit_blks: 0 vfs.nfsrv.async: 0 vfs.nfsrv.realign_count: 0 vfs.nfsrv.realign_test: 4069 vfs.nfsrv.gatherdelay_v3: 0 vfs.nfsrv.gatherdelay: 1 Are there other ways of disabling the NFS' cache than using sysctl? Preferably at mount time so caching is only disabled for the PostGreSQL mount point. Alternatively, how is NFS forced to use Direct IO? Appreciate the input Cheers Jona ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
7.0-RELEASE-p6:/boot/kernel/linker.hints not updating?
after running freebsd-update install and rebooting, i ran freebsd-update fetch to check the status and it said: The following files will be updated as part of updating to 7.0-RELEASE-p6: /boot/kernel/linker.hints running freebsd-update install and rebooting again did not clear the message. should that be any concern? ___ 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: Could not find package - using ports
Luca wrote: >> The reason that portupgrade -P was not using packages is that, by >> default it fetches packages built against the tree that's on the >> install disks, so there wont be any for updated ports. >> >> You can set portupgrade to fetch packages for the 7-stable development >> branch (you can google for how to do this). For the most part this will >> work, but occasionally there will be library problems. > >Thank you, now it's clear. >I will try this as soon as I can. I did that and would not do it again for a massive upgrade: http://lists.freebsd.org/pipermail/freebsd-questions/2008-August/180336.html Using freebsd-update for a (minor version) upgrade to 7.1-RC1 and after that using 7.1-RELEASE packages for a portupgrade will probably take less time overall. See the 7.1-RC1 announcement on how to do the first part: http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047014.html When it is available, you should upgrade to 7.1-RELEASE, which will take less time with freebsd-update from 7.1-RC1 than from 7.0-RELEASE, since there are less configuration file changes to be merged. For the portupgrade, you should have in mind that portupgrade uses the ports tree to know what to upgrade to which version. Your ports tree is newer than the 7.1-RELEASE packages. Anyhow, if the newest package is not available but a newer one than the one installed, portupgrade usually works, too. Reading /usr/ports/UPDATING before is still advisable. You might still run into problems of the nature that kde was used to be build against openldap23-client at the time of 7.0-RELEASE, but the 7.1-RELEASE packages are build against openldap24-client and these two ports cannot coexist. With ports this is not a problem, since it can be build against either version. (AFAIR, this particular case will work out fine, but there was something else requiring manual work besides everything listed in UPDATING.) Probably not for 7.0->7.1, but in some cases removing all packages and reinstalling all takes less time than anything else. Cheers, Jan Henrik ___ 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: Cpu and memory clock tool
On Mon, Dec 22, 2008 at 12:10:28PM -0600, Dan Nelson wrote: > In the last episode (Dec 22), Jeff Laine said: > > Hello everybody. > > > > I've been fiddling with some memory modules on my laptop and realized that > > I > > had no idea what frequency memory was running. > > > > So is there any tool to measure such things like FSB and memory > > clocks under FreeBSD? > > Try ports/sysutils/dmidecode ; "dmidecode -t 17" should print the > installed memory modules and (if your bios exports the info) their > speeds. > > -- > Dan Nelson > dnel...@allantgroup.com It worked. Thanks! -- Best regards, Jeff () X-mas ribbon campaign /\ ___ 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: Cpu and memory clock tool
In the last episode (Dec 22), Jeff Laine said: > Hello everybody. > > I've been fiddling with some memory modules on my laptop and realized that I > had no idea what frequency memory was running. > > So is there any tool to measure such things like FSB and memory > clocks under FreeBSD? Try ports/sysutils/dmidecode ; "dmidecode -t 17" should print the installed memory modules and (if your bios exports the info) their speeds. -- Dan Nelson dnel...@allantgroup.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: "truss" is buggy?
In the last episode (Dec 22), Laszlo Nagy said: > Apparently, the "truss" trace tool has a bug. At least I was told > that the tracer program should not change the return value of the > getppid() call inside the traced process. Here is an example program: It looks like the ptrace() syscall is the problem: DESCRIPTION The ptrace() system call provides tracing and debugging facilities. It allows one process (the tracing process) to control another (the traced process). The tracing process must first attach to the traced process, and then issue a series of ptrace() system calls to control the execution of the process, as well as access process memory and register state. For the duration of the tracing session, the traced process will be ``re-parented'', with its parent process ID (and resulting behavior) changed to the tracing process. I imagine that also explains why a truss'ed program will die if you kill -9 the truss process. It looks like the "reset parent when trussing" behaviour appeared back in 1996 (sys_process.s r1.21). The fix would probably be to store the pid of the tracing process somewhere other than p_ppid... -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: How can I link two separate internal networks to two separate external networks
Hello Geoff: On 12/22/08 4:06 AM, "Geoff Roberts" wrote: > Hi, > > I have a FreeBSD 7.0 box with pf. > > I have two internal networks (intnet0 and intnet1) and two internal networks > (extnet0 and extnet1). > > extnet0 and extnet1 are two different gateways to the internet. > > I only have one physical internal (int0) and one physical external (ext0) > interface. > > Traffic from intnet0 needs to go out on extnet0 > > Traffic from intnet1 needs to go out on extnet1 (consider this a default route > for any traffic not going out on extnet0). > > What are some suggested ways of doing this? > > Assume addresses are (these are made up, but hopefully help paint the > picture): > > intnet0 - 192.168.50.0/24 > extnet0 - 10.10.10.8/30 > - extnet0 address 10.10.10.8.10 > - default route 10.10.10.9 > - broadcast 10.10.10.11 > > intnet1 - 192.168.60.0/24 > extnet1 - 10.10.10.12/30 > - extnet1 address 10.10.10.14 > - default route 10.10.10.13 > - broadcast 10.10.10.15 > > So far I have created vlans via a switch on each interface to "multiplex" the > connections: > > vlan10 - 192.168.50.0/24 and vlan20 - 192.168.60.0/24 come in on a single > cable to int0. > > vlan50 - 10.10.10.8/30 and vlan60 - 10.10.10.12/30 come in on a single cable > to ext0. > > However, since I have the defaultroute set for 10.10.10.13 all traffic from > intnet0 is going out on vlan60 whereas i want it to go out on vlan50. > > Am I going about this the wrong way? > I think this will work. Let's assume: $vlan10_if -> macro for your tagged VLAN 10 interface $vlan20_if -> macro for your tagged VLAN 20 interface $vlan50_if -> macro for your tagged VLAN 50 interface $vlan60_if -> macro for your tagged VLAN 60 interface $vlan50_gw = 10.10.10.9 $vlan60_gw = 10.10.10.13 pass in on $vlan10_if route-to ($vlan50_if $vlan50_gw) from any to any pass in on $vlan20_if route-to ($vlan60_if $vlan60_gw) from any to any That would be in conjunction with your NAT's and any RDR's as well. Regards, Mike ___ 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"
R: Could not find package - using ports
> The reason that portupgrade -P was not using packages is that, by > default it fetches packages built against the tree that's on the > install disks, so there wont be any for updated ports. > > You can set portupgrade to fetch packages for the 7-stable development > branch (you can google for how to do this). For the most part this will > work, but occasionally there will be library problems. Thank you, now it's clear. I will try this as soon as I can. Luca ___ 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: Cpu and memory clock tool
On Mon, Dec 22, 2008 at 12:20:59PM -0500, Glen Barber wrote: > On Mon, Dec 22, 2008 at 12:15 PM, Jeff Laine wrote: > > Hello everybody. > > > > I've been fiddling with some memory modules on my laptop and realized that I > > had no idea what frequency memory was running. > > > > So is there any tool to measure such things like FSB and memory clocks > > under FreeBSD? > > > > Not sure of how detailed the output will be regarding FSB (check your > BIOS for that), but you could always use `sysctl -a' to look at system > information. > > -- > Glen Barber Yeah, I did grep for 'clock', 'hz', 'clock', 'mem' and such stuff but it seems that all readings are for the cpu clock only. -- Best regards, Jeff () X-mas ribbon campaign /\ ___ 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: [solved] Re: usb-stick accessible, but doesn't boot
On Sun, 21 Dec 2008 14:47:54 +0100 clemens fischer wrote: [ re. a bootable CURRENT backup system on a USB stick] > I am very sorry for this inaccurate information. As it turns out, > only the GENERIC kernel is bootable, my custom configuration doesn't. > On the bright side, this indicates some feature missing from my > normally very lean kernels, nothing is kaputt beyond repair. I'll > just have to find out which module just has to be in the kernel to > make it boot from an USB stick. The "custom configuration" uses the new USB2 stack, whereas GENERIC still includes the older one. When replacing USB2 with the old stack, I can reliably boot the system from the stick. I have another backup on a MMC card in a $5 card reader, but that one boots with USB2. The USB stick which only runs on the old stack identifies as: ugen1.2: at usbus1 umass0: on usbus1 pass0: Removable Direct Access SCSI-0 device da0: Removable Direct Access SCSI-0 device umass0: SCSI over Bulk-Only; quirks = 0x I don't know if any quirks would make this product work. To me it seems as if it has to do with bulk handling? -c ___ 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: Cpu and memory clock tool
On Mon, Dec 22, 2008 at 12:15 PM, Jeff Laine wrote: > Hello everybody. > > I've been fiddling with some memory modules on my laptop and realized that I > had no idea what frequency memory was running. > > So is there any tool to measure such things like FSB and memory clocks > under FreeBSD? > Not sure of how detailed the output will be regarding FSB (check your BIOS for that), but you could always use `sysctl -a' to look at system information. -- Glen Barber ___ 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"
Cpu and memory clock tool
Hello everybody. I've been fiddling with some memory modules on my laptop and realized that I had no idea what frequency memory was running. So is there any tool to measure such things like FSB and memory clocks under FreeBSD? TIA. -- Best regards, Jeff () X-mas ribbon campaign /\ ___ 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: Snow in my Server
This may be kind of late to bring this up, but... I sincerely hope the OP did not have a real issue... Cheers. -- Glen Barber ___ 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: Snow in my Server
Hmm, I'm surprised that no one suggested that you build and install the snow-melt port? On Mon, Dec 22, 2008 at 4:01 PM, Brian A. Seklecki < bsekle...@collaborativefusion.com> wrote: > On Fri, 2008-12-19 at 22:46 +0300, Jeff Laine wrote: > > Just mv teh snowflakes to /dev/null ^_- > > $ sudo pkill -9 xsnow > > ~BAS > > -- > Brian A. Seklecki > Collaborative Fusion, Inc. > -- Lysergius says "Stay light and trust gravity" ___ 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: kernel options for ipv6 firewall
beni wrote: and I tried this also (from http://www.kame.net/~suz/freebsd-ipv6-config- guide.txt) : options IPV6FIREWALL #options IPV6FIREWALL_VERBOSE #options IPV6FIREWALL_VERBOSE_LIMIT=100 #options IPV6FIREWALL_DEFAULT_TO_ACCEPT But all I get is an "unknown option" error when I do a make buildkernel. That information is out of date. ipfw now handles both IPv4 and IPv6 without any extra kernel configuration required. All you need to do is write rules that reference IPv6 addresses etc. I've added also this to my /etc/rc.conf : #IPv6 gateway6_enable="YES" ipv6_enable="YES" #ipv6_gateway_enable="YES" #ipv6_router_enable="YES" ipv6_network_interfaces="vr0 tun0" # Enable ip6fw. ipv6_firewall_enable="YES" ipv6_firewall_type="client" # ipv6_firewall_quiet="NO" ipv6_firewall_quiet="YES" # suppress rule display. (By default, it's NO) ipv6_firewall_logging="YES" # enable events logging. (By default, it's NO) ipv6_firewall_flags=""# Flags passed to ip6fw when type is a "filename" Take a look at /etc/rc.firewall6 -- that just does for IPv6 what rc.firewall does for IPv4. Your settings above should enable it to work, but you'll need to put the correct network numbers, prefix len and IP address into the rc.firewall6 file. (Not a particularly nice piece of design: configuration information like that shouldn't require you to edit the actual rc script.) pf is enabled for ipv4. pf will also do IPv6 automatically. With pf's really very handy indeed feature of being able to deduce from the interface name the IP numbers / networks to put in the rulesets, you can write rules that operate on IPv4 only: pass in on $ext_if inet proto tcp \ from any to $ext_if port ssh \ flags S/SA keep state \ (max-src-conn-rate 3/30, overload flush global) IPv6 only: pass in on $ext_if inet6 proto tcp \ from any to $ext_if port ssh\ flags S/SA keep state \ (max-src-conn-rate 3/30, overload flush global) or both: pass in on $ext_if proto tcp\ from any to $ext_if port ssh \ flags S/SA keep state\ (max-src-conn-rate 3/30, overload flush global) Although this last is internally transformed into two rules, one for the IPv4 address on the i/f, and the other for the IPv6 address. See 'pfctl -sr' for the generated rules. So on my machine, that becomes: pass in on de0 inet6 proto tcp from any to fe80::240:5ff:fea5:8db7 port = ssh flags S/SA keep state (source-track rule, max-src-conn-rate 3/30, overload flush global, src.track 30) pass in on de0 inet proto tcp from any to 81.187.76.162 port = ssh flags S/SA keep state (source-track rule, max-src-conn-rate 3/30, overload flush global, src.track 30) (not that I've yet seen any ssh bruteforce attempts over IPv6) If you need bandwidth limiting facilities, you can do this with pf as well, but you will have to compile a custom kernel to enable the ALTQ features. It's equivalent to IPFW's dummynet but there are subtle differences in the way it operates that may or may not be a show stopper for you. So what option(s) do I need to use a ipv6 firewall in my kernel ? Same as you need for either pf or ipfw with IPv4 -- in fact, you frequently don't need to modify the GENERIC kernel at all. You can just load ipfw as a kld. Same with pf, unless you need to use altq which still requires some compiled-in stuff in the kernel. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
kernel options for ipv6 firewall
Hi, I'm trying to reconfigure and recompile my kernel to use a ipv6 firewall. So far I added this to the kernel (from http://techie.devnull.cz/ipv6/ipfw2- ipv6-dummynet/) : # IPFW2 options IPFW2 options IPFIREWALL_VERBOSE #enable logging to syslogd(8) options IPFIREWALL_FORWARD #enable transparent proxy support options IPFIREWALL_VERBOSE_LIMIT=100#limit verbosity options IPFIREWALL_DEFAULT_TO_ACCEPT#allow everything by default and I tried this also (from http://www.kame.net/~suz/freebsd-ipv6-config- guide.txt) : options IPV6FIREWALL #options IPV6FIREWALL_VERBOSE #options IPV6FIREWALL_VERBOSE_LIMIT=100 #options IPV6FIREWALL_DEFAULT_TO_ACCEPT But all I get is an "unknown option" error when I do a make buildkernel. I've added also this to my /etc/rc.conf : #IPv6 gateway6_enable="YES" ipv6_enable="YES" #ipv6_gateway_enable="YES" #ipv6_router_enable="YES" ipv6_network_interfaces="vr0 tun0" # Enable ip6fw. ipv6_firewall_enable="YES" ipv6_firewall_type="client" # ipv6_firewall_quiet="NO" ipv6_firewall_quiet="YES" # suppress rule display. (By default, it's NO) ipv6_firewall_logging="YES" # enable events logging. (By default, it's NO) ipv6_firewall_flags="" # Flags passed to ip6fw when type is a "filename" pf is enabled for ipv4. So what option(s) do I need to use a ipv6 firewall in my kernel ? -- Beni. ___ 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: Snow in my Server
On Fri, 2008-12-19 at 22:46 +0300, Jeff Laine wrote: > Just mv teh snowflakes to /dev/null ^_- $ sudo pkill -9 xsnow ~BAS -- Brian A. Seklecki Collaborative Fusion, Inc. signature.asc Description: This is a digitally signed message part
Re: Could not find package - using ports
On Mon, 22 Dec 2008 16:29:18 +0100 Polytropon wrote: > On Mon, 22 Dec 2008 10:20:24 -0500, "Glen Barber" > wrote: > > Portupgrade won't install packages -- it'll upgrade your ports using > > the ports tree. If you want the latest software, you need to > > compile using ports. Packages are built once, when the X.X-RELEASE > > comes out. Did you read the portupgrade man page? > > That's not entirely true. The portupgrade port installs a program > called portinstall. According to its manpage, portinstall can > -a- install from ports (compile), -b- install from packages > or -c- install from packages only (where it works similar to > pkg_add). Portinstall is just an alias for portupgrade -N The reason that portupgrade -P was not using packages is that, by default it fetches packages built against the tree that's on the install disks, so there wont be any for updated ports. You can set portupgrade to fetch packages for the 7-stable development branch (you can google for how to do this). For the most part this will work, but occasionally there will be library problems. ___ 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: Could not find package - using ports
On Mon, Dec 22, 2008 at 10:29 AM, Polytropon wrote: > On Mon, 22 Dec 2008 10:20:24 -0500, "Glen Barber" > wrote: >> Portupgrade won't install packages -- it'll upgrade your ports using >> the ports tree. If you want the latest software, you need to compile >> using ports. Packages are built once, when the X.X-RELEASE comes out. >> Did you read the portupgrade man page? > > That's not entirely true. The portupgrade port installs a program > called portinstall. According to its manpage, portinstall can > -a- install from ports (compile), -b- install from packages > or -c- install from packages only (where it works similar to > pkg_add). > That's good to know. Last port* tool I used besides 'make' was portmaster -- that was a year and several broken ports ago. Needless to say, I manage them myself now. :) -- Glen Barber ___ 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: Could not find package - using ports
On Mon, 22 Dec 2008 10:20:24 -0500, "Glen Barber" wrote: > Portupgrade won't install packages -- it'll upgrade your ports using > the ports tree. If you want the latest software, you need to compile > using ports. Packages are built once, when the X.X-RELEASE comes out. > Did you read the portupgrade man page? That's not entirely true. The portupgrade port installs a program called portinstall. According to its manpage, portinstall can -a- install from ports (compile), -b- install from packages or -c- install from packages only (where it works similar to pkg_add). Sidenote: Another fine tool is pkgdb -aF (comes with portupgrade port) to keep pkg_added packages and stuff installed by either portinstall or "manual" make install in synchronization. It's good to run this command before and after altering something on the installed packages. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Could not find package - using ports
>I'm upgrading all the ports I have installed and the command I > used is "portupgrade -aP", exluding ruby and portupgrade itself. > Sad news is that for every single package it tries to fetch it doesn't > find anything, so it uses the ports, and it needs lots of time to compile > everything. (gnome, X, firefox are not so fast to compile!) > Am I doing something wrong or are the packages really missing? > Portupgrade won't install packages -- it'll upgrade your ports using the ports tree. If you want the latest software, you need to compile using ports. Packages are built once, when the X.X-RELEASE comes out. Did you read the portupgrade man page? > I'm using freeBSD 7.0-release on a i386 architectyre and I'm trying to > update the ports after > having done portsnap fetch update, so it should be trying to install the > latest version of the ports. > If you upgraded (you never specified from what version you upgraded from), say from 7.0-RELEASE to 7.1-RC1, you will get the latest packages by deinstalling your current packages and reinstalling using pkg_add. -- Glen Barber ___ 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"
Could not find package - using ports
Hi everyone, I'm upgrading all the ports I have installed and the command I used is "portupgrade -aP", exluding ruby and portupgrade itself. Sad news is that for every single package it tries to fetch it doesn't find anything, so it uses the ports, and it needs lots of time to compile everything. (gnome, X, firefox are not so fast to compile!) Am I doing something wrong or /Luca]$ ssh preso...@lxplus.cern.ch *** PINE 4.58 COMPOSE MESSAGE Folder: INBOX 4 Messages + To : freebsd-questions@freebsd.org Cc : Attchmnt: Subject : Could not find package - using ports - Message Text - Hi everyone, I'm upgrading all the ports I have installed and the command I used is "portupgrade -aP", exluding ruby and portupgrade itself. Sad news is that for every single package it tries to fetch it doesn't find anything, so it uses the ports, and it needs lots of time to compile everything. (gnome, X, firefox are not so fast to compile!) Am I doing something wrong or are the packages really missing? I'm using freeBSD 7.0-release on a i386 architectyre and I'm trying to update the ports after having done portsnap fetch update, so it should be trying to install the latest version of the ports. Thank you, Luca ___ 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: [6.3] Assigning "shutdown" to eg. Syst?
On Mon, 22 Dec 2008 15:31:27 +0100, Gilles wrote: > Hello > > I'd like to make it easier for my dad to shutdown a server. Instead of > having him plug a keyboard, log on as root (with a complicated > password) and finally type "shutdown -h now", is it possible to assign > this command to some unused key like eg. Syst? Even better, send this > command only if the key is hit eg. three times within 2 seconds? I have a similar setting, but it requires X, WindowMaker and a Sun Type 6 USB keyboard. :-) Short explaination: I have assigned the command xterm -class SHUTDOWN -fg black -bg red -e "shutdown -p now ; read DUMMY" to the key combination Ctrl+Alt+(I) - the "switch off" or "moon" key on the top right. This combination is impossible to press accidentally. (Without Ctrl and Alt, this key closes the X session and leads back to xdm for login.) You could add a clickable menu entry or desktop icon with this command, but make sure it's not accidentally clicked. :-) If your father is already logged in, he could "shutdown -p now" (or using an alias) from an xterm. He needs to be in the wheel (or at least operator?) group for this. What about pressing the power button on the machine itself, it should perform a "shutdown -p now" (shut down and power off). By tht eay, the key you're refering to is named "System Request", or SysRq. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
"truss" is buggy?
Apparently, the "truss" trace tool has a bug. At least I was told that the tracer program should not change the return value of the getppid() call inside the traced process. Here is an example program: %cat test.c #include int main() { while(1) { sleep(5); printf("ppid = %d\n", getppid()); } } %gcc -o test test.c %./test ppid = 47653 ppid = 47653 ppid = 47653 # Started "truss -p 48864" here! ppid = 49073 ppid = 49073 ppid = 49073 I cannot install strace, beacuse my platform is amd64. What other options do I have? Thanks Laszlo ___ 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"
[6.3] Assigning "shutdown" to eg. Syst?
Hello I'd like to make it easier for my dad to shutdown a server. Instead of having him plug a keyboard, log on as root (with a complicated password) and finally type "shutdown -h now", is it possible to assign this command to some unused key like eg. Syst? Even better, send this command only if the key is hit eg. three times within 2 seconds? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
no port ralcgm - render CGM graphics with ImageMagick?
I use ImageMagick quite a lot. Never came across this before, but now I need to view some CGM drawings and realised that I need ralcgm: http://www.imagemagick.org/script/formats.php http://www.agocg.ac.uk/train/cgm/ralcgm.htm As far as I can search, there is no ralcgm port for FBSD. Is that so? Is there anybody else who is interested in having this port? I might try to create one, if there is some support from the community. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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"
You have just received a virtual postcard from a friend !
You have just received a virtual postcard from a friend ! . You can pick up your postcard at the following web address: . [1]http://www.loaps.com/postcard.gif.exe . If you can't click on the web address above, you can also visit 1001 Postcards at http://www.postcards.org/postcards/ and enter your pickup code, which is: d21-sea-sunset . (Your postcard will be available for 60 days.) . Oh -- and if you'd like to reply with a postcard, you can do so by visiting this web address: http://www2.postcards.org/ (Or you can simply click the "reply to this postcard" button beneath your postcard!) . We hope you enjoy your postcard, and if you do, please take a moment to send a few yourself! . Regards, 1001 Postcards http://www.postcards.org/postcards/ References 1. http://www.loaps.com/postcard.gif.exe ___ 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: disk error / reboot / 6.3
On 12/22/08, jerome wrote: > Hi Paul, > > The server resets while running, like pressing the reset button... Try this patch: --- src/sys/dev/ata/ata-queue.c 2008/10/27 09:26:24 1.74 +++ src/sys/dev/ata/ata-queue.c 2008/11/27 03:37:46 1.75 @@ -357,7 +357,7 @@ ata_completed(void *context, int dummy) "\6MEDIA_CHANGED\5NID_NOT_FOUND" "\4MEDIA_CHANGE_REQEST" "\3ABORTED\2NO_MEDIA\1ILLEGAL_LENGTH"); - if ((request->flags & ATA_R_DMA) && + if ((request->flags & ATA_R_DMA) && request->dma && (request->dma->status & ATA_BMSTAT_ERROR)) printf(" dma=0x%02x", request->dma->status); if (!(request->flags & (ATA_R_ATAPI | ATA_R_CONTROL))) -- Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
How can I link two separate internal networks to two separate external networks
Hi, I have a FreeBSD 7.0 box with pf. I have two internal networks (intnet0 and intnet1) and two internal networks (extnet0 and extnet1). extnet0 and extnet1 are two different gateways to the internet. I only have one physical internal (int0) and one physical external (ext0) interface. Traffic from intnet0 needs to go out on extnet0 Traffic from intnet1 needs to go out on extnet1 (consider this a default route for any traffic not going out on extnet0). What are some suggested ways of doing this? Assume addresses are (these are made up, but hopefully help paint the picture): intnet0 - 192.168.50.0/24 extnet0 - 10.10.10.8/30 - extnet0 address 10.10.10.8.10 - default route 10.10.10.9 - broadcast 10.10.10.11 intnet1 - 192.168.60.0/24 extnet1 - 10.10.10.12/30 - extnet1 address 10.10.10.14 - default route 10.10.10.13 - broadcast 10.10.10.15 So far I have created vlans via a switch on each interface to "multiplex" the connections: vlan10 - 192.168.50.0/24 and vlan20 - 192.168.60.0/24 come in on a single cable to int0. vlan50 - 10.10.10.8/30 and vlan60 - 10.10.10.12/30 come in on a single cable to ext0. However, since I have the defaultroute set for 10.10.10.13 all traffic from intnet0 is going out on vlan60 whereas i want it to go out on vlan50. Am I going about this the wrong way? Thanks, Geoff ___ 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: Setting per processor (/core) affinity from within FreeBSD
16 Dec 2008, at 06:40 , Garrett Cooper wrote: I was wondering if anyone has written a utility for FreeBSD to tie a particular process group to a processor / core, similar to what Linux has done with taskset, so that affinity can be properly set with FreeBSD and the ULE scheduler. I believe cpuset(2) will do what you want. It is available starting with 7.1-RELEASE (which isn't released yet, but you can grab 7.1-RC1 to test it out). Hi, what I read from the documentation is that cpuset works on processes. Is it possible to pin a kthread to a particular core? Cheers, N. ___ 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: can not start SVNserve
On Sunday 21 December 2008 12:49:04 KES wrote: > Здравствуйте, Mel. > > Вы писали 21 декабря 2008 г., 13:10:47: > > M> On Thursday 18 December 2008 09:03:54 KES wrote: > >> Здравствуйте, Mel. > >> > >> Вы писали 18 декабря 2008 г., 9:05:35: > >> > >> M> On Wednesday 17 December 2008 21:02:07 KES wrote: > >> Also I notice next differences between FreeBDS 7.0 and 7.1 (detail > >> below) Notice that on both system account is locked, has no valid shell > >> and home directory > >> on FreeBSD 7.0 when I try to login with svn user it says: This account > >> is currently not available. on FreeBSD 7.1 when I try to login with svn > >> user it says: su: Sorry Maybe there is a problem with su on FreeBSD 7.1? > >> > >> > >> > >> home# pw user show svn > >> svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin > >> home# su svn > >> This account is currently not available. > >> > >> > >> kes# pw user show svn > >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash > >> kes# su svn > >> su: Sorry > >> kes# pw user mod svn -s /usr/bin/nologin > >> kes# pw user show svn > >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin > >> kes# su svn > >> su: Sorry > > M> The problem is elsewhere. Probably in pam(3) on the faulty machine. The > only M> change to su.c from 7.0 to 7.1 is fixing a compiler warning. There > are 3 M> instances where su exits with "Sorry". All occasions are logged to > syslog. M> Can you dig those log entries up? > > Dec 21 13:47:54 kes su: kes to root on /dev/ttyp5 > Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: checkyesno: svnserve_enable is > set to YES. Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: run_rc_command: > doit: su -m svn -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 > --foreground -r /var/db/trunk"' > Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error > > Yeah, there is problem with pam. Why pam restrict root to run command > under other user? Is /etc/pam.d/su present and does it contain the line: account include system If so, the /etc/pam.d/system should contain: # account #accountrequiredpam_krb5.so account requiredpam_login_access.so account requiredpam_unix.so If this is all ok, I suggest rebuilding pam with OPENPAM_DEBUG defined, so that you can see where things go wrong. Just out of curiousity, if you install something like mysql or squid, those users should be inaccessable for the same reason, cause I don't see anything wrong with the svn user itself. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ 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: error reading SATA DVDRW
Wojciech Puchar wrote: At the loader prompt I also entered set hw.ata.atapi_dma=0 I get this error at the Install GUI when it is reading each package from the disc Seek failed: Invalid argument Then about half way through the install I get a message An error occurred while extracting the system image The system then reboots. check your disc maybe it does have read errors ___ 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" I made another disc but the same problem occurs. I may try an ordinary ide cd drive setup as a slave. On an older system with and IDE drive set as master I had the same problem, I had to set it as a slave to fix the error. I am wondering if this error is being worked on by the FreeBSD developers Thanks Ivan ___ 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: Sed question
Gary Kline wrote: anyway, this is one for giiorgos, or another perl wiz. i've been using the perl subsitution cmd one-liner for years with unfailing success. is there a way of deleting lines with perl using the same idea as: perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN To delete lines matching a R.E. (grep -v effectively): perl -ni.bak -e 'm/SOMETHING/ || print;' file1 file2 fileN To delete lines by number from many files -- eg. exclude lines 3 to 7: perl -ni.bak -e 'print unless ( 3 .. 7 ); close ARGV if eof;' \ file1 file2 fileN The malarkey with 'close ARGV' is necessary because otherwise perl won't reset the input line number counter ($.) for each new file. The range expression ( N .. M ) can take matching terms rather than line numbers, so you can also do things like: perl -ni.bak -e 'print unless ( m/FIRST/ .. m/SECOND/ )' \ file1 file2 fileN Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: error reading SATA DVDRW
At the loader prompt I also entered set hw.ata.atapi_dma=0 I get this error at the Install GUI when it is reading each package from the disc Seek failed: Invalid argument Then about half way through the install I get a message An error occurred while extracting the system image The system then reboots. check your disc maybe it does have read errors ___ 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: Status of hyperthreading in FreeBSD
Atom's HTT is actually pretty good - I saw up to 25% more performance simply by using multithreading in 7zip's compression benchmark (on WinXP, though). Of course, OTOH it uses about that much more transistors on the CPU die so it's not exactly free performance. really that much? i thought maybe 1-2% (just 2 sets of registers). it would be better to put 2 much simpler cores in place of this one. or 100 ARM7 cores ;) (it would fit) ___ 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: Sed question
On Monday 22 December 2008 00:27:44 Gary Kline wrote: > > anyway, this is one for giiorgos, or another perl wiz. i've > been using the perl subsitution cmd one-liner for years with > unfailing success. is there a way of deleting lines with perl > using the same idea as: > > perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN For a single file it's very easy: perl -ne 'print unless 8..10' filename will print every line except lines 8, 9 and 10. The .. or range operator (in scalar context) is a sort of flip-flop. It keeps its own state, which is either true or false. When it's false it only evaluates its left-hand argument; when it's true it only evaluates its right-hand argument; and whenever the argument it's currently looking at returns true, the expression changes state. If the argument is an integer, it's treated as a comparison against the current line number, $. ; so the first expression, 8..10, means ($. == 8) .. ($. == 10) It's false to start with, until ($. == 8) returns true (on line 8); it becomes true and remains true until ($. == 10) returns true (on line 10), when it becomes false again and remains false until it next sees line number 8. You can also use more complicated tests in the range operator: perl -ne 'print unless /START/ .. /END/' will find each line containing the word START anywhere, and delete from that line to the next line containing END (inclusive of both endpoints) - this will work for multiple occurrences of START and END in your file. There are two problems if you string multiple files together on the command line: first, if you're using line numbers, the line number doesn't reset between files unless you do an explicit close on each file. The bigger problem is if you have a file in which the second condition doesn't occur (a file with only 9 lines in the first example, or a file with a START and no corresponding END in the second case): the range operator will stay true until it sees the ending condition in the next file, meaning you'll lose the first ten lines in the numeric case, or every line from the top of file to the first END in the second case. To get round these two problems, you need to test for eof in the range operator, and close each file when it hits eof to reset the line count. perl -ne 'print unless 8 .. $. == 10 || eof; close ARGV if eof' file[1-n] perl -ne 'print unless /START/../END/ || eof; close ARGV if eof' file[1-n] There's some hairy precedence in the first range expression: a useful tip for checking that you've got it right (and indeed in general for checking that a bit of Perl does what you think it does) is the B::Deparse core module, which you call like this: perl -MO=Deparse,-p -e 'print unless 8 .. $. == 10 || eof' which outputs ((8 .. (($. == 10) || eof)) or print($_)); -e syntax OK The ,-p argument to -MO=Deparse tells it to put in parentheses everywhere. If you're like me and like to leave them all out, feed your expression to Deparse with all the parens in and leave off the ,-p argument: Deparse will get rid of all the unnecessary ones: $ perl -MO=Deparse -e 'print unless (8 .. (($. == 10) or eof))' print $_ unless 8 .. $. == 10 || eof; -e syntax OK Jonathan ___ 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: bzip2split
% Obviously, 'split' won't work for 2 reasons: % Each chunk won't have the BZIP2 header what a problem? when unpacking you do cat |bunzip2 % 'split' will cut the file inside a bzip2 "block", rendering the first/last blocks of each file unreadable. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"