Re: USB-Serial adapter, how to make /dev/cuad* appear? [Solved]
I finally figured this out. Turns out the FreeBSD side of things worked from the start, and it was the hardware that was broken. A replacement adapter works like a charm. Oh and yes, Oliver, you're perfectly right, /dev/cuaU0 is indeed created by ucom. I was confused by the device having the creation date of when the system was booted, even though it was dynamically created a couple of days later. Thanks for all your help! Cheers Benjamin signature.asc Description: This is a digitally signed message part.
Re: USB-Serial adapter, how to make /dev/cuad* appear?
Roland Smith wrote: On Tue, Oct 23, 2007 at 08:17:01PM +0200, Benjamin Lutz wrote: On Tuesday 23 October 2007 19:54:44 Roland Smith wrote: On Tue, Oct 23, 2007 at 06:06:08PM +0200, Benjamin Lutz wrote: I'd expect some device to show up in /dev, cuad1, ucom0, something like that, but I get nothing. (cuad0 is taken by the onboard serial port, which, alas, isn't wired to the outside of the case). Looking at ucom(4): FILES /dev/cuaU? See if that exists. No such luck I'm afraid. There's only cuaU0, which belongs to the onboard serial port too. Does the onboard serial port work via USB? How odd! On my standard PC, the serial ports are driven by the sio driver, and have /dev/cuad* and /dev/ttyd* devices, noc cuaU. No, that one's a standard serial port, driven by sio as well, and creates /dev/cuad0, /dev/cuaU0, maybe some /dev/tty* as well, I don't know. Do you have the correct driver for the converter loaded next to ucom? The ucom manual page gives a list of them. Yes, uplcom is the right driver. (Or at least I think so, because the device and manufacturer ids that usbdevs -v gives me match those in /usr/src/sys/dev/usb/uplcom.c .) Besides, without the uplcom module loaded, I only get an ugen device, so it seems to attach to the device ok. Cheers Benjamin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB-Serial adapter, how to make /dev/cuad* appear?
Ian Smith wrote: On Tue, 23 Oct 2007 18:06:08 +0200 Benjamin Lutz [EMAIL PROTECTED] wrote: I've bought an USB-Serial adapter in order to use an old serial 33.6k modem. I've loaded the uplcom and ucom modules, but am unsure how to proceed from here. The system runs FreeBSD 6.2-RELEASE-p8. When connecting the adapter, dmesg says: ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, addr 3 usbdevs -v says: port 6 addr 3: full speed, power 100 mA, config 1, USB-Serial Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00 I'd expect some device to show up in /dev, cuad1, ucom0, something like that, but I get nothing. (cuad0 is taken by the onboard serial port, which, alas, isn't wired to the outside of the case). Perhaps you need to load umodem(4) also? Tried that, it has no effect. Cheers Benjamin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB-Serial adapter, how to make /dev/cuad* appear?
On 2007-10-24 17:15, Roland Smith wrote: On Wed, Oct 24, 2007 at 09:26:20AM +0200, Benjamin Lutz wrote: Does the onboard serial port work via USB? How odd! On my standard PC, the serial ports are driven by the sio driver, and have /dev/cuad* and /dev/ttyd* devices, noc cuaU. No, that one's a standard serial port, driven by sio as well, and creates /dev/cuad0, /dev/cuaU0, maybe some /dev/tty* as well, I don't know. How do you know that cuaU0 belongs to the sio driver? It should belong to ucom. According to the manual, sio(4) devices only create ttyd and cuad devices. I'm guessing based on its timestamp pointing to the last system boot, when the USB adapter wasn't connected, based on the device persisting when I unplug the USB adapter. Cheers Benjamin pgpUzEzgy1i5J.pgp Description: PGP signature
USB-Serial adapter, how to make /dev/cuad* appear?
Hello, I've bought an USB-Serial adapter in order to use an old serial 33.6k modem. I've loaded the uplcom and ucom modules, but am unsure how to proceed from here. The system runs FreeBSD 6.2-RELEASE-p8. When connecting the adapter, dmesg says: ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 1.10/4.00, addr 3 usbdevs -v says: port 6 addr 3: full speed, power 100 mA, config 1, USB-Serial Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00 I'd expect some device to show up in /dev, cuad1, ucom0, something like that, but I get nothing. (cuad0 is taken by the onboard serial port, which, alas, isn't wired to the outside of the case). Any help is appreciated! Cheers Benjamin signature.asc Description: This is a digitally signed message part.
Re: USB-Serial adapter, how to make /dev/cuad* appear?
On Tuesday 23 October 2007 19:54:44 Roland Smith wrote: On Tue, Oct 23, 2007 at 06:06:08PM +0200, Benjamin Lutz wrote: I'd expect some device to show up in /dev, cuad1, ucom0, something like that, but I get nothing. (cuad0 is taken by the onboard serial port, which, alas, isn't wired to the outside of the case). Looking at ucom(4): FILES /dev/cuaU? See if that exists. No such luck I'm afraid. There's only cuaU0, which belongs to the onboard serial port too. Cheers Benjamin signature.asc Description: This is a digitally signed message part.
Re: openvpn on freebsd problem
On Saturday 26 May 2007 16:39, User Pjf wrote: I install openvpn from port. Follow openvpn.net howto, vpn can connect from client to server, but on client side, I cann't ping server side other machines. On my server side, vpn server and gateway is same one box, I use dev tun, the server has a public static ip address, install nat,ipfw for internal net to Internet. In refer to howto, Make sure that you've enabled IP and TUN/TAP forwarding on the OpenVPN server machine. I know IP forwarding is work fine, but how to enable TUN forwarding? You enable ip forwarding with the net.inet.ip.forwarding and net.inet6.ip6.forwarding sysctls. However, if your gateway already works for the internal net, I strongly suspect those sysctls are already set to 1. I'd have a look at your firewall ruleset. It seems most likely to me that the reason for your VPN not working lies there. I suggest that you enable logging for any deny rules you have in your ruleset and see whether any packets associated with the VPN connection are dropped. Cheers Benjamin pgp9hF421rcdC.pgp Description: PGP signature
Re: Maple 10
On Thursday 24 May 2007 08:53, Sandy Rutherford wrote: Benjamin, On Wed, 23 May 2007 you wrote: On Wednesday 23 May 2007 15:41, Sandy Rutherford wrote: I have been trying to get Maple 10 working on FreeBSD 6.2. With the patch to the kernel to add `linux_rt_sigpending', it works fine with the exception of the help command. This gives me: Help error, during help initialization - No help database found The help database file are *.hdb files and they are in my installation. I tried running ktrace to see where it is looking for these files, but can't see anything of use. Has anybody else solved this problem? Are you using the most recent version of Maple 10? With the first version (10.0 or maybe even 10.1), help was broken with the Linux version. That would be the problem. I have 10.0. Thanks. Should I decide to update, has anyone had success with Maple 11? No experience with Maple 11 (hell, up to now I didn't even know there was a Maple 11), but there is a patch for Maple 10 that'll fix the help. Cheers Benjamin pgpzRPjMo8OqR.pgp Description: PGP signature
Re: Maple 10
On Wednesday 23 May 2007 15:41, Sandy Rutherford wrote: I have been trying to get Maple 10 working on FreeBSD 6.2. With the patch to the kernel to add `linux_rt_sigpending', it works fine with the exception of the help command. This gives me: Help error, during help initialization - No help database found The help database file are *.hdb files and they are in my installation. I tried running ktrace to see where it is looking for these files, but can't see anything of use. Has anybody else solved this problem? Are you using the most recent version of Maple 10? With the first version (10.0 or maybe even 10.1), help was broken with the Linux version. Cheers Benjamin pgpZIj1GLdFVv.pgp Description: PGP signature
Re: finding nat'd IP address?
On Tuesday 10 April 2007 05:32, Chandhee Thala wrote: if i connect to the net with a cable modem or some other device that uses NAT and gives me a private IP addresses, what is the most Elegant way to get my real IP? (assume that the device itself will not let me have it). I can go to some site that gives the visitor their ip address and screen scrape, but I'd like to know if there is a cleaner solution before I start scripting. Nope, that's the way to go. I'd deposite some very small cgi-bin on some webserver, eg this one: #!/usr/bin/perl print Content-type: text/plain\n\n; print $ENV{REMOTE_ADDR}; Cheers Benjamin pgpPKvJIbRJmZ.pgp Description: PGP signature
Re: Unistall KDE and Xorg
On Monday 09 April 2007 16:20, dbetts wrote: Is there a simple way to uninstall KDE and Xorg, or do I have to use the pkg_delete command for each one? I recommend you use pkg_cutleaves (it's in the ports), as it will help avoid broken dependency chains. It's still a bit of work though (although less than pkg_delete'ing every single package manually). Cheers Benjamin pgppmMlWIbcJi.pgp Description: PGP signature
IP broadcasts
Hello, I've been playing around with IP packets tonight, and I've noticed a peculiar behaviour in FreeBSD that I can't explain. Can someone provide some insight? Specifically, I've been sending IP packets to broadcast addresses, once to 10.0.0.255, which is the local subnet's broadcast address, and once to 255.255.255.255, which as I understand it, is a general broadcast address. The first broadcast (to 10.0.0.255) works, the second (to 255.255.255.255) doesn't. Looking at it with tcpdump on the sending machine, I see this: 05:46:52.057994 00:12:17:5a:b3:b6 ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 136: 10.0.0.1 10.0.0.255: ip-proto-255 102 05:47:16.472315 00:12:17:5a:b3:b6 00:40:63:d9:a9:28, ethertype IPv4 (0x0800), length 136: 10.0.0.1 255.255.255.255: ip-proto-255 102 In other words, the packet to 10.0.0.255 is has a destination MAC address of ff:ff:ff:ff:ff:ff, so all machines on the subnet receive it. The second packet has the destination MAC of my gateway, so only that machine receives it, the other machines on the net don't see it (the ethernet uses a switch). Things work as expected when sending the packets from a Linux machine. Maybe there's some socket option or sysctl I need to set? Cheers Benjamin pgpfiAPFRsTKa.pgp Description: PGP signature
Re: freesd boxes refusing scp and sftp?
On Sunday 04 June 2006 16:45, Jonathan Horne wrote: my freebsd boxes are refusing connections (or erroring them out, im not sure which it is at this time). when i try to scp a file or make a sftp connection, this is what i get: [EMAIL PROTECTED] ~]$ sftp tyche Connecting to tyche... Password: Received message too long 538976288 [EMAIL PROTECTED] ~]$ i get something similar (yet equally aggravating!) when i scp too. can someone point me in the right direction here? For scp and sftp to work, the machine must not print anything at login time. So if you, say, have your machine print a fortune cookie at login, you need to disable that. Cheers Benjamin pgpA27TrvAFTy.pgp Description: PGP signature
Re: min disk size for (useful) desktop
On Saturday 27 May 2006 15.52, Pete C wrote: . . . looking for advice/guidelines for a minimum disk size for a decent desktop install of 6-stable with gnome, openoffice, firefox, gimp etc. . . . . . . I have both a 20G and a 250G on hand, so I guess the question really is is 20G enough ? ? ? I've been running a complete system with KDE, OOo, Gimp etc on my laptop on a 7GB partition for 3 years. It does require some cleaning up every so often (remove distfiles etc), but it's enough. So 20GB should be plenty. For things that need a lot of space to build (OOo), you can use binary packages. Cheers Benjamin pgpecwabtHLgo.pgp Description: PGP signature
Re: Hi there, I got some questions if I may
On Monday 29 May 2006 16:10, Federico Freigedo wrote: Hi there I would like to ask you some questions if I may.. Im wanna make a server for a site like friendster.com and I am very interested of using FreeBSD as my SO on my server but I got some problems first I notice that FreeBSD does not detected the new SATA hard drives only IDE HD, also that I found it very complicate to administrate and to install there is a new good manual to use as reference to learn how to use this fantastic SO as a newbie so people could learn how to use it, administrate and install.?? Yes, SATA drives do work. Are you sure you're using a recent version of FreeBSD? As for documentation, start with these: Handbook: http://www.freebsd.org/handbook FAQ: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/ The Complete FreeBSD: http://www.lemis.com/grog/Documentation/CFBSD/ Cheers Benjamin pgpG5aacgFEJR.pgp Description: PGP signature
Re: pkg_upgrade?
On Tuesday 30 May 2006 01:42, Joe wrote: Hi, I've read the documentation and it seems there's no pkg_upgrade or pkg_update, or a way to install an updated/upgraded package. I'd like to determine if that is indeed the case. [...] The documentation mentions portupgrade and portmanager as mechanisms to upgrade ports, but if I'm not mistaken these invoke source updates, not a binary upgrade as was done for the OS. It appears that the only way to upgrade in binary form is to use pkg_delete -f to remove each package, e.g., expat 1.98, and then pkg_add to get the newer (2.0) version. And then you have to be extra careful with dependencies between packages. [...] portupgrade actually does support packages as well. Use the --use-packages switch. It will look for local packages, remote packages, and if both fail, fall back to compiling the ports. Cheers Benjamin pgpWuRQ0cUDNJ.pgp Description: PGP signature
Re: About FreeBSD on Celeron D
On Saturday 20 May 2006 05:38, Robe wrote: Does any body know if the distribution of FreeBSD for IA-64 run in a Celeron D microprocessor? It will not. FreeBSD/ia64 is for Itanium and Itanium 2 systems only. However, FreeBSD/i386 will run on your Celeron D just fine. Cheers Benjamin pgpr0cblT41lp.pgp Description: PGP signature
Re: kmail on FreeBSD 6.1
Hello Andreas, On Saturday 20 May 2006 18:46, none none wrote: hi i am new in FreeBSD and i have encounterted a problem with kmail. I had set it up and it was working fine until i tried to portupgrade -a. Some pkgs failed during portupgrade and since then i am unable to run kmail. the message i receive when i type kmail on the xterminal is: /libexec/ld-elf.so.1: Shared object libgpg-error.so.1 not found, required by kmail run portupgrade -fr libgpg-error That will recompile anything that depends on libgpg-error (and libgpg-error as well). It'll take a while. Things should work again afterwards. Cheers Benjamin pgpMrODLI3Hk9.pgp Description: PGP signature
Re: Quick Question
On Sunday 23 April 2006 12:52, Joey F. wrote: I went to the downloads page but was not sure what I am supposed to download. as far as alpha, amd64 etc:/ If you could get back to me ASAP it would be greatly appreciated. If it's a standard Windows-capable computer, i386 will be what you need. Cheers Benjamin pgpUUBy5plSIa.pgp Description: PGP signature
Re: ssh to Freebsd 6.1-UPDATE
On Monday 17 April 2006 00:46, Marwan Sultan wrote: Sorry, But forgot to say that this problem happens when there is no Internet connection only! But when internet sharing presents on my XP all works fine. Thank you and sorry again. Hello, I just fresh installed FreeBSD 6.0R, The box connected to a hub and 1 more computer XP connected to same HUB, on my home LAN, both can ping/replay each other, both NIC interfaces are up. XP is the internet gateway. 192.168.0.1 and BSD is 192.168.0.2 The problem is when i Open my SecureCRT in XP and try to SSH (using SSH2) to FreeBSD it never goeson, and on /var/messages always says its timedout. during installation I choose to run SSH, also after the fresh install i checked /etc/inetd.conf and i removed the # from the SSH line, then restarted the inetd.conf, but also the same! Setting UseDNS no in the FreeBSD machine's /etc/ssh/sshd_config should solve the problem. Cheers Benjamin pgp2vHAAuzZnP.pgp Description: PGP signature
Re: freeBSD user
On Saturday 15 April 2006 12:08, astalus razvan wrote: Hy.Sorry if I disturb you.My name is Marius ,and i am a FreeBSD user.I love this OS.A few days ago I've installed freeBSD on an Pentium 2 machine at 233 Mhz,with a Realtek RTL\8019 network card.I've configured the network card but there is a problem.I can ''ping'' myself,but I can't ''ping'' anyone on the LAN.I can't see computers on LAN,but when i scan myself from another computer with 'LANguard' i can see my IP, my MAC,my open ports.Note that ''ifconfig'' command says that everything is OK , LAN uses DHCP and many computers on LAN uses Windows OS. First, here's the relevant section in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html Now, for network connectivity to work properly, you need three things: The interface must have an IP assigned to it, you need routing information (usually that means that you need to set a default route yourself, routing for your subnet is configured automatically when you set an IP), and last you'll probably want to have a DNS server set. If you are using DHCP, you need this entry in /etc/rc.conf: ifconfig_rl0=DHCP and everything should work. If you don't have DHCP, or you wish to check the settings you got through DHCP, do this: * You can see your current IP by typing ifconfig. You can assign a new IP with ifconfig rl0 1.2.3.4. You can automatically assign an IP on startup by adding the following line to your /etc/rc.conf: ifconfig_rl0=inet 1.2.3.4 netmask 0xff00 * You can see the current default route (also referred to as default gateway) by typing netstat -rn. The line starting with default (or 0.0.0.0 on Non-FreeBSD systems) is your default route. If you don't have one, you can set one with route add default 1.2.3.4. The IP you specify there should be the IP of your firewall or router. To make this setting apply on startup, add this line to your /etc/rc.conf: defaultrouter=1.2.3.4 Again, the IP there is your router's IP. * You can see the currently set DNS server by looking at /etc/resolv.conf. You can add DNS servers my modifying that file. A correct entry looks like this: nameserver 4.2.2.4 If these settings are all correct, and you still don't have connectivity, the cause is one of the following: * Your networking card is broken. Your Realtek card is of extremely low quality, and they break frequently in unexpected ways. I know, I've had it happen to me too. * You have a firewall active on your FreeBSD system. FreeBSD ships with three different firewalls. The simplest thing is to disable them for now. PF you can disable with the pfctl -d command. IPFW you can disable with ipfw disable firewall. And last, ipf you can disable with ipf -D. * Your IP settings are simply incorrect, but you don't recognize that. If you still haven't solved the problem by now, post some more details, like the output of the ifconfig and netstat -rn commands as well as the general layout of your LAN. Hope this helps! Cheers Benjamin pgplIvodLXqgo.pgp Description: PGP signature
Re: Why are people singing there postings on this mailling list ?
On Saturday 15 April 2006 15:23, Kees Plonsz wrote: Is is so important to know that the question or answer came from that person ? I don't think so. Even if it were so, for me it is too much trouble to import every key into my key-database from a key-server. I sign emails for the same reason I sign my snail-mail letters with a pen. I like providing authenticity. Whether the recipient actually checks the signatures is not that important, important is that if the need or desire arises, he can. I don't import every key I come across either, usually only those keys for which I get signatures on a regular basis. On the other hand, those who aren't able to read singed messages are confronted with a lot of carbage tekst wich makes the posting harder to read. Most people use PGP/Mime these days. If your mail client does not support PGP, the signature will be surpressed or maybe shown as attachment. Either way, that doesn't make the mail content harder to read. And if your Mail client doesn't support Mime yet, well, that's your choice, and seeing the signature plaintext is far from the worst inconvience you'll have to put up with in that case. We don't send postings in .html for that same reason. That's different. Html text means there's no readable content at all for non-HTML mail readers. And these are quite common. I sign my emails for two other reasons. First, I'm advocating adoption of PGP by everyone. I wish to sensitize people for the facts that standard emails are neither private nor authenticated, and that you can achieve these very important things with PGP. Frankly, I find it staggering how many people send around confidential information in emails over the public internet, without thinking of the consequences. The second reason is very personal. It takes some effort on my part to sign email. I am not using any key agent, which means I enter my keyphrase every time I send an email. This makes the process of sending an email more conscious for me: I think twice whether I really want to send it. Sometimes times I've stopped myself from sending an email I would later regret (a flame, or an angry answer, something like that) at the signing stage. It means that sending an email is not as much of a fire-and-forget thing for me. I like that. Cheers Benjamin pgpXG3LWRXQln.pgp Description: PGP signature
Re: Anything to recode mp3 files in the ports?
On Saturday 15 April 2006 15:08, Mikhail Teterin wrote: I have a sizable collection of mp3 files (most of my CDs, actually) encoded at high ratio for archiving. I'd like to put some of them on a low-capacity player. Is there a utility (preferably -- a ported one), that can reencode an existing mp3 file at lower quality settings (hence smaller size), or do I have to re-rip the CDs from scratch? lame (/usr/ports/audio/lame) can downsample MP3s. Look at the --mp3input command line option. Cheers Benjamin pgpBY3Kb75S2n.pgp Description: PGP signature
Re: Linksys EG1032 support
Hello Ashley, On Wednesday 05 April 2006 17:08, Ashley Moran wrote: I've tested the 6.1-BETA4 CD and that supports the card. I forgot my desktop actually runs a very old 6-STABLE, so the Linksys card v3 support must have been added a few weeks after 6.0 was released. I'll just run the onboard ethernet until 6.1 comes out - whenever that may be Yes, the EG1032 v3 cards are pretty new. And Linksys changed the card completely without changing it's name. I've had the same issue a few months ago. If you want to run 6.0 for now, this will probably help you: http://marc.theaimsgroup.com/?l=freebsd-currentm=112851499907268w=2 Cheers Benjamin pgpoVNH3sMaWd.pgp Description: PGP signature
Re: Need some tips in reorganizing our LAN.
Hello jay, On Wednesday 29 March 2006 05:55, Mark Jayson Alvarez wrote: The MIS suggested a LAN transition project, and I was assigned to lead the team. Right now, we are only two in this very big team. :-) I'm just wondering if I will ever gonna finish this project or not. I have a lot of stuffs mixed up in my mind right now but I really don't know where to start. If you don't have it already, I'd start cleaning up the old system without changing it's structure. Remove the redudancies, eg unnecessary cascading switches, or computers that are no longer used. This will give you a clear idea of what the current layout looks like, making it easier to plan changes, and with some luck it'll also give you a hardware stockpile that you can then recycle for your new LAN. I have these in my mind right now: Connectivity 1. wired 2. wireless I see no place for a wireless network in a professional network. It's hard to secure it (it's possible, encrypted-VPN-over-WLAN works, but it's difficult and expensive to set up). Stick with a wired LAN, and there'll be one security threat less that you have to worry about. Machines being hooked into the network: 1. servers 2. workstations Make a list of the servers you have, and which user groups need them. Make a list of which logical user groups there are. Then design a network layout to match those needs. You could, for example, put each use group into its own subnet, including the servers it needs. Access between user groups could then be restricted at will*. Alternatively, put some or all servers into a dedicated subnet. This will also allow protecting them better. I realize I'm being very unspecific, but you didn't give us all that much information. 3. testbeds If there are users accessing those, treat them as servers. Otherwise, isolate them from the production network. 4. personal (laptops etc.) This is a difficult one. Personal laptops are machines you have no direct control over (you cannot control what software is installed on it), and as such they are a high risk factor when they are connected to your network. They might introduce malware into the company, or evade your file storage procedures. This is a matter of policy basically. Try to restrict personal machines as much as you can. Forbid connecting them to the LAN. If you can't do that, maybe have specialized laptop ports that are firewalled off from the rest of the network. Will use DHCP Keep in mind that a DHCP server needs to be in the same subnet it serves. Other services do not have this requirement. Will use centralized directory service Will use centralized authentication Sounds good. Personal laptops will undermine this though, another reason to try to keep them away. We have at most 150 employees... We don't have that much to spend on equipments like managed switches, powerful servers, etc. We have a lot of political issues that needs to be resolved regarding network usage policies You don't need powerful hardware to manage a network with just 150 employees. Some gigabit hardware for popular servers would be nice, but the network management will use very little CPU resources (unless of course you decide to play around with VPNs). So don't worry about that too much. All these stuffs, basically mixed up in my mind. I really have no idea where to start aside from creating a purchase request for a new PC router and a multiple port lan card, which I already did a week ago..And it has not arrived yet. :-) It sounds like you're planning to have all subnets connected through this one FreeBSD box. This is not necessary. You can put a router in between subnets, and have that one located elsewhere, where it's more convenient. It can also make perfect sense to have firewalls on these routers. If you isolate user groups that need to communicate with each other into different subnets and block traffic between them, it'll be easier to contain a worm outbreak. And oh yeah: in my opinion, the firewall, ie the outermost machine that's connected to the internet, should have 2 or 3 interfaces only, and carry data only on 2 of them. Do not give it several interfaces for the purpose of routing your LAN. It'll make creating an airtight firewall ruleset much more difficult. Instead, have one or several routers inside your LAN that handle it, that don't need to deal with malicious outside traffic too. Please help me. Feel free to be more specific about your plan or with your questions, I'm sure people here will happily comment on or answer them. I'm also sensing that you feel a bit overwhelmed. Try to keep pressure on yourself low, by having as few disruptive changes as necessary. Don't try to change your whole network over a weekend, it's too large for that. Install the new parts bit by bit, and try to do so with the rest of the old system still working, until you change it. In other words: take it slow, and plan your
Re: Not an easy install
On Saturday 25 March 2006 16:26, Kevin Kinsey wrote: Installer, yes. good system for installing programs ... some would differ. Ease of use isn't the only thing that FreeBSD ports offers, and I'm not sure that PCBSD has that figured out; obviously, that's open for discussion. Seems to me, and some others, that PCBSD's implementation of 3rd party software may get its users in the same sort of libc hell that many Linux users find themselves in someplace down the road. I tried PC-BSD a couple of weeks ago. What they seem to do is include all the necessary libs with a program, and install each program into a dedicated library. So while there is bloat, a library hell there shouldn't be. Cheers Benjamin pgptKaoLS1aOB.pgp Description: PGP signature
Re: Mail client like mulberry
On Tuesday 14 March 2006 18:15, Paul Schmehl wrote: What does this New Messages feature do? It's like Favorites, except it only displays folders that have new messages in them. I have so many folders that it's a real PITA to have to scroll through 20 that have no new messages in them just to get to 10 that do. It also needs to be SMIME/PGP aware and handle IMAP gracefully (according to the RFCs, not like MS crap.) How about KMail then. It's SMIME/PGP implementation is very good (and it renders signed content very nicely too imo) and works great with IMAP. It can be comfortably used with the keyboard only (much more so than, say, Thunderbird). It doesn't filter folders, however it has a Next Unread Folder command, which makes it directly switch to the next folder with unread messages in it. Cheers Benjamin pgppx1tXWMeTd.pgp Description: PGP signature
Re: How to know that make buildworld finished
On Monday 06 March 2006 04:25, Olivier Nicole wrote: For testing purposes, I am trying to build a quite old (read slow) machine. It happens that every time I start a buildworld, I will have to leave before the end. And next morning the shell I was using to run the buildworld will have terminated for some reason. So I cannot see if the make did finished successfully or not. Is there a way to check that make buildworld did finished successfully? I suggest using screen. You can find it in the ports as sysutils/screen. It will allow you to detach from a shell, then later reconnect to it. The shell will keep running in the meantime. It's very useful, especially if your SSH connection is unreliable. Another program that might be helpful is script(1). Cheers Benjamin pgpFo08UIUzvf.pgp Description: PGP signature
Re: Linksys EG1032 -- couldn't map ports/memory
On Saturday 18 February 2006 21:11, Brent Hostetler wrote: Hello, I am trying to get a linksys EG1032 working with freebsd 6.0. The driver appears to not be loading properly giving error that it could not map ports/memory and attach returned 6. Not sure what is wrong, or what needs to be done to fix. I've had the same issue a few months ago. This will probably help you: http://marc.theaimsgroup.com/?l=freebsd-currentm=112851499907268w=2 Cheers Benjamin pgpOnadgPnAvZ.pgp Description: PGP signature
Re: Linksys EG1032 -- couldn't map ports/memory
So from what I gather, rev=0x10 indicates the use of the realteak chipset and the 6.0 release kernel does not recognize this variant and must be patched to load the correct driver re. I have not manually done source patches and am kind of adverse to using blind patches from mailing lists. Is the only other solution to update to current? FreeBSD 6.1 will have support for these cards as well. If you don't want to wait, you can cvsup with tag=RELENG_6, which should give you FreeBSD-6.1-PRERELEASE or something like that. Cheers Benjamin PS: Please don't top post. pgpaZgKAlFLet.pgp Description: PGP signature
Re: Happy Hacking keyboard, Emacs, and meta
Kirk Strauser wrote: I have an older PS2 Happy Hacking Lite Keyboard (love it!), but I'm getting reacquainted with Emacs and one aspect of the keyboard is driving me nuts: I can't seem to get the diamond keys (like Windows keys) to send only Meta to Emacs. I use KDE on FreeBSD 6.0-BETA5 and have it set to run setxkbmap -option -option altwin:meta_win at login. If I run xev and press those keys, I see events like: [...] However, if I run Emacs and type C-h k (describe-key) and then M-a, for example, I get the error message H-M-s-a is undefined as though the keyboard is sending Hyper-Meta-shift(?)-a instead. This looks like an issue similar to one I've run into once. You'll need to customize your keyboard layout files, specifically, /usr/X11R6/lib/X11/xkb/symbols/pc. Try this patch: -PATCH START- --- pc.orig Thu Aug 18 20:18:20 2005 +++ pc Sat Aug 27 13:03:06 2005 @@ -180,11 +180,12 @@ key META { [ NoSymbol, Meta_L ] }; modifier_map Mod1 { META }; -key SUPR { [ NoSymbol, Super_L ] }; -modifier_map Mod4 { SUPR }; +//key SUPR { [ NoSymbol, Super_L ] }; +//modifier_map Mod4 { SUPR }; +modifier_map Mod4 { LWIN, RWIN }; -key HYPR { [ NoSymbol, Hyper_L ] }; -modifier_map Mod4 { HYPR }; +//key HYPR { [ NoSymbol, Hyper_L ] }; +//modifier_map Mod4 { HYPR }; }; // definition for the PC-AT type 101 key keyboard -PATCH END- If that doesn't work, start playing around with the keyboard definition files. The system's not too hard to understand: numeric keycodes are assigned symbols in /usr/X11R6/lib/X11/xkb/keycodes, and those symbols are then assigned Keysyms in /usr/X11R6/lib/X11/xkb/symbols. Hope this helps. Cheers Benjamin signature.asc Description: OpenPGP digital signature
device numbering / glabel
Hello, I've run into a little problem with device numbering. My boot device is a SATA RAID5 array, which normally shows up at /dev/da0. Now I've connected an external USB HD, which showed up at /dev/da1. So far so good. The next time I booted, I was surprised to see the USB disk now having /dev/da0, and the RAID array having /dev/da1. The machine dropped me into single user mode because /etc/fstab was now wrong. Now, it's clearly not a good thing to have one's boot device name change depending on whether an USB HD is connected or not. I figured I could use glabel(8) to set a label, and then use that. Setting the label for both RAID array and USB disk worked. For the RAID array, dmesg does say: GEOM_LABEL: Label for provider da0 is label/raid5. However, the label doesn't show up in /dev/label, there's only the label for the USB disk. Any idea how I can solve this? Connecting the USB disk after booting is not an option, since this system's supposed to be headless, and I'd like to be able to remote reboot it. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: How often cvsup the ports?
Mikael Backman wrote: Hi. I use Portupgrade to install apps every now and then. How often should I cvsup the ports? As often as you like/need. I usually do it manually every 1-3 days. Cvsup is quite efficient, so you shouldn't have to worry about overloading the cvsup servers if you do it frequently. On the other hand, cvsupping every 6 hours when you only check the results once a day is overkill. You can also track changes to the ports tree via http://www.freshports.org and cvsup when you see an interesting change there. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: How to properly mount a DVD-R/W drive and how to use it from the command line?
Olaf Greve wrote: [...] Now, this is where the issue lies. When putting a CD-ROM in the drive, and trying to access it through the /cdrom mountpoint I get an empty directory listing (not correct) and when manually trying to do the following: mount /dev/acd0 /cdrom I get the error (on all CD-ROMs): mount: /dev/acd0 on /cdrom: incorrect super block Now, the entry in /etc/fstab for this device is set to: /dev/acd0 /cdromcd9660ro,noauto00 Which is fine for a CD-ROM drive. To mount both CDs and DVDs use either: mount_cd9660 /dev/acd0 /cdrom (The system must know what kind of filesystem you want to mount. It does not figure it out on its own like Linux does.) If you have an /etc/fstab entry for the file system you wish to mount (which you do, in this case), alternatively you can use the short version: mount /cdrom This fetches the necessary information from /etc/fstab. However: what should the proper settings be for a DVD-RW drive? Surely at least the 'ro' flag is incorrect, but is that all? No, that is correct. I don't think FreeBSD supports packet writing. In other words: If you wish to (re)write a DVD, you need to use a proper burning program (eg the somewhat misnamed growisofs), you can't just copy files to it by mounting it. Also: are there other locations where I should tell FBSD (and if so: how) about the presence of the new drive? FreeBSD will automatically detect any drives. Under FreeBSD 4.x, and with exotic configurations, it was sometimes necessary to manually create devices nodes. Finally: I do not intent to run X on the machine, as it'll be a webserver only (well, incl. DB stuff etc.), and the drive is intended for being used to make remote back-ups on DVD-RW (yes: someone will physically swap the DVDs when necessary ;) ). What I'd like to know is what the easiest/best ways are to do so from the command-line. Does anyone have some scripts for this? Or perhaps some pointers to a good (preferrably free) program or tutorial? Use some program to produce an iso image of the files you want to burn (check the cdrtools port), then use growisofs to burn that iso. Cheers Benjamin PS: Please don't cross-post to several lists at once. signature.asc Description: OpenPGP digital signature
Re: VPN server ?
Frank Bonnet wrote: I need some infos on FreeBSD baed VPN server links/experiences welcome I'm using OpenVPN (http://www.openvpn.org), and I'm very happy with it. It's simple to set up (*much* simpler than IPSEC), and it has so far been reliable for me. Since it uses SSL for encryption, it is easy to find hardware encryption acceleration; eg newer Via Epia systems have some crypto hardware built into the CPU which is supported by FreeBSD and delivers superb performance at little cost: those boards are cheap, and they use very little power. For even smaller VPN gateways, A soekris box (http://www.soekris.com) with a vpn acceleration add-on card ought to work fine as well. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: SoundBlaster Audigy Question
Sean Murphy wrote: I have an onboard soundcard for my FreeBSD box and I was thinking of getting the new Audigy card. Does the FreeBSD drivers for the Audigy take advantage of surround sound, EAX, digital connections, or number of channels? Or does the soundcard operate at a more basic level ie. stereo sound no hardware acceleration etc. It'll be supported in stereo mode only. There is an alternative driver called emu10kx which supports the other channels and digital outs. I'm not aware of any FreeBSD software that'd know how to make use of things like EAX, so not having that supported by the driver won't be a big loss :) Is there any reason to have such a high end soundcard in a FreeBSD system? Feature-wise, no. The audigy does give you better sound quality (eg, less noise) than cheapo cards though. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: FreeBSD 6.0 Features
Ansar Mohammed wrote: Where can we find a list of the features of FreeBSD 6.0? ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.0-BETA5/RELNOTES.HTM signature.asc Description: OpenPGP digital signature
Re: Illegal access attempt - FreeBSD 5.4 Release - please advise
I'm seeing those as well. The connection attempts are harmless, but annoying, since they fill up the logs. I decided to solve the problem by restricting the IP range that can access my sshd to the class-A blocks that are most commonly used in my country. Maybe it's not a truly elegant solution, but it's simple, and it works. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: Asking for help to evaluate FReeBSD for our Project
I was wondering if we can visit your orginaztion and get some training in your system and also to get your permission to use FreeBSD. There is no company behind FreeBSD. FreeBSD is written and maintained by a large team of individuals from all over the world. There are no headquarters to visit, these mailing lists probably form the core of most communication. There are however conventions every so often in different places where you can meet FreeBSD developers and users. For learning how to use FreeBSD, there's excellent documentation available: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html If you need consulting, maybe one of these companies can help: http://www.freebsd.org/commercial/consult_bycat.html Also realize that FreeBSD's license allows you to do anything you like with it (except claim you wrote it). You may use it for your project. You may change it, use it in any way you like, or even sell it. You do not need to ask anyone's permission. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: Encrypted filesystem cgd
It's GBDE, not GEOM. GEOM is the system of abstracting disk access, and GBDE is a GEOM class (as is GELI). Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: Gnome install in FreeBSD?
But when my eyes turns to Gnome, I am really scared by its components and dependencies. At this point, I am willing to install it from ports. However, there is a problem: all my previous softwares were installed manually, could ports check it out to avoid install some dependencies (like GTK+) twice? Yes and no. The ports checks their dependencies by looking for files installed by other ports. If you installed all your software in the same place that the ports would have installed them (ie, /usr/local for most, /usr/X11R6 for some), the gnome ports will not rebuild that software. Of course, it'll just record that dependency port as installed even though it isn't, which might give you problems later on. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: Jails - nice tcsh promt: set promt = '[EMAIL PROTECTED]:%~%#'
When I try and log into the jail via ssh I get to the login prompt, type my info and once I press enter I get some weird error nice tcsh promt: set promt = '[EMAIL PROTECTED]:%~%#'. I realize tcsh is a shell, but why the error... Does anyone know what this is, and how I can fix it? I think this isn't an error, but fortune(6) being called by one of your login scripts. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: telnet/sshd limited by user?
Is it possible to set things so that 'telnet' is allowed only to one specific user, while everyone else needs sshd? ie: Obviously, nologin can be used as a shell to not permit any logins (but makes 'su' break too), but I'd like to allow telnet for one specific user only and keep everyone else on sshd. Yes, by playing with PAM. You can change telnetd's PAM configuration (/etc/pam.d/telnetd) to include a group check: authrequisite pam_group.sono_warn group=telnetusers Then create a group telnetusers, and make your telnet user a member of it. Haven't tested it myself, hope it works. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: perl stdin
Wouter van Rooij wrote: \ Hello, At the first place, sorry for my bad English. My question is: How can you, when you're writing a perl program, make a input (stdin) hidden, so that when someone is typing an input in the following program is hidden: #!/usr/bin/perl print Your name:; $name = STDIN I would like to get the input like this: # stty plays with the terminal characteristics. # After disabling echo, anything the user types will no # longer show up on screen. # Disabling icanon disables buffering. If buffering is # enabled, you'll get stdin strings only after the user # presses enter. system stty -echo -icanon; # use sysread() and syswrite() for unbuffered read/write while (sysread STDIN, $a, 1) { if (ord($a) 32) { last; } $b .= $a; syswrite STDOUT, *, 1; # print asterisk } print \nyou said: $b\n; # Return terminal back to standard mode system stty echo icanon; signature.asc Description: OpenPGP digital signature
Re: Using a hard drive without partitions
Nikolas Britton wrote: Correct about DD... This array will NEVER be used with another OS and It will NEVER be booted from The disk array will never show it's self in DOS because it needs special drivers. In FreeBSD I want it to show up as one big disk and just mount it as /data or something to that effect. Omitting slices (ie, using DD) will work just fine then (the drawbacks that it does have don't apply to you). It will keep working in the future. Whether you want to use it or not comes down to personal preference really. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: what to do? amd64 - i386
dick hoogendijk wrote: Personally I think it is wiser to wait for fbsd-6.x to make the transfer and use my (old) FreeBSD-5.4-i386 version on my new machine. Yeah, that's a good idea. 6.0-RELEASE is currently scheduled for August 15. Or you could install 6.0-BETA1 now. It runs pretty well here, and if you do experience glitches, there's your chance to have them fixed in -RELEASE. But maybe I'm wrong about this assumption. FreeBSD will be my main system. I will use a lot of ports and don't mind reinstalling, but it should be worthwile. I know the OS itself will be faster, but how about ports. Is there a way to find out which ports will or will not build? Yes. Ports that are known not to build on certain architectures have an ONLY_FOR_ARCH flag set. Eg: cd /usr/ports/www/opera; make -V ONLY_FOR_ARCH will tell you that opera only works on i386. I noticed though that a lot of ports that are marked i386 actually work on amd64, sometimes right away, sometimes with a little bit of hacking. Using the i386 version gives me no hassle at all I guess, but.. (??) ...but programs like oggenc are 50% faster in amd64 mode ;) There are a few things that will not work at all on amd64 right now, however: OpenOffice.org, proprietary media codecs, hardware OpenGL acceleration... Personally, I have two installations of FreeBSD, both i386 and amd64. They share /home. i386 is my production version, and the amd64 installation is for playing around (or when the added speed comes in handy). Why not try that arrangement. That way you can periodically check up on FreeBSD/amd64's progress and decide yourself when you want to switch. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: what to do? amd64 - i386
cd /usr/ports/www/opera; make -V ONLY_FOR_ARCH Just tried this, but got no response. Maybe it works now. Oops. Forget the S there at the end. It's ONLY_FOR_ARCHS . There are a few things that will not work at all on amd64 right now, however: OpenOffice.org, proprietary media codecs, hardware OpenGL acceleration... Any ideas about _WHAT_ does not work? Do you have examples? If I can't live without them, then.. ;-)) OpenOffice.org 1.1.* depends on gcc 3.2 for building which has no support for amd64. Proprietary media codecs work on FreeBSD/i386 because there's some hacks to just run the 32 bit code. If you can find 64bit versions of those codecs, maybe you can get them working... . nVidia Hardware OpenGL does not work because nVidia has only released a driver for FreeBSD/i386. Cheers Benjamin pgpXnM9gNfJyj.pgp Description: PGP signature
Re: delete partition from MO
then , the MO capacity is 2.6G. But the real mounted capacity is 1.2G. [...] What's wrong about to delete original partition and the capacity ? Nothing, works as advertised. It's a bad habit of manufacturers of backup hardware to advertise twice the capacity that their hardware actually has, because they figure that users will be able to compress their data by 50%. Your dmesg confirms this: da1: 1243MB (1273011 1024 byte sectors: 255H 63S/T 79C) Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: Grub not working
Valerio daelli wrote: I am trying to install grub as a boot loader on my disk. I installed it from ports. When I try to install it on the MBR I get the error [...] Error 29: Disk write error Two guesses: - You can't write to a disks MBR while it's being used. I've seen this myself, but I'm not exactly why this is, or how it can be circumvented (other than booting from another device). - You have MBR protection (Virus Protection) in your BIOS enabled. Cheers Benjamin signature.asc Description: OpenPGP digital signature
Re: need some advice
dick hoogendijk wrote: Is there much difference between the athlon3000/3400 ?? Will the intel platform have (dis)advantages ? Well, the 3400+ will be slightly faster when it comes to number crunching. They'll be up to par to the Intel chip, but the Intel system will cost more. If price is important, why not go for a Sempron 3100+ using the Palermo core? Granted, it's a bit slower than the Athlon64 3000+, but it does have an advantage: Under load, it outputs 62W of heat instead of 89W like the 130nm Athlon64 cores. And of course it only costs half of what the Athlon64s cost. Price is important. I.e. buying the athlon3000 gives me the opportunity to buy something else, BUT if the speed of the 3400+ is much better, I can buy that other stuff later.. if you see what I mean. I just want a machine that last a litthle longer... You'll have to figure out the sweet spot for yourself really... there are benchmarks available on the web. I.e. the intel MB has a PCIe grahics slot. How important is that (or not). I will buy a Geforce-6600GT videocard (offer most for less money..) At the moment, Gaming GFX cards are being released for both PCIe and AGP, so AGP means no loss yet. By the time you'll get a new GFX card, you'll probably want to upgrade your CPU as well anyway, which means upgrading the mainboard... signature.asc Description: OpenPGP digital signature
Problems with make -j
Hello, As a pet project I've started to change /etc/rc so it uses make(1) to execute the scripts in /etc/rc.d instead of executing them one after the other like the standard /etc/rc does. The goal of the project is to speed up boot time by executing rc.d scripts in parallel. Now, if I don't specify a -j parameter this works just fine. I've written a script that generates a Makefile with all the rc.d dependencies in it, and using that the system boots just fine. As soon as I add a -j parameter to make, even -j 1, things break though. Scripts (eg, rc.subr) are being spewed to the screen several times, and execution hangs at /etc/rc.d/adjkerntz (I think). I can pipe all this to a log file with make.log 21. By the time make gets to adjkerntz and I ctrl-c it, the logfile is slightly above 3MB. Can anyone tell me why make behaves like this? If I had to guess I'd say something's happening to the file descriptors, or something that make needs for -j to work has not been set up. Btw, I have set up a memory disk in /etc/tmp that make can use for -j (and I've patched make to use that patch). Here's what I use in /etc/rc now: = SNIPPET START = RC_MAKE=1 if [ -z $RC_MAKE ]; then skip=-s nostart [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] \ skip=$skip -s nojail files=`rcorder ${skip} /etc/rc.d/* 2/dev/null` for _rc_elem in ${files}; do run_rc_script ${_rc_elem} ${_boot} done else skip=-DSKIP -DNOSTART [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] \ skip=$skip -DNOJAIL /sbin/mdmfs -M -S -o sync -s 5m md0 /etc/tmp /bin/rc_make -i -f /etc/Makefile ${skip} PARAM=${_boot} /sbin/umount /dev/md0 /sbin/mdconfig -d -u md0 fi = SNIPPET END = Here's two example targets from the /etc/Makefile: = SNIPPET START = abi! LOGIN archdep .ifdef !KEEP || NOJAIL .ifdef !SKIP || (!NOJAIL) . /etc/rc.subr run_rc_script /etc/rc.d/abi ${PARAM} .endif .endif accounting! mountcritremote .ifdef !KEEP || NOJAIL .ifdef !SKIP || (!NOJAIL) . /etc/rc.subr run_rc_script /etc/rc.d/accounting ${PARAM} .endif .endif = SNIPPET END = This currently works. As soon as I add -j 1 or -j 2 to the rc_make call above, I get the behaviour described above. Note that rc_make is standard make(1) except that TMPPAT has been changed from /tmp to /etc/tmp. Cheers Benjamin pgpd3EC3WVDzk.pgp Description: PGP signature
Resource temporarily unavailable crash in vi
Hello, I'm lately experiencing the Resource temporarily unavailable crash in vi a lot. I've had the same thing happen in other programs (eg, cvs, while it was waiting for input), so it's not something that's specific to vi. Someone even had it happen with cat: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2003-08/0497.html I went about investigating this occurance. I added an abort() to strerror() so I would get a coredump before the error message is printed. The results are a bit surprising: #0 0x2814406f in kill () from /lib/libc.so.5 #1 0x28138da8 in raise () from /lib/libc.so.5 #2 0x281ae493 in abort () from /lib/libc.so.5 #3 0x28193be3 in strerror () from /lib/libc.so.5 #4 0x08053e15 in free () #5 0x0804bcc0 in free () #6 0x0804b929 in free () #7 0x08050b85 in free () #8 0x0807e331 in free () #9 0x0807d12e in free () #10 0x0807cb8c in free () #11 0x08053307 in free () #12 0x0804b063 in free () #13 0x0804a3b9 in free () I then found these two postings that seem to point in the correct direction: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2003-08/0094.html http://monkey.org/openbsd/archive/misc/0310/msg01101.html This vi thing has happened most often while i working in KDE's Konsole. I'd open a new window, switch back to the old one, and vi would have crashed. It also happens when I'm starting vi in a Konsole. Now, I think the problem (or one of the programs that make it apparent) is Konsole. However, before filing a bug report, I'd like to get some more information. If you've ever encountered this bug, what were the circumstances? If you've researched it some, what did you find out? Greetings Benjamin Lutz pgpC6E6COJItW.pgp Description: PGP signature
Re: Top posting
On Mon, 22 Mar 2004 15:40:25 +1030 Greg 'groggy' Lehey [EMAIL PROTECTED] wrote: Heh. That's human nature. To quote: What is actually happening, I am afraid, is that we all tell each other and ourselves that software engineering techniques should be improved considerably, because there is a crisis. But there are a few boundary conditions which apparently have to be satisfied: 1. We may not change our thinking habits. 2. We may not change our programming tools. 3. We may not change our hardware. 4. We may not change our tasks. 5. We may not change the organizational set-up in which the work has to be done. Now under these five immutable boundary conditions, we have to try to improve matters. This is utterly ridiculous. Edsger W. Dijkstra, on receiving the ACM Turing Award in 1972 Great quote. I forwarded it to a friend, his reply cracked me up as well (translated from german): Oh, he said as early as 1972? That the crisis still isn't over, that we are aware of. It's just that at the moment, things are looking like this: 1. We are forced to change our thinking habits (Patterns, UML, ...) 2. We are forced to replace all our tools (.net c#) 3. We need new hardware (64bit anyone?) 4. We need more flexibility (low level programmers are supposed to be good pixel artists) 5. We desperately need a new company structure. Greetings Benjamin pgp0.pgp Description: PGP signature
Re: True IMAP Trash Folder
I use mutt with an imap server. I've tied macros to specific keys that save messages to INBOX.trash, which effectively deletes them from the current folder. I go to the .trash folder and use 'D' to clean it out on a regular basis, sometimes finding one or two that I didn't want to delete. It requires folder hooks to change the underlying behavior for the 'd', '^d' and 'D' keys based on the current folder, but it works like a charm. The mutt site documents how to do most of this, but if you like, I can dig up my macros for you. HTH Lou Lou, I think I got it covered. My new solution seems to work. Thanks though! -Matt Maybe I can offer another way to do it. I use courier-imap as imap server. It offers a configuration variable called IMAP_MOVE_EXPUNGE_TO_TRASH. As the name implies, mails that are deleted from non-trash folders (deleting = deleting + expunging) are moved to the trash folder. In combination with IMAP_EMPTYTRASH=Trash:7, which removes mails from the trash folder after 7 days, this solution is comfortable, as long as the mail client has support for deleting/expunging in one step (I use sylpheed with X, which does this well, and mutt does it well enough too. I have not used evolution). Basically I don't use the classical IMAP way of deleting mails (just marking them with the deleted flag) at all. - Benjamin pgp0.pgp Description: PGP signature
where is late (scheduler testing tool)
I've been reading Jeff Roberson's ULE paper - very interesting. He uses a tool called late for testing. Where can I find this tool? He says that it should be available in FreeBSDs source repository, but I'm unable to find it. Can anyone point me towards it? Thanks. - Benjamin pgp0.pgp Description: PGP signature
memory categories
I'm trying to understand what FreeBSD uses its memory for. Unfortunately, I've not been able to find documentation that answers all my questions, so I'm hoping someone on this list can answer them. Let's start with top(1)'s memory categories: Free: Not used for any purpose. (vm.stats.vm.v_free_count) Active: Used by userland programs. (vm.stats.vm.v_active_count) Cache: Well, this obviously caches something... but what? Filesystem? (vm.stats.vm.v_cache_count) Inactive: This seems to be the biggest chunk of memory on my system. What exactly is the meaning of this? Someone explained it as memory that a program has grabbed that isn't currently being used. It can be swapped to disk if RAM is needed by other programs.. How does the system know that this memory is not being used? Is this the difference between the RES and SIZE colums in top(1)'s output? (vm.stats.vm.v_inactive_count) Wired: I've only been able to figure out that this is memory that's being actively used and that cannot be relocated in any way. Could someone explain this in a bit more detail? What exactly is the difference between active and wired memory? (vm.stats.vm.v_wired_count) Buf: I'm puzzled... If I add up Free, Active, Cache, Inactive, Wired and Buf, I get more memory than I have physically installed. I could not find a sysctl that represents this value. Also, .v_free_count, v_active_count, v_cache_count, v_inactive_count and v_wired_count add up to vm.stats.vm.v_page_count... where does this Buf come from? And some more questions: On my system, these sysctls have these values: hw.physmem = 1064734720 = 1015.410MB hw.usermem: 947351552 = 903.465MB hw.availpages = 259945 vm.stats.vm.v_page_count: 255299 vm.stats.vm.v_page_size: 4096 hw.availpages * .v_page_size = 1064734720 = 1015.410MB .v_page_count * .v_page_size = 1045704704 = 997.262MB I have 1024MB of RAM installed. Why is hw.physmem inaccurate? And why is .v_page_count * .v_page_size less than hw.physmem? Is the difference between hw.physmem and hw.usermem used for the kernel? If yes, 112MB seems to be a huge amount? Phew... quite a few questions... Let's see what answers you can give me! Benjamin pgp0.pgp Description: PGP signature
Re: FreeBSD Version...
I am wondering why there was 4.9 release if the newest one it 5.1. Whick is better I am currently on 5.1. It's a little confusing. Well there be a 4.10 and 5.2 release at the same time? 4.9 is the stable production release, while 5.1 (and in a few weeks, 5.2) is the development release that will eventually become the stable release. FreeBSD 4 will be developed (well, maintained, since few new features are added to it at this time, mostly driver updates from what I've seen) until the development team thinks FreeBSD 5 at least as fast and rock solid as FreeBSD 4. This is planned to happen when FreeBSD 5.3 released; at that point, active development for FreeBSD 4 will halt. FreeBSD 5.1 is a development release. While it runs OK for most people, some architectural things are going to change with 5.2 and 5.3, and you're advised not to rely on it with your critical stuff, but use 4.9 instead. Hope this clears things up. Greetings Benjamin pgp0.pgp Description: PGP signature
lockup in FreeBSD 5.1
Hi, I have a friend for whom I installed FreeBSD 5.1. Recently, the box has started acting up... programs like dhclient would freeze, driving the load up to above 3. If killed, some other program would freeze minutes later. I've been puzzled by this behaviour, since I run 5.1 on two other machines without problems, and I haven't heard anything like this from others running 5.1. Maybe someone has an insight? The interesting thing is - today I was watching the machine with top, while she used it normaly (me = maxlor, her = theres). Below you find what top displayed before the machine went offline (I assume she powercycled it). The interesting thing is that multiple processes seem to be locked in Giant... could this be a driver issue? On the hardware side, we have an old K6 machine, with some NIC that uses the vr driver; the other stuff I can't remember right now. Anyone have an idea what I can do about this? Greetings Benjamin top output: last pid: 716; load averages: 3.63, 0.98, 0.59 up 0+01:09:30 23:33:30 29 processes: 2 running, 21 sleeping, 6 lock CPU states: 0.1% user, 0.0% nice, 98.5% system, 1.2% interrupt, 0.1% idle Mem: 31M Active, 6600K Inact, 24M Wired, 6064K Cache, 18M Buf, 14M Free Swap: 155M Total, 14M Used, 140M Free, 9% Inuse, 12K In PID USERNAME PRI NICE SIZERES STATETIME WCPUCPU COMMAND 406 root -160 3284K 712K spread 2:16 25.83% 25.83% sshd 602 theres960 9600K 4660K *Giant 5:09 7.81% 7.81% xmms 505 theres960 25768K 14460K *Giant 4:15 1.12% 1.12% XFree86 524 theres960 13160K 5784K *Giant 0:38 0.54% 0.54% xchat 565 maxlor960 2144K 872K RUN 0:07 0.00% 0.00% top 451 root 960 1152K 472K *Giant 0:07 0.00% 0.00% moused 510 theres960 6524K 2408K select 0:04 0.00% 0.00% fluxbox 548 maxlor960 6012K 904K select 0:01 0.00% 0.00% sshd 532 root 40 6028K 900K sbwait 0:00 0.00% 0.00% sshd 268 root 960 1232K 580K *Giant 0:00 0.00% 0.00% syslogd 216 root 960 1128K 348K *Giant 0:00 0.00% 0.00% dhclient 424 root 80 1260K 640K nanslp 0:00 0.00% 0.00% cron 549 maxlor200 1412K 196K pause0:00 0.00% 0.00% csh 490 root 80 1540K 524K wait 0:00 0.00% 0.00% su 491 theres200 1256K12K pause0:00 0.00% 0.00% csh 504 theres 80 2460K 844K wait 0:00 0.00% 0.00% xinit 492 theres 80 864K12K wait 0:00 0.00% 0.00% sh 358 root 960 1160K 444K RUN 0:00 0.00% 0.00% usbd 483 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 488 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 486 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 482 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 485 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 487 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 484 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 489 root 50 1200K 544K ttyin0:00 0.00% 0.00% getty 601 theres 80 860K12K wait 0:00 0.00% 0.00% sh 523 theres 80 860K32K wait 0:00 0.00% 0.00% sh 142 root 200 224K12K pause0:00 0.00% 0.00% adjkerntz ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: modern (usb) webcam support?
My searches for information on webcam have not found much, except for some sites which say FreeBSD does not support USB web cameras. My Creative Labs USB Webcam (older Model, Webcam Plus or something it was called) runs ok with /usr/ports/graphics/vid, which supports Webcams with the OV511 and OV511+ chipsets. I don't know for sure if the newer webcams still have this chipset, but I guess they do. Oh, you'll need to code some glue to make vid be useful; all it does is grab an image and write it to stdout, no configurables. Greetings Benjamin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
dc NIC: mac address gets reset (5.0-REL)
I just installed FreeBSD 5.0-RELEASE on a machine that was running 4.7-RELEASE-p3 before. I've got a problem with my network card: After rebooting the system, it's MAC address is reset to C0:00:C0:00:C0:00. The card works fine otherwise (apart from some dc: failed to force tx and rx to idle state messages that are, as far as the mailing lists tell me, uncritical). This of course makes the DHCP server give me another than my standard IP. Also, if I install FreeBSD 5.0 on another machine in my LAN, and it shows the same behaviour, i'll run into problems. I can manually change the MAC address back to its old value, then restart dhclient, and it works. However, I don't want to have to do that after every reboot... Here's the relevant lines from dmesg: - PASTE START - dc0: Davicom DM9102A 10/100BaseTX port 0xd000-0xd0ff mem 0xef00-0xefff irq 11 at device 11.0 on pci0 dc0: Ethernet address: c0:00:c0:00:c0:00 miibus0: MII bus on dc0 dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state - PASTE END - Any ideas? Greetings Benjamin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message