X-Authentication-Warning (FreeBSD 8.1 STABLE)
Hi, A client is sending out a newsletter and I'm trying to set the FreeBSD server user (www) to be trusted so that I don't get this warning in the message header: X-Authentication-Warning: host.domain.net: www set sender to post@domain.netusing -f I assume this is to be set in the sendmail.cf file (Twww), but on my FreeBSD 8.1 STABLE I have both a sendmail.cf and a freebsd.cf aswell as a freebsd.submit.cf. I haven't played around with sendmail for a couple of years, but I also seem to remember that you don't just edit the .cf file, but infact edit the mc file and compile, install and restart? Can someone please guide me through here? PS! I'm the only login user on this system, but are there security issues related to this that I should be concerned with? Thanks! Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How can I disable Internet access for programs running in Wine?
I just can find any solution... Please help! thanks.. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
setting up svn server - Connection refused
I'm learning how to set up svn server. I've read through several sections of http://svnbook.red-bean.com/nightly/en/ Here's what I do: ZEEV svnadmin create /home/mexas/zzz ZEEV svnlook info zzz 2011-02-25 09:15:28 + (Fri, 25 Feb 2011) 0 ZEEV svnserve -d ZEEV ps ax | grep svnserve 66952 ?? Ss 0:00.01 /usr/local/bin/svnserve.bin -d ZEEV mkdir /home/mexas/zzz.work ZEEV cd /home/mexas/zzz.work/ When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused ZEEV ifconfig em1 em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ZEEV I get exactly the same Connection refused if I connect from another host. I turned the firewall off completely. What could be the problems? Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Backtick versus $()
Thorsten Glaser t...@mirbsd.org wrote: tcsh is not a shell ... http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ If you are _that_ strongly opposed to (t)csh, sir, I submit that you are wasting your time reading and posting to a FreeBSD 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: Strange behavior of MTU on loopback interfaces.
On 2/25/2011 9:29 AM, c0re wrote: Hello all! I'm testing setting lower MTU on loopback interfaces to avoid some MTU problems with IPSEC in a path of traffic. ifconfig lo1 create ifconfig lo1 mtu 1300 ifconfig lo1 5.5.5.5/32 # ifconfig lo1 lo1: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 1300 inet 5.5.5.5 netmask 0x #ifconfig em0 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM ether 12:ac:29:7c:fa:39 inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255 media: Ethernet autoselect (1000baseTXfull-duplex) status: active And I set only one Listen 5.5.5.5:80 in http.conf in apache 2.2 # sockstat -4 | grep 80 www httpd 96843 3 tcp4 5.5.5.5:80*:* www httpd 96838 3 tcp4 5.5.5.5:80*:* www httpd 96837 3 tcp4 5.5.5.5:80*:* www httpd 96836 3 tcp4 5.5.5.5:80*:* www httpd 96835 3 tcp4 5.5.5.5:80*:* www httpd 96834 3 tcp4 5.5.5.5:80*:* root httpd 96833 3 tcp4 5.5.5.5:80*:* I run tcpdump -ni em0 port 80. And made telnet 5.5.5.5 80 from other host and saw something wrong. 10:26:01.640866 IP 10.0.0.2.57553 5.5.5.5.80: S 1049284626:1049284626(0) win 65535mss 1460,sackOK,eol 10:26:01.640902 IP 5.5.5.5.80 10.0.0.2.57553: S 2144222949:2144222949(0) ack 1049284627 win 65535mss 1460,sackOK,eol 10:26:01.642632 IP 10.0.0.2.57553 5.5.5.5.80: . ack 1 win 65535 5.5.5.5:80 said that it has got tcp mss 1460. Why? I was waiting for something like 1260. It uses the MTU of the outgoing path, which is 1500. You change the MTU for specific paths, using route and the mtu modifier. Like this: lab# ifconfig em0 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM ether 08:00:27:17:c3:de inet 192.168.73.193 netmask 0xff00 broadcast 192.168.73.255 media: Ethernet autoselect (1000baseT full-duplex) status: active lab# route change 192.168.73.0 -mtu 1100 change net 192.168.73.0 lab# route -n get 192.168.73.0 route to: 192.168.73.0 destination: 192.168.73.0 mask: 255.255.255.0 interface: em0 flags: UP,DONE,STATIC recvpipe sendpipe ssthresh rtt,msecmtuweightexpire 0 0 0 0 1100 1 0 lab# All packets going to 192.168.73.0/24 will use IP packet sizes up to 1100. IMHO it's better to leave the physical interface's MTU unchanged and use the routing subsystem to define the maximum IP packet size per path. HTH, Nikos ___ 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: Strange behavior of MTU on loopback interfaces.
2011/2/25 Nikos Vassiliadis nv...@gmx.com: On 2/25/2011 9:29 AM, c0re wrote: Hello all! I'm testing setting lower MTU on loopback interfaces to avoid some MTU problems with IPSEC in a path of traffic. ifconfig lo1 create ifconfig lo1 mtu 1300 ifconfig lo1 5.5.5.5/32 # ifconfig lo1 lo1: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 1300 inet 5.5.5.5 netmask 0x #ifconfig em0 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM ether 12:ac:29:7c:fa:39 inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255 media: Ethernet autoselect (1000baseTXfull-duplex) status: active And I set only one Listen 5.5.5.5:80 in http.conf in apache 2.2 # sockstat -4 | grep 80 www httpd 96843 3 tcp4 5.5.5.5:80 *:* www httpd 96838 3 tcp4 5.5.5.5:80 *:* www httpd 96837 3 tcp4 5.5.5.5:80 *:* www httpd 96836 3 tcp4 5.5.5.5:80 *:* www httpd 96835 3 tcp4 5.5.5.5:80 *:* www httpd 96834 3 tcp4 5.5.5.5:80 *:* root httpd 96833 3 tcp4 5.5.5.5:80 *:* I run tcpdump -ni em0 port 80. And made telnet 5.5.5.5 80 from other host and saw something wrong. 10:26:01.640866 IP 10.0.0.2.57553 5.5.5.5.80: S 1049284626:1049284626(0) win 65535mss 1460,sackOK,eol 10:26:01.640902 IP 5.5.5.5.80 10.0.0.2.57553: S 2144222949:2144222949(0) ack 1049284627 win 65535mss 1460,sackOK,eol 10:26:01.642632 IP 10.0.0.2.57553 5.5.5.5.80: . ack 1 win 65535 5.5.5.5:80 said that it has got tcp mss 1460. Why? I was waiting for something like 1260. It uses the MTU of the outgoing path, which is 1500. You change the MTU for specific paths, using route and the mtu modifier. Like this: lab# ifconfig em0 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM ether 08:00:27:17:c3:de inet 192.168.73.193 netmask 0xff00 broadcast 192.168.73.255 media: Ethernet autoselect (1000baseT full-duplex) status: active lab# route change 192.168.73.0 -mtu 1100 change net 192.168.73.0 lab# route -n get 192.168.73.0 route to: 192.168.73.0 destination: 192.168.73.0 mask: 255.255.255.0 interface: em0 flags: UP,DONE,STATIC recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1100 1 0 lab# All packets going to 192.168.73.0/24 will use IP packet sizes up to 1100. IMHO it's better to leave the physical interface's MTU unchanged and use the routing subsystem to define the maximum IP packet size per path. HTH, Nikos Works like a charm! # route change 0.0.0.0 -mtu 1300 change net 0.0.0.0 # tcpdump -ni em0 host 5.5.5.5 13:42:58.996721 IP 10.0.0.2.51933 5.5.5.5.80: S 626695541:626695541(0) win 64512 mss 1460,nop,nop,sackOK 13:42:58.996760 IP 5.5.5.5.80 10.0.0.2.51933: S 289198669:289198669(0) ack 626695542 win 65535 mss 1260,sackOK,eol 13:42:58.999455 IP 10.0.0.2.51933 5.5.5.5.80: . ack 1 win 64512 Thank you very much! ___ 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
GELI reliability
Hi, I'm curious about GELIs theoretical behavior when faced with errors, and also any experience anyone might have. As an example, if I run ZFS with raidz over X drives, then the zpool should have no issue surviving the complete loss of a full disk. Also, the familiar FAILURE - READ_DMA or READ_DMA48 errors from a disk having a bad day should also be no issue, certainly not an issue that would result in crash, or worse still, loss of data. What I'm wondering is how much worse off the data would be if I were to slide inn a GELI layer between the physical drives, and the zpool. That is, if I use GELI directly on the individual drives ( /dev/ada0, /dev/ada1 etc), then make a raidz pool on top of the .eli devices ( /dev/ada0.eli, /dev/ada1.eli etc). For READ_DMA type errors, I suppose GELI could just forward the same errors up the stack, and that'd be that, the errors wouldn't be any more severe than what I'd have anyway? One exception could be if GELI sector size is larger than disk sector size. Not being too familiar with GELIs internal workings, I'm not sure that has to be the case though. GELI sectors have a new IV pr. sector, but the crypto itself is still done in 128 or 256 bit blocks, so given a single faulty disk sector, the rest of the GELI sector could still be read and decrypted? Or are entire GELI sectors faulted if a (smaller) underlaying sector is unreadable? And finally, what if an entire drive dies a cruel and horribly death, all of it's data returning to the large bit bucket in the sky? Would GELI simply relay the same errors upstack to ZFS, so ZFS would be able to handle it as well as it would have without GELI? I've used ZFS over GELI in the past, but never had any hardware issues to see how it plays out. I'm considering deploying it for more stuff now, and reliability wise, from what I know, I could loose very little by using GELI, or it could be time to buy napkins, because the risk of a grown man crying while trying to mop up spilled bits from the floor is increased significantly. (backups should avoid the need for tears though, besides, I don't have a mop) Terje ___ 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
Kernel compiling problems
Heya! Anybody know what's wrong with this? ## make buildworld buildkernel KERNCONF=NINJA cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/sysv_msg.c /usr/src/sys/kern/sysv_msg.c:163: error: invalid application of 'sizeof' to incomplete type 'struct freebsd7_msgctl_args' /usr/src/sys/kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here (not in a function) /usr/src/sys/kern/sysv_msg.c:1463: error: initializer element is not constant /usr/src/sys/kern/sysv_msg.c:1463: error: (near initialization for 'msgcalls[0]') cc1: warnings being treated as errors /usr/src/sys/kern/sysv_msg.c:1507: warning: function declaration isn't a prototype /usr/src/sys/kern/sysv_msg.c: In function 'freebsd7_msgctl': /usr/src/sys/kern/sysv_msg.c:1516: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1516: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1516: warning: comparison between pointer and integer /usr/src/sys/kern/sysv_msg.c:1517: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1517: error: request for member 'buf' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'msqid' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 2 of 'kern_msgctl' makes integer from pointer without a cast /usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 3 of 'kern_msgctl' makes integer from pointer without a cast /usr/src/sys/kern/sysv_msg.c:1535: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1535: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1535: warning: comparison between pointer and integer /usr/src/sys/kern/sysv_msg.c:1548: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1548: error: request for member 'buf' in something not a structure or union *** Error code 1 Stop in /usr/obj/usr/src/sys/NINJA. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ## /usr/obj/usr/src/sys/NINJA cpu I586_CPU ident NINJA options SCHED_ULE options PREEMPTION options FFS options SOFTUPDATES options UFS_ACL options UFS_DIRHASH options UFS_GJOURNAL options MD_ROOT options MSDOSFS options CD9660 options PROCFS options PSEUDOFS options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options COMPAT_FREEBSD6 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options KBD_INSTALL_CDEV options _KPOSIX_PRIORITY_SCHEDULING device pci device sio device ata device atadisk device atapicd options ATA_STATIC_ID device fdc device atkbdc device atkbd device psm device vga device splash device sc device sound device ether device miibus device rl device ep device loop device random device tun device pty device md options AUDIT options INET options INET6 device gif device faith device bpf device pf device pflog device pfsync options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC options ALTQ_PRIQ ## uname -v FreeBSD 7.0-STABLE #0: Thu Jul 24 18:57:08 CEST 2008 ## /etc/cvsupfile *default host=cvsup.no.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8 *default delete use-rel-suffix src-all doc-all tag=. Many thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Tuning routing table size in FreeBSD 8.0 and 7.2
On Thu, Feb 24, 2011 at 9:37 PM, nikitha sumi.tec...@gmail.com wrote: Thank you all, for your timely reply.. To answer Niko's question: Just i'm doing some performance/stress testing of a freebsd router.. :-) -Sumi On Thu, Feb 24, 2011 at 10:11 PM, Nikos Vassiliadis nv...@gmx.com wrote: On 2/24/2011 4:51 PM, Damien Fleuriot wrote: On 2/24/11 3:00 PM, nikitha wrote: Hi, Could you plz share the information on the maximum number of routes that can be added (by default) in FREEBSD 8.0/7.2 kernel? In Linux the sysctl rt_max_size is used. Is there a similar tunable parameter in freeBSD? [snip] I could not find a sysctl that matched what you're looking for. AFAIK, the routing table is limited only by the amount of RAM you can allocate to it. Yes. You can use vmstat -z | grep rtentry to examine it. It seems trivial to add a limit there(without having thought of multiple routing tables and vnet). Out of curiosity, why would you want such a limit? ___ 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 Hello Sumi, What tools do you use to perform the tests? thanks, v -- network warrior ___ 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: HAL's demise
On Thu, 24 Feb 2011 20:20:13 -0700 (MST) Warren Block wbl...@wonkity.com articulated: On Thu, 24 Feb 2011, Edwin L. Culp W. wrote: 2011/2/24 Warren Block wbl...@wonkity.com: On Thu, 24 Feb 2011, Jerry wrote: Is FreeBSD now HAL free or is it still a requirement? I still have it activated via /etc/rc.conf If it is not needed, I would be happy to remove the entry. It's not a requirement. You can build xorg-server without it, and there are other mechanisms available to provide at least some of the same functionality in FreeBSD. For example, using devd to detect hot-plugged USB devices. There isn't yet a complete replacement like Linux's udev, though. Sounded like a good idea to me but ;) pkg_deinstall hal-0.5.14_12 --- Deinstalling 'hal-0.5.14_12' pkg_delete: package 'hal-0.5.14_12' is required by these other packages and may not be deinstalled: Well, actually I wasn't thinking of anything but xorg and device detection. The newest xfce removed support for hal. Maybe GNOME and KDE are in the process of doing the same. GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? -- Jerry ✌ freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ 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: HAL's demise
Jerry writes: GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? Lack of someone willing, able, and available to do the work. (Should your name be on that list? :-) Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Backtick versus $()
On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the grammaticall brokenness of that sentence. maybe you should spam the hundreds of subscribers of this mailing list with this line: s,grammaticall,grammatical, jesus christ, you're such a friggen noob Before you criticise another's spelling/grammar, perhaps you could learn where the Shift key is. Also, some quotes from you (spot the errors): and tcsh is inferior to mksh in everyway tcsh built uppon that code instead of basing [wow, two in the same sentence] been consistently argueing against the opposite a buncha noobs is what you both are [paira perhaps] Normally it's considered bad form to attack another's use of language, but you lose that protection if you pick on others' QWC. By the way, there's no such thing as a 'strawman', and perhaps you could read about ad hominem arguments [1] and how you automatically lose any arguments where you bring them in. Chris [1] http://en.wikipedia.org/wiki/Ad_hominem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting up svn server - Connection refused
On Feb 25, 2011, at 3:23 AM, Anton Shterenlikht wrote: When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused Forget the SVN server daemon its much easier to use svn+ssh:// than svn:// -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Kernel compiling problems
On 25 February 2011 11:21, Redd Vinylene reddvinyl...@gmail.com wrote: Heya! Anybody know what's wrong with this? ## make buildworld buildkernel KERNCONF=NINJA Have you successfully used NINJA to build a kernel before? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Kernel compiling problems
Do not use a custom kern for your upgrade, build generic with pf and altq. I'm not sure your CPU type is correct ? I could be wrong, haven't used 32bits for a while. Make clean, then build the world, then your kern. Once you have generic working, make your custom kern --- Fleuriot Damien On 25 Feb 2011, at 12:21, Redd Vinylene reddvinyl...@gmail.com wrote: Heya! Anybody know what's wrong with this? ## make buildworld buildkernel KERNCONF=NINJA cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/kern/sysv_msg.c /usr/src/sys/kern/sysv_msg.c:163: error: invalid application of 'sizeof' to incomplete type 'struct freebsd7_msgctl_args' /usr/src/sys/kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here (not in a function) /usr/src/sys/kern/sysv_msg.c:1463: error: initializer element is not constant /usr/src/sys/kern/sysv_msg.c:1463: error: (near initialization for 'msgcalls[0]') cc1: warnings being treated as errors /usr/src/sys/kern/sysv_msg.c:1507: warning: function declaration isn't a prototype /usr/src/sys/kern/sysv_msg.c: In function 'freebsd7_msgctl': /usr/src/sys/kern/sysv_msg.c:1516: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1516: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1516: warning: comparison between pointer and integer /usr/src/sys/kern/sysv_msg.c:1517: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1517: error: request for member 'buf' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'msqid' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1532: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 2 of 'kern_msgctl' makes integer from pointer without a cast /usr/src/sys/kern/sysv_msg.c:1532: warning: passing argument 3 of 'kern_msgctl' makes integer from pointer without a cast /usr/src/sys/kern/sysv_msg.c:1535: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1535: error: request for member 'cmd' in something not a structure or union /usr/src/sys/kern/sysv_msg.c:1535: warning: comparison between pointer and integer /usr/src/sys/kern/sysv_msg.c:1548: error: dereferencing pointer to incomplete type /usr/src/sys/kern/sysv_msg.c:1548: error: request for member 'buf' in something not a structure or union *** Error code 1 Stop in /usr/obj/usr/src/sys/NINJA. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ## /usr/obj/usr/src/sys/NINJA cpu I586_CPU ident NINJA options SCHED_ULE options PREEMPTION options FFS options SOFTUPDATES options UFS_ACL options UFS_DIRHASH options UFS_GJOURNAL options MD_ROOT options MSDOSFS options CD9660 options PROCFS options PSEUDOFS options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options COMPAT_FREEBSD6 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options KBD_INSTALL_CDEV options _KPOSIX_PRIORITY_SCHEDULING device pci device sio device ata device atadisk device atapicd options ATA_STATIC_ID device fdc device atkbdc device atkbd device psm device vga device splash device sc device sound device ether device miibus device rl device ep device loop device random device tun device pty device md options AUDIT options INET options INET6 device gif device faith device bpf device pf device pflog device pfsync options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC options ALTQ_PRIQ ## uname -v FreeBSD 7.0-STABLE #0: Thu Jul 24 18:57:08 CEST 2008 ## /etc/cvsupfile *default host=cvsup.no.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_8 *default delete use-rel-suffix src-all doc-all tag=. Many thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail
Re: setting up svn server - Connection refused
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 4:23 AM, Anton Shterenlikht wrote: I'm learning how to set up svn server. I've read through several sections of http://svnbook.red-bean.com/nightly/en/ Here's what I do: ZEEV svnadmin create /home/mexas/zzz ZEEV svnlook info zzz 2011-02-25 09:15:28 + (Fri, 25 Feb 2011) 0 ZEEV svnserve -d ZEEV ps ax | grep svnserve 66952 ?? Ss 0:00.01 /usr/local/bin/svnserve.bin -d ZEEV mkdir /home/mexas/zzz.work ZEEV cd /home/mexas/zzz.work/ When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused ZEEV ifconfig em1 em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ZEEV I get exactly the same Connection refused if I connect from another host. I turned the firewall off completely. What could be the problems? Many thanks Anton Hi Anton, The first place that I'd start is checking if the TCP port for svnserve is listening for connections: netstat -an | grep 3690 If it isn't, then something is not working correctly when svnserve starts in daemon mode. If it is listening, then something is still blocking the connection from your svn client to the TCP port. The fact that you're getting a localhost: Network is unreachable error is strange. What is the output of /sbin/ifconfig -a and netstat -rn? Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1nuYIACgkQ0sRouByUApAhIACeOBk9/CGcoj3rsg49P97u8ql3 LnYAoMTjq71cLafJi/NACTU4gIsB2VOE =XTJF -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 09:15:30AM -0500, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 4:23 AM, Anton Shterenlikht wrote: I'm learning how to set up svn server. I've read through several sections of http://svnbook.red-bean.com/nightly/en/ Here's what I do: ZEEV svnadmin create /home/mexas/zzz ZEEV svnlook info zzz 2011-02-25 09:15:28 + (Fri, 25 Feb 2011) 0 ZEEV svnserve -d ZEEV ps ax | grep svnserve 66952 ?? Ss 0:00.01 /usr/local/bin/svnserve.bin -d ZEEV mkdir /home/mexas/zzz.work ZEEV cd /home/mexas/zzz.work/ When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused ZEEV ifconfig em1 em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ZEEV I get exactly the same Connection refused if I connect from another host. I turned the firewall off completely. What could be the problems? Many thanks Anton Hi Anton, The first place that I'd start is checking if the TCP port for svnserve is listening for connections: netstat -an | grep 3690 # svnserve -d # netstat -an | grep 3690 tcp6 0 0 *.3690 *.*LISTEN # If it isn't, then something is not working correctly when svnserve starts in daemon mode. If it is listening, then something is still blocking the connection from your svn client to the TCP port. The fact that you're getting a localhost: Network is unreachable error is strange. What is the output of /sbin/ifconfig -a and netstat -rn? # /sbin/ifconfig -a em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1c inet 137.222.187.28 netmask 0xff00 broadcast 137.222.187.255 inet6 fe80::213:21ff:fe5b:51c%em0 prefixlen 64 scopeid 0x4 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (1000baseT full-duplex) status: active em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 options=3RXCSUM,TXCSUM inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL # # netstat -rn Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default137.222.187.250UGS 0 697em0 10.10.10.0/24 link#5 U 00em1 10.10.10.14link#5 UHS 00lo0 127.0.0.1 link#6 UH 0 44lo0 137.222.187.0/24 link#4 U 1 338em0 137.222.187.28 link#4 UHS 00lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRSlo0 ::1 ::1 UH lo0 :::0.0.0.0/96 ::1 UGRSlo0 fe80::/10 ::1 UGRSlo0 fe80::%em0/64 link#4U em0 fe80::213:21ff:fe5b:51c%em0 link#4UHS lo0 fe80::%em1/64 link#5U em1 fe80::213:21ff:fe5b:51d%em1 link#5UHS lo0 fe80::%lo0/64 link#6U lo0 fe80::1%lo0 link#6UHS lo0 ff01:4::/32 fe80::213:21ff:fe5b:51c%em0 U em0 ff01:5::/32 fe80::213:21ff:fe5b:51d%em1 U em1
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 09:23:03AM +, Anton Shterenlikht wrote: I'm learning how to set up svn server. I've read through several sections of http://svnbook.red-bean.com/nightly/en/ Here's what I do: ZEEV svnadmin create /home/mexas/zzz ZEEV svnlook info zzz 2011-02-25 09:15:28 + (Fri, 25 Feb 2011) 0 ZEEV svnserve -d ZEEV ps ax | grep svnserve 66952 ?? Ss 0:00.01 /usr/local/bin/svnserve.bin -d ZEEV mkdir /home/mexas/zzz.work ZEEV cd /home/mexas/zzz.work/ When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable This sounds like it's a problem with your routing table. Does: $ netstat -r show a destination of localhost? $ ping localhost is useful. ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused That's more hopeful. Don't know what's wrong though! ZEEV ifconfig em1 em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ZEEV I get exactly the same Connection refused if I connect from another host. I turned the firewall off completely. What could be the problems? It was a few years ago that I setup my svn repository and I referenced the book you're using too. I launch it out of inetd.conf. I've got the line: svn stream tcp nowait frank /usr/local/bin/svnserve svnserve -i in there. Fixed hosts.allow to only allow machines on the lan to connect and it works well. Sorry I can't be more helpful but a different approach to running a daemon permanently is probably a good idea. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html pgp5ZZz4D6JBu.pgp Description: PGP signature
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 07:09:04AM -0600, David Kelly wrote: On Feb 25, 2011, at 3:23 AM, Anton Shterenlikht wrote: When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused Forget the SVN server daemon its much easier to use svn+ssh:// than svn:// Yes, it is much simpler, and works ok. Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting up svn server - Connection refused
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 9:32 AM, Anton Shterenlikht wrote: [...] Many thanks for your help, Greg. However, following David Kelly's advice, I switched to svn+ssh, and that seems to work fine. Nevertheless, I'm curious to find out why svnserve is not working as expected. Anton Hi Anton, Frank Shute mentioned /etc/hosts.allow in his reply. Is there anything in that file that prevents the connection to TCP port 3690? Otherwise, I didn't see anything in the output of your commands that indicate a problem. When I have a problem like this, I often run the failing command under truss(1) or strace to help me determine why a connection fails or a file cannot be opened. That may help, but I'm glad svn+ssh:// is working in the mean time. Cheers, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1nw+oACgkQ0sRouByUApBfeACeJtju9Tif9Rsxv5DEnO710xnq 1nwAoMH/ECMlKOdJ6NYawQJozohp50yJ =7DbG -END PGP SIGNATURE- ___ 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: HAL's demise
On Fri, 25 Feb 2011, Jerry wrote: GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? Lack of a udev specification, for a start: http://lists.freebsd.org/pipermail/freebsd-x11/2011-February/010481.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 09:59:54AM -0500, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 9:32 AM, Anton Shterenlikht wrote: [...] Many thanks for your help, Greg. However, following David Kelly's advice, I switched to svn+ssh, and that seems to work fine. Nevertheless, I'm curious to find out why svnserve is not working as expected. Anton Hi Anton, Frank Shute mentioned /etc/hosts.allow in his reply. Is there anything in that file that prevents the connection to TCP port 3690? not sure, here it is: # # hosts.allow access control file for tcp wrapped applications. # $FreeBSD: head/etc/hosts.allow 161710 2006-08-29 09:20:48Z ru $ # # NOTE: The hosts.deny file is deprecated. # Place both 'allow' and 'deny' rules in the hosts.allow file. # See hosts_options(5) for the format of this file. # hosts_access(5) no longer fully applies. # Protect against simple DNS spoofing attacks by checking that the # forward and reverse records for the remote host match. If a mismatch # occurs, access is denied, and any positive ident response within # 20 seconds is logged. No protection is afforded against DNS poisoning, # IP spoofing or more complicated attacks. Hosts with no reverse DNS # pass this rule. ALL : PARANOID : RFC931 20 : deny # Allow anything from localhost. Note that an IP address (not a host # name) *MUST* be specified for rpcbind(8). ALL : localhost 127.0.0.1 : allow # Comment out next line if you build libwrap without IPv6 support. ALL : [::1] : allow #ALL : my.machine.example.com 192.0.2.35 : allow # To use IPv6 addresses you must enclose them in []'s #ALL : [fe80::%fxp0]/10 : allow #ALL : [fe80::]/10 : deny #ALL : [2001:db8:2:1:2:3:4:3fe1] : deny #ALL : [2001:db8:2:1::]/64 : allow # Sendmail can help protect you against spammers and relay-rapers sendmail : localhost : allow #sendmail : .nice.guy.example.com : allow #sendmail : .evil.cracker.example.com : deny sendmail : ALL : allow # Rpcbind is used for all RPC services; protect your NFS! # (IP addresses rather than hostnames *MUST* be used here) #rpcbind : 192.0.2.32/255.255.255.224 : allow #rpcbind : 192.0.2.96/255.255.255.224 : allow rpcbind : ALL : deny # NIS master server. Only local nets should have access # (Since this is an RPC service, rpcbind needs to be considered) ypserv : localhost : allow #ypserv : .unsafe.my.net.example.com : deny #ypserv : .my.net.example.com : allow ypserv : ALL : deny # sshd : ALL : allow svn : ALL : allow # allow all access from TZAV and pointyhat.freebsd.org ALL : 137.222.187.241 : allow ALL : 69.147.83.43 : allow ALL : 10.10.10.31 : allow # The rest of the daemons are protected. ALL : ALL \ : severity auth.info \ : twist /bin/echo You are not welcome to use %d from %h. Otherwise, I didn't see anything in the output of your commands that indicate a problem. When I have a problem like this, I often run the failing command under truss(1) or strace to help me determine why a connection fails or a file cannot be opened. That may help, but I'm glad svn+ssh:// is working in the mean time. Ok, I might try to learn how to use this tool.. Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Why FreeBSD fetch does not download a file via a proxy for HTTPS URLS (the same works fine for HTTP urls)
Hi RW, Thanks alot for your reply. Do you mean to say curl also not using a CONNECT to tunnel through to the actual server? How can I achieve downloading files HTTPS over a proxy? Thanks %20http://permalink.gmane.org/gmane.os.freebsd.devel.hackers/42588 -Chandra Hi All, I am working on a project where i need to download a file via a proxy server using HTTPS protocol. I found that fetch does not work/support HTTPS requests over a proxy. I just checked and neither do wget nor curl. I could overcome the above problem if I do the following change. 1375: 1.58 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.58 des 1376:if (purl) { 1.51 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.51 des 1377:URL = purl; I don't think that would work, presumably it would just cause an attempt at an ssl connection to the proxy, followed by a GET request for an https URL. https through a proxy is supposed to use a CONNECT to tunnel through to the actual server. On Thu, Feb 24, 2011 at 12:49 PM, chandra reddy cred...@gmail.com wrote: Hi All, I am working on a project where i need to download a file via a proxy server using HTTPS protocol. I found that fetch does not work/support HTTPS requests over a proxy. My setup would be like this: Intranet Internet --- | https or http | https | Client m/cs - Porxy Server --- Destination Server (or Download server) | | --- I can use https or http protocol between Client and Proxy but only HTTPS is used between proxy and Destination server(or Download server) . I tried to use squid proxy as my proxy server and tried to download a file from my download server to Client m/c using FreeBSD fetch command. It fails to download a file via proxy for HTTPS requests Please note that Proxy setup is 100% correct and a web server (Apache) running fine. [I have tested it using my Mozilla browser on my PC]. I have done the following: 1. *Download a file using HTTPS over a proxy server* #env HTTP_PROXY=http://proxy-server-ip:3128/ /usr/sbin/fetch -v -o /tmp/download.out 'https://destination-server-ip/index.htm' looking up destination-server-ip connecting todestination-server-ip:443 connection established fetch: https://destination-server-ip/index.htm Authentication error Even I have tried this also and found the same error. #env HTTP_PROXY=https://proxy-server-ip:3128/ /usr/sbin/fetch -v -o /tmp/download.out 'https://destination-serve-ip/index.htm' My question is why it is not connected via Proxy sever. It tries to connect directly. I could see that if I use HTTP protocol then it connects via proxy. Please see the logs here. 2. *Download a file using HTTP over a proxy server* #env HTTP_PROXY=http://proxy-server-ip:3128/ /usr/sbin/fetch -v -o /tmp/download.out 'http://destination-server-ip/index.htm' looking up proxy-server-ip connecting to proxy-server-ip:3128 connection established requesting http://destination-server-ip/index.htm Even I have tried this also and found that works fine. #env HTTP_PROXY=https://proxy-server-ip:3128/ /usr/sbin/fetch -v -o /tmp/download.out 'http://destination-serve-ip/index.htm' I have debugged fetch and found that the following check is stopping HTTPS requests over a proxy. *http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c .OR. http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c?annotate=1.78.2.5.4.1 * 1375: 1.58 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.58 des 1376:if (purl strcasecmp(URL-scheme, SCHEME_HTTPS) != 0) { 1.51 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.51 des 1377:URL = purl; I could overcome the above problem if I do the following change. 1375: 1.58 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.58 des 1376:if (purl) { 1.51 http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.51 des 1377:URL = purl; I want to know why HTTPS over proxy is not working with libfetch. I want to make it work how can do it? Thanks -Chandra -- Thanks, cr(); -- Remote debugging a buggy debugger with a cross buggy debugger is a funny thing
freebsd-update housekeeping?
Hi Just noticed how large /var/db/freebsd-update has grown on a box I just upgraded from 7.3 to 7.4 (but I can't recall when I started using it). Is there a recommended approach or just rm the directory if I have no need to roll it back? Thanks Neil
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 1:23 AM, Anton Shterenlikht me...@bristol.ac.uk wrote: I'm learning how to set up svn server. I've read through several sections of http://svnbook.red-bean.com/nightly/en/ Here's what I do: ZEEV svnadmin create /home/mexas/zzz ZEEV svnlook info zzz 2011-02-25 09:15:28 + (Fri, 25 Feb 2011) 0 ZEEV svnserve -d ZEEV ps ax | grep svnserve 66952 ?? Ss 0:00.01 /usr/local/bin/svnserve.bin -d ZEEV mkdir /home/mexas/zzz.work ZEEV cd /home/mexas/zzz.work/ When I try to connect to the svn server, I get this: ZEEV svn co svn://localhost/home/mexas/zzz . svn: Can't connect to host 'localhost': Network is unreachable ZEEV svn co svn://10.10.10.14/home/mexas/zzz . svn: Can't connect to host '10.10.10.14': Connection refused ZEEV ifconfig em1 em1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:13:21:5b:05:1d inet 10.10.10.14 netmask 0xff00 broadcast 10.10.10.255 inet6 fe80::213:21ff:fe5b:51d%em1 prefixlen 64 scopeid 0x5 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL media: Ethernet autoselect (100baseTX full-duplex) status: active ZEEV I get exactly the same Connection refused if I connect from another host. I turned the firewall off completely. What could be the problems? From the rc script (which would probably be better than starting it manually): # Note: # svnserve bind per default at the ipv6 address! # If you want svnserve binding at ipv4 address, you have # to use option 'svnserve_flags' with --listen-host parameter Have you tried something like this in rc.conf: svnserve_flags=-d --listen-port=3690 --listen-host 1.2.3.4 Also check the other variables in that file - you need to specify where the repo is (-r), the user to run as, etc. svn+ssh avoids all of this because there is no sever - it just executes svn in the user's ssh session and manipulate the repo's files directly (this allows users to accidentally or intentionally trash up the repo, so svnserve is safer if you don't fully trust all your committers. Plus you have to watch for permission and umask issues with svn+ssh). -- Rob Farmer ___ 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: Backtick versus $()
On Fri, Feb 25, 2011 at 8:24 AM, Chris Rees utis...@gmail.com wrote: On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the grammaticall brokenness of that sentence. maybe you should spam the hundreds of subscribers of this mailing list with this line: s,grammaticall,grammatical, jesus christ, you're such a friggen noob Before you criticise another's spelling/grammar, perhaps you could learn where the Shift key is. wow another misguided puppy the keyword here is spamming now think about the differences between a crappy php web forum and a mailing list and how grammar/spelling can be inferred it's not just that you're noobs, but completely ungrateful ones Also, some quotes from you (spot the errors): and tcsh is inferior to mksh in everyway tcsh built uppon that code instead of basing [wow, two in the same sentence] been consistently argueing against the opposite a buncha noobs is what you both are [paira perhaps] Normally it's considered bad form to attack another's use of language, but you lose that protection if you pick on others' QWC. By the way, there's no such thing as a 'strawman', and perhaps you could read about ad hominem arguments [1] and how you automatically lose any arguments where you bring them in. Chris [1] http://en.wikipedia.org/wiki/Ad_hominem ___ 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
Help: Looking to contact someone running FreeBSD on ESX
Hi all, We have quite a few BSD VMs on our infrastructure and are having some issues with our main webservers. They die randomly -- ESX shows high/100% CPU the exact moment it dies (very, very low up until that point), the console takes keyboard input but doesn't really do anything or switch VTs, and the server is pingable, but does nothing. We have to hard reboot. This has been going on for a while and we moved the VMs off our iSCSI SAN and onto local storge and it's happening still. (Found a few configuration issues with our SAN; thought it was the issue with preferred paths being problematic, etc). We really need to contact someone else who has had success and find out what's different about their environment. I'd like to note that we're still on ESX 4.0 (and behind a bit there) because our SAN wouldn't support 4.1 until recently and we haven't had time to switch. Personally, I'm convinced this is an ESX issue because BSD never panics and there's never anything reported on the console when this happens. I'd really like to hear from someone who has been running FreeBSD in production on ESX without issues and hopefully they could describe their setup so we can begin to compare issues. A few relavent things to note: The ones that crash are usually our main webservers (Apache, PHP, no MySQL locally though). We have LOTS of IPs on them and they do a ton of network traffic, but usually don't have a super high load average (maybe .75 - 1.0 on a normal day?). Currently we're running 8.1-RELEASE on them. As I said, they're on local storage right now, but they were on iSCSI to Dell MD3000i SANs (booo, hisss, we're dumping them so dont worry) ESX servers are a mix of Dell and HP Can't think of many more details. Thanks everyone. Mark ___ 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: HAL's demise
Date: Fri, 25 Feb 2011 07:38:14 -0500 From: Jerry freebsd.u...@seibercom.net Subject: Re: HAL's demise GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? HAL's demise is indefinitely delayed. Dave Bowman is otherwise occupied. And Frank Poole is out of ciruculation. *GRIN* ___ 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: Backtick versus $()
On 25 February 2011 18:02, Andres Perera andre...@zoho.com wrote: On Fri, Feb 25, 2011 at 8:24 AM, Chris Rees utis...@gmail.com wrote: On 25 February 2011 02:55, Andres Perera andre...@zoho.com wrote: On Thu, Feb 24, 2011 at 9:54 PM, Chad Perrin per...@apotheon.com wrote: I apologize for the grammaticall brokenness of that sentence. maybe you should spam the hundreds of subscribers of this mailing list with this line: s,grammaticall,grammatical, jesus christ, you're such a friggen noob Before you criticise another's spelling/grammar, perhaps you could learn where the Shift key is. wow another misguided puppy the keyword here is spamming now think about the differences between a crappy php web forum and a mailing list and how grammar/spelling can be inferred it's not just that you're noobs, but completely ungrateful ones Ungrateful? I really don't follow. Chris ___ 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: Help: Looking to contact someone running FreeBSD on ESX
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 12:52 PM, Mark Felder wrote: Hi all, We have quite a few BSD VMs on our infrastructure and are having some issues with our main webservers. They die randomly -- ESX shows high/100% CPU the exact moment it dies (very, very low up until that point), the console takes keyboard input but doesn't really do anything or switch VTs, and the server is pingable, but does nothing. We have to hard reboot. This has been going on for a while and we moved the VMs off our iSCSI SAN and onto local storge and it's happening still. (Found a few configuration issues with our SAN; thought it was the issue with preferred paths being problematic, etc). We really need to contact someone else who has had success and find out what's different about their environment. I'd like to note that we're still on ESX 4.0 (and behind a bit there) because our SAN wouldn't support 4.1 until recently and we haven't had time to switch. Personally, I'm convinced this is an ESX issue because BSD never panics and there's never anything reported on the console when this happens. I'd really like to hear from someone who has been running FreeBSD in production on ESX without issues and hopefully they could describe their setup so we can begin to compare issues. A few relavent things to note: The ones that crash are usually our main webservers (Apache, PHP, no MySQL locally though). We have LOTS of IPs on them and they do a ton of network traffic, but usually don't have a super high load average (maybe .75 - 1.0 on a normal day?). Currently we're running 8.1-RELEASE on them. As I said, they're on local storage right now, but they were on iSCSI to Dell MD3000i SANs (booo, hisss, we're dumping them so dont worry) ESX servers are a mix of Dell and HP Can't think of many more details. Thanks everyone. Mark Hi Mark, Are there any relevant messages logged in /var/log/messages prior to the FreeBSD hard reboot? I haven't used watchdogd(8) (http://bit.ly/eKHUEN) before, but I wonder if it would help you by firing some data logging command (-e option) so you have some information to go on. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1n/9EACgkQ0sRouByUApBdoQCgtq2MMP+xidLoFc5JEkEaRyN5 H8wAoIGrgMd5dx2QvambZeR0l1SEptkK =EoiA -END PGP SIGNATURE- ___ 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: Help: Looking to contact someone running FreeBSD on ESX
On Fri, 25 Feb 2011 13:15:29 -0600, Greg Larkin glar...@freebsd.org wrote: I haven't used watchdogd(8) (http://bit.ly/eKHUEN) before, but I wonder if it would help you by firing some data logging command (-e option) so you have some information to go on. That actually looks like a great solution, but I currently cannot recompile the kernel to enable SW_WATCHDOG and take those servers down. We have identical hardware in a test environment that I can do that on and hopefully see if we can get a clone of the problematic VMs to fail there with the watchdogd enabled. Thanks, Mark ___ 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: HAL's demise
2011/2/25 Robert Bonomi bon...@mail.r-bonomi.com: Date: Fri, 25 Feb 2011 07:38:14 -0500 From: Jerry freebsd.u...@seibercom.net Subject: Re: HAL's demise GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? HAL's demise is indefinitely delayed. Dave Bowman is otherwise occupied. And Frank Poole is out of ciruculation. *GRIN* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org It seems that xfce4 still expects hal in make config en libexo and maybe others but I stoped there. That is probably part of HAL's demise is indefinitely delayed So it appears that there isn't a major window manager that doesn't require hal, one way or the other. ed ___ 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: Help: Looking to contact someone running FreeBSD on ESX
On Fri, Feb 25, 2011 at 12:52, Mark Felder f...@feld.me wrote: The ones that crash are usually our main webservers (Apache, PHP, no MySQL locally though). We have LOTS of IPs on them and they do a ton of network traffic, but usually don't have a super high load average (maybe .75 - 1.0 on a normal day?). Currently we're running 8.1-RELEASE on them. Just as a note regarding that load average and ESX. I've noticed that none of my FreeBSD VMs report a *true* load average on ESX. The CPU hardly ever spikes (particularly on some snort listeners) but ESX shows the VMs as being CPU-bound the better part of the day. You may want to take a look at what the ESX performance charts are showing during your heavy usage periods and particularly before things go pear-shaped. kmw ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd 8.2
Just a quick applaud for both the people behind 7.4/8.2 and those behind freebsd-update which led to a seamless and quick upgrade on many of many boxes earlier. thanks to everyone involved, good job! Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ 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: Help: Looking to contact someone running FreeBSD on ESX
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 3:00 PM, Mark Felder wrote: On Fri, 25 Feb 2011 13:15:29 -0600, Greg Larkin glar...@freebsd.org wrote: I haven't used watchdogd(8) (http://bit.ly/eKHUEN) before, but I wonder if it would help you by firing some data logging command (-e option) so you have some information to go on. That actually looks like a great solution, but I currently cannot recompile the kernel to enable SW_WATCHDOG and take those servers down. We have identical hardware in a test environment that I can do that on and hopefully see if we can get a clone of the problematic VMs to fail there with the watchdogd enabled. Thanks, Mark Hi Mark, That sounds good, and please post any further information so someone else can help you troubleshoot further. Here are some other questions for you to ponder: - - What appears in the Apache access error logs just before a freeze occurs? - - Are you using any unusual Apache config file settings or modules? How about for PHP? - - Are all of your installed ports up to date? - - Have you done any Apache or PHP performance tuning using http://httpd.apache.org/docs/2.2/misc/perf-tuning.html or http://phplens.com/lens/php-book/optimizing-debugging-php.php as starting points? - - Have you enabled a PHP log file to record errors, warnings, etc. generated by your application code? Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1oGosACgkQ0sRouByUApAQOgCfW47AXRKSCuj2ftZJSQubVEPw w54Ani/7k+SNvR4JllG5wJXQSmBE90Be =1PvS -END PGP SIGNATURE- ___ 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: qmail or postfix?
On Thu, Feb 3, 2011 at 4:54 PM, Jarrod Slick jar...@e-sensibility.com wrote: Dear Sir/Madam, Your email was unable reach the intended person that you were sending it to. For more information on our business please click on the following link: Click here for our website We look forward to your continued business in the future. Regards, Webmaster ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: setting up svn server - Connection refused
On Fri, Feb 25, 2011 at 09:56:29AM -0800, Rob Farmer wrote: What could be the problems? From the rc script (which would probably be better than starting it manually): # Note: # svnserve bind per default at the ipv6 address! # If you want svnserve binding at ipv4 address, you have # to use option 'svnserve_flags' with --listen-host parameter Rob, thank you Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Upgrading 7.1 to 7.3, use 7.2 as a safe step?
For me, time can be spared, but errors should be avoided at all costs. I have upgraded FreeBSD before, for example 7.0 - 7.1. I use the buildworld/buildkernel procedure. I now have a 7.1 system. Should I upgrade to 7.2 and then to 7.3, or is it safe to go directly from 7.1 to 7.3? - Nerius P.S. I will also be upgrading 8.0 to 8.2 on another system, and assume the answer you give can be applied there as well. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading 7.1 to 7.3, use 7.2 as a safe step?
On Feb 25, 2011, at 1:39 PM, Nerius Landys wrote: For me, time can be spared, but errors should be avoided at all costs. I have upgraded FreeBSD before, for example 7.0 - 7.1. I use the buildworld/buildkernel procedure. I now have a 7.1 system. Should I upgrade to 7.2 and then to 7.3, or is it safe to go directly from 7.1 to 7.3? You shouldn't run into any unusual issues. Note that more care is needed if you are doing a major version bump-- ie, you should go to 7.4 - 8.0 - 8.2. Regards, -- -Chuck ___ 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
display resolution on my thinkpad t61
Hi, I'm trying to modify my screen resolutions (use an external and the internal monitor). xrandr -q says: Screen 0: minimum 320 x 200, current 1440 x 960, maximum 2720 x 1024 VGA connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm 1440x900 59.9*+ 75.0 1280x1024 75.0 60.0 1280x960 60.0 1152x864 75.0 1024x768 75.0 70.1 66.0 60.0 832x62474.6 800x60072.2 75.0 60.3 56.2 640x48075.0 72.8 66.7 66.0 59.9 720x40070.1 LVDS connected 1280x960+0+0 (normal left inverted right x axis y axis) 331mm x 207mm 1280x1024 85.0 75.0 60.0 1280x960 85.0*60.0 1152x864 75.0 1024x768 85.0 75.0 70.1 60.0 832x62474.6 800x60085.1 72.2 75.0 60.3 56.2 640x48085.0 72.8 75.0 59.9 720x40085.0 640x40085.1 640x35085.1 TMDS-1 disconnected (normal left inverted right x axis y axis) 1440x900 is enough for the external but the internal can / should use 1680x1050. How can I add this to xrandr? Regards, alokat ___ 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: Upgrading 7.1 to 7.3, use 7.2 as a safe step?
--On February 25, 2011 1:39:47 PM -0800 Nerius Landys nlan...@gmail.com wrote: For me, time can be spared, but errors should be avoided at all costs. I have upgraded FreeBSD before, for example 7.0 - 7.1. I use the buildworld/buildkernel procedure. I now have a 7.1 system. Should I upgrade to 7.2 and then to 7.3, or is it safe to go directly from 7.1 to 7.3? I have upgraded several times across major versions without any problems. (5.x to 6.x, 6.x to 7.x). Each time I simply changed the supfile to the version I wanted to upgrade to, fetched the files and rebuilt world and kernel. After those are complete, I run a portupgrade -a to sync all the ports with the new sources. Note that this is *not* the way to do it if you absolutely must avoid problems, however slight the risk. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson There are some ideas so wrong that only a very intelligent person could believe in them. George Orwell ___ 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
Is CTM still being offered for updating FreeBSD?
http://lists.freebsd.org/pipermail/ctm-src-8/ appears to be empty and http://lists.freebsd.org/pipermail/ctm-users/2009-December/000226.html seems to be the last mention of CTM on any of the related mailing lists (other than a few people asking if it was down). So I have a few questions: 1) Is it still being offered and supported as a method of updating FreeBSD systems? 2) If not can the section in the handbook be removed? I have attached a patch which removes references to CTM from the handbook. Should it be applied? 3) Probably the most controversial question - but I'll ask it nonetheless. If CTM is no longer an option for updating FreeBSD is there any reason to leave it in base? Is it still being used by a sufficient number of people to maintain it? -- Eitan Adler remove-ctm.patch Description: Binary data ___ 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: display resolution on my thinkpad t61
On 02/25/11 22:45, Alokat wrote: Hi, I'm trying to modify my screen resolutions (use an external and the internal monitor). xrandr -q says: Screen 0: minimum 320 x 200, current 1440 x 960, maximum 2720 x 1024 VGA connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm 1440x900 59.9*+ 75.0 1280x1024 75.0 60.0 1280x960 60.0 1152x864 75.0 1024x768 75.0 70.1 66.0 60.0 832x62474.6 800x60072.2 75.0 60.3 56.2 640x48075.0 72.8 66.7 66.0 59.9 720x40070.1 LVDS connected 1280x960+0+0 (normal left inverted right x axis y axis) 331mm x 207mm 1280x1024 85.0 75.0 60.0 1280x960 85.0*60.0 1152x864 75.0 1024x768 85.0 75.0 70.1 60.0 832x62474.6 800x60085.1 72.2 75.0 60.3 56.2 640x48085.0 72.8 75.0 59.9 720x40085.0 640x40085.1 640x35085.1 TMDS-1 disconnected (normal left inverted right x axis y axis) 1440x900 is enough for the external but the internal can / should use 1680x1050. How can I add this to xrandr? Regards, alokat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I got it ... Just started without the external monitor and after that use this command: xrandr --output LVDS --primary --output VGA --auto --left-of LVDS Now the internal monitor is the primary .. contains the Fluxbox menu and the external is the secondary. Just for showing some stuff ... Regards, alokat ___ 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: GELI reliability
I've used ZFS over GELI in the past, but never had any hardware issues to see how it plays out. I have no idea on that kind of a setup. If I were you I'd make a test system, start an scp command to copy some file from another machine, then start unplugging hard drives. When done, run a diff on the copied file and the original (or at least a checksum) to see if it worked out. I'd do it for you and report back, but at the moment I don't have the hardware to spare. Let us know how it goes ;-) -Modulok- On 2/25/11, Terje Elde te...@elde.net wrote: Hi, I'm curious about GELIs theoretical behavior when faced with errors, and also any experience anyone might have. As an example, if I run ZFS with raidz over X drives, then the zpool should have no issue surviving the complete loss of a full disk. Also, the familiar FAILURE - READ_DMA or READ_DMA48 errors from a disk having a bad day should also be no issue, certainly not an issue that would result in crash, or worse still, loss of data. What I'm wondering is how much worse off the data would be if I were to slide inn a GELI layer between the physical drives, and the zpool. That is, if I use GELI directly on the individual drives ( /dev/ada0, /dev/ada1 etc), then make a raidz pool on top of the .eli devices ( /dev/ada0.eli, /dev/ada1.eli etc). For READ_DMA type errors, I suppose GELI could just forward the same errors up the stack, and that'd be that, the errors wouldn't be any more severe than what I'd have anyway? One exception could be if GELI sector size is larger than disk sector size. Not being too familiar with GELIs internal workings, I'm not sure that has to be the case though. GELI sectors have a new IV pr. sector, but the crypto itself is still done in 128 or 256 bit blocks, so given a single faulty disk sector, the rest of the GELI sector could still be read and decrypted? Or are entire GELI sectors faulted if a (smaller) underlaying sector is unreadable? And finally, what if an entire drive dies a cruel and horribly death, all of it's data returning to the large bit bucket in the sky? Would GELI simply relay the same errors upstack to ZFS, so ZFS would be able to handle it as well as it would have without GELI? I've used ZFS over GELI in the past, but never had any hardware issues to see how it plays out. I'm considering deploying it for more stuff now, and reliability wise, from what I know, I could loose very little by using GELI, or it could be time to buy napkins, because the risk of a grown man crying while trying to mop up spilled bits from the floor is increased significantly. (backups should avoid the need for tears though, besides, I don't have a mop) Terje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Kernel swap zone exhausted, what is the max allowed? FBSD 7.2
Hi, I was recently forced to reboot a 7.2 machine after it had run for several months. (Upgrade is not a possibility right now.) The (apparently) relevant part of /var/log/messages reads -- Feb 23 13:10:58 gold kernel: pid 9864 (to), uid 1001: exited on signal 6 (core dumped) Feb 23 17:14:13 gold kernel: pid 10386 (epiphany), uid 0: exited on signal 11 (core dumped) Feb 23 17:18:19 gold kernel: pid 10414 (epiphany), uid 0: exited on signal 11 (core dumped) Feb 24 14:56:05 gold kernel: swap zone exhausted, increase kern.maxswzone Feb 24 14:56:36 gold last message repeated 1933 times Feb 24 14:56:57 gold last message repeated 1635 times Feb 24 14:56:57 gold kernel: swap zone exhausted, nncrxase kern.ma swzone Feb 24 14:56:57 gold kernel: swap zone exhausted, increase kern.maxswzone Feb 24 14:57:28 gold last message repeated 1017 times Feb 24 14:59:29 gold last message repeated 2159 times Feb 24 15:14:03 gold syslogd: kernel boot file is /boot/kernel/kernel --- I don't explicitly set kern.maxswzone anywhere and it is at its apparent maximum and default of 32M (33554432). Does anyone know if the maximum can be increased? (What actually is it used for?) I do use lots of memory-intensive processes, most of them idle much of the time. I see that it's involved with the stuff in the src/sys/vm directory. Would someone give me a quick precis or pointer to what I need to study to understand what would happen if I tried to boost this to 64M? Mark Terribile ___ 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: Is CTM still being offered for updating FreeBSD?
So I have a few questions: 1) Is it still being offered and supported as a method of updating FreeBSD systems? As of today, yes -- I have recent deltas in my mailbox. But you could easily check by subscribing, and looking at: http://ftp.freebsd.org/pub/FreeBSD/CTM where the deltas are still being added every few hours. 2) If not can the section in the handbook be removed? I have attached a patch which removes references to CTM from the handbook. Should it be applied? 3) Probably the most controversial question - but I'll ask it nonetheless. If CTM is no longer an option for updating FreeBSD is there any reason to leave it in base? Is it still being used by a sufficient number of people to maintain it? I can't answer for the maintainer, and I don't have usage statistics, which you could probably obtain from the mailing list and WWW admins. But the fact that it works, without requiring a lot of resources or the need for extensive maintenance, and has the benefits that are clearly described in the Handbook, suggest that you should leave it alone. Why is this question even arising? Surely there are other problems that need to be addressed much more than the ending of a useful, uncontroversial service by someone who is not familiar with it? b. ___ 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: Is CTM still being offered for updating FreeBSD?
Why is this question even arising? Surely there are other problems that need to be addressed much more than the ending of a useful, uncontroversial service by someone who is not familiar with it? I am familiar with it. I just happened to notice that the mailing lists were empty and therefore I thought the service is not being used. In case you did not notice the subject was in question form and points #2 and #3 both had an if not clause. Your initial response answered my question: that CTM is still being offered. and therefore the rest of the email is moot. Thanks Eitan Adler ___ 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: Help: Looking to contact someone running FreeBSD on ESX
On Fri, 25 Feb 2011 16:09:31 -0500, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/25/11 3:00 PM, Mark Felder wrote: On Fri, 25 Feb 2011 13:15:29 -0600, Greg Larkin wrote: I haven't used watchdogd(8) (http://bit.ly/eKHUEN [1]) before, but I wonder if it would help you by firing some data logging command (-e option) so you have some information to go on. That actually looks like a great solution, but I currently cannot recompile the kernel to enable SW_WATCHDOG and take those servers down. We have identical hardware in a test environment that I can do that on and hopefully see if we can get a clone of the problematic VMs to fail there with the watchdogd enabled. Thanks, Mark Hi Mark, That sounds good, and please post any further information so someone else can help you troubleshoot further. Here are some other questions for you to ponder: - - What appears in the Apache access error logs just before a freeze occurs? - - Are you using any unusual Apache config file settings or modules? How about for PHP? - - Are all of your installed ports up to date? - - Have you done any Apache or PHP performance tuning using http://httpd.apache.org/docs/2.2/misc/perf-tuning.html [3] or http://phplens.com/lens/php-book/optimizing-debugging-php.php [4] as starting points? - - Have you enabled a PHP log file to record errors, warnings, etc. generated by your application code? Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ [5] - The Power To Serve http://www.sourcehosting.net/ [6] - Ready. Set. Code. http://twitter.com/sourcehosting/ [7] - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ [8] iEYEARECAAYFAk1oGosACgkQ0sRouByUApAQOgCfW47AXRKSCuj2ftZJSQubVEPw w54Ani/7k+SNvR4JllG5wJXQSmBE90Be =1PvS -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org [9] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions [10] To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org [11] I manage 8 FreeBSD virtual servers at work running 7.0, 7.1, and 7.2 in VMware ESX 4.0, they are running Apache2 with PHP, Bind, and Squid, any of the services they are running is all installed from source and kept up to date, as we are required to pass quarterly PCI scans. So it doesn't speak much of programs installed from ports, but these systems stay very stable, the only issue I have is that after about 8 to 9 months of system uptime (services are restarted more frequently for updates) sometimes the network will stop responding until the virtual machine is shutdown and powered back on. (I can't say that any of the windows servers on the cluster ever reach that length of uptime to compare with this) We have 6 physical servers running with full automated vmotion there is about 80 windows servers runnign on the same systems. Backed with an ISCSI SAN and 10G Ethernet adapters. However our internet applications that utilize the FreeBSD servers are relatively low usage, squid is mainly used as outbound proxy for around 600 Computer users which is the highest used resource on these servers, primarily between 5am and 7pm, so usage levels may not be near where you are running at. I am running vmware tools installed from a VMware workstation 6.5 tools image, I have switched a couple of the systems over to the vmxnet drivers instead of running then as e1000 adapters, but haven't been running them long enough to see if that resolves are problem. When it does occur the system is completely responsive when connecting to the console though, and can be cleanly shutdown. I haven't noticed any issues with VMwawre performance monitoring reporting the systems CPU as hammered when the CPU on FreeBSD shows low, but these systems are much more heavily memory used followed by disk I/O CPU sits idle at most times. I should also mention that they are setup with 2 vCPUs, perhaps if you are running a signal vCPU something is hanging one vCPU and mine setup is recovering OK because the applications complete using the other until the issue resolves itself. I haven't spent much time looking at historical usage graphs on these since I don't get any complaints about performance. --- Thanks, Dean E. Weimer dwei...@dweimer.net http://www.dweimer.net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How can I disable Internet access for programs running in Wine?
Nothing to do oh, freebsd-questions stay in bat! 2011/02/25 01:07:58 -0800 erikmccaskey64 erikmccaske...@zoho.com = To freebsd : e I just can find any solution... I was sure that ipfw can select packets by process name? at least there are pf and ipf options out there... You can always use jail(4) in conjunction with the separate IP address, like tap(4) or lo(4) whic can be aliased. Then you can provide any kind of internet access for your wine-drunk jail environment ;-) Oh, and... you can use the / as a root for your jail. You need to restrict the access of the application(s) to your internet interface(s) only, right? 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627) -- http://vereshagin.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Kernel swap zone exhausted, what is the max allowed? FBSD 7.2
On Fri, Feb 25, 2011 at 5:11 PM, Mark Terribile materrib...@yahoo.comwrote: I don't explicitly set kern.maxswzone anywhere and it is at its apparent maximum and default of 32M (33554432). Does anyone know if the maximum can be increased? (What actually is it used for?) I do use lots of memory-intensive processes, most of them idle much of the time. I see that it's involved with the stuff in the src/sys/vm directory. Would someone give me a quick precis or pointer to what I need to study to understand what would happen if I tried to boost this to 64M? Well vbox% sysctl -ad kern.maxswzone kern.maxswzone: Maximum memory for swap metadata man 8 loader gives: kern.maxswzone Limits the amount of KVM to be used to hold swap meta information, which directly governs the maximum amount of swap the system can support. This value is specified in bytes of KVA space and defaults to 32MBytes on i386 and amd64. Care should be taken to not reduce this value such that the actual amount of configured swap exceeds 1/2 the kernel-supported swap. The default of 32MB allows the ker- nel to support a maximum of ~7GB of swap. Only change this parameter if you need to greatly extend the KVM reservation for other resources such as the buffer cache or kern.ipc.nmbclusters. Modifies kernel option VM_SWZONE_SIZE_MAX. -- Adam Vande More ___ 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: HAL's demise
On Fri, 25 Feb 2011 12:32:48 -0600 (CST), Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Fri, 25 Feb 2011 07:38:14 -0500 From: Jerry freebsd.u...@seibercom.net Subject: Re: HAL's demise GNOME switched over a year ago, KDE and XFCE finished the transition a couple of months back. Other distros are apparently not even distributing it. What is preventing FBSD from joining the party? HAL's demise is indefinitely delayed. Dave Bowman is otherwise occupied. And Frank Poole is out of ciruculation. *GRIN* On the other hand, I've just talked to R. Chandra and he assured that SAL is already taking over the neccessary functionalities, being scheduled for obsolescence within the next two years. So don't hesitate to put sal_enable=YES in /etc/rc.conf. It will at least coredump in a pleasant voice. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: HAL's demise
On Fri, 25 Feb 2011 14:10:33 -0600, Edwin L. Culp W. edwinlc...@gmail.com wrote: So it appears that there isn't a major window manager that doesn't require hal, one way or the other. To be precise: There isn't a major DESKTOP ENVIRONMENT (as there are just the big three KDE, Gnome, Xfce - that doesn't require HAL. Window managers usually do not require HAL, until they are equipped with auxilliary programs that depend on it (kinds of notifiers and automatic hardware handlers, automounters), or it's X depending on it (which can be removed at compile time if you don't need it). The basic thing I don't get is why - in the neverending world of abstracted abstraction layers - there is no universal interface for what various contradicting implementations do exist: the new u* components and the old devfs/devd combination in FreeBSD. Basically, from a user's point, those functionalities are used for hardware detection and immediate reaction of the system (not always wanted, intended, or even allowed due to security reasons), such as digital camera downloads, burning media, or any kind of automounter, as well as communication device configuration. Can't it be easier, or can't we suddenly do better than Windows? I know we could in the past... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: display resolution on my thinkpad t61
On Fri, 25 Feb 2011 23:41:05 +0100, Alokat mail...@alokat.org wrote: On 02/25/11 22:45, Alokat wrote: 1440x900 is enough for the external but the internal can / should use 1680x1050. How can I add this to xrandr? I got it ... Just started without the external monitor and after that use this command: xrandr --output LVDS --primary --output VGA --auto --left-of LVDS Now the internal monitor is the primary .. contains the Fluxbox menu and the external is the secondary. You can also use xrandr to force settings that are not present in xorg.conf or cannot be configured properly: xrandr --fb 1680x1050 xrandr --size 1680x1050 I'm using this hack to convince X to run my monitor at 1400x1050 which it doesn't seem to be able to anymore (unlike XFree86 - same system, GPU, and monitor). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org