Re: SOLVED: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
William Bulley w...@umich.edu wrote: See below for details of solution. [...] This problem is known (and fixed) in newer versions of xorg-server. See this URL for details of the problem. http://cgit.freedesktop.org/xorg/xserver/commit/?id=1884db430a5680e37e94726dff46686e2218d525 I have also attached the changes I made to the dit/events.c file. Thank you very much for sharing the solution! I've been having similar problems with olvwm recently (apart from the fact that it doesn't work on amd64, but that's a different story). It keeps forgetting grabs every now and then, forcing me to restart the session. The description at the above URL sounds like it should be applicable to my problem, too. I'm going to rebuild my X server with that patch ASAP. I wish all of the recent xorg problems would be that easy to fix (such as Ctrl-Alt-Fx not working anymore). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Above all, they contribute to the genetic diversity in the operating system pool. Which is a good thing. -- Ruben van Staveren, on the question which BSD OS is the best one. ___ 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 to connect a jail to the web ?
David Allen the.real.david.al...@gmail.com wrote: I've read comments in the past about setting up jails using local loopback addresses, but I'm wondering if you wouldn't mind elaborating on what the actual pf rules would look like. Say you have 3 jails and more than one public IP address: ns127.0.0.2 public_ip_1 mail 127.0.0.3 public_ip_2 www 127.0.0.4 public_ip_3 You want to pass port 25 traffic to/from the 'mail' jail. But you also need that jail to use the correct public_ip address. Is that possible without using, for example, pf's binat? Just for completeness, this is a little how-to that describes how you do it with IPFW. You do not have to configure NAT. One single fwd rule is sufficient. The following example works on FreeBSD 8.1. In this example, I'll use port 42, the jail has address 127.0.0.2 on lo0, and nc (netcat) is used in place of a real daemon. The real (external) address of the host machine is 10.5.5.5. HOST# is the prompt of the server machine that hosts the jail, JAIL# is the prompt within that host machine's jail, and CLIENT$ is the prompt of a separate physical machine on the same network which is used for testing purposes. First add an alias IP to the lo0 (localnet) interface. HOST# ifconfig lo0 inet 127.0.0.2/32 alias In order to make that permament, you have to add an alias line to /etc/rc.conf, of course: ifconfig_lo0_alias0=inet 127.0.0.2/32 Check the addresses: HOST# ifconfig lo0 | grep -w inet inet 127.0.0.1 netmask 0xff00 inet 127.0.0.2 netmask 0x Install the IPFW fwd rule: HOST# ipfw add 1 fwd 127.0.0.2 tcp from any to 10.5.5.5 42 1 fwd 127.0.0.2 tcp from any to 10.5.5.5 dst-port 42 To make that permanent, add these lines to /etc/rc.conf: firewall_enable=YES firewall_type=/etc/ipfw.conf And create a file /etc/ipfw.conf containing these lines: -f flush add fwd 127.0.0.2 tcp from any to 10.5.5.5 42 Ok, now start the jail. For the sake of this example, we simply re-use the host's installed base, i.e. the jail's root path is /. For a real jail you would use the jail's root directory, of course. HOST# jail / testjail 127.0.0.2 /bin/sh -E Finally start a netcat (nc) process in the jail. In a real jail, this would be an apache process on port 80, a mail transfer agent on port 25, whatever. JAIL# nc -ln 42 Now the netcat process is listening on port 42 inside the jail on the localnet address 127.0.0.2. You can verify that with sockstat(1) on the host: HOST# sockstat | grep -w 42 root nc 1953 3 tcp4 127.0.0.2:42 *:* You can now connect to that service from a different system on the network, using the external IP address of the host. The IPFW fwd rule reroutes the packets destined for port 42 to the jail's localnet address. CLIENT$ echo Hello world | nc 10.5.5.5 42 As a result, netcat will echo the string Hello world in the jail, and the nc process will terminate. Note: In order to be able to use IPFW fwd rules, you should have these two lines in your kernel config: optionsIPFIREWALL optionsIPFIREWALL_FORWARD If you don't intend to use IPFW for anything else than fwd, you can also include the following line, so you don't have to install any additional allow rules: optionsIPFIREWALL_DEFAULT_TO_ACCEPT That's especially useful if you want to use IPFW for forwarding only, and use another software for actual packet filtering (i.e. pf or ipf). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925 ___ 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: Re : How to connect a jail to the web ?
Brice ERRANDONEA berrando...@yahoo.fr wrote: 192.168.1.38 is the private address of rl0 on my host. 93.0.168.242 is the public one. I tried both as the jail's address. With the private one, neither portsnap nor ping work at all. With the public one, I get this result : [...] FreeBSD# jexec 2 ping www.yahoo.fr ping: cannot resolve www.yahoo.fr: Host name lookup failure FreeBSD# jexec 2 ping 69.147.83.33 PING 69.147.83.33 (69.147.83.33): 56 data bytes [...] 32 packets transmitted, 0 packets received, 100.0% packet loss Please show the _complete_ output from ifconfig and netstat -rnfinet. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd PI: int f[9814],b,c=9814,g,i;long a=1e4,d,e,h; main(){for(;b=c,c-=14;i=printf(%04d,e+d/a),e=d%a) while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;} ___ 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: Re : Re : How to connect a jail to the web ?
Brice ERRANDONEA berrando...@yahoo.fr wrote: On the host, when the jail is not running : %ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX full-duplex) OK, so 192.168.1.38 is the only (non-localnet) IP address that you have. You should use that one for your jail. On the host when the jail is running : FreeBSD# jls JID IP Address Hostname Path 1 93.0.168.242MaPrison /usr/prison FreeBSD# ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:11:09:15:72:6a inet 192.168.1.38 netmask 0xff00 broadcast 192.168.1.255 inet 93.0.168.242 netmask 0x broadcast 93.0.168.242 media: Ethernet autoselect (100baseTX full-duplex) Where did you get that second IP address from? Did you just add it manually? Or is that the address that your gateway (DSL router, whatever) got assigned from your ISP? I assume that IP address is not really routed to your host, but that NAT (Network Address Translation) is used on your router. So you cannot use that address on the host. (If that's not true, please exlain the structure of your network in more detail.) So, if my assumptions are true, you must use the address 192.168.1.38 for your jail. Make sure that DNS is working inside the jail ... It should be sufficient to copy /etc/resolv.conf from the host to /usr/prison/etc/resolv.conf If it still doesn't work: Are you using any packet filter (ipfw, ipf, pf)? If so, please show the complete list of rules. Otherwise, it might help to run tcpdump(1) on the host, so you can see the actual packets that are transmitted and received. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is the only current language making COBOL look good. -- Bertrand Meyer ___ 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: Grepping a list of words
John Levine jo...@iecc.com wrote: % egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. My guess is that one large regular expression is more efficient than many small ones. But I haven't done real benchmarks to prove this. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard. -- Peter van der Linden ___ 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: X11 question
Fred Boatwright f...@blakemfg.com wrote: Where would I find startx? I assume it is part one of the ports under X11 but I don't want to install all of them to find it. It's in x11/xinit. You can use porgle to find out: http://www.secnetix.de/tools/porgle/porgle.py?w=pq=startx It has four hits, but it's not difficult to narrow it down from there. Also, is p5-Tk the same as Perl/Tk? I think so. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd (On the statement print 42 monkeys + 1 snake:) By the way, both perl and Python get this wrong. Perl gives 43 and Python gives 42 monkeys1 snake, when the answer is clearly 41 monkeys and 1 fat snake.-- Jim Fulton ___ 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: Re : How to connect a jail to the web ?
also added the line net.inet.ip.forwarding=1 to sysctl.conf (on the host). You don't need that one. It's only required when your machine should act as a router, i.e. forward packets to other hosts. Despite the sshd_enable=YES line, I can't ssh from the host to the jail. Well, I can... The first time I did it, I was asked if I wanted to add the jail to the list of known hosts. I did it. No problem there. But, immediatly after that, instead of displaying login :, the system displayed passwd :. That's normal. ssh never asks for the login. You can use the -l option if you need to specify a different user name (or put it in your ~/.ssh/config). And none of the passwords I had set with sysinstall (for the root and the common user) were accepted. Are you sure that those passwords are set *inside* the jail? You can go into the jail with jexec (or even chroot) and then set a new password. It's not that big problem for the moment but one purpose of the jail is also (I believe) to ssh into them from a distant computer without accessing to the host. That's not a good idea. ssh access should not be open to the public. It's better to log into the host first, then log into the jail from there. Some paranoid people have a special login jail. They ssh into the login jail, then log into the host or into other jails from there. The host accepts ssh only from localhost. But please forget this immediately; we don't want to make things more complicated than necessary. It was not clear after the various answers I received if I had to use a firewall or not so I tried both ways. If your just starting with jails, it's better not to use a firewall for the jail. First get the jail running. When it's running, you can think about adding firewall rules to make it more secure. A firewall is *not* required to get jails working. gateway_enable=YES router_enable=YES Remove both. You don't need either of those. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Above all, they contribute to the genetic diversity in the operating system pool. Which is a good thing. -- Ruben van Staveren, on the question which BSD OS is the best one. ___ 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 to connect a jail to the web ?
Brice ERRANDONEA berrando...@yahoo.fr wrote: Oliver Fromme wrote: sysctl security.jail.allow_raw_sockets=1 I did it but ping still doesn't work. Which IP address are you using for the jail now? If you're using 127.0.0.1, you can only ping the host's own IP addresses, because packets with a localnet IP never leave a machine. If you're using the real address (192.168.1.38) for the jail, then you should be able to ping all addresses that you can ping from the host. I just did a quick test on my machine; it has the IP address 172.20.0.2 (which is being translated with NAT on my router, but that doesn't matter): HOST# sysctl security.jail.allow_raw_sockets=1 security.jail.allow_raw_sockets: 0 - 1 HOST# jail / testjail 172.20.0.2 /bin/sh -E # ping www.google.com PING www.l.google.com (66.102.13.105): 56 data bytes 64 bytes from 66.102.13.105: icmp_seq=0 ttl=54 time=31.196 ms 64 bytes from 66.102.13.105: icmp_seq=1 ttl=54 time=25.553 ms 64 bytes from 66.102.13.105: icmp_seq=2 ttl=54 time=27.086 ms 192.168.1.38 is the host's ip so I use 127.0.0.1 for the jail. Well, localnet addresses are not routed. If you give your jail a localnet address, it won't be able to access the network outside of the host. (Unless you take measures to rewrite/translate the addresses and forward them.) That's why DNS and portsnap don't work. I suggest using the address 192.168.1.38 for the jail, at least during installation. Make sure that the file /etc/resolv.conf inside the jail is correct, so DNS will work. Copying it from the host should be sufficient. Isn't 192.168.1.38 a localnet address too ? It's a private address (RFC 1918). I assume that you've got a NAT router that translates it to a public IP address. Do you mean I should use the public ip of my computer here ? Do you have one? So far you only mentioned 192.168.1.38. I thought it was intended to be impossible to access the host from the jail. It depends on what you want to do with the jail. Jails can be used for vastly different purposes. But you're right : I'll forget that. Good. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code (taken from comp.lang.awk FAQ) ___ 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: UPS question
Ryan Coleman ryan.cole...@cwis.biz wrote: He thinks that at 500W needed it would give me about 12 minutes on a 1400VA. That W and VA numbers of the UPS are pretty much irrelevant, because they tell nothing about the capacity of the battery. Those numbers only give an upper limit on the power that the UPS can handle (i.e. you cannot connect devices totalling 800 W to a 500 W UPS, for example). In order to be able to estimate how long the UPS can power wattage, you need to know the capacity of the battery. The capacity is usually given in Ah units (Ampere hours). For example, a battery with 10 Ah capacity can deliver 10 Ampere for 1 hour, or 20 Ampere for 30 minutes, or 30 Ampere for 20 Minutes ... and so on. At a typical battery voltage of 12 V, 30 A would be 360 W. So, theoretically a 10 Ah battery would be able to hold devices that use 360 W for about 20 Minutes. In practice it will be less because no UPS has 100% efficiency. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often. ___ 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: USB pen drive not detected
Peter Ulrich Kruppa wrote: I am running FreeBSD 8.1-STABLE amd64 and have got a strange problem when I try to attach and mount my 16 GB USB pen drive. # dmesg delivers something like ugen1.2: vendor 0x058f at usbus1 umass0: vendor 0x058f Spaceloop 16GB, class 0/0, rev 2.00/1.02, addr 2 on usbus1 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: DATA PROTECT asc:6e,17 (Reserved ASC/ASCQ pair) (probe0:umass-sim0:0:0:0): AutoSense failed No /dev/da0s1 is created and of course it can not be mounted. Do these commands help? # camcontrol reset 0 (wait a few seconds for the reset to complete) # camcontrol rescan 0 Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard? -- Sid on userfriendly.org by Illiad, 2007-06-20 ___ 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: MCA error
Frank fr...@deze.org wrote: The last 3 days, I'm getting this message on my (i386 based, FreeBSD 8.1 PRERELEASE) system (frequency about 1 time per day): MCA: Bank 2, Status 0x9400417a MCA: Global Cap 0x0104, Status 0x MCA: Vendor AuthenticAMD, ID 0x680, APIC ID 0 MCA: CPU 0 COR GCACHE L2 EVICT error MCA: Address 0x5f4540 I have no clue what it means. Should I be worried? Yes. MCA means Machine Check Architecture. It reports an error in the hardware, in this case in the L2 cache of the processor. The word COR means that the error was correctable (e.g. with ECC mechanisms), so it is not fatal yet. Do you overclock that processor? Did you check that the cooling is sufficient? I.e. check the fan, remove dust etc. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Software gets slower faster than hardware gets faster. -- Niklaus Wirth ___ 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: misc/149335: shell script runs on Linux but not on freebsd
Paul Lambert eb30...@gmail.com wrote: Oliver Fromme wrote: Paul eb30...@gmail.com wrote: Thanks Oliver I can just get the i386 vmware version and should install and run. Last question is there a x86_64 bit Linux module? No, unfortunately x86_64 linux binaries are not supported. Is one I'm development? I'm afraid I don't know. I suggest you try asking in the freebsd-emulat...@freebsd.org mailing list. I was well on my way of installing VMware-Player for i386 linux on FreeBSD until I encountered these error messages. Aug 8 20:44:09 BRSINC-VM02 kernel: linux: pid 12889 (dd): ioctl fd=0, cmd=0x6d02 ('m',2) is not implemented Aug 8 20:44:09 BRSINC-VM02 kernel: linux: pid 12896 (dd): ioctl fd=0, cmd=0x6d02 ('m',2) is not implemented The install script extracted the installer and began installing the rpms. I have attached the verbose output file. At this point should this be considered a linux emulator bug and reported as such? As I said, I don't use vmware and can't help you with that. But I'm pretty sure that others are using it and might have encountered the same problems. Please take this issue to the freebsd-emulat...@freebsd.org mailing list. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I learned Java 3 years before Python. It was my language of choice. It took me two weekends with Python before I was more productive with it than with Java. -- Anthony Roberts ___ 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: misc/149335: shell script runs on Linux but not on freebsd
Paul eb30...@gmail.com wrote: Thanks Oliver I can just get the i386 vmware version and should install and run. Last question is there a x86_64 bit Linux module? No, unfortunately x86_64 linux binaries are not supported. Is one I'm development? I'm afraid I don't know. I suggest you try asking in the freebsd-emulat...@freebsd.org mailing list. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence -- Jacek Generowicz ___ 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: misc/149335: shell script runs on Linux but not on freebsd
Sorry for the late reply, I don't have much time currently. Maybe someone else from the -questions list can jump in, because I don't have much experience with vmware (I prefer qemu or virtual box). Paul Lambert eb30...@gmail.com wrote: Thanks for the reply. I am attaching the bash output from the shell script. This script implements RPMs so I am sure that I need the linux module. I had previously found a guide on how to install RPMs on FreeBSD. I have a printer that has an RPM that allows it to work on Linus. So I would think that I will need the Linux module in the future. I previously had made the stat change to the shell script and that part works. But, the bash shell is reporting an 'od error. Finally, how much performance do you lose with the linux module emulator? Not much, probably none at all. Some people even say that Linux binaries run faster on FreeBSD than they run on Linux, because they benefit from the better network code and VM system. Anyway, the linuxulator isn't really an emulator, it's rather an ABI-level compatibility layer, very similar to the i386 (32bit) compatibility layer on FreeBSD/amd64 (64bit). Do you believe I only need the emulator to get VMware installed or will it make other linux calls that are not part of FreeBSD? I'm afraid you won't be able to install vmware this way. I suggest you look at the emulator/vmware* ports in the ports collection. BRSINC-VM02# bash -vx VMware-Player-3.1.0-261024.x86_64.bundle [...] # XXX: put extraction in its own function MAGIC_NUMBER=`od -An -t u4 -N 4 -aj $MAGIC_OFFSET $file | tr -d ' '` There's a bogus line break which is causing this particular parsing error. Either join the lines, or put a backslash at the end of the first line (behind -aj). But I'm afraid this is the smallest of the problems. I suspect you won't be able to get this script to run correctly on FreeBSD, because it seems to do too many linux-specific things. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd And believe me, as a C++ programmer, I don't hesitate to question the decisions of language designers. After a decent amount of C++ exposure, Python's flaws seem ridiculously small. -- Ville Vainio ___ 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: misc/149335: shell script runs on Linux but not on freebsd
Redirected to the -questions. Paul eb30...@gmail.com wrote: What about matching the ' marks in this section? I get a command error. # XXX: put extraction in its own function MAGIC_NUMBER=`od -An -t u4 -N 4 -j $MAGIC_OFFSET $file | tr -d ' '` That command works fine for me: $ MAGIC_OFFSET=42 $ file=/etc/motd $ MAGIC_NUMBER=`od -An -t u4 -N 4 -j $MAGIC_OFFSET $file | tr -d ' '` $ echo $MAGIC_NUMBER 540684323 What's the exact error message that you get, and what are the values of the variables involved? By the way, when debugging shell scripts it is very helpful to run the shell with -vx. Then it prints the script as it is being parsed, and additionally each command is printed after expansion. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I invented Ctrl-Alt-Delete, but Bill Gates made it famous. -- David Bradley, original IBM PC design team ___ 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: Compiling kernel with gcc43 [SOLVED]
Mario Lobo l...@bsd.com.br wrote: [...] It's compiling right now. I'll post my findings and impressions on results and performance right after the next reboot. So, how is it going? Any benchmarks yet? I'm curious if the new gcc version will really make a significant difference. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn ___ 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: for perl wizards.
Gary Kline kl...@thought.org wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash), and so forth. Why does this fail to trans the hex code to an apostrophe? perl -pi.bak -e 's/\xe2\x80\x99/'/g' You need to escape the inner quote character, of course. I think sed is better suited for this task than perl. If there any another other tools, I'm interested! That hex code rather looks like UTF-8. For conversion between character encodings I recommend recode from the ports collection (ports/converters/recode). For example, to convert file.txt from UTF-8 to ISO8859-15: $ recode utf8..iso8859-15 file.txt To preserve the previous file contents, do this: $ recode utf8..iso8859-15 old.txt new.txt Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python tricks is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure wink. -- Tim Peters ___ 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 to set device permissions at startup
Aryeh M. Friedman wrote: Herbert J. Skuhra wrote: Den 9. okt. 2009 kl. 05.25 skrev Aryeh M. Friedman aryeh.fried...@gmail.com: Since certain currently unused devices are not created in /dev (specifically in my case /dev/fuse*) how do I tell what ever (I can't tell it is devfs or what) to always make /dev/fuse* (when needed) with 777 perms (the security implications are not an issue here) Have you tried devfs.rules(5)? yes and since the device doesn't exist at the mount time for devfs they are ignored Then you did something wrong, or you're confusing devfs.rules and devfs.conf. Quote from the manpage: The devfs.rules file provides an easy way to create and apply devfs(8) rules, even for devices that are not available at boot. The rules take effect whenever a new node (devide) appears, even after devfs was mounted. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered. -- Guido van Rossum ___ 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: / almost out of space just after installation
Randi Harper wrote: 1.) Look at the PR database and search for sysinstall. See all those open reports, some from 8 years ago? sysinstall needs some babying. It doesn't need babying, it needs killing. :-) Quotes from the sysinstall(8) manpage: This product is currently at the end of its life cycle and will eventually be replaced. And: This utility is a prototype which lasted several years past its expira- tion date and is greatly in need of death. Actually I hoped that 8.0 would be released with the new installer that has been under development for some time. Unfortunately it doesn't seem to be ready yet. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I suggested holding a Python Object Oriented Programming Seminar, but the acronym was unpopular. -- Joseph Strout ___ 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: / almost out of space just after installation
Randi Harper wrote: / = 1GB /var = 2GB /tmp = 2GB Depending on the size of installed RAM, /tmp could also be a memory disk by default. I do that on all of my machines. I never have /tmp physically on disk anywhere. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl ? python is more likely to pass unharmed through your spelling checker than perl. -- An unknown poster and Fredrik Lundh ___ 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 to set device permissions at startup
Roland Smith wrote: Oliver Fromme wrote: Quote from the manpage: The devfs.rules file provides an easy way to create and apply devfs(8) rules, even for devices that are not available at boot. The rules take effect whenever a new node (devide) appears, even after devfs was mounted. But one has to run '/etc/rc.d/devfs restart' for newly added rules to take effect! (or reboot the system, which is overkill). Yes, of course. I thought that was obvious. Maybe I whould add that to the manual page for devfs.rules? Agreed, that might be an appropriate clarification. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing. ___ 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: for perl wizards.
Warren Block wrote: Oliver Fromme wrote: Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash), and so forth. Why does this fail to trans the hex code to an apostrophe? perl -pi.bak -e 's/\xe2\x80\x99/'/g' You need to escape the inner quote character, of course. I think sed is better suited for this task than perl. That's twice now people have suggested sed instead of perl. Why? For many uses, perl is a better sed than sed. The regex engine is far more powerful and escapes are much simpler. Neither powerful regexes nor escapes will help in this case. A simple basic regex is more than sufficient (in fact this isn't even a regex, it's a fixed string). And the escaping is a problem of the shell, not perl or sed. And by the way, I stongly disagree that perl's escapes are much simpler. In my opinion perl has the most complex escaping and quoting I have seen in any language so far. The basic UNIX philosophy is to use the smallest or simplest tool that does the job. In this case that's clearly sed. (Not to mention the fact that perl isn't even in FreeBSD's base system, so might not be available at all.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor, and when was the last time you needed one? -- Tom Cargil, C++ Journal ___ 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: for perl wizards.
Warren Block wrote: Oliver Fromme wrote: Warren Block wrote: Oliver Fromme wrote: Gary Kline wrote: Whenever I save a wordpeocessoe file [OOo, say] into a text file, I get a slew of hex codes to indicate the char to be used. I'm looking for a perl one-liner or script to translate hex back into ', , -- [that's a dash), and so forth. Why does this fail to trans the hex code to an apostrophe? perl -pi.bak -e 's/\xe2\x80\x99/'/g' You need to escape the inner quote character, of course. I think sed is better suited for this task than perl. That's twice now people have suggested sed instead of perl. Why? For many uses, perl is a better sed than sed. The regex engine is far more powerful and escapes are much simpler. Neither powerful regexes nor escapes will help in this case. Certainly \x will not help in sed; sed doesn't have it. Right, that's an annoying flaw in sed (it doesn't even support the \0 syntax for octal values, which is more standard than \x). Normally I just type such characters literally, which is accepted fine by sed (it is 8 bit clean). However, in this particular case I really recommend to use the recode tool (ports/conversion/recode) to convert from UTF-8 to some other encoding. Much easier, and more correct. E2-80-99 (unicode 2019) isn't even a real apostrophe in UTF-8, it's a right single quotation mark. An apostrophe would be ASCII 27. Maybe the OP should configure his software to not save the file with UTF-8 encoding in the first place. I'm not an OOo user, so I can't tell how to do that. But obviously the OP doesn't want the file to be stored as UTF-8. It's possible Mastering Regular Expressions has influenced my thinking on this. This isn't about regular expressions at all. This is about replacing fixed strings. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. -- Robert Firth ___ 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 to set device permissions at startup
Aryeh M. Friedman wrote: Oliver Fromme wrote: Roland Smith wrote: But one has to run '/etc/rc.d/devfs restart' for newly added rules to take effect! (or reboot the system, which is overkill). Yes, of course. I thought that was obvious. Maybe I whould add that to the manual page for devfs.rules? Agreed, that might be an appropriate clarification. It should be included because not everyone uses the standard /etc/rc.* hierachy. For example I have a completely custom rc which before I did an other hack to make this issue not an issue read: Well, if you completely rewrite /etc/rc, then you're on your own anyway, and you're supposed to know what you're doing. In general it is not a good idea and will lead to serious foot-shooting. By the way, what is the reason that you don't use the standard rc(8) facilities? I don't see anything in you custom script that wouldn't be covered by them. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd A language that doesn't have everything is actually easier to program in than some that do. -- Dennis M. Ritchie ___ 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: Show bandwidth usage by IP address (through pf)
Maxim Khitrov mkhit...@gmail.com wrote: I have pf filtering traffic to our network. Is there any easy way to see the current bandwidth usage sorted by ip? Someone is using up almost 100% of total bandwidth and parsing pfctl -ss -v isn't getting me anywhere. The trafshow tool (ports/net/trafshow) does exactly that. The nice thing about it is that it accepts the same filter expressions that tcpdump accepts, so you can easily filter by ports, addresses, interfaces, protocols and so on. It works independent from your packet filter, so it doesn't matter whether you use pf, ipf, ipfw or none at all. If you want to see the amount of accumulated traffic (i.e. since boot) per interface and per IP address, the commands netstat -i and netstat -ib will tell that (in packets and in bytes, respectively). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FBSD 7.2 - ports blocked but no firewall
Gene f...@bomgardner.net wrote: On Tue, 6 Oct 2009 11:05:19 -0700, Chris Cowart wrote Gene wrote: I'm running 7.2 GENERIC and installed the unrealirc port. I've started it up and can connect from localhost just fine. But when attempting to connect from the outside world (eg. from another box on the lan) I get connection refused. I've tried both with and without ipfilter running (with appropriate rule). Other ports are reachable including a non-standard port used for ssh. The question: Could there be any reason that port 6667 might be blocked? (Unrealircd questions can be taken up elsewhere). It's possible you've configured Unrealircd to only listen on localhost and not on *. Look for something like: | listen *:6697 | { | ... | }; And make sure it's * and not 127.0.0.1. Checked and it's correct. Please check the output from this command: sockstat -l | grep :6667 It will tell you if the daemon is listening on localhost only or on all interfaces. This will narrow done the cause of the problem: If the daemon listens on localhost, then it's a configuration problem with that daemon. If it listens on all interfaces (*), then the problem is somewhere else, e.g. a packet filter (on the server or client side, or somewhere between), or maybe a typo when starting the client (wrong port number or address). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We will perhaps eventually be writing only small modules which are identi- fied by name as they are used to build larger ones, so that devices like indentation, rather than delimiters, might become feasible for expressing local structure in the source language. -- Donald E. Knuth, 1974 ___ 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: A general sed question
David Allen the.real.david.al...@gmail.com wrote: I keep bumping up against this, so I thought I'd throw this question out to those who understand sed better than I do. What I'm trying to do is to clean up the contents of some files (/sys/i386/conf/GENERIC would be a good example) to get more readable diffs. To that end, I'm trying to use sed to - delete commented lines - remove inline comments - remove trailing spaces and/or tabs - delete blank lines, and/or lines containing just spaces and/or tabs - expand tabs I recommend to use the -Bb options of diff. They cause diff to ignore blank lines and any changes in the amount of white space (including tabs). You can also use -w to ignore *all* white space, but note that foo bar and foobar are then considered equal, which might not be what you want. So only the removal of comments remains: sed 's/#.*//' That will remove all comments. Afterwards, commented lines are empty, so the -B option of diff will ignore them, so you don't have to remove them explicitly. When using zsh as your shell, you can use a nice feature called process substitution, so you don't have to create temporary files: diff -Buw (sed 's/#.*//' GENERIC) (sed 's/#.*//' MYKERNEL) I think bash has a similar feature, but I don't know the syntax, so please see the manpage if you're a bash user. If you need to do that oftem, it's worth to create an alias or shell function. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd People still program in C. People keep writing shell scripts. *Most* people don't realize the shortcomings of the tools they are using because they a) don't reflect on their workflows and they are b) too lazy to check out alternatives to realize there is help. -- Simon 'corecode' Schubert ___ 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: Howto: ethernet card on dell M6300
Chris Stankevitz chrisstankev...@yahoo.com wrote: I was saddened to find that my ethernet card did not work on my FreeBSD 7.2 machine. The bge driver in the kernel did not support the broadcom 5756ME. Here is how I got it to work: 1. Set my machine up to compile the kernel (see section 8.5 of manual) 2. Edit /usr/src/sys/dev/bge/if_bgereg.h. Add a definition for BCOM_DEVICEID_BCM5756ME with the value 0x1674 after BCOM_DEVICEID_BCM5755M: #define BCOM_DEVICEID_BCM5755M 0x1673 #define BCOM_DEVICEID_BCM5756ME 0x1674 #define BCOM_DEVICEID_BCM5780 0x166A 3. Edit /usr/src/sys/dev/bge/if_bge.c. Add a reference to BCOM_DEVICEID_BCM5756ME after BCOM_DEVICEID_BCM5755M: { BCOM_VENDORID,BCOM_DEVICEID_BCM5755M }, { BCOM_VENDORID,BCOM_DEVICEID_BCM5756ME }, { BCOM_VENDORID,BCOM_DEVICEID_BCM5780 }, 4. Compile and install the kernel, and reboot 5. Configure the card using sysinstall Would you please send a problem report containing your patches? You can simply use the send-pr(1) tool, or use the online web form. That way your patches won't get lost. I think that the developers of the NIC drivers aren't always reading the questions@ mailing list. Thank you very much! Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Share your knowledge. It is a way to achieve immortality. -- The Dalai Lama ___ 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: / almost out of space just after installation
Chris Stankevitz chrisstankev...@yahoo.com wrote: I just installed FreeBSD. After I installed it, I was surprised to find only 26M of space on /. I used the auto-defaults during the Disklabel portion of the install. [cstankev...@crs-m6300 ~]$ df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad4s1a496M430M 26M94%/ devfs 1.0K1.0K 0B 100%/dev /dev/ad4s1e496M 14K456M 0%/tmp /dev/ad4s1f113G1.9G102G 2%/usr /dev/ad4s1d2.9G7.9M2.6G 0%/var Q1: Is 26M free space on / after installing FreeBSD normal? It depends on the FreeBSD version, and whether you installed the kernel with debug symbols. 430 MB space used in the root file system isn't completely uncommon. Nowadays I recomment to spend 1 GB for the root file system, especially if you plan to keep more than one kernel. Q2: Will I be able to install GNOME, Firefox, download 30 MB of files, and place them on my GNOME dekstop? (I believe the desktop is located at /home/cstankevitz/.desktop aka on the root partition where there is only 26M of free space) All third-party software goes to /usr, so there's no problem. Q3: Which changes, if any, should I make to my system? Make sure that /home is a symlink to /usr/home. You already have /var and /tmp on separate partitions, which is good. Personally I would grow the root file system to 1 GB. It's not strictly necessary, but it's better to have some more space there, especially during system updates, e.g. when updating the kernel you want to keep a copy of the old kernel. By the way, I often don't create /tmp as a disk partition, but as a memory disk. This is unrelated to the size of the root file system, though. An entry like this in /etc/fstab will do it: md /tmp mfs rw,nosuid,-s500m,async 0 0 Afterwards you can use the disk partition previously used for /tmp for a different purpose (e.g. for swap, or add it do the preceding partition which would be /var in your case, I think.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Blogging: Never before have so many people with so little to say said so much to so few. ___ 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: sendmail CLIENT_OPTIONS
Don Wilde dwil...@gmail.com wrote: I am setting up the sendmail on my 7.2-STABLE system, and I cannot get it to listen to my live server address besides the localhost. I've added CLIENT_OPTIONS(`Family=inet, Addr=64.156.192.103, Name=MTA')dnl directly above the DAEMON_OPTIONS lines (after the FEATUREs), recompiled with make -C, and copied the domain-specific cf to sendmail.cf. You do not have to add anything to your .mc/.cf file. Just be sure to have this line in /etc/rc.conf: sendmail_enable=YES then restart sendmail, and it will listen on all interfaces. Sendmail starts correctly, so the m4 compilation was successful, but it is still only listening on 127.0.0.1:25 according to netstat -atn. It's better to use sockstat -l | grep sendmail. It lists user, command and PID along with the IP address (* if all addresses) and port number, so you can easily match it with output from ps or top, using the PID number. If sendmail is listening only on localhost, it usually means that you don't have sendmail_enable=YES in rc.conf. In that case, the default is to run sendmail only on the localhost interface, so that local mail delivery does work (e.g. output mailed from cron jobs). A common error is to put an entry at the top of rc.conf, not noticing that another entry further down the file overrides it. The last entry takes effect. For example, if you have sendmail_enable=YES at the top, but there's sendmail_enable=NO somewhere near the end of the file, then the latter will take effect. grep sendmail /etc/rc.conf will tell you the truth. After any changes, don't forget to restart sendmail: /etc/rc.d/sendmail restart If you're extra paranoid, first do only stop instead of restart, then verify that no sendmail processes are running, then perform the start. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd In my experience the term transparent proxy is an oxymoron (like jumbo shrimp). Transparent proxies seem to vary from the distortions of a funhouse mirror to barely translucent. I really, really dislike them when trying to figure out the corrective lenses needed with each of them. -- R. Kevin Oberman, Network Engineer ___ 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: fix remote degraded gmirror
Robin Becker ro...@reportlab.com wrote: mojo fms wrote: ... What about shrinking the old mirror drive a few megs so its smaller than the new one? The original problem has gone away for the moment as my hoter found an AAJS drive with the same number of sectors and the mirror synchronized fine. I looked around for ways to shrink the slice, but didn't discover anything very authoritative or easy. Is there a slice reduction beast? You can shrink slices and partitions, but you cannot shrink file systems. In theory you could write a shrinkfs tool, but it's more complicated than growfs(8) so nobody has bitten the bullet yet, given the fact that disk sizes tend to grow most of the time, but rarely ever shrink. Apart from that, there is no way to shrink a gmirror, as far as I know. The best way to resolve the problem is to create a new mirror on the new (smaller) drive, copy all data over to the new mirror, boot from the new drive, destroy the old mirror and insert the old disk into the new mirror. I've done that procedure several times; it takes some time and involves a short downtime (for reboot), but it works fine. You can do that remotely without single user mode, but it's always better to be prepared to have access to the console. And of course, you should always have good backups. A RAID is never a substitute for a backup. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I learned Java 3 years before Python. It was my language of choice. It took me two weekends with Python before I was more productive with it than with Java. -- Anthony Roberts ___ 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: Jails: /bin/tcsh: Permission Denied
APseudoUtopia apseudouto...@gmail.com wrote: I'm setting up jails on my system. I started with a httpd jail for nginx and php to run in. I used ezjail to create it. I went through all the steps, and got a jail setup and working. I've logged in and out several times and installed a couple ports within the jail. I then added a non-privileged user by running adduser as root. However, that is when the problem came up. For some reason, I cannot switch to the unprivileged user. The shell is giving me a Permission Denied error. What are the permissions on /bin/tcsh inside the jail? Is it executable? Are the permissions of all of its libraries correct? (ldd /bin/tcsh will list the libs.) Are the permissions on the home directory correct? If everything else fails, trace the shell inside the jail (with strace, truss or ktrace). It will list the exact system call that fails. By the way, I recommend that jails which contain daemons (such as webservers, databases etc.) do not contain login accounts. In fact, I never put /bin/tcsh inside a jail that contains a webserver. Apache certainly doesn't need it. Some ports do need /bin/csh during the build process, but for building ports I recommend to use a separate jail anyway, create packages and pkg_add them in the actual webserver jail. Just my 2 cents. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd $ dd if=/dev/urandom of=test.pl count=1 $ file test.pl test.pl: perl script text executable ___ 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: Jails: /bin/tcsh: Permission Denied
APseudoUtopia wrote: Thanks for the tips. I'm new to jails, and I didn't think it was possible to build a jail without tcsh. What shell do you use then? Just /bin/sh? I never log into a jail. There's no reason to do that. However, usually /bin/sh is required to run scripts, cron jobs and other things. Also, some library functions such as system(3) and popen(3) require /bin/sh. Those functions are used by many programs. So, bascially, you will almost always need to have /bin/sh in a jail. But that doesn't mean that you have any login accounts inside the jail. Usually the passwd inside your jail should only contain root and a few pseudo users. The pseudo users (including root) should have no valid password, no valid login shell, and in most cases no valid home directory. There's no reason to make things easier for intruders. Of course, that's only true for jails that contain services (i.e. daemons). If you want to put shell users inside jails, that's a completely different thing. (I'm not using ezjail, FWIW.) -r-xr-xr-x 2 root wheel 311400 Oct 5 05:34 /bin/tcsh /bin/tcsh: libncurses.so.7 = /lib/libncurses.so.7 (0x280c5000) libcrypt.so.4 = /lib/libcrypt.so.4 (0x28104000) libc.so.7 = /lib/libc.so.7 (0x2811d000) -r--r--r-- 1 root wheel 258572 Oct 5 05:34 /lib/libncurses.so.7 -r--r--r-- 1 root wheel 32020 Oct 5 05:34 /lib/libcrypt.so.4 -r--r--r-- 1 root wheel 993092 Oct 5 05:34 /lib/libc.so.7 drwxr-xr-x 3 root wheel 512 Oct 5 07:49 home drwxr-xr-x 2 jailuser jailuser 512 Oct 5 07:49 jailuser Looks good. The only thing I noticed is that your /etc/login.conf.db doesn't seem to be world-readable. It should have permissions 644, but has only 600. However, I'm not sure if this might cause the kind of problem you're seeing. But fixing the permissions is certainly worth a try. The truss trace is on a pastebin (the output seemed too long for an email) located at http://pastebin.ca/1594445 Other than that, I didn't notice anything unusual in the trace. Sorry to reply again, but I have some further information. I used chpass to change the shell of the jailuser account. I tried /bin/sh, /bin/csh, /bin/tcsh, and /sbin/nologin. All of those gave the same Permission denied error. Even nologin gave Permission denied instead of This account is currently not available. Yeah, when the trace aborts, it is still executing the su binary. It doesn't get as far as actually trying to execute the shell. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing. -- Mother Teresa ___ 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: Jails: /bin/tcsh: Permission Denied
APseudoUtopia apseudouto...@gmail.com wrote: The permissions on the HOST for /usr/jails/httpd and /usr/jails/basejail were set incorrectly. When I installed the jail, I used umask 0077. You should _never_ have umask 077 as root. It will cause all kinds of weird problems. It's best to keep the umask at the default of 022, unless you specifically know that you need a different one for a certain installation. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing. -- Mother Teresa ___ 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: way to check an email without sending it??
Gary Kline kl...@thought.org wrote: telnet couldn't connect for unknown reason but thabks for the tip. I usually just The mail server for a domain doesn't have to run on that domain. That's what MX records in DNS are good for. For example, day, the address is ca...@example.org. Then use this command to find the mail servers for that domain: $ host -t mx example.org Every mail server has a priority number. The lowest number indicates the highest priority, i.e. the server that should normally be tried first. You should be able to telnet to that server on the SMTP port. If the MX list is empty, then either there is no mail mail server for this domain at all, or the domain is it's own mail server, i.e. you can telnet directly to example.org on the SMTP port (provided that it has at least an A record with a normal IP address). By the way, in the good old days (i.e. before spam) you could verify mail addresses with the SMTP VRFY command. But unfortunately, the days of spam have changed many things. :-( Most mail servers don't support VRFY anymore in order to protect against the spammers' address harvesters. Whatever you do to verify the address, it will not be completely without a trace. As soon as you connect to the SMTP port, it might cause an entry in that server's logfile, even before entering any SMTP command. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard? -- Sid on userfriendly.org by Illiad, 2007-06-20 ___ 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: Every 12-hrs -- ad0: TIMEOUT - WRITE DMA
/djna_sp.pdf If that link doesn't work anymore, google for this: OEM HARD DISK DRIVE SPECIFICATIONS for DJNA-3x The maintenance mode is described in chapter 10.12 (page 99). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'. -- Oddbjorn Steffensen ___ 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: Voting for a native i386/amd64 flash player
Leandro F Silva fsilvalean...@gmail.com wrote: Hey guys, Let's vote to have a native i386 / amd64 flash player \o/ .. The latest Linuxulator works quite well on -current with the Linux flash binary + pluginwrapper port, doesn't it? Works for me, at least. We just have to create an account and voting on the link below =D http://bugs.adobe.com/jira/browse/FP-1060 There's no way I'm going to create an account at Adobe and give them my personal data. No thanks. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd And believe me, as a C++ programmer, I don't hesitate to question the decisions of language designers. After a decent amount of C++ exposure, Python's flaws seem ridiculously small. -- Ville Vainio ___ 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
awk question
Len Conrad lcon...@go2france.com wrote: We need to print a line when the 3rd field (with trailing ; delimiter) is, eg, exactly 5 lower case characters awk ' $3 ~ /^[a-z]{5,5};$/ {print $0} ' file ... doesn't work. If ; is the delimiter character, you need to tell awk about it (i.e. use the -F option). This one should work: awk -F';' '$3 ~ /^[a-z]{5}$/ {print}' file If that still doesn't work for you, please specify your file format more exactly, and provide an example of the input lines. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd anyone new to programming should be kept as far from C++ as possible; actually showing the stuff should be considered a criminal offence -- Jacek Generowicz ___ 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: Copying files without scp
Steve Bertrand wrote: To copy data from one server, I normally (always) use scp. I'm looking for a method to perform this copy task without the overhead of encryption for infrequent, high-volume transfers (hundreds to thousands of GB). The data will be transferred server-to-server within a private datacentre. There are quite a lot of ways to do that. You could NFS-export then files and then use a tool to copy them on the other box locally (tar, cpio, cpdup, whatever). You could run an FTP server and then use one of the various FTP mirror tools to copy the files (e.g. ports/ftp/omi). You could use plain old rcp. You could apply this (trivial) patch that adds support for cipher none in ssh and scp: http://www.secnetix.de/olli/FreeBSD/patches/openssh-cipher-none The advantage of using scp (with -c none) is that you can use all of the ssh features, such as key authentication, server aliases (via ~/.ssh/config) etc. You can also use other file copy tools (such as cpdup) that can be tunneled through ssh. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd IRIX is about as stable as a one-legged drunk with hypothermia in a four-hundred mile per hour wind, balancing on a banana peel on a greased cookie sheet -- when someone throws him an elephant with bad breath and a worse temper. -- Ralf Hildebrandt ___ 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: powerd
David Collins wrote: viper:~$ sudo powerd powerd: lookup freq: No such file or directory I also have the following viper:~$ sysctl dev.cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU_ dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/0 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% Frequency control is not supported in your case. You must have dev.cpu.0.freq and so on. What kind of processor do you have? Does it support powernow, cool'n'quiet or similar features? Also, make sure that you have device cpufreq in your kernel configuration. If you don't have it, try to load the module: kldload cpufreq Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It's trivial to make fun of Microsoft products, but it takes a real man to make them work, and a God to make them do anything useful. ___ 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: powerd
David Collins davidcollins...@gmail.com wrote: Frequency control is not supported in your case. You must have dev.cpu.0.freq and so on. What kind of processor do you have? Does it support powernow, cool'n'quiet or similar features? CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU) Origin = GenuineIntel Id = 0x673 Stepping = 3 Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE I'm afraid this one does not support CPU frequency control. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I invented Ctrl-Alt-Delete, but Bill Gates made it famous. -- David Bradley, original IBM PC design team ___ 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: C programming question
Valentin Bud wrote: Hello community, I have built with a micro controller a system of power plugs that can be controlled through the serial port. I have 2 plugs that i can start/stop and check the status of them. This is accomplished by sending different letters (eg. A/W) to start/stop one of the plugs and another set of letter for the other plug and one letter to check the status. Taking into account the fact that my C skills are almost 0 how complicated would be to write a program so I can control that micro controller through the serial port. Or is there some kind of program that can read/write from/to the serial port from the command line. I don't want an interactive program like minicom, just a program that connects and send a command (a letter in my case) to the serial port. You can do this with existing shell tools. With stty(1) you can select the serial port parameters on the init device (see sio(4) for details about the init and lock devices). Then you can use printf(1) or echo -n to send single letters to the serial port. To read single characters, you can use dd(1) with bs=1 and count=1. Make sure that the serial line is in cbreak or raw mode (with stty). This is a common trick to read single characters from stdin (without having to press the Enter key) in order to implement simple menu systems in shell scripts: echo -n Press any key: stty cbreak -echo KEY=$(dd bs=1 count=1 2/dev/null) stty -cbreak echo echo echo You pressed the \$KEY\ key. To read from a serial port instead of standard input, you have to redirect input from the serial port's device for the stty and dd commands, of course. Now back to my original question, how hard/complicated will it be to write a C program to control the micro controller through the serial port. Well, it's not hard or complicated, but it requires a certain amount of knowledge. First you have to learn C programming. Then you have to learn about the termios(4) interface and related things. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn ___ 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 to find out which ports contains a specified command.
Peter Boosten wrote: Paul Schmehl wrote: ill...@gmail.com wrote: Peter Wang wrote: for example, after i installed pfsense, which is based on freebsd release 7.1, i found adduser command is missing. so how to find out which ports contains `adduser' command? thanks for your replies. % which adduser /usr/sbin/adduser Thus it is part of the base system, installed through /usr/src rather than /usr/ports. Also, as you are running (essentially) 7.x, this is probably better on freebsd-questions than current. I think you misunderstood his question. This would be one way to do it: find /usr/ports/ -type f -exec grep -sq adduser {} \; -print That is horribly inefficient because it forks a separate grep process for every single file under /usr/ports. Also it will print a lot of false positive, because the ports tree contains several files and scripts that call adduser. How about man pkg_info From memory: pkg_info -W /usr/sbin/adduser That won't work, because pkg_info only reports information about packages that you have installed. One way to find which ports provide a certain file is to use the porgle search engine: http://www.secnetix.de/tools/porgle/?w=pq=adduser However, there is an adduser command in /usr/sbin which is part of the FreeBSD base system. If some script complains about that command being missing, you should invstigate whether you do have that command in /usr/sbin. It's unlikely that a port requires a different command with the same name without having a dependency on the port that provides that command. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++: an octopus made by nailing extra legs onto a dog -- Steve Taylor, 1998 ___ 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: anybody know about a 3.01 package *With* browser?
Robert Huff wrote: Tim Judd writes: Reference - dependency list for OOo 3.0.1 package, 7.1-R i386: deleted I'm not sure why there's so much depenencies, but if anyone wants me to post it, I want to know. Because OOo declines to re-invent the wheel? Some of these are easy to understand if you know almost nothing about programming - the fonts for example. Others, like cairo, pango, expat, and CUPS, are established libraries for dealing with things like text input/rendering, graphics, and printing. gtk is the GUI tookkit. What I don't understand is things like pciids-20090224. It's required by hal. About half of the dependencies seem to be Xorg-related things (fonts, libraries, protocols). There are also dependencies for supporting various graphics formats (png, jpeg, tiff) and scripting languages (python, perl). Well, it all adds up. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We're sysadmins. To us, data is a protocol-overhead. ___ 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: gmirror THEN geli, correct?
Modulok modu...@gmail.com wrote: I'm looking for a confirmation on the order: When setting up a (root partiton) gmirror+geli, what is the propper order? e.g: gmirror the disks and THEN initialize geli on the /dev/mirror partitions? Is this correct? You can also do it the other way round. Both ways are possible and have different advantages and disadvantages. I think most people install gmirror first and put geli on top of it. The advantage of this is that it's more efficient, because data passes through geli only once for encryption when writing to the mirror. If you install geli first on both disks and then put gmirror on top of both geli instances, all data has to be encrypted twice when writing to the disk (for reading it doesn't make a difference), so it is less efficient. However, this setup has the advantage that gmirror will correctly detach one drive when its geli instance detects data corruption (if integrity verification is enabled). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot). -- Terry Lambert, FreeBSD-hackers mailing list. ___ 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: anybody know about a 3.01 package *With* browser?
Robert Huff wrote: Oliver Fromme writes: I'm not sure why there's so much depenencies, but if anyone wants me to post it, I want to know. Because OOo declines to re-invent the wheel? Some of these are easy to understand if you know almost nothing about programming - the fonts for example. Others, like cairo, pango, expat, and CUPS, are established libraries for dealing with things like text input/rendering, graphics, and printing. gtk is the GUI tookkit. What I don't understand is things like pciids-20090224. It's required by hal. About half of the dependencies seem to be Xorg-related things (fonts, libraries, protocols). There are also dependencies for supporting various graphics formats (png, jpeg, tiff) and scripting languages (python, perl). Well, it all adds up. So it's not just things that OO depends on directly, but things those programs depend on, /ad incipio/. That's ... confusing. Well, package dependency is a transitive relation (in fact, it's even a transitive closure). So if you ask for the list of dependencies for a package, you'll get a list of _all_ packages required to run it, which also includes indirect dependencies, because these are required, too, of course. I don't think it's confusing. It would be confusig if it worked in a different way. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd FreeBSD is Yoda, Linux is Luke Skywalker -- Daniel C. Sobral ___ 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: gmirror THEN geli, correct?
Wojciech Puchar wrote: Modulok modu...@gmail.com wrote: I'm looking for a confirmation on the order: When setting up a (root partiton) gmirror+geli, what is the propper order? e.g: gmirror the disks and THEN initialize geli on the /dev/mirror partitions? Is this yes it is right order. No, there is no right or wrong order. It depends on what features of gmirror and geli you want to exploit. See my more detailed explanation in this thread. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure. -- Eric Allman ___ 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: py24-gobject won't deinstall
Richard DeLaurell wrote: Oliver Fromme wrote: PS: To check the consistency of your package database, you can use this small script (requires Python): http://www.secnetix.de/olli/scripts/pkg_check_dependencies If you get no output from pkg_check_dependencies -q, then your dependencies are good. [...] ++ #python pkg_check_dependencies -q Traceback (most recent call last): File pkg_check_dependencies, line 55, in module if line.startswith(@pkgdep) IndexError: list index out of range ++ Interesting ... I think that can only happen if you have a corrupt dependency entry somewhere. If that's the case, this shell command will print the file in question: awk '/^...@pkgdep/ NF 2 {print FILENAME}' /var/db/pkg/*/+CONTENTS It will print the names of files from the package database that contain an empty @pkgdep line. This is probably the cause of the list index out of range error message. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Being really good at C++ is like being really good at using rocks to sharpen sticks. -- Thant Tessman ___ 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: WinPopUp type messages from FreeBSD to Mac OS X
Charles Howse wrote: Anyone know of a command-line program that will pop-up a window on my Mac with a message from FreeBSD? If you're running an X server on your Mac (Xorg, XFree86), then you can use the xmessage(1) tool, with the $DISPLAY variable set appropriately. It can even be used to create simple dialogs (Such as OK / Cancel) that can be used from shell scripts. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd The scanf() function is a large and complex beast that often does something almost but not quite entirely unlike what you desired. -- Chris Torek ___ 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: py24-gobject won't deinstall
Polytropon free...@edvax.de wrote: Richard DeLaurell wrote: I reveal my ignorance: why does this work to delete the package # pkg_delete -f /var/db/pkg/py24-gobject* while 'pkg_delete py24-gobject*' did not? Use the -f, Luke. The force! Use the force! :-) Would the latter have done the trick if issued from the /var/db/pkg directory itself? If you delete a package with -f that is required by another package, you BREAK this package. That's okay only if you're going to install the needed dependency right afterwards (by pkg_add or make). However, the problem is that you will lose dependency information if you do it that way. That's why it is not recommended. Better use one of the port management tools (portmaster, portupgrade) which have options to replace one port with another port while retaining its dependencies. As a rule of thumb, never use a force option (-f) with any tool (rm, umount, pkg_delete, ...) unless you know exactly what the consequences are. I've seen people shooting their feet too often that way. Best regards Oliver PS: To check the consistency of your package database, you can use this small script (requires Python): http://www.secnetix.de/olli/scripts/pkg_check_dependencies If you get no output from pkg_check_dependencies -q, then your dependencies are good. -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake. ___ 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: Fetching directories inclusive subdirectories on HTTP server via fetch or othe FreeBSD-own tools?
O. Hartmann wrote: I tried 'omi' but I find that the tool does not travers deeper into a dir than level one, so subdirs seem to be left out. I will try wget, although this tool would not be the first choice. Well, omi _does_ recurse into subdirectories, but it might fail if the FTP server has an unusual output format, or otherwise behaves in unexpected ways. Sometimes -o nostat helps to work around it. Especially if the FTP server runs on some non-UNIX environment and the directory output does not look like an ls -l, omi has trouble parsing it. I've seen FTP servers running on VMS or Novell Netware that looked _really_ weird. These are not supported by omi, I'm afraid. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind. -- Alan Kay, OOPSLA '97 ___ 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: Why?? (prog question)
Polytropon free...@edvax.de wrote: FreeBSD defines additional exit codes to specify the reason for exiting more precisely in /usr/include/sysexits.h - for your example, exit(EX_USAGE); would be a good exit code. Actually, no. The purpose of the sysexits.h codes is for communication between SMTP processes (e.g. between an MTA such as sendmail and a delivery agent such as procmail), so the MTA can determine the meaning (severity) of the error and how to proceed. The only standard exit codes for normal programs are EXIT_SUCCESS and EXIT_FAILURE. You should use these. [where to put braces] In fact, I'm sticking to the concept that only the highest level of code groupers deserve a new line {: these are functions in C and class methods in C++. Everything else has the { appended (after a space) to the construct that causes the {. So if you find a }, you only need to look up. It's obvious that a } is caused by a {, but you want to know the construct that made it appear, for example if(), while(), a struct definition or something similar. With this concept at hand, looking up will make you find this construct in question at the first glance. Of course this is purely a matter of taste and personal preference. My preference is similar to yours, but my main reasoon is to save space. I think it is a ridiculous waste of space if every third line consisted only of a sole brace (opening or closing). To my eye, such lines that are almost empty break the natural structure of a piece of source code. I insert empty lines quite often in order to group source lines logically, but brace lines break that grouping visually. That's probably one of the reasons why I like Python so much: There are no braces for source structuring at all. This allows me to write very compact code _and_ structure it logically at the same time, making it easily readable and comprehensible. Furthermore, Python gets rid of all of the brace problems that C has, e.g. relating an else to the wrong if when multiple if statements are nested, and forgetting to add braces when you add a second line to an if branch (unless you always use braces in C, even when they're superfluous, but again that's a waste of space and does not really improve readability). I could go on for hours, but this is really off-topic now, so we should take this to the -chat list (or to private mail). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs. -- Robert Firth ___ 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: too many video drivers
Tsu-Fan Cheng wrote: I am rebuilding ports and realize that i have too many input/video drivers for x-win installed. i know i need nv driver since my graphic card is from nvidia, and i want to deinstall all others. but i am not sure if its safe to do so, e.g. i am confused by xf86-video-chips since i don't know what kind of chip that stands for. can someone tell me which are basics and which are safe to remove? thanks!! For the record, it is a driver for ChipsTechnologies graphics card. It's a brand that existed in the 90s of the previous century. They're long gone, and I'm certain you won't need the driver. I'm surprised that it still exists today in Xorg at all. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd A language that doesn't have everything is actually easier to program in than some that do. -- Dennis M. Ritchie ___ 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: Xeon Quad with 9 GB RAM - only 4 GB detected
Wojciech Puchar wrote: I have finished the installation and yes, the entire amount is detected. Is this normal behaveour (why does it happen?) i'm not sure if install kernel is actually /i386 version. It must be an amd64 kernel, otherwise it would not be usable for fixit things. Also, I don't see any specific exceptions concerning kernels for amd64 in the release build scripts (/usr/src/release). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd When your hammer is C++, everything begins to look like a thumb. -- Steve Haflich, in comp.lang.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: Fetching directories inclusive subdirectories on HTTP server via fetch or othe FreeBSD-own tools?
O. Hartmann ohart...@zedat.fu-berlin.de wrote: I run into a problem I can not solve. I need to fetch a whole directory tree from a public remote site. The top level directory and its subdirectories are accessible via ftp:// and http:// so I tried fetch, but fetch does only retrieve data on file basis and does not copy a whole directory tree recursively. The remote site does not offer sftp/sshd for that purpose. Is there a simple way to perform such a task with FreeBSD's own tools (I try to avoid installing 'wget' and sibblings)? I need to keep it simple, task should be performed via cronjob. I'm afraid you can't do that with FreeBSD base tools. An alternative to wget would be omi (ports/ftp/omi) which is a simple FTP mirroring tool, written in C without any dependencies. Usage is simple: $ omi -s server.name.com -r /remote/dir -l ./local/dir Note that, by default, it tries to synchronize the local dir perfectly, i.e. if the remote dir is empty, it will wipe out the local dir. (The option -P 0 will prevent omi from removing anything.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible. -- John William Chambless ___ 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: Why?? (prog question)
Josh Carroll wrote: [...] Note also that your main should have an int return type and should return a value. His main() function _did_ have an int return type (it wasn't declared to be void), but of course it's better style to write int explicitly. By the way, FreeBSD's style(9) recommends to write the function return type on a separate line and begin the function name on column 1, like this: int main (int argc, char *argv[]) { ... } The clear advantage is that you can easily grep for the definition of a particular function in a bunch of source files: grep '^main' *.c Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Perl is worse than Python because people wanted it worse. -- Larry Wall ___ 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: Question about forcing fsck at boottime
Chris Rees utis...@googlemail.com wrote: 2009/3/31 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: IMHO this background fsck isn't good idea at all Why? Google background fsck damage. I was bitten by it myself, and I also recommend to turn background fsck off. If your disks are large and you can't afford the fsck time, consider using ZFS, which has a lot of benefits besides not requiring fsck. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing. ___ 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: analyzing httpd-error.log
The problem with Apache's error.log is that there is no standard format. Error messages generated by Apache itself are somewhat standardized, but messages from third-party modules are not. All kind of things will end up in the error.log, including stuff written to stdout by CGI programs, such as perl error messages, exception traces from Python programs (usually multiple lines each), and so on. There is no simple way to reliably parse and analyze all of that completely automatically. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor, and when was the last time you needed one? -- Tom Cargil, C++ Journal ___ 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
Tablet PC recommendation?
Hi I'm looking for a small tablet PC. In other words, a touch-screen with built-in CPU (without keyboard). Does any such thing exist that runs FreeBSD, including touch-screen support? It should be small (the smaller, the better). The CPU and graphics performance don't matter at all; I don't plan to do any fancy 3D stuff on it. Power consumption should be as low as possible. Any recommendations? Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd PI: int f[9814],b,c=9814,g,i;long a=1e4,d,e,h; main(){for(;b=c,c-=14;i=printf(%04d,e+d/a),e=d%a) while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;} ___ 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: switching bsdlabel's label
Jerry McAllister wrote: What sysinstall does is assume that the 'a' partition will be used for a root mount and the 'b' partition will be used for swap. Sinc 'c' is reserved, it starts with 'd'. Then, if you later add an 'a' it will end up being later (higher offset) than the 'd'. I suppose it might confuse a person, but otherwise it is no problem and probably would be best to just leave it that way. The boot process assumes (by default) that the root file system is on the a partition. If it isn't, you won't be able to boot from that disk, unless you enter the real root partition at the boot0 prompt. So it is really a good idea to switch the partitions in the label before putting that disk into production. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I learned Java 3 years before Python. It was my language of choice. It took me two weekends with Python before I was more productive with it than with Java. -- Anthony Roberts ___ 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: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit ?binaries?
Daniel O'Connor wrote: On Friday 24 October 2008 23:20:59 Peter Jeremy wrote: this will make system trying to bind 32-bit libs to 64-bit program. it can't work rtld shouldn't attempt to bind 32-bit libs to 64-bit programs. The same problem happens with the Linux run time linker - it merrily tries to link FreeBSD libraries to Linux binaries with predictable results.. You *can* link Linux libraries with FreeBSD binaries (and vice versa), if the library does not perform any syscalls, e.g. it is a pure computation library or similar. That said it would be really nice if it ignored incompatible libraries :) No. Please don't put such pseudo-cleverness into rtld. It wouldn't be an improvement, in fact it might break some working configurations. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible. -- John William Chambless ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTP on 7.1 BETA amd64 odd behaviour
Mel [EMAIL PROTECTED] wrote: On Thursday 18 September 2008 16:44:40 Nash Nipples wrote: thanks for the new /etc/rc.d/ntpd ... rc_flags=-c ${ntpd_config} ${ntpd_flags} ... what we can learn from it is that on 7.1 BETA your rc.conf.local file should look like this ntpd_config=/etc/ntpd.conf ntpd_flags=-p /var/run/ntpd.pid hope that explains Nash Almost. Look at /etc/defaults/rc.conf: ntpd_config=/etc/ntp.conf # ntpd(8) configuration file ntpd_sync_on_start=NO # Sync time on ntpd startup, even if offset is high ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift # Flags to ntpd (if enabled). 99% of the cases you don't need ntpd_flags. Only if you want the drift file in a different location or use one of the more obscure options. In fact it might even be considered a bug that -f /var/db/ntpd.drift is included in the default flags. If someone wants to override the default location of the drift file, it is much better to specify it in the ntp.conf file. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Software gets slower faster than hardware gets faster. -- Niklaus Wirth ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD installation doesn't work
Matthew Seaman wrote: Mel wrote: that's aside from the fact that the root partition '/' always has to be the first partition, for the simple reason that everything else is mounted on top of it. It's not the partition device names that determine the mount order, but the order of the entries in /etc/fstab. Actually not even the order in /etc/fstab matters. You can place the root file system last and it will still work. The important thing is that the root file system must be partition a in the label, because this is hardcoded in the boot loader (and probably in a few other places, too). The boot loader then hands the location of the root file system to the kernel. (However, it is possible to override it, so in fact you can have a root file system different from the file system containing /boot. This is how booting with rootfs on ZFS works.) Later in the process, the /etc/rc script (and its children in /etc/rc.d/*) uses information from /etc/fstab to locate the root file system for fsck and to remount it read/write. Of course it is identified by its mountpoint (/), not by the position of the entry within /etc/fstab. So the order in /etc/fstab really doesn't matter. Just make sure that your root file system is partition a. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd In my experience the term transparent proxy is an oxymoron (like jumbo shrimp). Transparent proxies seem to vary from the distortions of a funhouse mirror to barely translucent. I really, really dislike them when trying to figure out the corrective lenses needed with each of them. -- R. Kevin Oberman, Network Engineer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD installation doesn't work
Oliver Fromme [EMAIL PROTECTED] wrote: Matthew Seaman wrote: Mel wrote: that's aside from the fact that the root partition '/' always has to be the first partition, for the simple reason that everything else is mounted on top of it. It's not the partition device names that determine the mount order, but the order of the entries in /etc/fstab. Actually not even the order in /etc/fstab matters. You can place the root file system last and it will still work. Uhm, just to be sure: We are talking about the *root* file system here. Of course, the order of the *remaining* file systems in /etc/fstab (without noauto flag) *does* matter, because this is the order in which they are mounted by the RC scripts. Only the root file system is special. Best regards Oliver PS: BTW, Mel, your email address doesn't work. I get bounces from your mail server. -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd People still program in C. People keep writing shell scripts. *Most* people don't realize the shortcomings of the tools they are using because they a) don't reflect on their workflows and they are b) too lazy to check out alternatives to realize there is help. -- Simon 'corecode' Schubert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd 7.1 - Good luck
Fian Dracestar [EMAIL PROTECTED] wrote: When FreeBSD support ethernet type Gigabit ? FreeBSD supports gigabit ethernet for quite a lot of years already. It even supports several 10-gigabit ethernet interfaces. and chipset sis (new) I've recently updated a SiS chipset based machine (not exactly new, though), and it works very well with FreeBSD. From dmesg output: agp0: SiS 730 host to AGP bridge on hostb0 atapci0: SiS 730 UDMA100 controller port [...] at device 0.1 on pci0 sis0: SiS 900 10/100BaseTX port [...] at device 1.1 on pci0 I'm using an intel fxp(4) NIC in that box, though, not the onboard sis(4), so I can't tell for sure whether the latter works. If you want to get support information about a specific SiS chipset, you need to give us more information. If you've already installed FreeBSD, the output from pciconf -lv and the contents of /var/run/dmesg.boot would be a good start. Best regards. Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code (taken from comp.lang.awk FAQ) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Realtek 8111C?
Sebastian [EMAIL PROTECTED] wrote: I'd like to confirm my understanding of current status on this NIC. It seems, based on some searching, the current Realtek driver in FreeBSD doesn't support the 8111C, and that although the vendor-supplied driver _may_ work for older 5.x and 6.0 releases (if one can get it compiled, I couldn't), it doesn't work in 6.3 or 7. So the RTL8111C is effectively not supported. True? I picked up a nice little Atom board to use as a low-power NAS, and unfortunately just assumed the onboard Realtek NIC was supported. Unfortunately I don't have a PCI slot on this mobo to use a different NIC. What vendor ID and product ID, exactly? (pciconf -lv will tell.) I'm asking because the re(4) driver seem to contain support for several different chips that are all identified as 8111C, but work slightly differently. So it is important to know whether your version of that NIC is already covered, or whether it has a product ID that the driver doesn't know about yet. As far as I can tell from the repository history, the driver is well maintained. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kill -KILL fails to kill process
Steve Franks wrote: Which I thought was impossible. Neophyte question, no doubt, but googling was less than helpful (which probably means I'm fubar, no doubt). Anyway, I have a certain common X app (xmms) that likes to hang (since my last buildworld, it seems) when when it's right about to open a file-choosing dialog. The only way to get rid of it is to reboot. Now, given the behavior, I'd have to suspect something underlying as the true source of the problem, but shouldn't kill kill it anyway - I mean, isn't there some way to kill a process that's stuck waiting on a child process? I haven't figured out how to ps -ax grep | some neublous file dialog process yet...so I'm sort of stuck wanting to kill the parent... If you can't kill a process (even with SIGKILL), it means that the process currently can't be put on the run queue, because only processes that are able to run can receive signals. Given that, such a situation usually has one of these three reasons: 1. The process hangs in disk wait (flag D in ps' STAT column). This often means there's a hardware problem with your disk or controller (or a driver bug), or a network problem if you use NFS. 2. The process was suspended (SIGSTOP). In this case there is the flag T in ps' STAT column. Try sending a SIGCONT to the process. 3. The process terminated, but the parent process failed to pick up the exit code. In this case, the process needs to retain an entry in the process table (shown by ps) in order to record the exit code until it is picked up, even though the process itself is gone. Such a dead entry in the process table is called a zombie process. In ps' STAT column there is the Z flag. This usually indicates a programming error (a.k.a. bug) in the parent process. You can get rid of the zombie by killing the parent process. Then the zombie will be inherited by the next process in the hierarchy (up to the init process 1 if required) which will then pick up the exit code and release the process entry. There can be other reasons on occasion, but those three are the most common ones. Simply look at the STAT column in the ps(1) output for the process in question. It will tell you the reason why the process is stuck. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: disk writer utility
Dánielisz László wrote: What is your favorite disk writer utility? (under X) cdrecord for CDs, growisofs for DVDs. (in an xterm) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Life is short (You need Python) -- Bruce Eckel, ANSI C++ Comitee member, author of Thinking in C++ and Thinking in Java ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Walt Pawley wrote: wump$ time sed s/ .*// Desktop/klog kadr1 Note that this is a job for cut(1): $ cut -d -f1 input Interestingly, the fastest way to do that job is to use a regular expression with Python. This is about twice as fast as the proposed perl solution: $ python -c 'import re; print re.sub( .*\n, \n, file(input).read())' (Of course, in a script you would write that command in a more readable way instead of trying to squeeze it all on a single line.) Best regards Oliver PS: Of course, if you really need the last percent of speed, then you should write your own specialized tool in C. -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd FreeBSD is Yoda, Linux is Luke Skywalker -- Daniel C. Sobral ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: For this hardware amd64, ia64 or i386 to install?
VeeJay wrote: For following hardware, I am wonderting that which Freebsd amd64, ia64 or i386 to install? Hardware: Dell PowerEdge 2950 III having 2 x CPU 3,0 GHz Intel Xeon L5450 Quad-Core 2x6MB cache WITH 16 GB RAM. Tools: 1. FreeBSD 7 Production Release 2. Apache 2.2.9 3. MySQL 5.1.26 4. PHP 5.2.6 Clearly amd64. The ia64 port wouldn't run on your hardware at all, because it is for the Itanium/Merced platforms. The i386 port would run, but it's only 2bit so it wouldn't be able to use all of your RAM (unless you enable the PAE option which as its own set of problems). Also, MySQL runs faster when compiled for 64bit. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure. -- Eric Allman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: turn on beastie beside the 'Welcome to FreeBSD' boot optionsmenu
Kevin Monceaux wrote: Oliver Fromme wrote: How would you like this one? http://www.secnetix.de/olli/FreeBSD/vloader/screenshot5.png (It's work in progress. See the latest FreeBSD Quarterly Status Report.) When I recently came across info on the graphical boot loader project I secretly hoped that either the project would fail, or that at least the graphical boot loader would be optional. It will be optional. Note that we will also still support serial console. But, after seeing the above screenshot I think I might be able to get used to the boot loader pictured in that screenshot. The screenshot I came across with I first discovered the project recently: http://www.secnetix.de/olli/FreeBSD/vloader/screenshot.png looks nice, but is just a bit too modern for my tastes. You will be able to supply your own picture if you like. I also expect that some people will create various kinds of artwork (in the ports collection or elsewhere), so there will be quite a few themes to choose frome. And if you still don't like it, a switch in loader.conf will bring the old text menu back. Well, at least that's the plan. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd cat man du : where Unix geeks go when they die ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Walt Pawley wrote: Walt Pawley wrote: Walt Pawley wrote: Steve Bertrand wrote: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT I'm curious why Perl isn't a decent choice. I think I'd do something like perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Which is also wrong. It gets a bit closer to Steve's desires I suspect if one adds the appropriate backslash ... perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Sorry... I guess getting old, nearly blind and mind numbing close to brain dead is better than the alternative. Try this (sooner or later I've got to get it right)... perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file output_file Sorrier. I think your attempts show very well why Steve wanted to avoid perl. :-) But seriously, a few other reasons might include: - tr, sed, awk etc. are part of the FreeBSD base system, while perl is not. - The perl command you wrote above is pretty much a sed command anyway (except you incorrectly used non-portable regular expression syntax). Why use perl to execute a sed command? - It is generally advisable to use the smallest, most light-weight tool that gets thew job done. In this case that's clearly not perl: Size of sed: 27 KB. Size of perl + libperl: 1126 KB Thats more than 40 times bigger. Of course, YMMV. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski, when asked: What's wrong with perl? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Again: fsck_ffs memory requirements
Polytropon [EMAIL PROTECTED] wrote: Allthough fsck_ffs 5 does seem to be able to calloc() the needed memory, it fails with the same message as fsck_ffs 7: fsck_ffs: bad inode number 306176 to nextinode Don't know what to do next. I may gather all information I have, write al little story and bring this topic up here next week. Maybe someone has better ideas than me. Unfortunately fsck isn't able to cope with any arbitrary level of damage. If certain kinds of unexpected problems occur, it throws in the towel. In theory it might be possible to deal with your particular problem, but nobody has implemented it in fsck yet. Someone with intimate knowledge of UFS2 might be able to help you, possibly using fsdb(8), but this requires direct access to the file system image and is beyond what can be done through a mailing list. Usually such services cost money. (The price to pay for not having backups.) You might also have success using one of the various recovery or forensic toolkits out there, e.g. sleuthkit (it's in ports). PS: Better make good backups next time. More precise: Better make _at least any_ backups. :-) More than 5 years without any (!) problem with FreeBSD and now this stupid problem... :-( Well, there's nothing an OS can do against hardware failure (such as a crash because of power loss). Such failures can cause arbitrary damage to mass storage, especially if the power failure happens in the middle of writing a track, and especially when using consumer grade disks. Disks are cheap these days. Cheaper than your valuable data. So, a simple way to make backups is to buy an external disk (USB2, Firewire/IEEE1394, eSATA, or even a hot-swappable PATA drive tray), sync your system to it once per week, and store it in a safe place. If you're paranoid, then use two such disks alternating, so you have one good (safe, i.e. disconnected) copy at every point in time. If you're even more paranoid, store multiple backup disks in different places (e.g. one at home at one at your office, or at a friend's place, or even in a safe deposit box at your bank company), so you still have a good backup if your house burns down or an alien space ship crashes on it. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is executable pseudocode. Perl is executable line noise. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: turn on beastie beside the 'Welcome to FreeBSD' boot optionsmenu
enom-FBSD1 [EMAIL PROTECTED] wrote: beastie_disable=NO had no effect. That's because NO is already the default. Setting it to YES will completely disable the whole boot menu. All that was needed was loader_logo=beastie which produced beastie in color Its good to see my old friend back where he belongs How would you like this one? http://www.secnetix.de/olli/FreeBSD/vloader/screenshot5.png (It's work in progress. See the latest FreeBSD Quarterly Status Report.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd [...] one observation we can make here is that Python makes an excellent pseudocoding language, with the wonderful attribute that it can actually be executed. -- Bruce Eckel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 tunnel over ssh and then rsh
Roberto Nunnari wrote: Wait! I found a possible workaround.. it seams that setting X11UseLocalhost = no on sshd_config tell sshd to bind the X11 forwarding server to the wildcard address.. You will still have to forward the X11 authentication to the client machine with xauth(1) or xhost(1), I think. Using xhost(1) is much easier, but it's insecure. On the other hand you're using rsh and a public network socket to connect to, so everything you do is insecure anyway. I hope you're going to make your users aware of that. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd If Java had true garbage collection, most programs would delete themselves upon execution. -- Robert Sewell ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: turn on beastie beside the 'Welcome to FreeBSD' boot optionsmenu
Ivan Voras wrote: Oliver Fromme wrote: enom-FBSD1 [EMAIL PROTECTED] wrote: beastie_disable=NO had no effect. That's because NO is already the default. Setting it to YES will completely disable the whole boot menu. All that was needed was loader_logo=beastie which produced beastie in color Its good to see my old friend back where he belongs How would you like this one? http://www.secnetix.de/olli/FreeBSD/vloader/screenshot5.png (It's work in progress. See the latest FreeBSD Quarterly Status Report.) This is very good. I hope there will be less conservative variants :) There are more screen shots in the same directory: http://www.secnetix.de/olli/FreeBSD/vloader/ I'm sure you'll find one that is sufficiently less conservative, whatever that means. ;-) It is intended that the user (or vendor) will be able to use his own background image, so you can supply your own. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind. -- Alan Kay, OOPSLA '97 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rtprio + su - doesn't work
Wojciech Puchar wrote: /usr/sbin/rtprio 31 /usr/bin/su centrala -c \ /usr/local/bin/asterisk -C /centrala/etc/asterisk.conf asterisk is started, but without realtime priority. I'm not sure what's wrong, but it works fine for me: # rtprio 31 su -m nobody -c 'id; /usr/sbin/rtprio' uid=65534(nobody) gid=65534(nobody) groups=65534(nobody) rtprio: realtime priority 31 # This is on 7-stable (a few months old, though). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I have stopped reading Stephen King novels. Now I just read C code instead. -- Richard A. O'Keefe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tailing logs
DAve wrote: I would love to have a way to tail a log, like piping to grep, except I see every line and the lines I would normally grep for are highlighted. That would be cool. Anyone know of a bash command or tool that will do this? Side note, I am tailing sendmail after changes to my outbound queue runners. I want to highlight my sm-mta-out lines but still see all lines. You could use this script: http://www.secnetix.de/olli/scripts/bold It's a filter that works like similar to grep, but it highlights the parts that match your regular expression. The script contains usage information. So you can do things like this: $ tail -f /var/log/maillog | bold -l myhost.mydomain (The -l option specifies to highlight the whole line, not just the part that matches.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is over-complicated nonsense. And Bjorn Shoestrap's book a danger to public health. I tried reading it once, I was in recovery for months. -- Cliff Sarginson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 tunnel over ssh and then rsh
Roberto Nunnari wrote: 1) host A with X server 2) host B with ssh server but without X server 3) host C with rsh server and X client programs but without X server (on host C there's also an ssh server, but in our case, users have to use rsh) now, I need to connect from host A to host B with: A$ ssh -Y B (-Y or -X, to create a X tunnel) and then from host B to host C with: B$ rsh C and on host C I need to run an X client like: C$ xterm Now, I would like the users not to have to set the DISPLAY env var on host C, as they tend to forget and also some user's X server don't accept plain X connections.. Is there a way that I could configure host B to somehow expose to host C the X tunnel to host A? From host B I have access to the users' homes on host C and I could place there some script to set the DISPLAY env var on user login. B$ echo $DISPLAY on host B gives back something like localhost:16.0, but if on host C I enter: C$ export DISPLAY=B:16.0 C$ xterm it doesn't work.. probably host C doesn't expose a network socket but maybe a unix socket for the X tunnel.. There are several problems. First, rsh does not support connection forwarding. Second, for security reasons, the X forwarding feature of ssh binds only to localhost on the client side (B), so you can't use it from C. The easiest solution would be to allow users to use ssh to connect to C (what's the reason for not allowing it?). Then you can use the X forwarding feature of ssh. Other solutions require much more work. For example, you can use ssh's generic connection forwarding feature which allows using a remote network socket (not just localhost). That is, on host A type something like this: ssh -R 6001:localhost:6000 B then on host B simply type rsh C, and on host C you have to set the DISPLAY environment variable to B:1.0. You also have to use xauth(1) or xhost(1) to allow X clients to access the server (ssh's X forwarding feature does that automatically, but when using the generic connection forwarding you have to do it yourself). WARNING: The X connection between hosts B and C will be unencrypted. Everybody who has access to the network will be able to sniff the connection and be able to watch everything you do, including every character you type (passwords etc.), and even intercept, modify and take over the connection. Furthermore, since the X connection socket on host B listens on the network (not just localhost), everybody can connect to it from other machines and access your X server, provided it can authenticate with it (which is trivial, especially if you use xhost(1)). I'm curious, why can't you use ssh between hosts B and C? Using ssh would solve all of the problems at once. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python tricks is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure wink. -- Tim Peters ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Evaluate strings in bash
Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: # echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk I'd like to have a second variable like: [code] # echo $newvariable make -m /usr/src/share/mk # newvariable=`eval echo $BINMAKE` I've already tried that, but doesn't work. It does work. Maybe you forgot the echo part? Maybe I've not explained it very well, look here: http://www.linuxquestions.org/questions/linux-general-1/bash-strings-evaluation-664094/ You have explained it well enough, I think, and the solution I explained above works fine. If it doesn't work for you, then you did it wrong. The solution written at the URL you mentioned is unnecessarily complicated. $ echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk $ newvariable=`eval echo $BINMAKE` $ echo $newvariable make -m /usr/src/share/mk $ Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered. -- Guido van Rossum ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Copying a directory tree (was: xargs)
Marcel Grandemange [EMAIL PROTECTED] wrote: I need to copy an entire BSD installation except the /mnt directory to /mnt/pc You don't need xargs for this. # cd / # find -Ed . -regex '\./(mnt|dev)' -prune -or -print0 | cpio -dump0 /mnt/pc If you have procfs mounted, add |proc to the regex, or simply umount it before. It's not required for anything important. Or -- slightly less efficient, but this might be better if you're more familiar with grep than with find: # cd / # find -d . | egrep --null -v '^\./(mnt|dev)/' | cpio -dump0 /mnt/pc Yet another way is to use cpdup (from ports/sysutils/cpdup): # echo mnt .cpignore # cpdup -x / /mnt/pc Note that cpdup doesn't cross mountpoints, so you don't have to exclude dev or proc. But you will have to repeat the command for /var, /usr, /tmp or any other directories that are on separate file systems. Ls | grep -v proc | xargs cp -Rpv /mnt/pc Do not use cp -R or cp -r. It has several problemsm, for example it breaks hardlinks. In my opinion the -R and -r options of cp(1) should be removed, or a big fat warning message should be printed, because they're abused most of the time and cause breakage that other people have to find and clean up afterwards. Been there, done that, a thousand times. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Perl is worse than Python because people wanted it worse. -- Larry Wall ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Steve Bertrand wrote: To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] With awk(1): awk '{sub(/\./, _, $1); print $1 @example.com}' With sed(1) (you have to replace ^T with a real tab!): sed 's/^\(.*\)\.\(.*\)^T.*/[EMAIL PROTECTED]/' With tr(1) + sed(1): tr '.\t' '_@' | sed 's/@.*/@example.com/' Personally I like the last solution best, because it's short and easy to understand. BTW, all of the above command read from stdin and write to stdout, so you can use shell redirection to read from a file and/or write to a file. There is no need to use cat(1). Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: THE FOLLOWING DISK SECTORS COULD NOT BE READ
Marcel Grandemange wrote: On a different dilemma, I have a FreeBSD proxy server with what looks like a failing drive. The drive ONLY holds cache so is not critical for system operation however id still like to try something. It seem that no matter how many times I run fsck it still comes up with same result, is there a way to isolate the bad sectors and use the replacement ones on drive? Or even just isolate so that I can continue using the drive for now. The drive's firmware will only remap the bad sectors with spare sectors when you _write_ to it. When a read error is encountered while reading a sector, the drive's firmware will record the sector number, but it won't remap it yet because it doesn't have any known good contents for that sector. So it must report the failure to the OS. When the sector is written to by the OS, the firmware will remember that it had a read error, and now it knows the (new) contents of the sector, so it will make a remapping entry, use the new sector and report success to the OS. Therefore, the easiest way to enforce remapping is to first read the whole disk with dd (so all bad blocks are known to the firmware), and then write to the whole disk so the actual remapping will occur: # dd if=/dev/ad1 of=/dev/null bs=512 conv=sync,noerror # dd if=/dev/zero of=/dev/ad1 bs=1m Note that this will take a long time, possibly several hours, depending on the size of the disk. You can press Ctrl-T to see a progress report on the dd(1) command. Note that bs=512 conv=sync,noerror is important for the first pass, in order to make sure that dd(1) handles every single sector and continues correctly on errors. Needless to say, that will ERASE all data on the disk. You will have to fdisk + bsdlabel + newfs afterwards. If you have done all of that and you _still_ continue to get bad sector messages, it most probably means that the disk drive has run out of spare sectors. In that case you should replace the drive immediately. Remember that disks are pretty cheap these days, and it might not be worth going through all that hassle in the first place. I'd recommend you buy a new drive and save you some hours of work, a bunch of hairs turning grey, and some swearing. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd In My Egoistical Opinion, most people's C programs should be indented six feet downward and covered with dirt. -- Blair P. Houghton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Again: fsck_ffs memory requirements
Polytropon [EMAIL PROTECTED] wrote: On Thu, 21 Aug 2008 17:23:41 +0200, Kris Kennaway [EMAIL PROTECTED] wrote: Increase kern.maxdsiz. It seems that I don't have kern.maxdsiz: # sysctl kern.maxdsiz sysctl: unknown oid 'kern.maxdsiz' Am I looking at the wrong place? Allthough I've been using FreeBSD since 4.0, it seems that I got a little stupid over the years... :-/ It's a loader tunable, so you must put it in /boot/loader.conf. Best regards, and good luck with your recovery! Oliver PS: Better make good backups next time. -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd A language that doesn't have everything is actually easier to program in than some that do. -- Dennis M. Ritchie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /etc/groups gone
[EMAIL PROTECTED] wrote: Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm instead of vi, was already sleepying). Luckily only a few groups (2-3) was created earlier. No backup, of course. Yes, there is a backup. Restore from /var/backups/group.bak. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is to C as Lung Cancer is to Lung. -- Thomas Funke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recommended newfs settings for 600GB mail (maildir) store?
Chris St Denis wrote: I recently created a new mail server with a 600GB raid5 partition to store maildirs. When I created it, I used a newfs -i 4096 but when I had recent hardware problems the background FSCK took a very long time, and I'm concerned that the -i 4096 may have made that a lot worse. Yes, that's probably the case. So I ask. What newfs settings do you recommend for a 600GB partition dedicated to maildirs? You will need a large number of inodes, so the fsck time will be very long if you use plain UFS. There are no newfs options that will be able to help it, I'm afraid. You should either use UFS with gjournal, or use ZFS. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd PI: int f[9814],b,c=9814,g,i;long a=1e4,d,e,h; main(){for(;b=c,c-=14;i=printf(%04d,e+d/a),e=d%a) while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;} ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Python script for configuring wifi hot spots on FreeBSD
Andrew Gould wrote: [...] 2. I store data in Python dictionaries. When I display the dictionaries, the numbered options are not in order and I can't figure out how to sort them. This appears to be a cosmetic issue only; but it still bothers me. Python dictionaries aren't ordered. If you need to retrieve the items of a dictionary in a particular order, there are several ways to do that. For example, you can use the keys() method to get a list of the keys in the dictionary, and then apply the sort() method or the sorted() function to that list: my_dict = {foo: 42, bar: 17, baz: 83, hurz: 55} for key in sorted(my_dict.keys()): print key, my_dict[key] Or: for key, value in sorted(my_dict.items()): print key, value I have attached the script -- it is only 4KB. I didn't see it. Maybe the mailing list software removed it. I suggest you upload it somewhere and tell us the URL. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als wenn ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen pangalaktischen Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht, was ich damit soll. -- Frank Klemm, de.comp.os.unix.discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Evaluate strings in bash
Matias Surdi wrote: # echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk I'd like to have a second variable like: [code] # echo $newvariable make -m /usr/src/share/mk # newvariable=`eval echo $BINMAKE` By the way, this has nothing to do with bash. Those things work with every bourne shell, including FreeBSD's /bin/sh. It even works with Solaris' /bin/sh which is very far from a POSIX shell. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++ is the only current language making COBOL look good. -- Bertrand Meyer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [OT] Evaluate strings in bash
Matias Surdi wrote: Oliver Fromme escribió: Matias Surdi wrote: # echo $BINMAKE `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk I'd like to have a second variable like: [code] # echo $newvariable make -m /usr/src/share/mk # newvariable=`eval echo $BINMAKE` I've already tried that, but doesn't work. It does work. Maybe you forgot the echo part? Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard. -- Peter van der Linden ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Drive Reliability
Jason C. Wells wrote: I am running FreeBSD 6.3. I have found that attaching and detaching USB drives to my box is unreliable. Is this the experience of other users? I guess I've been lucky, because I haven't had much of a problem with various USB storage devices so far. I haven't been on FreeBSD 6.x for long, though; I went straight to 7-current a few months before 7.0 was released, then followed the 7-stable branch. The only thing that doesn't work is detaching a device (whether USB or other) while it is still mounted. This is supposed to be fixed in 8-current. (My personal impression is that 8-current is quite reliable at the moment, so if you have a spare machine it might be worth giving it a try. Be sure to subscribe to the -current mailing list so you don't miss any important heads up messages.) Another thing worth mentioning is that a new USB stack is under development by Hans Petter Selasky. I'm not sure when it will be committed to 8-current, but I think it's pretty much ready. It will certainly fix some of the problems people are seeing with the old USB stack. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Share your knowledge. It is a way to achieve immortality. -- The Dalai Lama ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell scripts: variable assignment within read loops
David Wolfskill wrote: I am writing a (Bourne) shell script that is intended (among other things) to obtain information from a command, such as: netstat -nibd -f inet by reading and parsing the output. However, the obvious (to me) approach of piping the output of the command to the standard input of a while read ... statement turns out to be not very useful; [...] Well, that's not *quite* accurate:the assignment is done all right, but in the latter case, it appears to be done in a subshell, so by the time we get to the echo statement, any variable assignments from within the read loop have vanished. That's correct, as Giorgos has already pointed out. Most bourne shells execute all parts of a pipe except the first one in a subshell, so any assignments are lost. A common way is to echo things from within the subshell and capture them through command expansion, like this: foo=$( something | while read x; do whatever echo value done ) That will assign value to the variable foo. This only works for single variables, of course. If you want to assign to multiple variables, it gets a little more tricky. One way is to use single assignment like above, and then split it into several variables on a delimiter character. The following will split $foo on whitespace and assign the results to $1, $2, $3 etc., with the count in $#: set -- $foo You can split on any other character by setting the IFS variable of the shell appropriately. If you know in advance how many values you'll get, another possibility is to use a so-called here document: read foo1 foo2 foo3 rest end $( something | while read x; do whatever echo -n value done ) end For example, a simple way to get hour, minutes and seconds into three variables without having to exec date(1) three times: read H M S end $( date +%H %M %S ) end Or: set -- $( date +%H %M %S ) H=$1 M=$2 S=$3 It gets more complicated if you need to get the exit code of some parts of the pipe except the last one. You didn't ask for that, though. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd 'Instead of asking why a piece of software is using 1970s technology, start asking why software is ignoring 30 years of accumulated wisdom.' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible to run i386 only, on a amd64 freebsd 7?
Christopher Joyner wrote: Is there some way of doing that? Running i386 software on amd64 machine? Yes. FreeBSD/amd64 contains a compatibility facility for i386 binaries. It should just work out of the box, unless disabled explicitly. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code (taken from comp.lang.awk FAQ) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make.conf
Mitja [EMAIL PROTECTED] wrote: .if ${.CURDIR:M*/ports/editors/openoffice.org-2} WITH_KDE= yes .endif I think the spaces at the beginning of the line can cause problems. Please try removing them. It is customary that assignments begin at the first column in makefiles. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible to run i386 only, on a amd64 freebsd 7?
Sean Cavanaugh [EMAIL PROTECTED] wrote: he was asking about ports that are labled as i386 only Well, he didn't mention building ports. He only said *running* i386 software on amd64, which is certainly possible. Whether i386 only packages will run on amd64 depends on the reason why they're marked as such. If they contain kernel code (such as the nvidia binary driver), then it won't work. Otherwise it should work. However, it is important to know that i386 binaries can only be linked with i386 libraries. So if you need to run an third-party i386 binary that requires a third- party library, then that library must be i386, too. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Passwords are like underwear. You don't share them, you don't hang them on your monitor or under your keyboard, you don't email them, or put them on a web site, and you must change them very often. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible to run i386 only, on a amd64 freebsd 7?
Christopher Joyner wrote: Ok I see, I understand that I am able to run i386 software on my amd64 (Pentium D). Because of the error message i386 only, how do I make it install? Do I use a force switch? I am going to try some things after posting this. You didn't mention that you want to build a i386-only port. The easiest way to circumvent that restriction is to down- load the i386 package of that port and install it. Whether you can make that work depends on what kind of port it is. If you tell us *what* software you're actualy trying to install, we might be able to provide further assistance. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925 ___ 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 device
Michael Lednev wrote: Warren Block wrote: Michael Lednev wrote: I've obtained USB thermometer and want to make it usable with FreeBSD. It identifies itself as: kernel: ugen0: vendor 0x4348 USB-SER!, rev 1.10/2.50, addr 2 Under Windows it looks like standard COM-port. When I try to use some existing drivers like ucycom or uplcom it gives no effect. How can this device be used under FreeBSD? It appears to need the uchcom driver, which is in CURRENT but not yet in 6 or 7. See this thread: http://lists.freebsd.org/pipermail/freebsd-stable/2008-February/040872.html Thanks! I'll try to examine it at the weekend. Did you have any success? What exactly is the name and brand of your USB thermometer? I'm asking because I'm also interested in obtaining an external thermometer that would work with FreeBSD. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Whatever happened to the days when hacking started at the cerebral cortex, and not at the keyboard? -- Sid on userfriendly.org by Illiad, 2007-06-20 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Max. number of opened files, efficiency
Laszlo Nagy wrote: In fact I do not need any name associated with the file. I just need a temporary file object, I would like to access it in read write mode and then throw it. In that case, why do you use physical (i.e. on-disk) files at all? You could simply use memory objects. If you want to use file semantics (with read() and write() methods etc.), you can easily do that in Python with memory objects, too. See the StringIO and cStringIO modules for details. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing. -- Mother Teresa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Interpreting top, vmstat, and company
Christopher Cowart wrote: What is the difference between the SIZE and RES fields of top? These are the same as the SIZ and RSS columns in ps(1). The former is the total virtual size of the process, i.e. the sum of all pages mapped into the process. The latter is the part that is currently resident, i.e. in physical RAM. Therefore you have always SIZ = RSS. If RSS is 0, it usually means that the process is completely swapped to disk. Note that *both* numbers include pages shared with other processes, such as text pages (that's executable code, not ASCII text) from binaries and libraries, and shared memory. How does this work with a threaded program like apache? Multiple threads within the same process always share the memory. So, as far as the memory consumption is concerned, it doesn't matter at all if a process is threaded or not, and how many threads it contains. Some sample top output on this host: Mem: 131M Active, 3754M Inact, 425M Wired, 177M Cache, 214M Buf, 3422M Free Swap: 16G Total, 24K Used, 16G Free [...] PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 32361 root 1 960 106M 16604K select 2 0:02 0.00% httpd 50687 www 1 200 106M 17196K lockf 0 0:01 0.00% httpd I'm having a hard time accounting for the 3.8GB of inactive memory That looks like you have really plenty of RAM. Basically those numbers mean this: 425 MB of RAM is wired memory. Most of this (maybe even all) belongs to the kernel. Wired means memory pages that are fixed in physical RAM. The kernel cannot be paged to disk (at least not in FreeBSD), so kernel memory is usually wired. 131 MB of RAM is actively being used by processes. Everything else is just different kinds of cache. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Software gets slower faster than hardware gets faster. -- Niklaus Wirth ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cluster Filesystem
Norberto Meijome wrote: Rudi Kramer - MWEB wrote: Don't forget about the HAMMER file system which Matthew Dillon over at DragonFly BSD is busy working on. It's not 100% finished but hopefully soon and it should be ported to FreeBSD. It looks to be pretty good (Exabytes of space?!!!?) More info: Interview with Matthew: http://cisx1.uma.maine.edu/~wbackman/bsdtalk/bsdtalk154.mp3 Website: http://www.dragonflybsd.org/hammer/ Wiki: http://en.wikipedia.org/wiki/HAMMER interesting. it mentions mirroring...but clustering? as in, having a unique ( or several) namespaces that, when addressed, allow you to access any of the nodes that provide storage? Note that Matt's terminology is a little bit confusing. What he calls mirroring in HAMMER has nothing to do with RAID-1 (like gmirror), but it is rather a kind of replication. The mirroring feature allows replication between local and/or remote file systems. So, yes, it is intended to support clustering. Clustering and SSI is the main goal of DragonFly BSD, after all. Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd In my experience the term transparent proxy is an oxymoron (like jumbo shrimp). Transparent proxies seem to vary from the distortions of a funhouse mirror to barely translucent. I really, really dislike them when trying to figure out the corrective lenses needed with each of them. -- R. Kevin Oberman, Network Engineer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing tape changer with USB disk drives.
Wojciech Puchar [EMAIL PROTECTED] wrote: you must have something wrong. my USB drive gets 27MB/s. yes this 480Mbit/s is USB isn't real, but half of it is. I agree. Want to take this private and help figure out what's wrong? :-) i simply have no idea why it could work so slow. Cheap controller in the USB enclosure. I've used quite a few USB enclosures in the past years, and there are significant performance differences. As a rule of thumb, the cheaper the box, the slower it is. Of course there are exceptions to that rule. By the way, for backup purposes I use a hot-swappable IDE drive frame. The one I use is PATA (UDMA-133), but there are also ones for SATA. It's much faster than USB and more reliable. You can use atacontrol(8) to attach and detach the drive while the system is running. (For that to work reliably, the frame must be the only device on its channel, i.e. no slave, in the PATA case.) Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski, when asked: What's wrong with perl? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]