Re: /var/log/maillog
On Mon, 27 Sep 2010 13:54:12 +0900, Byung-Hee HWANG b...@izb.knu.ac.kr wrote: Gary, just use smart host to google. That's powerful! Yes, trust all your personal data, your freedom and your thoughts to Big Brother, erm, big google. Oops, I didn't say anything, and Thinkpol will take care of me soon. :-) Seriously now. If you want your mails to be signed by an accepted IP, the suggestion of defining a smart host is not bad. Check if your ISP does provide a mail relay accessible from within your subnet. Then use this MX in your sendmail configuration so that every outgoing mail is just forwarded to that MX and sent from it. At least, that's how I currently keep things (I'm lazy). Simply code something like define(`SMART_HOST', `mx.foo.bar') into your sendmail mc file. -- 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
ipfw+torrent
Hi, before I begin write my problem, sorry for my english(if anyone speak russian it would be good). So, here is I want to install on my gw/router FreeBSD 8.1 release in the next week. And in my home net I have torrent clients, how can I do speed limiting for only torrent connections. I'll use ipfw firewall and nat. Best reagrds, Abzal ___ 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: Free BSD 8.1
Matthew Seaman m.sea...@infracaninophile.co.uk wrote: On 26/09/2010 13:30:19, Michel Talon wrote: Matthew Seaman said Be aware that installing the ports tree from the DVD images is not the ideal way to do it ... it is better to ... grab an up-to-date copy of the ports directly from the net. I disagree with that ... Another option is to install the ports tree from the DVD,and install corresponding precompiled packages ... and *not* updating the ports tree ... I suspect the best results can be had from an approach in between these; details below. ... being up-to-date with the ports tree generally *does* give you better results than not. Ports are a moving target, dependent entirely on upstream changes. This last is an oversimplification. Not all ports even _have_ an upstream, and those that do (granted, the great majority) depend not only on upstream changes but also on the maintainer's and committers' ability to keep up with those changes. Expecting that a snapshot taken months or weeks ago will work just as well as one updated in the last hour is plain daft ... ported software generally does improve over time. Updates that fix problems are way more common that updates that introduce them ... Couldn't this as well be said of FreeBSD itself? If it were universally accepted, there would be no need for the stable or security branches and the considerable effort that goes into maintaining them: everyone would just run -CURRENT. One _huge_ advantage of starting with a release _and its corresponding set of ports packages_ is that everything is self-consistent. This tends not to be true of snapshots taken between releases, if only because no one has time to do that much release engineering for every update of every port. I tried to follow the OP's approach a few years ago, and got burned rather badly. By the time I had the system working well enough to start on the project I had intended to work on, the time budgeted for the setup _and_ the work had been almost entirely consumed in setup! I get the impression that M. Talon may have had similar experiences. I've recently started on a new system, and am planning to install 8.1-RELEASE, including the corresponding ports tree; then install what ports I can from packages and also fetch the corresponding distfiles; and finally build -- from release-corresponding ports -- any that aren't available as packages or where I want non-default OPTION settings. That approach should avoid most nasty surprises while getting things set up and working. _After_ everything is installed and configured properly will be plenty soon enough to consider whether any ports need to be updated -- and the already- installed-and-working package collection will provide a fallback in case of trouble trying to build any updated versions. ___ 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: sudo anomaly
Steven Friedrich free...@insightbb.com wrote: ... tried sudo mail. I got root's mailbox nd I deleted all but two emails. When I q(uit) mail, it said it saved 2 messages in mbox. But when I try to go back in it says I don't have any mail. There is no root directory in /var/mail. Did sudo lose my mbox? mbox != the (input) system mailbox. Chances are, those 2 messages are in /root/mbox ___ 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
Page Fault While in Kernel Mode (IPNAT)
Hi, I have a firewall for NAT operations only. While doing NAT, server crashes. Below you can find the required info about my problem. Thanks. Some useful info about my NAT server: FreeBSD xxx.cc.boun.edu.tr 7.3-RELEASE FreeBSD 7.3-RELEASE #2: Fri Sep 17 15:09:54 EEST 2010 x...@xxx.cc.boun.edu.tr:/usr/obj/usr/src/sys/FW i386 bge0: HP NC7782 Gigabit Server Adapter, ASIC rev. 0x002100 mem 0xfdef-0xfdef irq 25 at device 1.0 on pci3 bge1: HP NC7782 Gigabit Server Adapter, ASIC rev. 0x002100 mem 0xfdee-0xfdee irq 26 at device 1.1 on pci3 net.inet.ipf.ipf_natrules_sz: 127 net.inet.ipf.ipf_nattable_sz: 30 513/897/1410 mbufs in use (current/cache/total) 512/540/1052/0 mbuf clusters in use (current/cache/total/max) 512/512 mbuf+clusters out of packet secondary zone in use (current/cache) 0/5/5/12800 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/6400 9k jumbo clusters in use (current/cache/total/max) 0/0/0/3200 16k jumbo clusters in use (current/cache/total/max) 1152K/1324K/2476K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/5/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines mappedin183625863out126618997 added2265807expired1350387 no memory8899bad nat12314 inuse13690 orphans0 rules49 wilds0 hash efficiency97.64% bucket usage4.46% minimal length0 maximal length3 average length1.024 TCP Entries per state 0 1 2 3 4 5 6 7 8 91011 42 223651 417 3311 348 2002320 0 3763 729 Debug info: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address= 0x4 fault code= supervisor read, page not present instruction pointer= 0x20:0x8593c94b stack pointer= 0x28:0x853488dc frame pointer= 0x28:0x85348958 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process= 25 (irq26: bge1) trap number= 12 panic: page fault cpuid = 0 Uptime: 2d0h6m24s Physical memory: 2035 MB Dumping 335 MB: 320 304 288 272 256 240 224 208 192 176 160 144 128 112 96 80 64 48 32 16 Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/ipl.ko...Reading symbols from /boot/kernel/ipl.ko.symbols...done. done. Loaded symbols for /boot/kernel/ipl.ko #0 doadump () at pcpu.h:196 196__asm __volatile(movl %%fs:0,%0 : =r (td)); ### #0 doadump () at pcpu.h:196 #1 0x80746017 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0x807462e9 in panic (fmt=Variable fmt is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0x8097483c in trap_fatal (frame=0x8534889c, eva=4) at /usr/src/sys/i386/i386/trap.c:950 #4 0x80974aa0 in trap_pfault (frame=0x8534889c, usermode=0, eva=4) at /usr/src/sys/i386/i386/trap.c:863 #5 0x80975459 in trap (frame=0x8534889c) at /usr/src/sys/i386/i386/trap.c:541 #6 0x8095915b in calltrap () at /usr/src/sys/i386/i386/exception.s:166 #7 0x8593c94b in nat_new (fin=0x853489c0, np=0x855ee800, natsave=0x0, flags=Variable flags is not available. ) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:2577 #8 0x8593cf04 in fr_checknatout (fin=0x853489c0, passp=0x85348a6c) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:3828 #9 0x85959c6c in fr_check (ip=0x873c0810, hlen=20, ifp=0x855b7400, out=1, mp=0x85348ab8) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/fil.c:2624 #10 0x859517be in fr_check_wrapper (arg=0x0, mp=0x85348ab8, ifp=0x855b7400, dir=2) at /usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_fil_freebsd.c:178 #11 0x807f5708 in pfil_run_hooks (ph=0x80b026e0, mp=0x85348b44, ifp=0x855b7400, dir=2, inp=0x0) at /usr/src/sys/net/pfil.c:78 #12 0x8080ea72 in ip_output (m=0x85b2a800, opt=0x0, ro=0x85348b7c, flags=1, imo=0x0, inp=0x0) at /usr/src/sys/netinet/ip_output.c:443 #13 0x8080bb04 in ip_forward
freebsd-update 8.1 to 8.1-p1
Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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: Free BSD 8.1
On Monday 27 September 2010, per...@pluto.rain.com wrote: I've recently started on a new system, and am planning to install 8.1-RELEASE, including the corresponding ports tree; then install what ports I can from packages and also fetch the corresponding distfiles; and finally build -- from release-corresponding ports -- any that aren't available as packages or where I want non-default OPTION settings. That approach should avoid most nasty surprises while getting things set up and working. _After_ everything is installed and configured properly will be plenty soon enough to consider whether any ports need to be updated -- and the already- installed-and-working package collection will provide a fallback in case of trouble trying to build any updated versions. The problem is if/when you need to update a port as a result of a security advisory. If your ports tree is very much out of date then it's likely that updating that one port will require a number of dependencies to be updated as well, sometimes all the ports depending on one or more of the updated dependencies need to be updated as well and the resultant bag of worms can take quite a lot of sorting out. The little and often approach of keeping the ports tree up to date could be less traumatic. -- 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: port upgrading
On Sunday 26 September 2010, Roland Smith wrote: If you are upgrading to another major version of FreeBSD (say 7.x to 8.x), make a list of all used ports with `portmaster -l ports.list`. Then delete all ports before updating the system. After the update, re-install the 'root' and 'leaf' ports from ports.list. A more convenient approach is to run 'portmaster --list-origins' which produces a list of root and leaf ports which you can feed back into portmaster when reinstalling the ports, all the other dependencies should sort themselves out. There is a good description of this in the final example near the bottom of the portmaster man page. -- 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
Questions ?
To FreeBSD Admin. Hi, My name is Mr.Kosin Kaewnuna. I am a graduate student in Bangkok Thailand. I'm doing research on the technologies virtualization, OS-Level virtualization, Para-virtualization I have the following questions about FreeBSD. 1. FreeBSD can be edit host Kernel ? 2. FreeBSD can be installed on Xen Para-virtualization ? How to .. Thank you. For Anser. ___ 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: apropos returning same item twice
On Sunday 26 September 2010, Steven Friedrich wrote: Another check is that the output of manpath(1) doesn't include /usr/X11R6/man. manpath /usr/share/man:/usr/local/man:/usr/local/kde4/man:/usr/share/open ssl/man: /usr/local/lib/perl5/5.12.2/man:/usr/local/lib/perl5/5.12.2/perl/ man Ok. There's also: %man -a -w mysql to see the origins of the multiple man pages, although it seems that you may have already confirmed the /usr/X11R6 path connection. From what you've presented so far I'd say it's looking like a problem man -a -w mysql /usr/local/man/man1/mysql.1.gz /usr/X11R6/man/man1/mysql.1.gz Same here - until I realised that I still had /usr/X11R6/bin in $PATH, left over from the days before /usr/X11R6 was a link to /usr/local. Removing /usr/X11R6/bin from $PATH fixed it for me. According to the man page for manpath it tries to determine the user's manpath from a set of system defaults and the user's PATH. -- 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
OT. Duplicating Disk.
Hello all. This is kind off topic. U have and old laptopn, an Acer Travelmate 4670. It has a sata disk, 120Gb. It has been working fine in all these years. I have installed Freebsd with its boot manager and inside has Windows and a distro linux. I choose what OS to use depending on my needs every time I boot. I have decided to give it fresh air and I bought a disk of 500GB. Instead of installing everything again I would like to duplicate entire disk, as is, with its MBR and all partitions for all the different OS's. I bought an USB enclosure that is working fine. The machine recognice the new disk if I attach it as a USB disk (in all OS no problem on that). As a test also I decided to change disks and install somethig, no problem at all. My question is. What would be your advice on what tool to use to duplicate entire disk? (the adjust of size for the partitions of each different OS can be done later, no problem I guess). I was recommend to use DiskImageXML, booting alone and copy the disk but it does not work. Not yet. I guess the problem is that the original disk still has a 4Gb partition with all the Acer tools , the first partition, to recover teh Windows XP origibal system (type or partition EISA). Not sure on that but that program is not working. I receive an error when booting. On my desktop I used to use old Norton Ghost 2003 with my IDE disk and still work fine, but here does not work at all since the USB ports are not recognized. Do you know of a program tool that can be used that boot alone, free if possible or cheap, that let me copy entire disk, as is, that do the job? I am sorry for the kind of off topic and thanks in advance Jorge Biquez ___ 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: pf
On 26 September 2010 21:45, jhell jh...@dataix.net wrote: This is more for questions@ or pf@ On 09/26/2010 11:43, Samuel Martín Moro wrote: On Sun, Sep 26, 2010 at 3:34 PM, Michael Powell nightre...@hotmail.com wrote: Samuel Martín Moro wrote: Hello, I'm trying to set up pf on my soon-to-be new gateway (8.1-RELEASE amd64). I used the sample configuration file available on calomelhttps://calomel.org/pf_config.html After a few tests, it appears that the gate has fully access to the internet, but I can't open connections from clients to distant servers (web, ssh, ...). Checking pflog log file, I can't see anything about those timeouts, even if I added the log directive in every block/pass command. Everything else seems to work, I can talk with my DNS from the internet, ssh redirections to another pc also seems to works. I just can't access the Internet from a client of my network... For debugging, I commented out the options and the 'block all in/out' directives. Here's my config file http://pastebin.com/Nim2zBCx Is there someone understanding what I'm doing wrong? The firewall ruleset is a trifle overly complex for a quick glance; study and analysis would take some doing. However, if you can reach the internet from the firewall box and other client computers behind your NAT can't (which is what it sounds like you're describing) it may be just that you are missing gateway_enable=YES in your /etc/rc.conf. Turning this ON makes your firewall box into a router. The status of this can be checked with: sysctl net.inet.ip.forwarding - a 0 means no gateway and a 1 means gateway. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org the gateway is already enabled (and forwarding is correctly set) whatever, I had to do quick, I started again I think the missing thing on my old conf was the 'scrub' (at least) I made a more simple configuration, as following: ext_if=bge0 int_if=bge1 localnet = $int_if:network emma=10.242.42.200 alpha=10.42.42.42 delta=10.42.42.44 set skip on lo0 scrub in on $ext_if all fragment reassemble #INTERNETZ nat on $ext_if from $localnet to any - ($ext_if) #EMMA rdr on $ext_if inet proto tcp from any to ($ext_if) port 1101 - $emma port 22 rdr on $ext_if inet proto tcp from any to ($ext_if) port 307 - $emma port 80 #WHAT.CD rdr on $ext_if inet proto tcp from any to ($ext_if) port 1666 - $alpha port 1666 #REMOTE ADM rdr on $ext_if inet proto tcp from any to ($ext_if) port 1667 - $delta port 22 rdr on $ext_if inet proto tcp from any to ($ext_if) port 1668 - $alpha port 22 pass in log on $ext_if inet proto tcp from any to $ext_if port 22 pass in log on $ext_if inet proto tcp from any to $ext_if port 53 pass in log on $ext_if inet proto udp from any to $ext_if port 53 pass in log on $ext_if inet proto tcp from any to $ext_if port 1664 pass in log on $int_if inet proto tcp from any to any pass in log on $int_if inet proto udp from any to any block in log on $ext_if inet proto icmp from any to $ext_if it's basically working i'll stuff it when I'll have time. Samuel Martín Moro {EPITECH.} tek5 -- jhell,v ___ 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 its worth doing as restart on pf rather than a reload. Ive seen nat rules not take affect sometimes on reloads ___ 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: OT. Duplicating Disk.
On 2010-09-28 13:00, Jorge Biquez wrote: Hello all. This is kind off topic. U have and old laptopn, an Acer Travelmate 4670. It has a sata disk, 120Gb. It has been working fine in all these years. I have installed Freebsd with its boot manager and inside has Windows and a distro linux. I choose what OS to use depending on my needs every time I boot. I have decided to give it fresh air and I bought a disk of 500GB. Instead of installing everything again I would like to duplicate entire disk, as is, with its MBR and all partitions for all the different OS's. I bought an USB enclosure that is working fine. The machine recognice the new disk if I attach it as a USB disk (in all OS no problem on that). As a test also I decided to change disks and install somethig, no problem at all. My question is. What would be your advice on what tool to use to duplicate entire disk? (the adjust of size for the partitions of each different OS can be done later, no problem I guess). I was recommend to use DiskImageXML, booting alone and copy the disk but it does not work. Not yet. I guess the problem is that the original disk still has a 4Gb partition with all the Acer tools , the first partition, to recover teh Windows XP origibal system (type or partition EISA). Not sure on that but that program is not working. I receive an error when booting. On my desktop I used to use old Norton Ghost 2003 with my IDE disk and still work fine, but here does not work at all since the USB ports are not recognized. Do you know of a program tool that can be used that boot alone, free if possible or cheap, that let me copy entire disk, as is, that do the job? I am sorry for the kind of off topic and thanks in advance Jorge Biquez I've done what you want to do. Using the PartedMagic CD. http://partedmagic.com/ On the cd is the program Ghost4Linux. It can image disks with UFS partitions as well as long as you don't need to resize them. /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: freebsd-update 8.1 to 8.1-p1
Try rebuild your kernel and get 8.1-RELEASE-p1! I did it! On Mon, Sep 27, 2010 at 3:29 PM, c0re nr1c...@gmail.com wrote: Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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 -- Mr.Hien E-mail: phanquoch...@gmail.com Website: www.mrhien.info ___ 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-update 8.1 to 8.1-p1
But freebsd-update should do it. Rebuilding kernel will prevent from further freebsd-update patches to rebuilded GENERIC. 2010/9/27 Phan Quoc Hien phanquoch...@gmail.com: Try rebuild your kernel and get 8.1-RELEASE-p1! I did it! On Mon, Sep 27, 2010 at 3:29 PM, c0re nr1c...@gmail.com wrote: Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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 -- Mr.Hien E-mail: phanquoch...@gmail.com Website: www.mrhien.info ___ 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-update 8.1 to 8.1-p1
On Mon, Sep 27, 2010 at 09:01:38PM +0700, Phan Quoc Hien thus spake: Try rebuild your kernel and get 8.1-RELEASE-p1! I did it! On Mon, Sep 27, 2010 at 3:29 PM, c0re nr1c...@gmail.com wrote: Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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 kernel wasn't touched during the latest set of security releases, so an update to 8.1-p1 will show your kernel at 8.1. If you perform another freebsd-update, it should show no updates for 8.1-p1. Based on what you are saying, uname is reporting correctly. Other than 'sys/conf/newvers.sh,' if the update touches sys, it should redistribute the kernel and the patch number in the announcement. After it is properly applied, 'uname' should match. I don't recall the reasoning behind newvers.sh in the update software, but others may have an idea. -jgh ___ 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-update 8.1 to 8.1-p1
Is not p1 compiled in kernel during make buildkernel operation? If yes, /boot/kernel of 8.1 and /boot/kernel 8.1-p1 must be different. So binary diff of /boot/kernel also must be installed during freebsd-update. It's my opinion. Why not? I think it's not reasonable to have updated system without actually be possible to know that it's really updated. And I think that if you are looking for real patch level of your OS, you will look at uname -a, not in newvers.sh file. Correct me if i'm wrong. 2010/9/27 Jason jhelf...@e-e.com: On Mon, Sep 27, 2010 at 09:01:38PM +0700, Phan Quoc Hien thus spake: Try rebuild your kernel and get 8.1-RELEASE-p1! I did it! On Mon, Sep 27, 2010 at 3:29 PM, c0re nr1c...@gmail.com wrote: Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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 kernel wasn't touched during the latest set of security releases, so an update to 8.1-p1 will show your kernel at 8.1. If you perform another freebsd-update, it should show no updates for 8.1-p1. Based on what you are saying, uname is reporting correctly. Other than 'sys/conf/newvers.sh,' if the update touches sys, it should redistribute the kernel and the patch number in the announcement. After it is properly applied, 'uname' should match. I don't recall the reasoning behind newvers.sh in the update software, but others may have an idea. -jgh ___ 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: Free BSD 8.1
Quoth Mike Clarke on Monday, 27 September 2010: On Monday 27 September 2010, per...@pluto.rain.com wrote: I've recently started on a new system, and am planning to install 8.1-RELEASE, including the corresponding ports tree; then install what ports I can from packages and also fetch the corresponding distfiles; and finally build -- from release-corresponding ports -- any that aren't available as packages or where I want non-default OPTION settings. That approach should avoid most nasty surprises while getting things set up and working. _After_ everything is installed and configured properly will be plenty soon enough to consider whether any ports need to be updated -- and the already- installed-and-working package collection will provide a fallback in case of trouble trying to build any updated versions. The problem is if/when you need to update a port as a result of a security advisory. If your ports tree is very much out of date then it's likely that updating that one port will require a number of dependencies to be updated as well, sometimes all the ports depending on one or more of the updated dependencies need to be updated as well and the resultant bag of worms can take quite a lot of sorting out. The little and often approach of keeping the ports tree up to date could be less traumatic. -- Mike Clarke That's the maxim under which I operate. Furthermore, if something does break, it's a lot easier to narrow down what broke it if you updated one or two ports instead of twenty or thirty. I use the same principle in following STABLE -- frequently update/build so if anything goes wrong, the number of culpable commits is small. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpYFGtRRPCCb.pgp Description: PGP signature
Re: OT. Duplicating Disk.
On Tue, 28 Sep 2010, Jorge Biquez wrote: U have and old laptopn, an Acer Travelmate 4670. It has a sata disk, 120Gb. It has been working fine in all these years. I have installed Freebsd with its boot manager and inside has Windows and a distro linux. I choose what OS to use depending on my needs every time I boot. ... My question is. What would be your advice on what tool to use to duplicate entire disk? (the adjust of size for the partitions of each different OS can be done later, no problem I guess). Resizing partitions can be difficult. FreeBSD's ufs has growfs(8), but otherwise resizing is usually done by dumping, resizing, and restoring. Since you have Linux familiarity, I'd suggest http://www.clonezilla.org. It will make a backup of an entire disk, including binary copies of filesystems it doesn't understand, to 2G compressed files. It can also copy device to device. Later versions even recognize and understand UFS filesystems. FreeBSD can also duplicate a disk byte-for-byte with dd(1). Be warned: it will take a while, copying blank space as well as used. Important: make a backup of the original drive somewhere else first (see above). When using dd for this, it's critical that the source and destination devices are correct. To copy ad0 to da0 (make sure the source and destination devices are correct): # dd if=/dev/ad0 of=/dev/da0 bs=1m The same thing can be done with Linux (Clonezilla provides a shell), although the bs parameter has to be 1M (case sensitive). ___ 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-update 8.1 to 8.1-p1
Is not p1 compiled in kernel during make buildkernel operation? I'm sure it is, but freebsd-update is a binary distribution system, and doesn't build anything on the client. If yes, /boot/kernel of 8.1 and /boot/kernel 8.1-p1 must be different. So binary diff of /boot/kernel also must be installed during freebsd-update. It's my opinion. Why not? I think it's not reasonable to have updated system without actually be possible to know that it's really updated. And I think that if you are looking for real patch level of your OS, you will look at uname -a, not in newvers.sh file. Correct me if i'm wrong. I believe part of this issue is that if the kernel isn't distributed with a patch, then it needs to be represented somehow. I've heard of some thoughts focusing on reflecting the patch as a sysctl value. 2010/9/27 Jason jhelf...@e-e.com: On Mon, Sep 27, 2010 at 09:01:38PM +0700, Phan Quoc Hien thus spake: Try rebuild your kernel and get 8.1-RELEASE-p1! I did it! On Mon, Sep 27, 2010 at 3:29 PM, c0re nr1c...@gmail.com wrote: Hello freebsd-questions! I've installed freebsd 8.1 and made freebsd-update fetch freebsd-update install reboot And in uname -a I still see 8.1-RELEASE, but I want to see 8.1-RELEASE-p1. In /usr/src/sys/conf/newvers.sh I see that it is 8.1-p1 REVISION=8.1 BRANCH=RELEASE-p1 Why is it so? I want to know that my system is up to date with freebsd-update, but uname -a does not show this to me. ___ 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 kernel wasn't touched during the latest set of security releases, so an update to 8.1-p1 will show your kernel at 8.1. If you perform another freebsd-update, it should show no updates for 8.1-p1. Based on what you are saying, uname is reporting correctly. Other than 'sys/conf/newvers.sh,' if the update touches sys, it should redistribute the kernel and the patch number in the announcement. After it is properly applied, 'uname' should match. I don't recall the reasoning behind newvers.sh in the update software, but others may have an idea. -jgh ___ 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: Questions ?
2010/9/27 kosin kaewnuna kosi...@hotmail.com: To FreeBSD Admin. Hi, My name is Mr.Kosin Kaewnuna. I am a graduate student in Bangkok Thailand. I'm doing research on the technologies virtualization, OS-Level virtualization, Para-virtualization I have the following questions about FreeBSD. 1. FreeBSD can be edit host Kernel ? 2. FreeBSD can be installed on Xen Para-virtualization ? How to .. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization.html Thank you. For Anser. ___ 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: rhythmbox issue
On Sun, Sep 26, 2010 at 06:26:43PM +0200, Istvan Galgand wrote: Dear All, I've just realized that I can't start Rhythmbox from my Gnome desktop. I've tried to launch it from menu, from terminal, nothing happens, no error messages appear at all. When I used Rhythmbox last time, lets's say, one or two weeks ago, everything was OK. Today's FreeBSD update solved the issue. Rhythmbox is operating again and doing a very nice job. Thanks, Istvan -- This mail was sent by Mutt-1.4.2.3_5, FreeBSD 8.1-RELEASE-#0, GENERIC i386 ___ 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
Prevent symbolic links in pure-ftp!
hi! How to prevent symbolic links in pure-ftp for security issuse? User can access outsite chroot by create symlink: ln -s / abc = and user can change dir to / Anyone can solve this problem? Thanks. -- Mr.Hien E-mail: phanquoch...@gmail.com Website: www.mrhien.info ___ 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: sudo anomaly
On Sunday 26 September 2010 11:21:50 pm you wrote: From free...@insightbb.com Sun Sep 26 18:14:09 2010 From: Steven Friedrich free...@insightbb.com To: Robert Bonomi bon...@mail.r-bonomi.com Subject: Re: sudo anomaly Date: Sun, 26 Sep 2010 19:16:00 -0400 On Sunday 26 September 2010 2:38:06 pm you wrote: From owner-freebsd-questi...@freebsd.org Sun Sep 26 11:46:43 2010 From: Steven Friedrich free...@insightbb.com To: freebsd-questions@freebsd.org Date: Sun, 26 Sep 2010 12:47:29 -0400 Subject: sudo anomaly I have a userID, admin, that I add to my systems to use when I perform system admin functions. I also use this ID when using X-windows, never starting X as root user. So I needed to check my mail for daily run outputs and so I tried to use su then mail, but I got admin's mail. So I exited su, and tried sudo mail. I got root's mailbox nd I deleted all but two emails. When I q(uit) mail, it said it saved 2 messages in mbox. But when I try to go back in it says I don't have any mail. There is no root directory in /var/mail. All that is correct. Did sudo lose my mbox? Nope. _you_ did. The good news is that you merely misplaced it -- it _is_ were it's always been, you're just looking in the wrong place for it.` 'mbox' != 'incoming mailbox' Can anyone verify this anomaly? no anomaly. simple *USER* error. Look in root's _HOME_DIRECTORY_. You'll find a file called 'mbox' =there=. That's where 'already read' mail is saved. When logged in as root, use 'mail -f mbox' to see your old mail. BTW, if you 'su root' and _then_ set evnrionment variable 'USER' to 'root', mail(1) _will_ fetch root's mail. Thanks. I used mail under unix eons ago, and I don't remember ever having to use a switch to get saved mail, but perhaps I've simply forgotten. I use KMail and Thunderbird (under Winblows), but I needed to check daily output scripts... did you use 'su root' or 'su - root'? the '-' makes a humongous difference. Thanks, I had forgotten about that... -- System Name: laptop2.StevenFriedrich.org Hardware: 2.80GHz Intel Pentium 4 (HTT) with 2 GB memory OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel) manager(s):kde4-4.5.1 X windows: xorg-7.5X.Org X Server 1.7.5 ___ 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: apropos returning same item twice
On Monday 27 September 2010 6:35:19 am Mike Clarke wrote: On Sunday 26 September 2010, Steven Friedrich wrote: Another check is that the output of manpath(1) doesn't include /usr/X11R6/man. manpath /usr/share/man:/usr/local/man:/usr/local/kde4/man:/usr/share/open ssl/man: /usr/local/lib/perl5/5.12.2/man:/usr/local/lib/perl5/5.12.2/perl/ man Ok. There's also: %man -a -w mysql to see the origins of the multiple man pages, although it seems that you may have already confirmed the /usr/X11R6 path connection. From what you've presented so far I'd say it's looking like a problem man -a -w mysql /usr/local/man/man1/mysql.1.gz /usr/X11R6/man/man1/mysql.1.gz Same here - until I realised that I still had /usr/X11R6/bin in $PATH, left over from the days before /usr/X11R6 was a link to /usr/local. Removing /usr/X11R6/bin from $PATH fixed it for me. According to the man page for manpath it tries to determine the user's manpath from a set of system defaults and the user's PATH. Thanks, dude. That was my problem. -- System Name: laptop2.StevenFriedrich.org Hardware: 2.80GHz Intel Pentium 4 (HTT) with 2 GB memory OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel) manager(s):kde4-4.5.1 X windows: xorg-7.5X.Org X Server 1.7.5 ___ 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: Multiple Machines
On Fri, Sep 24, 2010 at 03:04:45PM -0800, David Allen wrote: Multiple Machines This is sort of a best practices kind of question so all comments are welcome. I'm wondering what folks are doing when setting up multiple (more than 1, but less than 10) machines. Consider, for example, some ordinary files such as the following: /root/.cshrc /root/.bashrc # toor account /root/.bash_profile # toor account /home/username/.bashrc /home/username/.bash_profile /etc/make.conf /etc/src.conf /etc/fstab # nfs mount entries /etc/resolv.conf /etc/ntp.conf Some files are identical, some require different permissions, and some (like fstab) consist of customizations that need to be added. Short of enabling root ssh logins or writing makefiles, what would be the best approach to handing the above? Every configuration file that I want to change, I copy first to ~/setup/hostname/, each of which is a git repository. (Of course you can use any revision control system you like.) For managing files, I use list files combined with a couple of perl-scripts, called check.pl and install.pl. The list file details where each file is to be copied to and what permissions it should have. The check scripts checks for differences between the files in the repository and the installed files. The install.pl does the obvious. :-) You can find this elaborated on one of my webpages: http://www.xs4all.nl/~rsmith/unix/configfiles.html I tend to use rsync to copy these setup directories from my workstation to other machines (which also backs them up!). Then I log in by ssh to run the check and install scripts. It should be possible to extend the check and install scripts to work over ssh directly. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp7JgCz80S5P.pgp Description: PGP signature
Re: Prevent symbolic links in pure-ftp!
On 9/27/2010 12:00 PM, Phan Quoc Hien wrote: hi! How to prevent symbolic links in pure-ftp for security issuse? User can access outsite chroot by create symlink: ln -s / abc = and user can change dir to / Anyone can solve this problem? Thanks. man 8 jail Jails limit file system access, device access, and kernel access. ___ 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: Prevent symbolic links in pure-ftp!
On 27-9-2010 21:07, Joshua Isom wrote: On 9/27/2010 12:00 PM, Phan Quoc Hien wrote: hi! How to prevent symbolic links in pure-ftp for security issuse? User can access outsite chroot by create symlink: ln -s / abc = and user can change dir to / Anyone can solve this problem? Have you read the manual for pure-ftpd? Symbolic link following can be turned off completely if you so wish, but I do not want to do your homework. Sorry. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [SOLVED] Trouble enabling GD in php/apache
Andy Wodfer wrote: On Fri, Sep 24, 2010 at 1:52 PM, Andy Wodfer wod...@gmail.com wrote: I'm running FreeBSD 8.0 RELEASE. I can't get GD enabled. I have installed latestes php5 from ports aswell as php5-extensions and enabled GD on the option screen: [snip] I solved my problem by manually deleting /usr/local/lib/php/20090626/gd.so and reinstalling the php5-extensions. For me it was reordering the loading order in php.ini. Initially I had tried placing it at the bottom, as well as moving xcache.so to the end. When I moved pdf.so to _after_ gd it magically began working: extension=gd.so extension=pdf.so extension=xcache.so -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD on Compaq mini CQ10 anyone?
Le 27/09/2010 05:06, Edward a écrit : I just got one and was wondering if anyone was running FreeBSD on it and how well does it work out of the box. All comments are welcome. Try PCBSD (http://pcbsd.org), is a Desktop BSD variant based on FreeBSD. Personally, I've used FreeBSD in a laptop in a few occasions but after trying out PCBSD, this path requires the least effort to setup a Desktop. The installation setting up of hardware is too easy. The kernel that comes with it, does a good job in recognizing the wireless chip, sound card, NIC, display other stuff. Even though it uses the PBI format to install software on PCBSD, one can still use port to install additional softwares on it by using the portjail console. Both PBI port works together well. In short, it definitely worth a try! :) I have tried to install PC-BSD without success. In the process, the screen turned black and i had to turn the CQ10 off. I don't know whether there is an issue with PC-BSD or if I did something wrong. Bernard Lecuire ___ 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 on Compaq mini CQ10 anyone?
On 28/09/10 5:31, BernardL wrote: I have tried to install PC-BSD without success. In the process, the screen turned black and i had to turn the CQ10 off. I don't know whether there is an issue with PC-BSD or if I did something wrong. There's an option for display wizard to change display settings but I've never had a chance to use it because the machines I use (2 laptop with intel chipset 1 desktop with nvidia chipset) have no problem detecting the display settings. :) ___ 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-curr...@freebsd.org, freebsd-sta...@freebsd.org
Hi all, how about 'porting' the Open{Solaris,Indiana} feature called _Time Slider_ in Nautilus to the FreeBSD's Nautilus? I know that there aren't any patches attached to my mail, but it may be not that much work to have another great feature in FreeBSD. Regards, vermaden -- Gra dla duzych chlopcow. http://linkint.pl/f2717 ___ 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