Re: Modules and Custom Kernels
On 07/02/2010 5:40 π.μ., James Colannino wrote: Hey everyone. Please bear with me as I'm very new to FreeBSD. I've recently started building a custom kernel after having had to apply a patch to enable support for my wireless device (Atheros 9285) in 8.0-RELEASE, and had a quick question about the process in general. According to the documentation, a line with device driver name will cause that driver to be compiled into the kernel. If one of those lines is commented out, does that mean that the driver will still be built, but that it will be installed as a module? Yes. Unless you have set some variables like WITHOUT_MODULES or MODULES_OVERRIDE in /etc/make.conf. By default all modules will be built. The modules will not be loaded automatically though. You will have to use /boot/loader.conf to specify which ones to load. I didn't see anything that told me that explicitly in the documentation, but that's the feeling I got from what I read. I just want to make sure that my assumption is correct, and if not, how to make sure that something gets built as a module rather than built directly into the kernel. You are doing just fine ;) In all, the process looks relatively painless as long as I'm careful not to make too many changes to the GENERIC config. This is true also. Using some common sense and reading the comments in GENERIC you can make your own custom kernel with little effort. Of course you may also read the Handbook on this: http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html Hopefully this isn't a dumb question :) I really like FreeBSD so far, and think I'm going to enjoy my new experience quite a bit. Sure you will, FreeBSD is addictive! ___ 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
The Atheros 9285 patch on 8.0-stable
Hey everyone, I have an Asus EEE PC 1005HA, which has an Atheros 9285 wireless chipset. I discovered that Rui Paulo wrote a driver, and put up a patch for the 8.0 stable kernel here: http://people.freebsd.org/~rpaulo/ar9285_stable_8.diff It seems to have worked for some people. After patching and re-compiling my kernel, it did manage to detect the device on my machine, but unfortunately, I'm unable to scan for networks or associate with my network. Here's what happens: The machine boots, and I see the ath0 interface when I run ifconfig. I then run the command 'ifconfig wlan0 create wlandev ath0' and successfully create wlan0. However, when I run the command 'ifconfig wlan0 scan', the command doesn't seem to do anything, and I eventually have to CTRL-C it. Has anybody else had this problem? Is it a known issue? Maybe I'm doing something wrong? It was mentioned that testers were needed for this driver, and I'd love to help out if possible. If anybody wants me to send any additional information, just let me know. Thanks so much everyone! James ___ 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: backup terminal title
Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence which will cause the terminal to echo back its current title, but it's a bit tricky to use given only base-system tools because the echo ends with, IIRC, \007 rather than \n. It may be possible in some shells to temporarily set the line-end character to \007. You probably also want to (somehow) cover problematic cases like terminals that don't reply to the inquiry even though TERMCAP implies that they should. That actually doesn't sound tricky at all, remember that the original sequence to change the title also ends with \007. Where can I find this magical sequence? I've been trying to read: http://www.xfree86.org/current/ctlseqs.html But the Syntax is really cryptic. I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which I am using), though. That might well be a termcap problem. I've got to look into this. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ 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 control upload data in bittorrent clients
how can we control it within transmission ? Can you shed some light in this solution mean while I thank Morgan Wesstron for giving me the Daniel Hartmeiers article , really good. thanks in advance dhanesh Date: Sun, 7 Feb 2010 04:57:56 + From: rwmailli...@googlemail.com To: freebsd-questions@freebsd.org Subject: Re: how to control upload data in bittorrent clients On Sat, 06 Feb 2010 23:14:45 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: 1) in the transmission web it showing downloading is 10 kbps to 30 kbpsbut uploading it shows 50 to 92 kbps my question is is it possible to limit the uploading data rate , how can I do this ? Check out Daniel Hartmeier's excellent article on how to prioritize TCP ACKs (and other traffic). It will explain what you experience and solve the problem for you. It's a good idea to handle this from within transmission too. Rate limiting works best at the TCP level. ___ 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 _ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969___ 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: Clarification Of In Place Upgrade Process
On Saturday 06 February 2010, Tim Daneliuk wrote: When migrating from 6.x to 7.x and to do system refreshes within a given release branch, I did/do this: - Get sources - mergemaster -i - make buildworld buildkernel - go single user - make installworld installkernel - reboot Shouldn't mergemaster be run later in the sequence, like this: - make buildworld buildkernel - make installkernel - Reboot into single user mode - mergemaster -p - make installworld - mergemaster (or mergemaster -Ui) - Reboot -- Mike Clarke ___ 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 control upload data in bittorrent clients
RW wrote: On Sat, 06 Feb 2010 23:14:45 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: 1) in the transmission web it showing downloading is 10 kbps to 30 kbpsbut uploading it shows 50 to 92 kbps my question is is it possible to limit the uploading data rate , how can I do this ? Check out Daniel Hartmeier's excellent article on how to prioritize TCP ACKs (and other traffic). It will explain what you experience and solve the problem for you. It's a good idea to handle this from within transmission too. Rate limiting works best at the TCP level. Well, the thing is that if you prioritize your TCP ACKs you won't have to do any rate limiting within transmission. You can then use your full upload and download simultaneously. Don't you want to use the bandwidth you pay for? :-) /Morgan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Wireless Access Point
On 06/02/2010 23:41, Bill Tillman wrote: Yes, my dhcp server which is this same FreeBSD server with the wireless NIC is pushing the gateway IP address 192.168.0.254 This is my /etc/rc.conf file hostname=FreeBSD13.mydomain.com gateway_enable=YES ifconfig_bge0=DHCP inetd_enable=YES nfs_client_enable=YES nfs_server_enable=YES rpcbind_enable=YES sshd_enable=YES wlans_ral0=wlan0 create_args_wlan0=wlanmode hostap mode 11g ifconfig_wlan0=inet 192.168.0.254 netmask 255.255.255.0 ssid freebsdap channel 11 sendmail_enable=NO natd_interface=wlan0 The wireless laptop is seeing the FreeBSD server and is connecting and getting an IP address. But I cannot get out to the Internet with it. I really appreciate the advice gang. I know this thing is probably simple and I just can't find the resolution. Hmmm... there's no indication there that you are running a DHCP server on that FreeBSD box. Still, it would be fairly obvious if DHCP wasn't working. The problem is that you're running natd on the wrong interface. natd should run on the upstream interface -- the one with the default route. The way you've got things configured, it's treating your wlan as the external world, and NAT'ing the internet. Hmmm... Seems your wired interface is similarly obtaining an IP from private addess space, so it in its turn must be being NATed somewhere upsteam in order to get Internet access. While double-NAT'ing your WLAN should work (most of the time, at least), it's a bit dodgy and could result in mysterious failures. You can avoid this, by configuring proxy servers on your FreeBSD machine -- this is a classic firewall design, by the way -- but that is quite a lot of work, and you have to set up proxies for all of the services your WLAN hosts need to access on the Internet. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard, Flat 3 Black Earth Consulting Ramsgate Kent, CT11 9PW Free and Open Source Solutions Tel: +44 (0)1843 580647 signature.asc Description: OpenPGP digital signature
Re: backup terminal title
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence which will cause the terminal to echo back its current title, but it's a bit tricky to use given only base-system tools because the echo ends with, IIRC, \007 rather than \n. It may be possible in some shells to temporarily set the line-end character to \007. You probably also want to (somehow) cover problematic cases like terminals that don't reply to the inquiry even though TERMCAP implies that they should. That actually doesn't sound tricky at all, remember that the original sequence to change the title also ends with \007. Where can I find this magical sequence? I've been trying to read: http://www.xfree86.org/current/ctlseqs.html But the Syntax is really cryptic. I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which I am using), though. That might well be a termcap problem. I've got to look into this. Not a termcap problem. A terminal problem rather. This storing title on a stack stuff is something very few terminals support. Recent xterms does, but few if any others. Other terminals will at best have sequences for set title and read current title. -- Insert your favourite quote here. Erik Trulsson ertr1...@student.uu.se ___ 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: backup terminal title
Erik Trulsson wrote: On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: Dominic Fandrey wrote: per...@pluto.rain.com wrote: I wish to use the \033]0;%s\007 sequence in a shell-script to set the title of a terminal. But only if I am able to undo it. My requirement is that this must be done without using anything outside the base system. There is an escape sequence which will cause the terminal to echo back its current title, but it's a bit tricky to use given only base-system tools because the echo ends with, IIRC, \007 rather than \n. It may be possible in some shells to temporarily set the line-end character to \007. You probably also want to (somehow) cover problematic cases like terminals that don't reply to the inquiry even though TERMCAP implies that they should. That actually doesn't sound tricky at all, remember that the original sequence to change the title also ends with \007. Where can I find this magical sequence? I've been trying to read: http://www.xfree86.org/current/ctlseqs.html But the Syntax is really cryptic. I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which I am using), though. That might well be a termcap problem. I've got to look into this. Not a termcap problem. A terminal problem rather. This storing title on a stack stuff is something very few terminals support. Recent xterms does, but few if any others. You're right my testing confirms that. I used the official termcap info from urxvt (needed some reformatting to use it) and it didn't fix the problem. Other terminals will at best have sequences for set title and read current title. Unfortunately the sequence to return the title seems to be implemented (it returns the surrounding sequence as described in http://invisible-island.net/xterm/ctlseqs/ctlseqs.html), but the string in there is empty. I contacted the main developer of rxvt-unicode with my problem. I figure the stack solution is the most traditional and convenient approch in my opinion. Maybe he'll agree. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Wireless Access Point
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/02/2010 18:38, Bill Tillman wrote: Okay I have finally decided to scrap my old D-Link wireless router in favor of my FreeBSD-8.0 server with a wireless NIC ral0. I have thus far got the NIC to come up and work as an access point. I can connect to this AP with my laptop computer via wireless. I'm running dhcpd on the FreeBSD server so my laptop is also assigned an IP address as well. My existing setup has a FreeBSD server running as a router/gateway for my entire LAN. This router has two NICs one connected to the cable modem from my ISP and one connected to a switch on 10.0.0.0/24 Lan. The existing D-Link router has it's WAN port connected to this same switch and it gets a 10.0.0.0/24 IP address from another FreeBSD server running dhcpd. This D-Link router is running dhcpd and it assigns 192.168.0.0/24 IP addresses to all wireless clients. When a wireless client boots up in my house they connect to this D-Link router and all is well. OK, now I've done what I should have in the first place, and re-read the thread it its entirety. This setup is working fine as all the workstations on 10.0.0.0/24 can access the Internet and all wireless clients on 192.168.0.0/24 can access the Internet. Now my new FreeBSD-8.0-STABLE server seems to be almost ready to take over for the D-Link router and my old FreeBSD server. I have two NIC's in this server, an ethernet cable one (bge0) and the wireless NIC (ral0) or wlan0. I can ping outside addresses from this new server but of course it's using the 10.0.0.0/24 segment which I knew would work. But even though the wireless clients can connect to the wirless NIC and be assigned an IP address and can ping the IP address of the server, both of them, I cannot access the Internet from any of the wireless machines. I could use some advice on what to do to correct this. You've got two FreeBSD servers. For the sake of clarity let me name them thus: Server A is your external gateway, and connects to your cable modem. Server B has the wireless card and is the gateway between your WLAN and your private wired network. The way I'd handle this is: * Don't run NAT at all on Server B. Instead, just treat it as a plain router between the wired and wireless networks. * To make that work, Server B should have fixed addresses, and you will need to add static routes on machines on your wired network so they know how to get packets to the WLAN. * You don't need to run a DHCP server on Server B -- you can hang it all of the DHCP server on Server A. You will need to run DHCP-relay on Server B, but that's a very much simpler program. * The DHCPd on Server A will have to be configured to supply addresses for the range used on your WLAN. You will also need to check and possible amend your firewall on Server A so that it will NAT for the address range used on your WLAN as well as the range on your wired net. Does that make sense to you? If not I am happy to expound further. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktuleoACgkQ8Mjk52CukIwhwgCfbROQ90szIAFFZXMTa4+zKkEX D3IAnRKpp5vC+uFw9t7YxdGl/77PLBSx =e76a -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: Wireless Access Point
Thanks to everyone for the great advice. For clarity on this I erased all the other previous messages. The bottome line is I got it to work. It was a problem with my NATD setup on the server inside the LAN which is running as AP for the wireless computers in my house. It's all working grea. And like some of you pointed out I was natd_interface-ing to the wrong interface. That's all fixed now but there are a few bigs which I don't know can be worked out. The extisting wireless D-Link router has been trouble free since I installed it and we routinely acheive download speeds on the wireless machines in excess of 100KB/s. It's also very fast to assign IP's and it just seems to work every time. So why replace it you ask...because I'm a stupid hack who just can't stop experimenting with FreeBSD servers. And I do want to use this new AP server to replace my old file server which is running DHCP for the 10.0.0.0/24 segment and is running Samba and aloowing wireless people who visit my house to store and share files. The whole thing works great as it is but the old FreeBSD server is old and needs to go and the D-Link router is well just needs to go. Now the problem is that the new AP server while the CPU us very fast and I have two massive 2 TB drives in it, is not up to snuff on the wireless AP. It can take forever to get an IP address and most of the time I only end up with limited connection. The worst thig though is that even when I do make s soild connection with this AP the download speed is horrendously slow. Last night I began downloading the ISO-DVD1 image of the 8.0 source from freebsd.org and the max speed I got was only 39KB/s which means the download would have taken almost 10 hours. On the other hand I resetup with the D-Link router and the download was only going to take 90 minutes for the same file. Guess I'm not out of the woods on this one yet. But again thanks to all who replied and offered the helpful advice. ___ 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: Detecting cards in USB card reader
On 2/7/2010 1:28 AM, Mike Clarke wrote: curlew:/root# cat /dev/null /dev/da0 curlew:/root# ls -l /dev/da0* crw-r- 1 root operator0, 176 6 Feb 23:15 /dev/da0 crw-r- 1 root operator0, 129 6 Feb 23:18 /dev/da0s1 I can use this to initialise the card reader but I'd feel more comfortable with something a bit less dangerous looking. While it may feel dangerous, is perfectly safe. There is no way doing an IO operation on a disk-like device using requests othen than multiplies of the physical block which currently is 512 bytes. Opening the disk for writing and trying to do a write request, will just force GEOM to re-examine the device. lab# echo asd | cat /dev/da0 cat: stdout: Invalid argument failed lab# echo /dev/da0 lab# echo $? 1 failed lab# /bin/echo asd /dev/da0 /bin/echo: write: Invalid argument failed Closer look: lab# truss sh -c echo /dev/da0 snip open(/dev/da0,O_WRONLY|O_CREAT|O_TRUNC,0666) = 2 (0x2) dup2(0x2,0x1,0x1b6,0x108,0x2830d040,0x2830235c) = 1 (0x1) close(2) = 0 (0x0) write(1,\n,1) ERR#22 'Invalid argument' failed FreeBSD lost the ability of doing such transparent transformations when the support for block devices went away. Yes, I know, it feels awkward. Apparently, you can easily drop the support for block devices but not the habitual feeling of danger of UNIX tradition. 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
iphone, freebsd, vpn
Hi, I'm looking forward how to connect from my iphone to my FreeBSD server using VPN, do you have any suggestions? Should I use, L2TP, PPTP or IPSec? Do you have any experience with it? Some details: my iphone always gets a new ip address from my GSM provider when I connect to the internet, my FreeBSD server connects to the internet using PPPoE connection with static IP and I want to reach it through the internet. Thank you! László ___ 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: Screen saver hangs: can't retrieve user sessions
On Sun, 7 Feb 2010 03:39:57 + dhaneshk k dhanes...@hotmail.com wrote: I am facing a serious issue, when my notebook(IBM Lenova T60+ FreeBSD-7.2+gnome2 ) goes idle screen saver enabled and when I hit enter it asks user password and I am able to logged in . but yesterday on wards when machine goes idle screen saver appears but when I hit any key it not giving the password screen, just hangs in the screen saver image and pressing any key no matter. I want to press hold the powerbutton and power off the machine all the time. ( it cause damage to system ?). how can I fix the hang of screen saver ? I am attaching the var/log/messages and Xorg log files.. The radeon driver and/or microcode still has bugs that lead to GPU crashes. One or more of the xscreensaver modules can trigger a crash. Once the GPU is dead, you may still be able to do something about it. For example, I have sometimes been able to type in a shutdown -r now and have it work, but only if either an xterm is currently the window in focus or I can move the cursor to a place I remember has an xterm and then clicking on it to get the focus to that xterm. Unfortunately, the ctl-backspace method doesn't help because even if the X server quits, there is still no display of the console because the GPU is halted/looping/whatever. A full reboot appears to be necessary to reset and restart the GPU. It would indeed be good to have an easy way to recover without rebooting, e.g., using the F11 or F12 key as a way to run some command that could reinitialize the GPU. Scott Bennett, Comm. ASMELG, CFIAG ** * Internet: bennett at cs.niu.edu * ** * A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army. * *-- Gov. John Hancock, New York Journal, 28 January 1790 * ** ___ 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
portupgrade, batch mode?
When using portupgrade, from time to time, there is a package that displays an options menu and waits for a interactive response (like hitting OK to accept the defaults and continue). Is there way to specify that portupgrade should always accept the defaults and not wait for user input? ___ 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: portupgrade, batch mode?
I think you can try this: -y --yes Answer yes to all the questions. This option implies -v and negates -n . László On 2010.02.07., at 12:59, n dhert ndh...@gmail.com wrote: When using portupgrade, from time to time, there is a package that displays an options menu and waits for a interactive response (like hitting OK to accept the defaults and continue). Is there way to specify that portupgrade should always accept the defaults and not wait for user input? ___ 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
Re: portupgrade, batch mode?
On 07/02/2010 2:14 μ.μ., Dánielisz László wrote: I think you can try this: -y --yes Answer yes to all the questions. This option implies -v and negates -n . László On 2010.02.07., at 12:59, n dhert ndh...@gmail.com wrote: When using portupgrade, from time to time, there is a package that displays an options menu and waits for a interactive response (like hitting OK to accept the defaults and continue). Is there way to specify that portupgrade should always accept the defaults and not wait for user input? And in fact, you can also use --batch ___ 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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
2010-02-06 11:58, Ion-Mihai Tetcu skrev: On Sat, 6 Feb 2010 12:49:52 +0200 Ion-Mihai Tetcuite...@freebsd.org wrote: On Sat, 06 Feb 2010 11:13:08 +0100 O. Hartmannohart...@mail.zedat.fu-berlin.de wrote: Since yesterday's portsnape and attempt updating my ports, ALL FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via 'portmaster -av' at the same point with the following error. It seems that that port jpeg-8 has been updated and now offering libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess everything depending on port jpeg-8 needs to be rebuild - but ports/UPDATE does not reflect this. c++ -fno-exceptions -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic .obj/release-shared-mt/main.o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o -L/usr/local/lib -L/usr/local/lib ^^^ -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to `jpeg_start_decompr...@libjpeg_7.0' That above it's the problem, kde team is aware of it. For the moment the workaround, when you get to this, is to: mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old \ cd /usr/ports/x11-toolkits/qt33/ make \ mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so \ portmaster -C x11-toolkits/qt33 I did this yesterday while under KDE3 without problems. You'll run into the same kind of problem with kdelibs3: Making all in dnssd gmake[2]: Entering directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test $ret != 0; then rm -f settings.h ; exit $ret ; fi /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by libkdefx.so.6 gmake[2]: *** [settings.h] Error 1 gmake[2]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/x11/kdelibs3. The same workaround works. And yes, this means the kde ports are in wrong. I've tried this and I couldn't make it work! I then decided to remove the ports arts, kdelibs3, qt33 and k3b with pkg_deinstall, because these are the only ones installed that are affected of the above problem. I also did make clean for these ports. Even so, when I start installing qt33 again the same problem comes up. Do you have any suggestions on how I should do to make it work? Thanks /Leslie ___ 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: backup terminal title
On Sat, Feb 06, 2010 at 10:04:49PM -0800, per...@pluto.rain.com wrote: Warren Block wbl...@wonkity.com wrote: What's the sequence for reading the terminal title? If I remembered it I'd have included it :) The first 3 results from Googling xterm escape sequences are This is where to start (the other ones are older versions): http://invisible-island.net/xterm/ctlseqs/ctlseqs.html By the way, it's the first hit when I ask google the same question. rtfm.etla.org/xterm/ctlseq.html www.faqs.org/docs/Linux-mini/Xterm-Title.html www.kitebird.com/csh-tcsh-book/ctlseqs.pdf I'd expect it to be in at least one of them. That's a nice assumption. However... -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgp34PRPxLogu.pgp Description: PGP signature
Re: backup terminal title
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which I am using), though. I wouldn't expect it to work with the other terminals - it takes usually a year or more before features from xterm get copied into other programs. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgp9O40FX1T1V.pgp Description: PGP signature
Cheating OS fingerprinting
Hi all, I want to cheat os fingerprinting tools ( primary nmap) in my freebsd machine. Assume I am using freebsd 8 and I want to be seen as a windows xp machine when someone scans my ports. In order to determine target host's OS, nmap sends seven TCP/IP crafted packets (called tests) and waits for the answer. Results are checked against a database of known results (OS signatures database). If the answer matches any of the entries in the database, it can guess that the remote OS is the same that the one in the database. Some Nmap packets are sent to an open port and the others to a closed port; depending on that results, the remote OS is guessed. So to cheat nmap, I have to analyze all incomming packets (as a firewall) and if a test packet coming from a scanner is found I have to give appropriate reply packet (depending on the os signature I want to use). IPPersonality http://ippersonality.sourceforge.net/ is an old linux patch does the same job. I want to implement a freebsd tool that cheats os fingerprinting. As I said, I have to analyze all incomming packets as a firewall and do some job if packets are comming from a scanner. Can I implement this feature as a patch to PF, or does PF provides some mechanisms to write extension modules? Can you give any advices? Where is to start:) best regards... yavuz ___ 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: Clarification Of In Place Upgrade Process
Tim Daneliuk tun...@tundraware.com writes: When migrating from 6.x to 7.x and to do system refreshes within a given release branch, I did/do this: - Get sources - mergemaster -i - make buildworld buildkernel - go single user - make installworld installkernel - reboot Especially for major-version upgrades, you would be *much* better advised to follow the official upgrade method. This one will usually work, but it's not particularly easier than the recommended method. I now wish to do the same to get to the 8.x branch, BUT ... somewhere on USENET, someone commented that you have to also reinstall/rebuild all the packages/ports when you do this. This was news to me. Is there some reason the entire application base has to be reinstalled when moving to a new branch? If so, has this always been the case or is it new for 8.x? My 6.x - 7.x upgrade went flawlessly using the method above without touching the ports/packages tree. This has always been the case. You don't actually need to rebuild all you ports right away, but you do need to do so eventually (i.e., before you start building more pots). Your old ports are linked against the old libraries, and if you get something linked against a mix of old (e.g., 7.x) and new (e.g., 8.x) libraries, it won't work. But then, that's covered in the upgrade instructions also... -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
On Sun, 07 Feb 2010 13:36:55 +0100 Leslie Jensen les...@eskk.nu wrote: [ .. ] For the moment the workaround, when you get to this, is to: mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old \ cd /usr/ports/x11-toolkits/qt33/ make \ mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so \ portmaster -C x11-toolkits/qt33 I did this yesterday while under KDE3 without problems. You'll run into the same kind of problem with kdelibs3: Making all in dnssd gmake[2]: Entering directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test $ret != 0; then rm -f settings.h ; exit $ret ; fi /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by libkdefx.so.6 gmake[2]: *** [settings.h] Error 1 gmake[2]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/x11/kdelibs3. The same workaround works. And yes, this means the kde ports are in wrong. I've tried this and I couldn't make it work! I then decided to remove the ports arts, kdelibs3, qt33 and k3b with pkg_deinstall, because these are the only ones installed that are affected of the above problem. I also did make clean for these ports. Even so, when I start installing qt33 again the same problem comes up. Do you have any suggestions on how I should do to make it work? Please send the make output with the failure, and pkg_info -Ia. -- IOnut - Un^d^dregistered ;) FreeBSD user Intellectual Property is nowhere near as valuable as Intellect FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B signature.asc Description: PGP signature
FreeBSD's UFS vs Ext4
Hi Guys, Today I reformatted a machine (network server) thats run FreeBSD nonstop for at least the last 3 years and installed linux on it. I have a raid 0 setup with 2 hard disks in the very same machine. Previously, the maximum I could get across my gigabit enabled network was 60MB/s (megabytes) per second sustained transfer rate. Now that the same machine's raid is formatted with ext4, i am easily sustaining 86MB/s. I cant put it down to the operating system kernel, as to the vast difference in performance, i suspect it is simply ext4 thats producing the better results (I have come to this conclusion because no hardware has changed on that machine, only the OS). So can I safely conclude that ext4 is miles ahead of FreeBSD's UFS performance wise? I'd like to see some feedback.. I am by no means a linux troll. In fact I am far from it. I own many FreeBSD tshirts. I see a number of factors putting freebsd behind: * The teams stubbornness with compiler/base tools (wont move away from gcc 4.2.1 because they just cant accept the GPL2) * The teams stubbornness with the base system binutils (which cause mplayer and other multimedia applications not to build, unless a newer version is installed) * NO interest in developing new filesystems (forget ZFS), i am talking about a base filesystem, ext4 blows the socks off UFS. Using such an old compiler must have a performance impact on the OS. I say this because compilers improve over time, they generate better, tighter, more optimized code. The binutils shipped with freebsd is more than 5 years old now. It's not just my personal test that has shown that linux is ahead in numerous areas (performance wise), but the recent phoronix benchmarks that were released when FreeBSD 8 came out, were pretty damning. I'd like to see what the FreeBSD team has to say on this. Alex ___ 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: FreeBSD's UFS vs Ext4
Sorry I should clarify that the copy was via FTP to the raid drive in both comparisons; FreeBSD with UFS: Maximum achievable when copying over the network to the raid drive = 60MB/s Linux with ext4: Maximum achievable when copying over the network to the raid drive = 86MB/s Original Message Subject:FreeBSD's UFS vs Ext4 Date: Mon, 08 Feb 2010 01:41:29 +1100 From: alex a...@mailinglist.ahhyes.net To: freebsd-questions@freebsd.org Hi Guys, Previously, the maximum I could get across my gigabit enabled network was 60MB/s (megabytes) per second sustained transfer rate. ___ 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 control upload data in bittorrent clients
On Sun, 07 Feb 2010 10:51:20 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: RW wrote: On Sat, 06 Feb 2010 23:14:45 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: 1) in the transmission web it showing downloading is 10 kbps to 30 kbpsbut uploading it shows 50 to 92 kbps my question is is it possible to limit the uploading data rate , how can I do this ? Check out Daniel Hartmeier's excellent article on how to prioritize TCP ACKs (and other traffic). It will explain what you experience and solve the problem for you. It's a good idea to handle this from within transmission too. Rate limiting works best at the TCP level. Well, the thing is that if you prioritize your TCP ACKs you won't have to do any rate limiting within transmission. You can then use your full upload and download simultaneously. Don't you want to use the bandwidth you pay for? :-) You can't get the full bandwidth because you need to set the upload limit at a level that can be sustained upstream in your router or modem; otherwise it doesn't work properly. You can't just use your nominal line-speed or let altq pick-up the interface speed. It depends what you are trying achieve. If your sole object is to prevent ack delays reducing tcp download speed then altq will do it. However, if you want to seed afterwards you need to reduce the impact on latency-sensitive protocols like http and imap. Further traffic prioritization does help, but I find that I get better results if I also set the client to limit itself a bit below the altq limit. In my experience tcp limiting also produces steadier uploads than altq so the average rate can actually be higher. On Sun, 7 Feb 2010 09:21:33 + dhaneshk k dhanes...@hotmail.com wrote: how can we control it within transmission ? Can you shed some light in this solution preferences -- speed ___ 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 run privileged commands on login/logout
On Sun, 07 Feb 2010 01:55:02 +0100, Erik Norgaard norga...@locolomo.org wrote: Hi: I'm playing around with diskless operation. I'd like to be able to run privileged commands when a user logins or logs out: You can handle this in two ways: a) On a per-user basis, you can use the user's ~/.login and ~/.logout files; those are corresponding to the C Shell, and assuming that csh is the dialog shell for the user. b) On an all-users basis, you can use /etc/csh.login and /etc/csh.logout to have all users perform the commands you want to run. - on login, nfs mount the user's home directory (ok, not critical, I can mount /home) As it has already been mentioned, it is easy to use amd and / or automounter tool for that. - on logout a system reboot to clean up any temporary files left from the session. A system reboot? To clean up temporary files? Caused by an ordinary user? Excuse me, Sir, what strange country are you from? :-) Honestly, that's not neccessary. If you want to make sure that all temporary files belonging to a specific user are deleted upon user logout, you can simply let him do it by his ~/.logout script, e. g. using rm -rf /tmp; this might sound very violent, but it will only delete the user's files from the /tmp subtree. There are very few occassions you HAVE to reboot a BSD machine. Cleaning temporary files is *not* one of them, especially if you don't have clear_tmp_enable set to YES in /etc/rc.conf. If temporary files are left in other directories you know of, you can clean them as well. Is this possible, without messing arround with sudo or adding users to wheel or operator groups? Of course. You can edit the permissions for the programs you explicitely want to allow ordinary users to run, e. g. the /sbin/shutdown binary. A sidenote: If we're talking about X, the GiveConsole and TakeConsole in /usr/local/lib/X11/xdm/ can be used. Those are shell scripts that allow chown'ing and chmod'ing files to specific users, as well as other things. I know that a problem may occur when multiple users log in. -- 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
Cannot build perl on FreeBSD 8.0
I updated from 7.2 to 8.0 from source. No I updated ports tree and try to update perl (from ports), but get the next error (version does not matter, 5.8, 5.10 give the same error): CCCMD = cc -DPERL_CORE -c -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat rm -f opmini.c op.c opmini.c op.c:No such file or directory *** Error code 1 Stop in /usr/ports/lang/perl5.8/work/perl-5.8.9. *** Error code 1 Stop in /usr/ports/lang/perl5.8. *** Error code 1 Stop in /usr/ports/lang/perl5.8. --- Since there is no such error (tried to search on goolge but without luck) it seems that I did wrong something/ But cannot find out what - everything seems to work fine. May be someone faced with similar problem, what can I do to compile perl? Best regards, Denis ___ 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: Modules and Custom Kernels
Hi James On Sunday 07 February 2010 05:40:19 James Colannino wrote: Hey everyone. Please bear with me as I'm very new to FreeBSD. I've recently started building a custom kernel after having had to apply a patch to enable support for my wireless device (Atheros 9285) in 8.0-RELEASE, and had a quick question about the process in general. If you are building custom kernels then you are not that new to FreeBSD ;-) According to the documentation, a line with device driver name will cause that driver to be compiled into the kernel. If one of those lines is commented out, does that mean that the driver will still be built, but that it will be installed as a module? I didn't see anything that told me that explicitly in the documentation, but that's the feeling I got from what I read. I just want to make sure that my assumption is correct, and if not, how to make sure that something gets built as a module rather than built directly into the kernel. Not all devices have a corresponding module (or some are bundled together in a single module). Most of the devices you are interested in do have modules but the module names are not always the same as the device name (i.e. network devices have a if_ prefixed to the module name). For further information have a look at the manual pages for a given device. e.g. `man 4 bge` shows that bge requires devices miibus and bge in the kernel or can be loaded using `if_bge_load=YES` in loader.conf(5). This implies the module name is if_bge. `man 4 sc` shows that no module is available (but it does have many options that can be specified in the kernel configuration file). By default all modules are built (even those whose devices are build in the kernel). This behaviour can be changed. For a list of all the modules available look at /sys/modules and `ls /boot/kernel/*.ko`. In all, the process looks relatively painless as long as I'm careful not to make too many changes to the GENERIC config. I normally just copy GENERIC and tweak it but there are better ways than this. Hopefully this isn't a dumb question :) I really like FreeBSD so far, and think I'm going to enjoy my new experience quite a bit. Not at all. Enjoy :-) Regards, David signature.asc Description: This is a digitally signed message part.
Re: Cannot build perl on FreeBSD 8.0
On Sun, 7 Feb 2010, Denis wrote: I updated from 7.2 to 8.0 from source. No I updated ports tree and try to update perl (from ports), but get the next error (version does not matter, 5.8, 5.10 give the same error): Did you rebuild all your ports after the upgrade from 7.2 to 8.0? Do you have any extra settings in /etc/make.conf? -Warren Block * Rapid City, South Dakota USA ___ 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: Cannot build perl on FreeBSD 8.0
On Sun, Feb 7, 2010 at 8:03 PM, Warren Block wbl...@wonkity.com wrote: Did you rebuild all your ports after the upgrade from 7.2 to 8.0? Do you have any extra settings in /etc/make.conf? Not yet. I'm trying to do this - a lot of ports depend on perl, and I get stuck with it. No, there are no any extra settings in /etc/make.conf. Denis ___ 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: FreeBSD's UFS vs Ext4
On Mon, Feb 08, 2010 at 01:41:29AM +1100, alex wrote: Hi Guys, Today I reformatted a machine (network server) thats run FreeBSD nonstop for at least the last 3 years and installed linux on it. I have a raid 0 setup with 2 hard disks in the very same machine. So you had a machine that had run non-stop for 3 years yet you replace the OS. Clever. Previously, the maximum I could get across my gigabit enabled network was 60MB/s (megabytes) per second sustained transfer rate. Now that the same machine's raid is formatted with ext4, i am easily sustaining 86MB/s. I cant put it down to the operating system kernel, as to the vast difference in performance, i suspect it is simply ext4 thats producing the better results (I have come to this conclusion because no hardware has changed on that machine, only the OS). So can I safely conclude that ext4 is miles ahead of FreeBSD's UFS performance wise? No you can't. What about the driver for your NIC? It may be nothing to do with the FS. I'd like to see some feedback.. I am by no means a linux troll. In fact I am far from it. I own many FreeBSD tshirts. Oh well, if you own FreeBSD T-shirts that settles the matter. I see a number of factors putting freebsd behind: * The teams stubbornness with compiler/base tools (wont move away from gcc 4.2.1 because they just cant accept the GPL2) They don't like the license, that's not stubbornness. * The teams stubbornness with the base system binutils (which cause mplayer and other multimedia applications not to build, unless a newer version is installed) Nonsense. * NO interest in developing new filesystems (forget ZFS), i am talking about a base filesystem, ext4 blows the socks off UFS. You say, with your in-depth study of the matter and understanding of filesystems. Using such an old compiler must have a performance impact on the OS. I say this because compilers improve over time, they generate better, tighter, more optimized code. The binutils shipped with freebsd is more than 5 years old now. A codes age has nothing to do with it's performance. It's not just my personal test that has shown that linux is ahead in numerous areas (performance wise), but the recent phoronix benchmarks that were released when FreeBSD 8 came out, were pretty damning. Link please. I'd like to see what the FreeBSD team has to say on this. Alex Despite your FreeBSD T-shirt ownage, your post is a troll. Nobody's interested in your bogus benchmarks opinions on matters that you are not knowledgeable of. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.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: Modules and Custom Kernels
David Naylor wrote: If you are building custom kernels then you are not that new to FreeBSD ;-) Well, ok, maybe new is a relative term :-P I've had experience installing FreeBSD in the past (I need to be able to do this for work), but haven't done too much else with it. I normally just copy GENERIC and tweak it but there are better ways than this. That's what I'm doing as well. Not at all. Enjoy :-) Thanks for the help! James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Wireless Access Point
Okay bad news. There were just too many problems with this setup. I recall a few weeks ago building an 8.0 server and it had troubles as well. So I reinstalled 7.2-RELEASE on this server and here's what happened: The laptop got an IP address and connected not instantly but much quicker than when I was running 8.0-STABLE. The download speed from ftp.freebsd.org was over 200KB/s instead of 39KB/s like last night under 8.0-STABLE I'm still testing this today but this NIC at least (Saberent using the ral0 chip) appears to have big problems under 8.0-STABLE ___ 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: Cannot build perl on FreeBSD 8.0
On Sun, 7 Feb 2010, Denis wrote: On Sun, Feb 7, 2010 at 8:03 PM, Warren Block wbl...@wonkity.com wrote: Did you rebuild all your ports after the upgrade from 7.2 to 8.0? Do you have any extra settings in /etc/make.conf? Not yet. I'm trying to do this - a lot of ports depend on perl, and I get stuck with it. No, there are no any extra settings in /etc/make.conf. You may be running into the situation where something Perl needs can't run because of mixed libraries. For the 7-8 major version upgrade, it's usually easier and faster to save your pkg_info output, backup /usr/local/etc, and pkg_delete everything. Then update the ports tree and start installing ports from scratch. There may be a way to automate that, like feeding the saved pkg_info output to portupgrade. I haven't done it often enough to investigate. -Warren Block * Rapid City, South Dakota USA ___ 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 control upload data in bittorrent clients
RW wrote: On Sun, 07 Feb 2010 10:51:20 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: RW wrote: On Sat, 06 Feb 2010 23:14:45 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: 1) in the transmission web it showing downloading is 10 kbps to 30 kbpsbut uploading it shows 50 to 92 kbps my question is is it possible to limit the uploading data rate , how can I do this ? Check out Daniel Hartmeier's excellent article on how to prioritize TCP ACKs (and other traffic). It will explain what you experience and solve the problem for you. It's a good idea to handle this from within transmission too. Rate limiting works best at the TCP level. Well, the thing is that if you prioritize your TCP ACKs you won't have to do any rate limiting within transmission. You can then use your full upload and download simultaneously. Don't you want to use the bandwidth you pay for? :-) You can't get the full bandwidth because you need to set the upload limit at a level that can be sustained upstream in your router or modem; otherwise it doesn't work properly. You can't just use your nominal line-speed or let altq pick-up the interface speed. You're of course correct. I'm sorry if I didn't specify that but Daniel's article clearly explains it. The purpose of my response here was not to describe in detail how to configure ALTQ but merely to direct the OP to a solution that solves the exact problem he describes. This phenomenon is very common among people with asymmetric connections. It depends what you are trying achieve. If your sole object is to prevent ack delays reducing tcp download speed then altq will do it. However, if you want to seed afterwards you need to reduce the impact on latency-sensitive protocols like http and imap. Further traffic prioritization does help, but I find that I get better results if I also set the client to limit itself a bit below the altq limit. My personal queue definition is rather complex. Naturally I prioritize traffic like http, smtp, ssh, rsync, ntp and others over the bulk traffic produced by bittorrent. Since bandwidth can be borrowed between queues the bulk traffic is able to use all of my bandwidth when I don't need it for prioritized traffic. In my experience tcp limiting also produces steadier uploads than altq so the average rate can actually be higher. I have probably been lucky with the ISPs I've used over the years because they have always delivered a constant and steady upload to me. I set up my first PF/ALTQ-based router on OpenBSD, several years before it was ported to FreeBSD, and I have never looked back since then. No amount of application speed limiting has ever come close to produce better bandwidth utilization for me than PF/ALTQ. Regards Morgan ___ 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: Cannot build perl on FreeBSD 8.0
Warren Block writes: Not yet. I'm trying to do this - a lot of ports depend on perl, and I get stuck with it. No, there are no any extra settings in /etc/make.conf. You may be running into the situation where something Perl needs can't run because of mixed libraries. For the 7-8 major version upgrade, it's usually easier and faster to save your pkg_info output, backup /usr/local/etc, and pkg_delete everything. Then update the ports tree and start installing ports from scratch. There may be a way to automate that, like feeding the saved pkg_info output to portupgrade. I haven't done it often enough to investigate. pkg_sort, which is part of portupgrade, is a useful tool. 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: portupgrade, batch mode?
On Sun, Feb 07, 2010 at 12:59:53PM +0100, n dhert wrote: When using portupgrade, from time to time, there is a package that displays an options menu and waits for a interactive response (like hitting OK to accept the defaults and continue). Is there way to specify that portupgrade should always accept the defaults and not wait for user input? What I do when portupgrading something that will require user input in an options menu is to use the -C switch to portupgrade. This enables you to twiddle with the options of all the ports before the main build starts. If you know that you want to use the defaults, then you can use the the --batch switch or put BATCH=yes in make.conf IIRC. But IMHO, remembering to always give portupgrade the -C switch is the way to go. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.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: Cannot build perl on FreeBSD 8.0
On Sun, 7 Feb 2010, Robert Huff wrote: Warren Block writes: Not yet. I'm trying to do this - a lot of ports depend on perl, and I get stuck with it. No, there are no any extra settings in /etc/make.conf. You may be running into the situation where something Perl needs can't run because of mixed libraries. For the 7-8 major version upgrade, it's usually easier and faster to save your pkg_info output, backup /usr/local/etc, and pkg_delete everything. Then update the ports tree and start installing ports from scratch. There may be a way to automate that, like feeding the saved pkg_info output to portupgrade. I haven't done it often enough to investigate. pkg_sort, which is part of portupgrade, is a useful tool. That's pretty cool: pkg_info | cut -f 1 -d' ' | pkg_sort You could just start installing ports at the bottom and work upwards. The only thing that makes me wonder is that list shows wine above xorg-server on my system. -Warren Block * Rapid City, South Dakota USA ___ 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 control upload data in bittorrent clients
On Sun, 07 Feb 2010 19:31:11 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: RW wrote: On Sun, 07 Feb 2010 10:51:20 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: RW wrote: On Sat, 06 Feb 2010 23:14:45 +0100 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote: 1) in the transmission web it showing downloading is 10 kbps to 30 kbpsbut uploading it shows 50 to 92 kbps my question is is it possible to limit the uploading data rate , how can I do this ? Check out Daniel Hartmeier's excellent article on how to prioritize TCP ACKs (and other traffic). It will explain what you experience and solve the problem for you. It's a good idea to handle this from within transmission too. Rate limiting works best at the TCP level. Well, the thing is that if you prioritize your TCP ACKs you won't have to do any rate limiting within transmission. You can then use your full upload and download simultaneously. Don't you want to use the bandwidth you pay for? :-) You can't get the full bandwidth because you need to set the upload limit at a level that can be sustained upstream in your router or modem; otherwise it doesn't work properly. You can't just use your nominal line-speed or let altq pick-up the interface speed. You're of course correct. I'm sorry if I didn't specify that but Daniel's article clearly explains it. The purpose of my response here was not to describe in detail how to configure ALTQ but merely to direct the OP to a solution that solves the exact problem he describes. This phenomenon is very common among people with asymmetric connections. It depends what you are trying achieve. If your sole object is to prevent ack delays reducing tcp download speed then altq will do it. However, if you want to seed afterwards you need to reduce the impact on latency-sensitive protocols like http and imap. Further traffic prioritization does help, but I find that I get better results if I also set the client to limit itself a bit below the altq limit. My personal queue definition is rather complex. Naturally I prioritize traffic like http, smtp, ssh, rsync, ntp and others over the bulk traffic produced by bittorrent. Since bandwidth can be borrowed between queues the bulk traffic is able to use all of my bandwidth when I don't need it for prioritized traffic. I'm aware of that, and do it, but in practice I find that latency is still improved. YMMV In my experience tcp limiting also produces steadier uploads than altq so the average rate can actually be higher. I have probably been lucky with the ISPs I've used over the years because they have always delivered a constant and steady upload to me. It's nothing to do with the ISP, the ISP's the same in both cases. My guess is that ktorrent's limiting tends to spread the uploads more evenly among the peers. I set up my first PF/ALTQ-based router on OpenBSD, several years before it was ported to FreeBSD, and I have never looked back since then. No amount of application speed limiting has ever come close to produce better bandwidth utilization for me than PF/ALTQ. It's the best of a bad lot, dropping and delaying IP packets is a poor way of regulating TCP. ___ 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: portupgrade, batch mode?
Frank == Frank Shute fr...@shute.org.uk writes: Frank But IMHO, remembering to always give portupgrade the -C switch is the Frank way to go. Sadly, I've run across Perl ports that still ask questions, even when being run from portupgrade, and -C doesn't help those. I'm guessing from this description that I should be noticing these and reporting it to someone? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ 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: Cannot build perl on FreeBSD 8.0
On Sun, Feb 7, 2010 at 10:36 PM, Warren Block wbl...@wonkity.com wrote: You may be running into the situation where something Perl needs can't run because of mixed libraries. For the 7-8 major version upgrade, it's usually easier and faster to save your pkg_info output, backup /usr/local/etc, and pkg_delete everything. Then update the ports tree and start installing ports from scratch. There may be a way to automate that, like feeding the saved pkg_info output to portupgrade. I haven't done it often enough to investigate. pkg_sort, which is part of portupgrade, is a useful tool. That's pretty cool: pkg_info | cut -f 1 -d' ' | pkg_sort You could just start installing ports at the bottom and work upwards. The only thing that makes me wonder is that list shows wine above xorg-server on my system. Thank you for your help and useful tips! The problem was easy - long time ago I made a link in /bin/basename to /usr/compat/linux/bin/basename . There for during perl config wrong basename was chosen and lead to the error. Best regards, Denis ___ 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: portupgrade, batch mode?
On Sun, Feb 07, 2010 at 12:26:49PM -0800, Randal L. Schwartz wrote: Frank == Frank Shute fr...@shute.org.uk writes: Frank But IMHO, remembering to always give portupgrade the -C switch is the Frank way to go. Sadly, I've run across Perl ports that still ask questions, even when being run from portupgrade, and -C doesn't help those. All the Perl ports I've installed (e.g p5-*) have just installed for me without any curses options menu. Although I'd describe you as a Perl power user and undoubtedly have more Perl ports installed than I have. I'm guessing from this description that I should be noticing these and reporting it to someone? Are you talking about ports that depend on Perl? Can you give an example of a Perl port that asks you questions? Don't mean to be obstructive in any way; genuinely curious as AFAICR I haven't come across one. It could be that the questions asked of you when you install the ports are outside the scope of a curses interface i.e because you have to type something in rather than (un)tick an option. In that case, the -C option to portupgrade or the --batch option wont work. PS. Many thanks for your writings on Perl, they largely taught me what I know of Perl and led to many hours of enjoyment. Many Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.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: portupgrade, batch mode?
Frank == Frank Shute fr...@shute.org.uk writes: Frank All the Perl ports I've installed (e.g p5-*) have just installed for Frank me without any curses options menu. Lucky. :) Frank Although I'd describe you as a Perl power user and undoubtedly have Frank more Perl ports installed than I have. red.stonehenge.com:~ +# pkg_info | grep -c 'p5-' 3314 red.stonehenge.com:~ +# cat MAKE_ALL_PERL_PORTS #!/bin/sh cd /usr/ports || exit 1 pkg_info -q -o -a /tmp/$$ for i in `ls -d */p5* | fgrep -vxf /tmp/$$` do if pkg_info -q -O $i | grep -q . then echo SKIPPING $i - INSTALLED; else ( cd $i echo == $i == if make missing | grep -v '/p5-' then echo SKIPPING $i - DEPENDENCIES else ( trap ':' 2 make BATCH=yes install clean /dev/null ) fi ) fi done Yes, I have actually installed all Perl ports that depend only on other CPAN modules, and not anything else that I didn't already have installed. Frank Are you talking about ports that depend on Perl? Can you give an Frank example of a Perl port that asks you questions? Don't mean to be Frank obstructive in any way; genuinely curious as AFAICR I haven't come Frank across one. I wish I could remember. Just that something comes up every once in a while and I curse that the upgrade has stopped. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
8.0 flash gmail attachments
Hi all, I'm running 8.0-RELEASE-p2. I have flash support through linux emulation (linux_base-f10-10_2 and linux-f10-flashplugin-10.0r42). Everything seems to work fine save a couple of things: - Sometimes nspluginwrapper crashes and dumps a core. Firefox 3 seems to work fine however and it does not hang or crash. - In Gmail, every attachment attempt fails. I think this is related to flash cause there is a flash progress bar while uploading the attachment. If I fall back to the old gmail version where the progress bar is not present the same attachment does not fail. I wonder if any out there has noticed this. I'm specially interested in the second problem cause it is very annoying. Thanks in advance. ___ 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: Cheating OS fingerprinting
On 2/7/2010 3:54 PM, yavuz wrote: Hi all, I want to cheat os fingerprinting tools ( primary nmap) in my freebsd machine. Assume I am using freebsd 8 and I want to be seen as a windows xp machine when someone scans my ports. In order to determine target host's OS, nmap sends seven TCP/IP crafted packets (called tests) and waits for the answer. Results are checked against a database of known results (OS signatures database). If the answer matches any of the entries in the database, it can guess that the remote OS is the same that the one in the database... snip I want to implement a freebsd tool that cheats os fingerprinting. If I recall correctly, honeyd does this and much more. Check net/honeyd. 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: FreeBSD's UFS vs Ext4
Frank Shute wrote: On Mon, Feb 08, 2010 at 01:41:29AM +1100, alex wrote: Hi Guys, Today I reformatted a machine (network server) thats run FreeBSD nonstop for at least the last 3 years and installed linux on it. I have a raid 0 setup with 2 hard disks in the very same machine. So you had a machine that had run non-stop for 3 years yet you replace the OS. Clever. Yes I replaced the OS. Because the box was to also be a PBX (running asterisk, instead of just being a file server/web server for running local web apps). I was continually getting coredumps with asterisk. After filing numerous bug reports and hitting dead ends with the asterisk devs, I had enough, because none of them knew how to debug the problem under freebsd, I got fed up and moved the box over to linux, and to my surprise, no more core dumps. I see a number of factors putting freebsd behind: * The teams stubbornness with compiler/base tools (wont move away from gcc 4.2.1 because they just cant accept the GPL2) They don't like the license, that's not stubbornness. Wow thats a good reason to use ancient compilers and assemblers. * The teams stubbornness with the base system binutils (which cause mplayer and other multimedia applications not to build, unless a newer version is installed) Nonsense. You dont see having a set of binutils thats not SSE3 or SSE4 capable as a problem? It's nonsense? Using such an old compiler must have a performance impact on the OS. I say this because compilers improve over time, they generate better, tighter, more optimized code. The binutils shipped with freebsd is more than 5 years old now. A codes age has nothing to do with it's performance. Clearly you know nothing about how compilers generate and optimize code. If this isnt a problem, why would new versions of gcc and binutils continue to surface. Well I can see three obvious reasons, improved code generation, bug fixes, new features. It's not just my personal test that has shown that linux is ahead in numerous areas (performance wise), but the recent phoronix benchmarks that were released when FreeBSD 8 came out, were pretty damning. Link please. Sure, no problem, enjoy: http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1 Go on, I am waiting for you to poke holes and attempt to totally invalidate those benchmarks too. I'd like to see what the FreeBSD team has to say on this. Alex Despite your FreeBSD T-shirt ownage, your post is a troll. Nobody's interested in your bogus benchmarks opinions on matters that you are not knowledgeable of. Regards, I guess you cant see the difference between a troll and a complaint. I have been using freebsd since the 4.x days. It seems you have quite a chip on your shoulder, frank. Alex. ___ 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: Cheating OS fingerprinting
yavuz wrote: Hi all, I want to cheat os fingerprinting tools ( primary nmap) in my freebsd machine. Assume I am using freebsd 8 and I want to be seen as a windows xp machine when someone scans my ports. ... I want to implement a freebsd tool that cheats os fingerprinting. As I said, I have to analyze all incomming packets as a firewall and do some job if packets are comming from a scanner. Can I implement this feature as a patch to PF, or does PF provides some mechanisms to write extension modules? Can you give any advices? Where is to start:) Well, you can simply redirect all traffic to a port on localhost, where your service is listening. However, said service needs to forward the regular traffic to the assigned ports in order to not block your entire networking capabilities. -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ 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: What is easiest way to build a BSD 8 binary on a BSD 7 box?
The easiest way would probably be the following. # SOMEDIR=/path/to/fbsd8buildenv # mkdir -p ${SOMEDIR} # cd /path/to/FreeBSD-8.0/src # make buildworld # make installworld DESTDIR=${SOMEDIR} Then adding --sysroot=${SOMEDIR} to all invocations of gcc/ld and/or liberal use of -I and -L gcc options should do the trick. For example: # export CFLAGS=-I${SOMEDIR}/usr/include -L${SOMEDIR}/lib -L${SOMEDIR}/usr/lib # make I've done this and it's clearly working, at least in the sense I can tell the libraries are coming from my BSD 8 repository. My makefile is generating gcc commands that look like this: gcc -m64 -DHAVE_INT64_T --sysroot=/usr/local/buildrepo/bsd/v8/obj -L/usr/local/buildrepo/bsd/v8/obj/usr/lib ... I know it's working because if I rename the directory pointed to by sysroot the link fails. My tool is still failing though in exactly the same way in a call to kvm_read. The same call works fine when the tool is built on a BSD 8 box. Is there anything else I need to do to make sure the BSD 7 built binary is a fully complaint BSD 8 binary? ___ 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: FreeBSD's UFS vs Ext4
On Sunday 07 February 2010 15:41:29 alex wrote: Hi Guys, Today I reformatted a machine (network server) thats run FreeBSD nonstop for at least the last 3 years and installed linux on it. I have a raid 0 setup with 2 hard disks in the very same machine. Previously, the maximum I could get across my gigabit enabled network was 60MB/s (megabytes) per second sustained transfer rate. Now that the same machine's raid is formatted with ext4, i am easily sustaining 86MB/s. Too many variables. The difference in performance could be due to: 1) Slow filesystem. 2) Slow network (nic). 3) Slow FTP server. The fact that the limit is 86MB/sec (which is very low for a raid0 array) makes me think the box suffers from sub optimal network performance during a simple stream test like yours. This could be due to FreeBSD having a poor network driver for your particular NIC or could be due to insufficient tuning of the TCP parameters for this particular test. You haven't given any details about the hardware, network tuning done, how you configured the filesystem, raw filesystem performance, raw network performance. If you want a meaningful response based on more than guesswork, please gather more data. -- Pieter de Goeje ___ 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: What is easiest way to build a BSD 8 binary on a BSD 7 box?
On Monday 08 February 2010 01:51:37 Peter Steele wrote: The easiest way would probably be the following. # SOMEDIR=/path/to/fbsd8buildenv # mkdir -p ${SOMEDIR} # cd /path/to/FreeBSD-8.0/src # make buildworld # make installworld DESTDIR=${SOMEDIR} Then adding --sysroot=${SOMEDIR} to all invocations of gcc/ld and/or liberal use of -I and -L gcc options should do the trick. For example: # export CFLAGS=-I${SOMEDIR}/usr/include -L${SOMEDIR}/lib -L${SOMEDIR}/usr/lib # make I've done this and it's clearly working, at least in the sense I can tell the libraries are coming from my BSD 8 repository. My makefile is generating gcc commands that look like this: gcc -m64 -DHAVE_INT64_T --sysroot=/usr/local/buildrepo/bsd/v8/obj -L/usr/local/buildrepo/bsd/v8/obj/usr/lib ... I know it's working because if I rename the directory pointed to by sysroot the link fails. My tool is still failing though in exactly the same way in a call to kvm_read. The same call works fine when the tool is built on a BSD 8 box. Is there anything else I need to do to make sure the BSD 7 built binary is a fully complaint BSD 8 binary? You could check that the tool is actually linked to the correct libraries with ldd(1). If all else fails, you could try building a full FreeBSD 8 jail or chroot. However running FBSD 8 userland on a 7 kernel is unsupported so I have no idea if that will actually work well enough to build software... -- Pieter de Goeje ___ 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: backup terminal title
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote: I finally got it: printf \033[22;0t This stores the current icon and window titles on a stack. printf \033[23;0t This restores them from the stack. It works fine with xterm, has no effect on rxvt-unicode (which I am using), though. I wouldn't expect it to work with the other terminals - it takes usually a year or more before features from xterm get copied into other programs. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpxj4XVJjr07.pgp Description: PGP signature
Fwd: autogen gcc makefile.def error Postfix 2.5.6
I haven't used FreeBSD in eight years and haven't installed Postfix since then. Can someone please help with the GCC error below? Thanks. -- Forwarded message -- From: Wietse Venema wie...@porcupine.org Date: Sun, Feb 7, 2010 at 8:51 PM Subject: Re: autogen gcc makefile.def error Postfix 2.5.6 To: Postfix users postfix-us...@postfix.org Danny Edge: Stop in /usr/ports/lang/gcc42. *** Error code 1 You have a problem bulding GCC. You are about 100 miles away from building Postfix. Wietse -- CPDE - Certified Petroleum Distribution Engineer CCBC - Certified Canadian Beer Consumer ___ 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: autogen gcc makefile.def error Postfix 2.5.6
On Sun, Feb 7, 2010 at 7:55 PM, Danny Edge nocmon...@gmail.com wrote: I haven't used FreeBSD in eight years and haven't installed Postfix since then. Can someone please help with the GCC error below? Thanks. You'll need to include a lot more info than that. You can review this page to get the best experience here: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/article.html Since you've been away so long a review of the handbook would be helpful for you as well. The best guess I can make given the info you provided is that you're trying to built a port without being root. That isn't going to work, you need appropriate permissions. -- 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: autogen gcc makefile.def error Postfix 2.5.6
On Sun, Feb 7, 2010 at 9:14 PM, Adam Vande More amvandem...@gmail.comwrote: On Sun, Feb 7, 2010 at 7:55 PM, Danny Edge nocmon...@gmail.com wrote: I haven't used FreeBSD in eight years and haven't installed Postfix since then. Can someone please help with the GCC error below? Thanks. You'll need to include a lot more info than that. You can review this page to get the best experience here: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/article.html Since you've been away so long a review of the handbook would be helpful for you as well. The best guess I can make given the info you provided is that you're trying to built a port without being root. That isn't going to work, you need appropriate permissions. make install clean was performed as root from the postfix ports path. This is a new install of 7.2R. What additional information can I provide? Thanks. -- CPDE - Certified Petroleum Distribution Engineer CCBC - Certified Canadian Beer Consumer ___ 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
Problem compiling xfce4-conf from ports
It appears that there is a bug in the current set up scripts in xfce4-conf. It tries to run gtkdoc-fixxref and snags on an undeclared variable. ___ 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: FreeBSD's UFS vs Ext4
Hi, On 07 February 2010 pm 22:41:29 alex wrote: Today I reformatted a machine (network server) thats run FreeBSD nonstop for at least the last 3 years and installed linux on it. I have a raid 0 setup with 2 hard disks in the very same machine. can you do the same for FreeBSD? Just install 8.0 and run the same test as before. As the machine running for three years, it could be that the wrong driver for some device was used. I would never compare a running system directly to a freshly installed one. Erich ___ 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: What is easiest way to build a BSD 8 binary on a BSD 7 box?
You could check that the tool is actually linked to the correct libraries with ldd(1). If all else fails, you could try building a full FreeBSD 8 jail or chroot. However running FBSD 8 userland on a 7 kernel is unsupported so I have no idea if that will actually work well enough to build software... I suspect I know the problem. The tool I'm building links with a bunch of other libraries we've developed, which I didn't write. I only modified the makefile of my own code. I'm going to have to tweak the makefiles of a dozen different library modules. That'll be more work but it needs to be done to confirm this approach works. I checked the binaries built on BSD7 and a real BSD8 system and there are clear differences: BSD7 binary: libm.so.5 = /lib/libm.so.5 (0x800724000) libreadline.so.7 = /usr/local/lib/compat/libreadline.so.7 (0x800843000) libncurses.so.7 = /usr/local/lib/compat/libncurses.so.7 (0x80098) libcrypto.so.5 = /usr/local/lib/compat/libcrypto.so.5 (0x800acc000) libdevinfo.so.4 = /usr/local/lib/compat/libdevinfo.so.4 (0x800d5e000) libkvm.so.4 = /usr/local/lib/compat/libkvm.so.4 (0x800e6) libutil.so.7 = /usr/local/lib/compat/libutil.so.7 (0x800f68000) libthr.so.3 = /lib/libthr.so.3 (0x801077000) libc.so.7 = /lib/libc.so.7 (0x80118f000) BSD8 binary: libm.so.5 = /lib/libm.so.5 (0x800724000) * libreadline.so.8 = /lib/libreadline.so.8 (0x800843000) * libncurses.so.8 = /lib/libncurses.so.8 (0x800981000) * libcrypto.so.6 = /lib/libcrypto.so.6 (0x800acd000) * libdevinfo.so.5 = /usr/lib/libdevinfo.so.5 (0x800d67000) * libkvm.so.5 = /lib/libkvm.so.5 (0x800e69000) * libutil.so.8 = /lib/libutil.so.8 (0x800f71000) libthr.so.3 = /lib/libthr.so.3 (0x801081000) libc.so.7 = /lib/libc.so.7 (0x801199000) I suspect the libkvm library is the culprit. This list though is what I need to aim for using the sysroot approach. ___ 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
Breaking the sendmail code / sendmail for dummies
OK - I'm chasing my tail here. I've been reading /etc/mail/README /usr/share/sendmail/cf/README and a lot of other README files, but I'm missing the big picture - I'm definitely beating my head against trees without a map of the forest. The last time I changed a *.cf file was in 2002, so my recollection is somewhat dimmed. In fact, the last time I did it before THAT was before the m4 macros were built - I used to write sendmail rules by hand. Somehow, there's a couple of really, really basic things that I've forgotten and cannot find, but I do remember how really, really messed up one could make things. Some things have just plain changed. It seems like there's two sets of files now - sendmail.cf and submit.cf. All of the examples in /etc/mail seem to be so paired, and it created new files for me based on my hostname when I just typed make. I think that knowing that is probably pretty important. A little background - elwood will be the mail hub. Any e-mail originating from within my local network should be re-written to eliminate the specific host name and only use the higher level domain. I belive that is MASQUERADE_AS. In trying to make sure this is what I want, I keep running into references to the domain file and references like ../domain. Should I really be considering creating something regarding my local configuration in the /usr/share/sendmail/cf/domain directory? That seems - wrong. It should really be rather simple, because this system will accept all the e-mail, and other systems will use POP and/or IMAP to get the mail from it. It is the central clearing point for all incoming and outgoing mail. I think that I'm really close, I'm just somehow missing some of the very basic configuration tricks or clues and I'm not finding them. I've got local-host-names and relay-domains all set up and it seems to be using them, but that must be from the as-delivered sendmail.cf (or submit.cf) file, because I sure haven't done a make install-cf CF=elwood.starfire.mn.or.mc yet. But, even if I do that - what about the submit.cf file? There's a lot of .mc and .cf files in /etc/mail already, goodness knows what it's really doing. Not me, not yet. Please help me get there! Thanks. -- John Lind j...@starfire.mn.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: FreeBSD's UFS vs Ext4
Pieter de Goeje wrote: The fact that the limit is 86MB/sec (which is very low for a raid0 array) makes me think the box suffers from sub optimal network performance during a simple stream test like yours. This could be due to FreeBSD having a poor network driver for your particular NIC or could be due to insufficient tuning of the TCP parameters for this particular test. Hi Pieter. You are right about there being a number of possibilities, however: *The same machine, which over the years has had a number of revisions of freebsd on it (have buildworlded the thing from 7- 7.1 - 7.2 - 8), the performance was always roughly the same amongst the versions, I dont agree with the possibility of the ftp server being 'slow' as I am the only person who copies data to that machine, and the machine is always under a very low (almost non existent) load. * Network card is an Intel Pro 1000, on the server. This is a PCI card (not pci-e), so I believe PCI bus bandwidth limitations may be responsible for me not being able to achieve the maximum 100MB/s network rate (as you mention that 86MB/s is slow for raid0) * The intel network card driver on freebsd and linux are both fairly rock solid and well written. I dont see it being an issue with NIC drivers (they are not vastly different). * Both OS's were stock standard installs, no jumbo frames enabled, no fiddling with sysctl network values. I am happy with 86MB/s anyway, It's a huge improvement of the 60MB/s barrier I could never get past when that machine was running FreeBSD. To get the rest of the speed, I'd probably have to install a pci-e card on the server. I do suspect personally that the ext4 filesystem is the reason for the difference here, since ext4 has a number of features such as deferred disk writes etc. Even deleting a large file off that raid array I can see a difference, prior to reformatting, i deleted a 190GB file off the raid, under UFS the delete took quite some time (well over 10 seconds), under ext4 the deletion of the same size file took about 3 seconds. But what I said with ext4 being faster then the aging UFS still rings true in my mind, look at the recent Phoronix benchmarks for yourself and see (10 pages of benchmarks). http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1 (skip to page 7 of the benchmarks if you want to see the I/O stuff relating to disk performance) ___ 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: Breaking the sendmail code / sendmail for dummies
On Sun, 7 Feb 2010, John wrote: A little background - elwood will be the mail hub. Any e-mail originating from within my local network should be re-written to eliminate the specific host name and only use the higher level domain. I belive that is MASQUERADE_AS. In trying to make sure this is what I want, I keep running into references to the domain file and references like ../domain. Should I really be considering creating something regarding my local configuration in the /usr/share/sendmail/cf/domain directory? That seems - wrong. It's not recommended. Instead, running make in /etc/mail creates your hostname.mc file from the templates there. (/etc/mail/Makefile is a model of making things easier.) Then edit hostname.mc. Change the masquerade settings: MASQUERADE_AS(`mydomain.com') MASQUERADE_DOMAIN(`mydomain.com') FEATURE(`masquerade_entire_domain') FEATURE(`masquerade_envelope') After the edits, do a 'make all install restart'. Done! -Warren Block * Rapid City, South Dakota USA ___ 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
What is correct syntax in boot.config fo GPT partitions?
I've used the syntax 1:ad(1,a)/boot/loader in boot.config to specify the boot device. This doesn't work with GPT partitions. What's the correct syntax in boot.config for GPT partitions? ___ 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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
2010-02-07 15:37, Ion-Mihai Tetcu skrev: On Sun, 07 Feb 2010 13:36:55 +0100 Leslie Jensenles...@eskk.nu wrote: [ .. ] For the moment the workaround, when you get to this, is to: mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old \ cd /usr/ports/x11-toolkits/qt33/ make \ mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so \ portmaster -C x11-toolkits/qt33 I did this yesterday while under KDE3 without problems. You'll run into the same kind of problem with kdelibs3: Making all in dnssd gmake[2]: Entering directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test $ret != 0; then rm -f settings.h ; exit $ret ; fi /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by libkdefx.so.6 gmake[2]: *** [settings.h] Error 1 gmake[2]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/x11/kdelibs3. The same workaround works. And yes, this means the kde ports are in wrong. I've tried this and I couldn't make it work! I then decided to remove the ports arts, kdelibs3, qt33 and k3b with pkg_deinstall, because these are the only ones installed that are affected of the above problem. I also did make clean for these ports. Even so, when I start installing qt33 again the same problem comes up. Do you have any suggestions on how I should do to make it work? Please send the make output with the failure, and pkg_info -Ia. When I run the command I get this pkg_info -Ia pkg_info_100208.txt pkg_info: corrupted record (pkgdep line without argument), ignoring pkg_info: corrupted record (pkgdep line without argument), ignoring pkg_info: corrupted record (pkgdep line without argument), ignoring Probably because the ports deinstalled are dependencies of openoffice! When running portmaster --check-depends it complains about x11-toolkits/qt33 audio/arts x11/kdelibs3 Please see attached file! Make output: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libmng.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libmng.so: undefined reference to `jpeg_start_decompr...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_input_compl...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_start_out...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_resync_to_rest...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_read_scanli...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_finish_decompr...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_read_hea...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_createdecompr...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_has_multiple_sc...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_std_er...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_destroy_compr...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_destroy_decompr...@libjpeg_7.0' /usr/local/lib/libmng.so: undefined reference to `jpeg_finish_out...@libjpeg_7.0' *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. Thanks :-) /Leslie ImageMagick-6.5.8.10_1 Image processing tools ORBit2-2.14.17 High-performance CORBA ORB with support for the C language OpenEXR-1.6.1_2 A high dynamic-range (HDR) image file format OpenSP-1.5.2_1 This package is a collection of SGML/XML tools called OpenS Terminal-0.4.3_1Terminal emulator for the X windowing system Thunar-1.0.1_3 XFce 4 file manager a2ps-a4-4.13b_4 Formats an ascii file for printing on a postscript printer aalib-1.4.r5_4 An ascii art library adobe-cmaps-20051217_1 Adobe CMap collection amspsfnt-1.0_5 AMSFonts PostScript Fonts (Adobe Type 1 format) apache-ant-1.7.1Java- and XML-based build tool, conceptually similar to mak appres-1.0.1Program to list application's resources apr-ipv6-gdbm-db43-1.3.9.1.3.9_1 Apache Portability Library asciidoc-8.5.2 A text document format for writing short documents and man aspell-0.60.6_2 Spelling checker with better
Re: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
On Mon, 08 Feb 2010 08:44:53 +0100 Leslie Jensen les...@eskk.nu wrote: 2010-02-07 15:37, Ion-Mihai Tetcu skrev: On Sun, 07 Feb 2010 13:36:55 +0100 Leslie Jensenles...@eskk.nu wrote: [ .. ] For the moment the workaround, when you get to this, is to: mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old \ cd /usr/ports/x11-toolkits/qt33/ make \ mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so \ portmaster -C x11-toolkits/qt33 I did this yesterday while under KDE3 without problems. You'll run into the same kind of problem with kdelibs3: Making all in dnssd gmake[2]: Entering directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg ./settings.kcfgc; ret=$?; \ if test $ret != 0; then rm -f settings.h ; exit $ret ; fi /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by libkdefx.so.6 gmake[2]: *** [settings.h] Error 1 gmake[2]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/x11/kdelibs3. The same workaround works. And yes, this means the kde ports are in wrong. I've tried this and I couldn't make it work! I then decided to remove the ports arts, kdelibs3, qt33 and k3b with pkg_deinstall, because these are the only ones installed that are affected of the above problem. I also did make clean for these ports. Even so, when I start installing qt33 again the same problem comes up. Do you have any suggestions on how I should do to make it work? Please send the make output with the failure, and pkg_info -Ia. When I run the command I get this pkg_info -Ia pkg_info_100208.txt pkg_info: corrupted record (pkgdep line without argument), ignoring pkg_info: corrupted record (pkgdep line without argument), ignoring pkg_info: corrupted record (pkgdep line without argument), ignoring Probably because the ports deinstalled are dependencies of openoffice! When running portmaster --check-depends it complains about x11-toolkits/qt33 audio/arts x11/kdelibs3 Yes, since you force deinstalled them, while ports that actually need them are still there. Please see attached file! Make output: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libmng.so, not found (try using -rpath or -rpath-link) portmaster graphics/libmng portmaster x11/kdelibs3 portmaster --check-depends portmaster -a -- IOnut - Un^d^dregistered ;) FreeBSD user Intellectual Property is nowhere near as valuable as Intellect FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B signature.asc Description: PGP signature
Re: portupgrade, batch mode?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/02/2010 21:38, Randal L. Schwartz wrote: I wish I could remember. Just that something comes up every once in a while and I curse that the upgrade has stopped. :) net/p5-Net is one I always keep coming across that asks annoying questions. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktvw3AACgkQ8Mjk52CukIxSHgCdGgNb0qLSwc1UGOW2pm10XRhN bF8An0cAff8a0uJCpg9ZXAvUXTYnV1bS =QCf9 -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