Re: dangerously dedicated physical disks.
On Mon, Sep 23, 2013 at 6:25 AM, Polytropon free...@edvax.de wrote: With GPT, there is no reason to use BSD disklabels at all. And most modern computers do not have any problem booting it. The old MBR approach (as well as dedicated) will probably only be needed in niche applications and exceptions. You can have all the advantages of being easy stuff known from dedicated layout by using the GPT tools, plus you gain more compatibility if this matters. Not entirely. Due to GEOM specs, if you create a GELI encrypted container, you cannot use GPT partitioning inside that container. You must use BSD. This is an edge case, and I've submitted a bug about it a while ago, but like I just said, this is apparently a feature not a bug. ___ 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-Announce] vBSDcon Registrations Only Open For 30 More Days!
Any contribution from a company like Verisign needs to be carefully scrutinized. I also don't think it wise to allow them to take a leadership role of any type. On Mon, Sep 23, 2013 at 4:29 PM, Michael Powell nightre...@hotmail.com wrote: Brett Glass wrote: All: It's good to see corporate support of BSD, but at the same time I have mixed feelings about certain corporations -- Verisign among them -- hosting BSD-related conferences or becoming involved in the development of BSD-based operating systems. Why? Because Verisign, based in Reston, Virginia (the city next door to Vienna, VA, home of the NSA), has strong ties to this shadowy agency. No. I used to work right down the street from Network Solutions (now known as Verisign) in Herndon. Indeed, I had job offerings from them but felt I was better off to stay where I was. The NSA is headquartered at Ft Meade, near Columbia in Maryland. I worked there for 8 years? The CIA headquarters is in Mclean, Virgina, which is right next door to Vienna. Reston/Herndon is a few miles down the Dulles Toll Rd to the west. I've been to all these places, so this is not some MapQuest google for me. The NSA, in turn -- as reported in documents recently leaked by Edward Snowden -- has a very strong interest in weakening the security of cryptographic algorithms, cryptographic software, and operating systems. We may want to look this gift horse very carefully in the mouth, or at least monitor very closely contributions of code that might introduce backdoors or weaknesses. On some level I agree with this - to a point. Examine how the NSA maneuvered the NIST to approve and mandate the FIPS-140 protocols, where deeply concealed was a known weak prng. To some of us this is not news - we've known it for a long time. Arguments of pro vs con, good vs evil, ad infinitum ad nauseum, etc, are better served in a different venue. It is so much easier to get away with concealing such things inside the closed-source paradigm. What I like and admire with open source is the code is out there in public for all to examine. These truly arcane crypto stuffs operate at such a high level of mathematical complexity that even very highly skilled cryptographer/mathematicians argue amongst themselves. I am just not that smart, or that highly educated. There are some in the open source community who do have very large propellers on their beanie caps. I defer to them simply because they are smarter then me. I would trust them long before I would trust closed source. I agree about the 'looking the gift horse in the mouth' concept. Bear in mind, however, some of the guys at NIST are pretty smart too. And yet this FIPS-140/prng stuff went right by them. My suggestion is for FreeBSD (indeed open source in general) to try and engage, include, and attract to the community the kinds of elite mathematician who may have the facilities to examine the code at a higher level than can dummies like me. Whenever The Citadel wants the public to fixate on any one particular brouhaha I know they are trying to get everyone looking in a particular direction whilst they are pulling something else. Verisign may very well have some other obfuscated agenda. Take a step backwards and try to obtain some view of the bigger picture (hint). Will not elaborate here, even though I do have some crackpot ideas. I find it highly ironic: http://en.wikipedia.org/wiki/Snowden_%28character%29#Snowden I got no end of amusement from this. Just my $ 0.02. -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 ___ 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
Sockstat Output
There are a few lines in the output of sockstat related to sshd and pflogd that all have ??: admin1 sshd 942 4 stream - ?? root sshd 939 5 stream - ?? _pflogd pflogd 552 5 stream - ?? root pflogd 548 4 stream - ?? Are these normal? Why the ?? ___ 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: Wildly different numbers of portsnap updates between i386 and amd64?
The update is a delta from what is already on your system. When you updated the older box, you pulled in lots of changes to get it current. The newer box needed fewer updates to get current. Or something is wrong. You can always delete the contents of /ports and the database in /var/db/portsnap. Then just portsnap fetch portsnap extract. You will get a fresh ports tree. On Sat, Sep 21, 2013 at 2:20 PM, Christian Campbell dc...@alumni.ufl.edu wrote: Hi. I run 9.1-RELEASE on two boxes: one i386 and the other amd64. I've run the latter for a bit over a week. When I portsnap update, the 32-bit machine typically gets several to dozens or hundreds of updates, while the 64-bit machine typically gets none, or maybe a couple. What might be the explanation for this behaviour? Thank you, Christian _ 3425 SW 2nd Ave, #239 cell (352) 514-7411 Gainesville, FL 32607-2813 dc...@alumni.ufl.eduhttps://mail.google.com/mail/?view=cmfs=1tf=1to=dc...@alumni.ufl.edu On this perfect day / Nothing's standing in my way...-Hoku ___ 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
Excessive bounces
Harald Weis writes: My membership to this list has been disabled due to excessive bounces. Could somebody please tell me how to stop these bounces in the future ? You are not the only one with this problem. I am subscribed, from the same address, to about half a dozen Freebsd lists; questions@ is the only one that insists I confirm my subscription (roughly once a month). Attempts to work with the Freebsd mailing-lists admins have been far from satisfactory 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: dig
There appears to be a problem with dig and the +trace option in 9.2. I believe its also in 9.1. The command: dig freebsd.org +trace Only yields a dumb response. No useful information is provided. Running the same command on FreeBSD 7.2 yields a complete trace with lots of useful information. Works for me on 9.0 and 9.1 (and 8.2, 7.1, 7.0) And on: FreeBSD 10.0-CURRENT #0 r248938: Sun Mar 31 06:24:42 EDT 2013 amd64 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
deleting managed content using svn
I have a system that uses svn to track src+ports+doc. For reasons I won't get into, I want to scrub all svn-managed material under src in preparation for grabbing a completely clean copy. Neither on-system documentation nor the deeper documentation listed therein show how to do this. Or at least not in a way my brain is currently processing. :-) Is there a better way than rm -rf? Respectfully, 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: deleting managed content using svn
Matthew Seaman writes: For reasons I won't get into, I want to scrub all svn-managed material under src in preparation for grabbing a completely clean copy. Is there a better way than rm -rf? Nope. rm -rf of the checked out filesystem is going to blow away everything you had and let you start again from scratch. The only things that could remain are entries under ~/.subversion (or /root/.subversion) which will contain such things as records of SSL keys to trust or login details if you needed a password for access. You probably don't need to worry about doing anything to those. Thanks. 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
.sh script code to determine IPv4 or IPv6
Fbsd8 writes: I have a .sh script that I need to determine if the entered IP address is IPv4 or IPv6. Is there some .sh command that does this? Not that I know of. But ... how hard can it be to figure out whether it uses '.' or ':'? 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: sed Guru wanted
From owner-freebsd-questi...@freebsd.org Fri Jul 12 05:13:11 2013 Date: Fri, 12 Jul 2013 11:04:04 +0200 From: Matthias Apitz g...@unixarea.de To: freebsd-questions@freebsd.org Subject: sed Guru wanted Hello, I can delete in a text file with sed '/pattern1/,/pattern2/d' file all lines between the lines with the given patterns, including themself also; how could I specify that the deletion should exclude the line with /pattern1/, i.e. the addr is something like /pattern1/+1 ? IF you use ed(1) style commands, then '/pattern1/+1,/pattern2/d' _is_ the answer. GRIN See: 'man 1 ed', specifically the LINE ADDRSSING section. That said, it is also trivial with a simple 'state machine' construct in awk(1): /pattern2/ { skipping = 0; next; } skipping{ next; } /pattern1/ { skipping = 1; next; } Note: omit the 'next;' from the 'pattern' line if you want that line to be INCLUDED in the output; Note: the order of the lines shown is important. Comment: one _can_ implement something similar to the above state machine in ed (making use of looping and conditional executin commands, and the 'hold' buffer to track state), but it gets (*very*) messy, difficult to maintain, and presents a 'decoding' problem for the =next= person who has to maintain it. _I_ find awk to be generally preferable (more easily maintainable) for any situation involving anything more than trivial line range specifications. ___ 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
Access guard
Jos Chrispijn writes: I am looking for a program that watches login attempts (mail and ssh login) and blocks the ip address after xx failed attempts. Currently I am using ipfw - might be great if that program works with ipw too... Don't know about mail, but security/denyhosts works for SSH. 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
will freebsd run on a mac osx 10.8.4
send reply to; rob777reed@gmail .com ___ 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: logging during loader
Polytropon writes: During the processing of loader.conf, something gets printed that suggests all is not right. However, this is a sufficiently modern machine it goes by too fast to read exactly what. It is my understanding that file gets read before the system logging facilities are operational, and possibly before things like ^S/^Q work on the terminal. Is there a way to store the results of that phase of boot-up? Being on the 1st virtual terminal in text mode (ttyv0) which also acts as the console device, press the Scroll Lock key and use the vertical arrow keys and page scrolling keys to get to the top of the log. This does not work for me. Specifically, pushing [Scroll Lock] causes the appropriate light to go on, but output continues to flow. 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
logging during loader
During the processing of loader.conf, something gets printed that suggests all is not right. However, this is a sufficiently modern machine it goes by too fast to read exactly what. It is my understanding that file gets read before the system logging facilities are operational, and possibly before things like ^S/^Q work on the terminal. Is there a way to store the results of that phase of boot-up? Respectfully, 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: logging during loader
Bernt Hansson writes: Try start freebsd with verbose logging then check dmesg. Doesn't that only apply to stuff generated by the hardware enumeration/drivar attach phase? 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: setting VGA output from laptop
Date: Fri, 21 Jun 2013 19:24:26 +0200 Subject: setting VGA output from laptop From: Xavier xavierfreebsdquesti...@gmail.com Hi, Is there any way to configure VGA width output from one laptop ? Authoritative answer: Maybe It's not clear =exactly= what you're asking. The standard FreeBSD video driver supports 80 and 90 column wide text displays, with the caveat that 90-colum mode may not be usable on some laptops. If you're dealing with a graphics display, minimal VGA is 640x480 pixels. virtually every even remotely moddern display supports 800x600 as well, many support 1024x768, and a fair number go to even higher resolutions. 'man vidcontrol' will tell you how to find out what is supported on _your_ machine. ___ 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
mouse configuration question
I have a ps/2 mouse attached to a HP mini-tower running FreeBSD 8.3, with a stripped-down kernel (no loadable modules). I've apparently removed something necessary for standard mouse functionality, but I have no clue as to -what- is missing. Gory details: 1) '/dev/psm0' exists and +is+ the mouse, 2) 'moused' detects the mouse: psm0 sysmouse Intellimouse 3) 'moused -d' properly reports mouse activity -- button press/release and mouse motion. 4) 'vidcontrol -m on' reports inappropriate ioctl for device. 5) *NO* '/dev/sysmouse' device present. I'm building an ncurses-based app, and want to add mouse functionality. The ncurses mouse-related functions return 'total failure' status (value 0). I suspect that 5), above is the immediate issue, but can't find out 'who' is (ir-)responsible for creating that psuedo-device. Any/all pointers much appreciated. ___ 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: mouse configuration question
Date: Fri, 21 Jun 2013 21:21:45 +0200 Subject: Re: mouse configuration question From: Xavier xavierfreebsdquesti...@gmail.com On Fri, Jun 21, 2013 at 02:09:13PM -0500, Robert Bonomi wrote: Hi Robert, I have a ps/2 mouse attached to a HP mini-tower running FreeBSD 8.3, with a stripped-down kernel (no loadable modules). I've apparently removed something necessary for standard mouse functionality, but I have no clue as to -what- is missing. Gory details: 1) '/dev/psm0' exists and +is+ the mouse, 2) 'moused' detects the mouse: psm0 sysmouse Intellimouse 3) 'moused -d' properly reports mouse activity -- button press/release and mouse motion. 4) 'vidcontrol -m on' reports inappropriate ioctl for device. Try another time out of any TMUX(1), SCREEN(1) or similar application, and it work right. Unfortunately, _not_ true. I've made multiple attempts from multiple screen sessions, and even after multiple reboots. No luck. moused _is_ loaded on system boot, further there are multiple 'vidcontrol: inappropriate ioctl for device' messages on the console as the last thing before the login prompt is displayed. I've tried sending SIGHUP and/or SIGUSR1 to moused, with no effect on the issue. no '/dev/sysmouse', curses mouse routines still report total failure, and all the rest. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Re: FreeBSD slice/partiton setup question
From owner-freebsd-questi...@freebsd.org Tue Jun 18 13:47:50 2013 Subject: =?UTF-8?Q?Re:_FreeBSD_slice/partiton_setup_?= =?UTF-8?Q?question?= From: =?UTF-8?Q?Istvan_Gabor?= suseuse...@lajt.hu To: =?UTF-8?Q?FreeBSD_Questions?=freebsd-questions@freebsd.org, =?UTF-8?Q?Michael_Sierchio?=ku...@tenebras.com, =?UTF-8?Q?Michael_Sierchio?=ku...@tenebras.com Date: Tue, 18 Jun 2013 20:48:20 +0200 2013. jA nius 18. 19:49 napon Michael Sierchio ku...@tenebras.com A- rta: On Tue, Jun 18, 2013 at 10:44 AM, Istvan Gabor suseuse...@lajt.hu wrote: ... How can I do this in FreeBSD? Can I have slices with only one partition occupying the whole slice? Can I do something like the following: /dev/ad0s1a / /dev/ad0s2e /home /dev/ad0s3e /usr/local /dev/ad0s5b swap /dev/ad0s6e /home/user1 /dev/ad0s7e /home/user2 etc. where the partitions (a, e, b) occupy the whole slice where they reside on? Thanks, but I don't understand your answer. I am puzzled a little bit. My understanding based on the FreeBSD handbook is that slices in FreeBSD are the partitions in linux. And that on one slice (linux partition) FreeBSD has (or can have?) several partitions. These are labeled as letters: a for root partition, b for swap, c for the whole slice, and e for a regular non-root partition. The terminology gets confusing. 'slices' in FreeBSD, and most other 'real' unix systems, correspond to MSDOS/Windows 'partitions', on hardware that supports the MSDOS partitioning scheme.. Unix has its own layer of disk subdivision, referred to here as 'BSD partitioning' (to make clear it is not the same as Microsoft's 'fdisk' functionality, as well. In the 'classical' form this gives the (up to 8) 'letter-named' pieces that a disk may be carved into. You can use 'slices', giving filesystem names, after 'BSD partitioning', like '/dev/ad4s0a', or you can omit 'slice' creation, and do only a 'BSD partioning scheme, giving device names like /dev/ad4a. In the 'BSD partitioning' scheme, letter 'c' is reserved for the entire disk, but SHOULD NOT ever be used directly. One can create another 'BSD partition' (using the letter of ones choice) that also spans the entire disk. There is no requirement to have more than one 'usable' partition on the disk. Why bother with partitions if you're going to use the whole slice? Are you saying that one can use/mount a whole slice without adding partitions to it? For example /dev/ada0s1 could be the root partition? Why bother with slices if you won't run out of partitions? Do you mean putting all partitions on one big slice? I would like to be able to mount different partitions independently from other OS, eg. from linux. As far as I know linux cannot mount FreeBSD partitions, only the whole slice. If one slice has several partitions, one single partition can not be mounted from linux. A full discussion gets 'messy'. there are lots of variations that complicate things -- including a single 'logical volume' with multiple physical disks (e.g. RAID), a single physical disk with multiple 'logical drives' on it (think 'fdisk' partitioning), *AND* the type of filesystem in use on the logical volume/drive. *ASSUMING* the 'Berkeley fast filesystem' (the traditional/classical system choice, also known as 'UFS'), a logical volume/drive must have a BSD 'volume label' on it, which allows subdividing that logical volume/drive into (up to) 8 letter-names parts. Each such 'part' holds a separate filesystem, and must be 'mounted', _individually_, before files on that filesystem can be acessed. The overall logic is similar for other filesystem types, however the mechanical details may be quite different. Could you please confirm if my understanding is correct, or explain a little bit more detailed what you meant? If you want a -single- filesystem to occupy an entire physical disk you can: a) use a 'dangerously dedicated' drive -- one with no 'fdisk' partitioning and only a BSD volume label, and create a single 'BSD partition' -- giving a device like '/dev/ad4h' b) creat a single 'fdisk' primary partition spanning the entire drive and put a BSD volume label on the primary partition, with only a single 'BSD partition' -- giving a device like '/dev/ad4s0h' c) do 'something similar' using a different partitioning scheme -- e.g. 'gpart' -- instead of 'bsdlabel'. d) do 'something similar' using a different type of filesystem -- e.g. 'ZFS' or 'EXT3' (beware: EXT3 is _not_ well-supported under FreeBSD, and there are 'good reasons' _not_ to use any of the EXT* filesystem types if one values the integrity of ones data in the event of 'unexpected' events. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to
Daily periodic cronjob generates core dump
C. L. Martinez writes: I have a FreeBSD 9.1 host (fully patched) with ZFS. Every day I am receiving in security output this message: fbsd.domain.local kernel log messages: +++ /tmp/security.AT1oDecp 2013-06-14 03:02:10.0 + +pid 75930 (try), uid 0: exited on signal 10 (core dumped) pid 76241 +(try), uid 0: exited on signal 10 (core dumped) How can I detect where is the problem?? Have you added anything to the default system crontab? Are there any user crontabs? 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: Daily periodic cronjob generates core dump
C. L. Martinez writes: Have you added anything to the default system crontab? Are I have added a script to rebuild packages every week with poudriere: And if you comment that out? 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: buildworld selectively?
Walter Hurry writes: Fair enough. Point taken, thanks. Nevertheless I see no reason to compile stuff I neither want nor need. While I endorse the principle ... it can be difficult for the casual user to know which parts can be removed without blowing up things they want. (Been there, had to change the underwear after the new kernel didn't boot. Booted old kernel, fixed things.) Wise words. The kernel and world builds/installs went fine, but soon afterwards I noticed a problem with the mail/dcc-dccd port (required, in my case, by SpamAssassin), which would not rebuild, complaining that the base sendmail was not found or too old. Since I use Postfix, I had set WITHOUT_SENDMAIL in /etc/src.conf. I shall remove it and rebuild. C'est la vie! My case was more spectacular: since there were no ISA slots I removed device ISA (or whatever it was). Turns out that dragged in a whole _truckload_ of essential infrastructure insert graphic of nuclear explosion 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: buildworld selectively?
Walter Hurry writes: Fair enough. Point taken, thanks. Nevertheless I see no reason to compile stuff I neither want nor need. While I endorse the principle ... it can be difficult for the casual user to know which parts can be removed without blowing up things they want. (Been there, had to change the underwear after the new kernel didn't boot. Booted old kernel, fixed things.) 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: define more partitions in freebsd
s m writes: and my last question, some people say to change byte 0x28a of the disk from 0x08 to 0x14 (which 14 is the number of partitions). do you think it's a good idea and applicable solution? Short answer: if you have to ask - no, it isn't. :-) Respectfully, 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
pkg version -L howto?
Leslie Jensen writes: pkg version -vIL pkg: option requires an argument -- L usage: pkg version [-IPR] [-hoqv] [-l limchar] [-L limchar] [[-X] -s string] [-r reponame] [-O origin] [index] pkg version -t version1 version2 pkg version -T pkgname pattern According to pkg help version the -l -L should be followed by limchar. Unfortunately it is not clear what limchar can be. Looking at the examples in help I drew the conclusion that limchar can be one of the following: = ? ! The limchar needs to be escaped, otherwise it gets picked off by the shell. Grepped for my crontab: pkg version -vl \ 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: Hot Swapping SATA drive?
Warren Block writes: I don't there there is any difference between SATA and eSATA above the physical layer. I'm not sure what that setting would do. At a guess, it could connect one of the internal SATA ports to the eSATA connector. That's the way mine works; on the other hand, it's specially marked internal connector. 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
Hot Swapping SATA drive?
Ronald F. Guilmette writes: I bought one of these things awhile ago: http://www.amazon.com/gp/product/B004LXJXSW/ref=oh_details_o00_s00_i00?ie=UTF8psc=1 I believe I have a similar object, only a) external (eSATA), b) from a different manufacturer, and c) connected to a -CURRENT system. I use it as a backup device. I just now tried to read up a little bit on all of this ACPI stuff, but my eyes are starting to glaze over. So if someone would answer these simple and obvious questions, I'd appreciate it: 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I insert a drive into this thing while the system is running? Will I be able to mount partitions contained on the drive in question after I do so? That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad gonna happen if I remove a drive from this thing while the system is running, assuming that I have already properly umounted all relevant partitions first? Nothing bad happened to me. 3) Assuming that I want to do this stuff, what BIOS options should I be setting or unsetting on the motherboard? I am unable to check the BIOS settings on that MB (which may be ASrock as well), but I don't believe I had to do anything other hand make sure eSATA was enabled. Please excuse my ignorance, but I've never done this stuff before. I remember the nerves when I tried this. You should be fine, 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: can't compile lang/gcc port
Date: Tue, 14 May 2013 21:07:59 +0200 Subject: Re: can't compile lang/gcc port From: Xavier xavierfreebsdquesti...@gmail.com On Tue, May 14, 2013 at 07:14:17PM +0200, Roland Smith wrote: Hi Roland, On Mon, May 13, 2013 at 03:59:26PM +0200, Xavier wrote: Hi to all, I can't compile lang/gcc port. The last lines of error: Unfortunately the real error happens _above_ the lines that you showed. Hmmm, OK. else \ exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi gmake[5]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd 9.1/libstdc++-v3' gmake[4]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd [snip] Stop in /usr/ports/lang/gcc. *** [build] Error code 1 Stop in /usr/ports/lang/gcc. Somebody can help me ? There is probably a compiler error somewhere before the lines that you posted. Can you show a little bit more? I don't show more lines because the log is very long for paste here. Look for lines with the words: warning: Warning: error: Error: Report at least the 3 lines before each such occurance and 10 or so lines after it. This command: grep -B 3 -A 10 -E -i '(warning|error):' {{logfile}} should do the selection automatically. Asking _someone_else_ to rummage through a megabyte-plus of log because you can't be bothered to look for the 'magic words' that actually identify the problem _is_ an unreasonable imposition on their kindness. Ifi, on the other hand, you _don't_know_how_ to recognize an error message in a build log, you should, bluntly, *not* be building software for your system. Either use pre-build binaries, or hire someone who -does- know what they're doing to build/install custom software for you. ___ 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: Hot Swapping SATA drive?
Ronald F. Guilmette writes: That works for me. I need to re-scan the ata channel using atacontrol but once that happens it's fine. Hummm... I tried atacontrol info and I got this: atacontrol: ATA_CAM option is enabled in kernel. Please use camcontrol instead. So I guess I need to use camcontrol instead. But what command? What were you using with atacontrol to re-scan? Was that atacontrol attach? Yeah - # atacontrol detach ata0 # atacontrol attach ata0 did it. 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: update from apache22 to apache24
Ryan Frederick writes: The Apache site has documentation on upgrading from 2.2 to 2.4 -- http://httpd.apache.org/docs/2.4/upgrading.html The main change for me was the new allow/deny syntax. I've updated almost all of my Apache installs from 2.2 to 2.4 with no issues. Lucky you. I've just been making the change. In addition to the allow/deny syntax, the biggest change is some old modules disappear and new ones need to be added. Unfortunately I'm now getting this: Performing sanity check on apache24 configuration: Syntax OK Starting apache24. /usr/local/etc/rc.d/apache24: WARNING: failed to start apache24 and none of the usual suspects have additional information. (Anyone want to take a shot at this? :-) Respectfully, 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
Kernel Modules Documentation?
Walter Hurry writes: I have a list of about 220 kernel modules and would like to find out what they do, or are for (none has a man page). I suspect that many of them are drivers for particular devices. deleted ahc_eisa ahc_isa ahc_pci Try man 4 ahc. 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: Kernel Modules Documentation?
kpn...@pobox.com writes: alias_cuseeme I don't know this one. Google? CU-SeeMe is a video conferencing product; I have no idea what this module does. 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
Firefox is so slow
David Demelier writes: On my machine : intel i3 540, 2G of RAM and FreeBSD 9.1 it takes around 12 secondes to start. Is it so long for you too? Additional data point: System: FreeBSD 10.0-CURRENT #0 r248938: Sun Mar 31 06:24:42 EDT 2013 amd64 Hardware: AMD Phenom, 4 cores @ 3 Ghz, 8mbytes RAM With the load (as reported by top) at around 6, Firefox 20 also takes ~12 seconds. On the other hand ... once I open a browser I work within it, until it's no longer needed (or it crashes :-( ). Opening a new window/tab in SeaMonkey is so fast I can barely see it happen. 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: enter single user mode from boot menu
Joshua Isom writes: mount -u -o rw / or mount -u -rw / (just thought I'd save you 2 keystrokes, nyuk nyuk) Or mount -ua Understand this mounts all filesystems not marked noauto in fstab ... whether that's the right thing or not. 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: Why is pkg_glob no longer working for me?
Joe Altman writes: Anyone else have this issue? Or am I the only one left still using portupgrade and its associated tools? I use portupgrade and have noticed no failures. I use portupgrade for two features: portsclean (for which there is probably a pkgng replacement, I just haven't bothered to check) and pkg_sort (for which there is no alternative) which is necessary for certain scripts. 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: Why is pkg_glob no longer working for me?
Matthew Seaman writes: I use portupgrade for two features: portsclean (for which there is probably a pkgng replacement, I just haven't bothered to check) and pkg_sort (for which there is no alternative) which is necessary for certain scripts. Well, given that pkgng is a binary package management system, it achieves the required aim of keeping the ports tree nice and clean by the simple expedient of not downloading distfiles or using the ports to compile them. No mess created means none to be cleared up. Except it's not exclusively for binary packages. :-) Portsclean's 'L' option also cleans out un-needed libraries. Which shouldn't be necessary ... but too often is. 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: Upgrading from 7.4 to 9.1
b...@todoo.biz writes: I wanted to know if you would consider updating from 7.4 to 9.1 directly ? Has anyone tried that with success ? While it is certainly possible, many (myself included) will recommend a clean install. Doing so has the following advantages: Well to tell you the truth, the main reason I was asking is that I'll have to visit my datacenter in order to do a clean install as opposed to remote upgrade. If you know your hardware, you can build a disk /here/, send it /there/, and have someone swap disks. Usually - but not always - one can simply copy the kernel configuration file and rebuild kernel+world. (Read /usr/src/UPDATING before doing so,) Unless someone else tells me that It is a painless rapid update. It's painless ... except when it isn't. :-) Robert trust in Allah, but tie up your camel 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
Online Marketing start $99 per month- Freebsd.org
p style=margin-bottom:0infont color=#2323dcTo/font/p p style=margin-bottom:0infont color=#2323dcThe Owner at Freebsd.org/font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcWe’d love to help you amp; optimizing your website in the major search engines like bGoogle/b, bYahoo/b, bMsn/b amp; bBing/b which results in improvements in Keyword Ranking, Traffic amp; Link popularity./font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcWe assure you that after we start the SEO Campaign for your website your site will be positioned in Top page of bGoogle/b, bYahoo/b, bMsn/b amp; bBing/b and other search engines and your website will generate revenues as traffic will float your website./font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcYour return on investment b(ROI)/b after 6 months of SEO will be at least 3 times that of paid advertisements and many times greater than our cost. In fact, we guarantee that in the first month of our work, you will see an improvement in ranking, link popularity and traffic or we#39;ll work for free until you do!/font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcTo brief you about our company, We are leading dedicated SEO firm based in India team size around 200 full time employees, with over 9 years of experience. We have been partnering with various digital agencies over USA, UK, CANADA, SOUTH AFRICA. Currently we have 400+ happy customers and we ranked 1000+ keywords in top 10 ranking./font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#cc6633bspan style=background:transparentLink Building strategies we used :/span/b/font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dc- Incorporating links only from sites that have good quality content, good traffic and social sharing. /font /p p style=margin-bottom:0infont color=#2323dc- Links and Contents Sharing./font/p p style=margin-bottom:0infont color=#2323dc- Using unique and top quality, content, every single time. /font /p p style=margin-bottom:0infont color=#2323dc- Incorporating SMO as the best way to generate traffic ./font/p p style=margin-bottom:0infont color=#2323dc- Focusing on local search that helps local business listings ./font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcFortunately, you can still start today and begin getting that traffic in just a few weeks. We look forward to discuss our SEO plans with you. Sounds interesting? Feel free to email us/font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcIf you have any question please ask./font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcbThanks/b/font/p p style=margin-bottom:0infont color=#2323dcbRobert | Sales Manager/b/font/p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dc /font /p p style=margin-bottom:0infont color=#2323dcPS1: This is one time email and we won’t contact you if you don’t respond to this email.You may also ask us for “REMOVE”./font/p p style=margin-bottom:0infont color=#2323dcPS2: We found your site from online advertisements but did not click the Ad to visit./font/p p style=margin-bottom:0infont color=#2323dcPS3 : If you really interested we will share more informations like Company Information, Keywords we ranked top 10 and Client Testimonials etc../font/p ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How to manually start firewall after system completed boot.
Joe writes: I have special purpose situation where I need to wait until the boot process has completed the starting of the system and then start the firewall (ipfw or pf). Commenting out the firewall statements from the hosts /etc/rc.conf does stop the firewall from starting at boot time. Is there some format of the service command that could be used to manually start the selected firewall? Any ideas on how to accomplish this is welcome. The boot process, as used here, is simply a series of calls to various scripts in /etc/rc.d ... any of which can (theoretically) be invoked by itself. The details of this may be important; _please_ do more research before blowing yourself up. :-) 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
reporting clang version?
Looking at the man page I can find no option for reporting the version - have I missed something? Respectfully, 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: reporting clang version?
mrkvrg writes: Is this what you are looking for? clang --version or clang -v It is. However: clang -help says -v means show commands to run and use verbose output Bug? Thanks, 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
seeking mailing list manager(s)
(Yes - I know there's a list owner's address. I send mail there. Nothing happens. I am chosing to believe this is a technical problem, perhaps part of the same problem about which I wish to complain.) Hello: Would someone repsonsible for the mamagement of this mailing list please contact me privately? Respectfully, 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: Power switch not working
Polytropon writes: But running FreeBSD seems to cause it (the case power switch) to be ignored. Check the BIOS settings, the switch should be programmed to something like soft power-off, it's the other thing to whatever caption has been chosen for immediately power off (forced by the 4 second press). Also make sure you are running the latest BIOS update, and that this is not a known issue for the motherboard. (I have a FreeBSD-only system that cannot do shutdown -r correctly. If I ever figure out a way to flash the BIOS from within FreeBSD ) Respectfully, 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
dump locking up system
(While the system involved is -CURRENT, this doesn't seem to have anything CURRENT-related.) On a system running: FreeBSD 10.0-CURRENT #0: Sun Dec 30 12:52:09 EST 2012 amd64 running dump causes the system to lock up ... sometimes. Specifics: I have a cron job which runs at 0200 local; it dumps three filesystems - /, /var, and /usr - to an external hard drive attached by eSATA. (Dump is incremental Tuesday through Sunday, full on Monday.) After some time of working transparently, this now semi- reliably causes the system to lock up requiring power-off to fix. a) According to dumpdates, the dump of / always completes. Only dumping /var or /usr cause the lock-up. b) There's nothing else in cron running about that time. c) Top doesn't show any suspicious processes or activity. d) When doing fsck on re-boot, the only thing suspicious is a file - caught in fsck phase 1 - large enough to be the usused space on the disk. e) The dump is run in snapshot mode; this has not previously been a problem. f) The exact command used is: dump $DUMP_LEVEL -D $DUMPDATES_FILE -C $DUMP_CACHE -b 64 -Lau -f $DUMP_DATE.var.dump /var where all of the $VARs are appropriately defined elsewhere. g) When run outside the cron environment, the script always runs to completion. Two possibilities come to mind: some kind of hardware failure, or a subtle corruption of the file system. Please - someone out there hav a better idea. ResEpoectfully, 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: Handbook Jail Chapter rewrite available for critique
Isaac (.ike) Levy writes: Pretty heavy cross-posting here, could you perhaps reign this in to the freebsd-jail@ list, where it can be discussed in-context? This will help keep the noise down. It will also keep down the signal from people who use or are interested in jails, but do not (and do not plan to) subscribe to that list. Respectfully, 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: svn new pkg system
Giorgos Keramidas writes: Is svn going to become part of the base system in 9.2-RELEASE? No. [good reasons for not including subversion ellided] On the other hand ... The traditional - and I believe still canonical - way of updating the system is to recompile from source. I know I am not alone in feeling the system is substantially incomplete if it does not come with all the tools necessary to do that. (Not slighting freebsd-update (don't know enough about it to have an opinion); just pointing out it has limitations.) Respectfully, 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
buildowrld fails in sendmail
'void (*)(char *, bool, MAILER *, struct mailer_con_info *, ENVELOPE *)' [-Werror,-Wincompatible-pointer-types] getsasldata, NULL, XS_AUTH); ^~~ /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: passing argument to parameter here extern int reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int)); ^ /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:136:21: note: expanded from macro '__P' #define __P(protos) protos /* full-blown ANSI C */ ^ /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/usersmtp.c:1864:8: error: incompatible pointer types passing 'void ()' to parameter of type 'void (*)(char *, bool, MAILER *, struct mailer_con_info *, ENVELOPE *)' [-Werror,-Wincompatible-pointer-types] getsasldata, NULL, XS_AUTH); ^~~ /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/sendmail.h:2519:67: note: passing argument to parameter here extern int reply __P((MAILER *, MCI *, ENVELOPE *, time_t, void (*)__P((char *, bool, MAILER *, MCI *, ENVELOPE *)), char **, int)); ^ /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h:136:21: note: expanded from macro '__P' #define __P(protos) protos /* full-blown ANSI C */ ^ 3 errors generated. *** [usersmtp.o] Error code 1 Stop in /usr/src/usr.sbin/sendmail. *** [all] Error code 1 Stop in /usr/src/usr.sbin. *** [usr.sbin.all__D] Error code 1 make.conf is appended. Any idea what I've borked? Respectfully, Robert Huff make.conf CFLAGS= -O -pipe -g STRIP= SYMVER_ENABLED= yes X_WINDOW_SYSTEM=xorg HAVE_MOTIF= yes #FC=gfortran42 KERNCONF=JERUSALEM # To avoid building various parts of the base system: # (copied from /usr/share/examples/etc/make.conf #NO_BOOT= true# do not build boot blocks and loader #NO_CVS=true# do not build CVS #NO_CXX=true# do not build C++ and friends #NO_BIND= true# do not build BIND NO_BIND_ETC= true# Do not install files to /etc/namedb NO_BLUETOOTH= true# do not build Bluetooth related stuff #NO_FORTRAN=true# do not build g77 and related libraries #NO_GDB=true# do not build GDB #NO_I4B=true# do not build isdn4bsd package #NO_IPFILTER= true# do not build IP Filter package #NO_PF= true# do not build PF firewall package #NO_AUTHPF= true# do not build and install authpf (setuid/gid) #NO_KERBEROS= true# do not build and install Kerberos 5 (KTH Heimdal) #NO_LPR=true# do not build lpr and related programs #NO_MAILWRAPPER=true# do not build the mailwrapper(8) MTA selector #NO_MODULES=true# do not build modules with the kernel #NO_OBJC= true# do not build Objective C support #NO_OPENSSH=true# do not build OpenSSH #NO_OPENSSL=true# do not build OpenSSL (implies NO_KERBEROS/NO_OPENSSH) #NO_SENDMAIL= true# do not build sendmail and related programs #NO_SHAREDOCS= true# do not build the 4.4BSD legacy docs #NO_TCSH= true# do not build and install /bin/csh (which is tcsh) #NO_VINUM= true# do not build Vinum utilities #NOCRYPT= true# do not build any crypto code #NOGAMES= true# do not build games (games/ subdir) #NOINFO=true# do not make or install info files #NOLIBC_R= true# do not build libc_r (re-entrant version of libc) #NOMAN= true# do not build manual pages NO_PROFILE= true# Avoid compiling profiled libraries #NOSHARE= true# do not go into the share subdir # to get automatic SASL in sendmail SENDMAIL_CFLAGS+= -I/usr/local/include/ -DSASL=2 SENDMAIL_LDFLAGS+= -L/usr/local/lib SENDMAIL_LDADD+=-lsasl2 # # to make CUPS magically keep working # See: http://www.csua.berkeley.edu/~ranga/notes/freebsd_cups.html # CUPS_OVERWRITE_BASE=yes NO_LPR= true # added per /usr/ports/UPDATING entry 20090401 OVERRIDE_LINUX_BASE_PORT=f10 OVERRIDE_LINUX_NONBASE_PORTS=f10 # WITH_MOZILLA= libxul WITH_GECKO= libxul # # added 2007/03/04 per advice of free...@troback.com # in re science/gramps # WITH_BERKELEYDB=db43 WITH_BDB_VER=43 WANT_OPENLDAP_VER=24 WANT_OPENLDAP_SASL=true # # as required by ports/UPDATING of 20121012 # SAMBA_ENABLE=YES # # PORTS: use clang unless gcc is explicitly required # # # default to using clang for all port builds, with the following # exceptions
choosing ACLs
man tunefs mentions two types of ACLs: POSIX.1e and NFSv4. Am I correct in assuming an unqualified ACL in general usage defaults to the former, not the latter? Respectfully, 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: Fun Scripting Problem
Date: Wed, 13 Feb 2013 12:27:31 -0600 From: Tim Daneliuk tun...@tundraware.com Subject: Fun Scripting Problem I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? here's a one-liner: rm ` \ stat -f %SB %B %N * \ | sort -k5nr \ | cut -c1-7,17-20,32- \ | awk 'BEGIN {a=;b=0;c=0} $1==a $2==b $3=c {print $4;}{a=$1;b=$2;c=$3}' \ ` This selects on creation date. change the B (both of them) in the stat call to use a different timestamp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Re-sending selected e-mail messages
Date: Thu, 14 Feb 2013 00:49:13 +0100 From: Polytropon free...@edvax.de To: FreeBSD Questions freebsd-questions@freebsd.org Subject: Re-sending selected e-mail messages I need a way to automatically re-sent stored e-mail messages according to some criteria and like to ask for advice or suggestions for an already existing solution before I start reinventing the wheel. :-) The messages in question are stored in MH format. What is the easiest way to do this without reinventing the wheel, or should I? :-) procmail is your friend. cat ~/sent* |procmail -f resendrc where resendrc is: emailaddr=f...@bar.baz :0 *^To: *${emailaddr} *^Subject:\/.*$ | formail -I Subject: {resend} ${MATCH} | $SENDMAIL -oi -t Delete the 'formail' if you want the Subject: unmolested. ___ 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 achieve E-Mail Notification on root login?
Polytropon writes: given there is a FreeBSD system with users in the wheel group, what is the best practise to send out a notification via E-Mail if one of them becomes root via su? In an ideal case the E-Mail would contain the user name and the time. I'm not sure if there already is a solution (provided in the base system) that offers this functionality, but the fact of a user having used su to su root is logged by the system. The line is appended to /var/log/messages: Feb 12 14:40:57 r56 su: poly to root on /dev/pts/2 The information you want is in there, and you could either use the whole line, or apply some sed, awk or even perl to form a message with less information (only date and user). A scripted solution could monitor /var/log/messages for changes and use the system's builtin mailer to deliver the message. Tools like tail -f, grep and | mail could be involved. It should be quite trivial to implement this and add a custom rc.d-style script (or even few lines in ye olde /etc/rc.local). Take a look at the -p option of split. The bigger question is how quickly do you need to know - instantly? once an hour? once a day? 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: Was I Sourced?
Date: Tue, 12 Feb 2013 08:53:37 -0600 From: Tim Daneliuk tun...@tundraware.com To: FreeBSD Mailing List freebsd-questions@freebsd.org Subject: Was I Sourced? Is there a way for script to determine whether is was sourced or forked off as a subprocess when it was invoked? I have a script that needs to be sourced to work properly and I want to warn the luser if they exec or subshell it instead. a 'sourced' script does -not- honor a shebag line. you can exploit that. The executable script /usr/local/bin/source_only; #!/bin/sh echo Error: this script must be sourced Your script: #!/usr/local/bin/source_only {cmd} {cmd} {cmd} {cmd} {cmd} {cmd} ... ... Trying to do it totally self-contained is not easy. ___ 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 Motorola Droid RAZR i ... Intel Atom ... workable ?
Date: Tue, 12 Feb 2013 09:31:52 -0800 (PST) From: Mm Bsd mmbsd1...@yahoo.com Subject: FreeBSD on Motorola Droid RAZR i ... Intel Atom ... workable ? To: freebsd-questions@freebsd.org The Motorola Droid RAZR i (a variant of the RAZR m) has an intel atom z2460 processor in it. Unless I am mistaken, this is an amd64 compatible chip that mainline FreeBSD could run on, yes ? Without getting into the specifics of loading the system (and using a touchscreen as input), would plain old amd64 FreeBSD run on this device ? Not without a lot of low level work. like _all_ the device drivers, interrupt handlers, etc. ___ 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
dump issue
Will someone please confirm or deny that (UFS) journaling and dump -L continue to be incompatible? Respectfully, 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: mount: /dev/da0p1: Invalid argument
Date: Fri, 8 Feb 2013 12:30:51 GMT From: Anton Shterenlikht me...@bristol.ac.uk Subject: Re: mount: /dev/da0p1: Invalid argument From kostik...@gmail.com Fri Feb 8 12:25:21 2013 On Fri, Feb 08, 2013 at 12:01:41PM +, Anton Shterenlikht wrote: I need to transfer some files from sparc64 -current box onto amd64 9.1-RELEASE laptop. The amd64 laptop has no network connection yet, so I'm trying to achive this with a USB flash drive.=20 =20 The problem is that I always end up with =20 # mount /dev/da0p1 /mnt/ mount: /dev/da0p1: Invalid argument #=20 =20 If I do newfs on the sparc64 box, then I can't mount it on the amd64 box, and vice versa. =20 I tried just newfs /dev/da0, and using gpart, e.g.: =20 # gpart show /dev/da0 =3D 34 4029373 da0 GPT (1.9G) 34 20481 freebsd-ufs (1.0M) 2082 4027325 - free - (1.9G) =20 # =20 and then newfs /dev/da0p1, or similar, but no luck. =20 I tried sparc64 VTOC8 partition scheme too - no help. =20 I can mount the device and use it as expected, i.e. copy files to/from it on either box, but the other box doesn't seem to understand the file system. =20 I tried loading various modules in desperation, e.g. on the sparc64 side: =20 # kldstat=20 Id Refs AddressSize Name 19 0xc000 a80e58 kernel 21 0x101bca000 104000 geom_part_mbr.ko 31 0x101cce000 11 geom_label.ko 41 0x101dde000 108000 geom_part_gpt.ko #=20 =20 but still no use.=20 =20 Am I missing something simple? UFS on FreeBSD is not endian-agnostic. It uses the host byte order for multibyte values. As result, you can share UFS volumes only between hosts with the same endianess, like i386/amd64/ia64 little endian or sparc64/mips big endian. AFAIK, NetBSD has such support. Wow... I didn't realise that. I thought UFS (1 or 2) takes all care of endian-ness. Do you mean that even I had say a SCSI internal disk with UFS2, I couldn't move it between a little and a big endian freebsd boxes? So what is the advice for transferring data via USB in such cases? Any other gpart partition I could use? you could use zfs. easier is to use the media as src/dest for tar/gtar/bsdtar/etc. tar is endian-agnostic, although there may be endian-ness issues with binary data in files inside the tarball. ___ 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: backspace shows ^? in serial communications
From owner-freebsd-questi...@freebsd.org Wed Feb 6 00:19:04 2013 Date: Wed, 6 Feb 2013 09:44:37 +0330 Subject: backspace shows ^? in serial communications From: s m sam.gh1...@gmail.com To: freebsd-questions freebsd-questions@freebsd.org hi all i have a problem with backspace in serial communications. i have a freebsd8.2 box with a serial card on it. when i connect to other freebsd box via serial port backspace does not act as i expected. backspace shows ^? on screen. i searched alot and find out that stty has two parameters -erase and erase2- to identify erase characters in terminal and they should be set correctly. i set erase and erase2 to ^? by stty erase \^? and stty erase2 \^? commands but nothing happened. please let me know how i can fix it. i know it is simple issue but i really do not know how to do that. stty erase {press the backspace key} Then hit the enter/return key ___ 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
parallel/simultaneous portinstall ?
Ronald F. Guilmette writes: My question is just this: Is it possible that Something Bad might happen if, in one terminal session, the root user does portinstall A and if, which that instance of portinstall is still running, he then immediately switches to his other terminal session and then does portinstall B ? It's possible; I will leave the details as an exercise for the reader. On the other hand: the worst that happens is that one loses the time invested (so far) in both builds. (Well, if you discount tail cases like running out of disk space.) 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
9.1 install wipes out gpart boot blocks?
Gary Aitken writes: I used gpart to set up a new disk, then went through a 9.1 install. Everything seemed to go fine, but when time came to boot the new drive, it wouldn't boot. While the it wouldn't boot is catastrophically imprecise, I had what sounds like a similar problem about a month ago. I installed from the 9.0 CD and everything appeared to go correctly. However, on final re-boot the loader couldn't identify the root partition. The solution was to identify the disks using the GPT labels in fstab. Check the archive of questions@ for more details. 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
clipboard mangling cut/paste?
(I'm posting this here because I have not been able to narrow it down to a more specific candidate. Also, my Google-fu is inferior.) On a system running: FreeBSD 10.0-CURRENT #0: Sun Dec 30 12:52:09 EST 2012 amd64 and xorg-server-1.10.6_2.1, I can cut from FireFox (18) and paste into xemacs (21.4). However, cutting from xemacs and pasting into Firefox turns the characters into something that looks like Japanese/Chinese. I can't even tell whether it's pasting the same number of characters (or twice/half that number). I have other systems on which this works, but have not been able to find the setting which makes everything happy. Respectfully, 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: Cronjob Cvsup - What?
Steve O'Hara-Smith writes: The only downside with svn seems to be the 728 MB footprint. With hard disc space running at around 10c per gigabyte it's a minor issue. Doesn't that depend on whose money it is? 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: sh script ?
From owner-freebsd-questi...@freebsd.org Thu Jan 24 12:11:42 2013 Date: Thu, 24 Jan 2013 13:07:40 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD questions questi...@freebsd.org Subject: sh script ? I get this message [: 10.0.10.21: bad number on this code [ ${saved_ip} -eq ${used_ip} ] echo good match Both variables have valid ip addresses in them. Why does it think the variable content is a number and not text? Why?? BECAUSE YOU TOld IT TO. RTFM applies. Specifically 'man test'. You need to either read some books on BASIC shell programming or take a course or two on that subject. This may sound harsh, but you will save yourself a -lot- of future aggravation with some structured education. It will also assist you in getting maximum value from the manpages. Programming _is_ an art-form. You have to train yourself to think the way the machine does. When it complains about 'something', it is *AlMOST*ALWAYS* correct, and something you -think- is correct is actually wrong. the hard thing to learn in troubleshooting problems is to set aside what you know is correct, and look for anything that could possibly cause the complaint. Remember, you're looking for something impossible. grin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Setuid binaries and File Ownerships in FreeBSD9.0
From: Martin McCormick mar...@dc.cis.okstate.edu To: FreeBSD Questions freebsd-questions@freebsd.org Subject: Setuid binaries and File Ownerships in FreeBSD9.0 Date: Wed, 23 Jan 2013 14:26:16 -0600 [[.. sneck ..]] When the application first runs, it gets the UID and GID of the user and uses setuid(heruid); and setgid(hergid); to temporarily downgrade and those files are owned by the right user but setuid(0); doesn't appear to upgrade back to root. Is there any other strategy that gets one back to root short of using chown and then a system call and never downgrading privilege? man setEuid ___ 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 building swt-devel
: expected primary-expression before '(' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ')' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: 'nsStaticModuleInfo' was not declared in this scope [exec] xpcom.cpp:58:15: error: expected primary-expression before ')' token [exec] xpcom.cpp:58:36: error: expected ')' before 'arg0' [exec] *** [xpcomxul.o] Error code 1 [exec] [exec] Stop in /data/port-work/usr/ports/x11-toolkits/swt-devel/work. BUILD FAILED /data/port-work/usr/ports/x11-toolkits/swt-devel/work/build.xml:62: exec returned: 1 I re-installed www/libxul, and nothing changed. Receimination phase - if any - will happen after this gets fixed. Help, please! Respectfully, 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: sh script code to get file size.
From owner-freebsd-questi...@freebsd.org Fri Jan 18 17:30:31 2013 Date: Fri, 18 Jan 2013 18:26:54 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD questions questi...@freebsd.org Subject: sh script code to get file size. In a script in am working on I need to find out the allocated size of a sparse file. The only command that comes to mind is ls -lh The du -h command is not appropriate because it will show the occupied size and not the allocated size. I don't know how to parse out to the position in the output of that ls -lh command to pickup the file size value. ls -lh procmail.log |awk '{print $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: OT: What Might Break getbostbyname() ?
From owner-freebsd-questi...@freebsd.org Wed Jan 16 22:08:13 2013 Date: Wed, 16 Jan 2013 22:04:15 -0600 From: Tim Daneliuk tun...@tundraware.com To: FreeBSD Mailing List freebsd-questions@freebsd.org Subject: OT: What Might Break getbostbyname() ? This is not really a FreeBSD problem ... in fact, it's happening on a Solaris 10 machine. But because the TCP stack and its userland interface came from BSD, I am hoping some kind soul might have an insight into what's going on ... The machine in question does DNS lookups fine via dig or nslookup. I believe these connect directly to the DNS server(s) specified in /etc/resolv.conf. However, any program that uses gethostbyname() - like ping - fails and says it cannot resolve the name. I'm looking for hints here on why or how gethostbyname() and/or the network stack could get clobbered so as to not be able to talk to the DNS servers which I know are reachable via dig and nslookup. dig and nslookup use THEIR OWN resolver routines, =not= the 'standard library' routines. Something that fouls the library routines will not affect dig and nslookup. Given this is Solaris, check /etc/nis.switch (may not be the exactly correct name, but close -- I haven't used Solaris in a decade). check both the file content, and permissions. You may have to run truss on ping to see what it's getting wrong. ___ 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
fsck can't determine fstype
Situation: I have a hard drive which may or may not have died already, from which I would _very_ much like to recover maybe 1 gbyte of data. After extracting it from the old machine, it's now hooked up to a system running: FreeBSD 10.0-CURRENT #0: Sun Dec 30 12:52:09 EST 2012 amd64 gpart show identifies it as ad1 with partition 2 as type freebsd-ufs and label g_user. However: fsck /dev/ad1p2 fsck: could not determine filesystem type Adding -t ufs produces: huff@ fsck -t ufs /ad1p2 ** /dev/ad1p2 ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes -2103374334359810 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103382924294404 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103391514228998 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103400104163592 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103408694098186 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103417284032780 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103425873967374 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103434463901968 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103443053836562 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103451643771156 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY -2103460233705750 BAD I=342 UNEXPECTED SOFT UPDATE INCONSISTENCY EXCESSIVE BAD BLKS I=342 CONTINUE? [yn] ^C * FILE SYSTEM STILL DIRTY * While I'm not an fs expert, this feels wrong. Is there some clue I'm missing? Respectfully, 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: time_t definition
Date: Wed, 16 Jan 2013 10:14:19 -0800 From: Thomas D. Dean tomd...@speakeasy.org Subject: Re: time_t definition On 01/16/13 03:00, Patrick Lamaiziere wrote: Looks like gcc47 checks the printf format string (-Wformat) Disable this check or convert your time_t. Yes, I know gcc47 checks the format string. But, time_t is of type int32, from a typedef statement. *precisely* and the format string had %ld. this IS a type mismatch, if a 'long' is a 64-bit value. #include stdio.h typedef int zzz; typedef zzz yyy; typedef yyy xxx; int main() { xxx idx; for (idx=0; idx10; idx++) printf(%d\n,idx); return 0; } does not produce the error (I did this on the 'other' system) gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 ... gcc -O2 -pipe -I../../include -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign xxx.c -o xxx I did not think to do this on the FreeBSD system I was using yesterday. What I don't understand is where gcc is losing track of this definition. It *isn't*. grin In 9.0, or maybe earlier, the definition of time_t was changed with a view toward 64-bit systems. I remember a statement to the effect of in 2038, 32-bit time will overflow. It is unlikely that many 32-biot systems will be around then. So, making the change to 64-bit now will prevent having to do it in the future. So, now, it seems that any calculation involving time_t requires a cast FALSE. Calculation is OK. I/O format conversion is problematic. ___ 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: change in buildworld output when gcc - clang
Alexandre writes: Before the installation of clang and the default system compiler, make buildworld ended with a nice little banner announcing the fact and the time the build completed. After, it ends like this: Your mail has been truncated. Could you please send us the end? Appended. Looking at current@, I see someone else has noticed this. Robert Huff /usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:79:9: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if (open(/dev/null, 2) != 0) { ^ /usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:81:16: warning: implicit declaration of function 'dup' is invalid in C99 [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^ /usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:84:9: warning: implicit declaration of function 'execl' is invalid in C99 [-Wimplicit-function-declaration] (void) execl(/bin/sh, sh, -c, command, (char *) 0); ^ /usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:91:5: warning: implicitly declaring library function '_exit' with type 'void (int) __attribute__((noreturn))' _exit(0); ^ /usr/src/lib/libwrap/../../contrib/tcp_wrappers/shell_cmd.c:91:5: note: please include the header unistd.h or explicitly provide a declaration for '_exit' 7 warnings generated. /usr/src/lib/libwrap/../../contrib/tcp_wrappers/update.c:110:33: warning: implicit declaration of function 'getpid' is invalid in C99 [-Wimplicit-function-declaration] sprintf(request-pid, %d, getpid()); ^ 1 warning generated. cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32' cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32' cc: warning: argument unused during compilation: '-L/usr/obj/usr/src/lib32/usr/lib32' ___ 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
change in buildworld output when gcc - clang
Before the installation of clang and the default system compiler, make buildworld ended with a nice little banner announcing the fact and the time the build completed. After, it ends like this: ___ 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: Reading the handbook from console
Date: Sun, 13 Jan 2013 21:48:01 +0100 From: Polytropon free...@edvax.de To: Fbsd8 fb...@a1poweruser.com Subject: Re: Reading the handbook from console Cc: scotteb...@gmail.com, dte...@freebsd.org, questi...@freebsd.org On Sun, 13 Jan 2013 15:15:23 -0500, Fbsd8 wrote: What do you mean by enable console graphics? Is this something different than x11? The is a famous library, svgalib, a low level console graphics library which can - under _very_ specific circumstances - display graphics on the text mode console. There are few browsers, image viewers and even media players that can use this interface to display console graphics while _not_ needing X. However, this only works for local displays. As soon as there is a serial or SSH connection involved, it doesn't work anymore. I've actually never seen this working on FreeBSD; maybe it's just a Linuxism. Maybe it's just because I've never tried. :-) Works fine on FreeBSD -- graphics-mode screen-savers (like 'fire') use it. ___ 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: Reading the handbook from console
Date: Sun, 13 Jan 2013 19:01:21 -0500 From: Fbsd8 fb...@a1poweruser.com Subject: Re: Reading the handbook from console How do you activate graphics-mode screen-savers (like 'fire')? apropos screen saver will point one in the right direction. I compile into a custom monolithic kernel. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail not working
Progress has been made. After looking into several things, I can now send mail successfully. However, delivery to local mailboxes is still blocked. sm-mta reports accepting connections, but maillog is still full of: jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited with exit value 1 jerusalem sm-mta[28896]: r05KsfdB048780: to=huff@localhost, delay=2+18:16:27, xdelay=00:00:00, \ mailer=local, pri=56791038, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local So close, and yet so far. What next? Is there a -d setting which will get to the heart of this? Respectfully, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail not working
On 1/8/2013 2:04 PM, Robert Bonomi wrote: WHAT HAPPENS when you 'telnet' to your mailserver port(s) and try doing smtp transaction(s) manually? I don't get the SMTP prompt. Insufficient data a) does telnet say connected? Yes. b) if yes, how long did you wait for the banner? (if there's a DNS problem, it can be 90 seconds befre the banner line) Good catch - yes sendmail does seem to be hooked to port 25. Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem+: Group writable directory Supposedly you fixed the above problem. But sendmail disagrees. wry grin check permissions on / /home and /home/huff Exactly. I fixed the file permissions, but not those on /home/huff. Permissions are now 755. Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward+: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited with exit value 1 Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: to=huff@localhost, delay=2+18:16:27, xdelay=00:00:00, mailer=local, pri=56791038, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local ok, it's been trying to deliver for nearly three days. with local delivery (program mail.local) failing. mail.local can fail for a number of reasons that shouldn't happen. check permissions on the mailbox directory also owner/permissions on the mailbox, for starters. /var/mail is owned by root:mail with permissions 775 /var/spool/mqueue is owned by root:daemon with permissions 755 maildir quota set?? No. 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: sendmail not working
Karl Vogel writes: R After looking into several things, I can now send mail successfully. R However, delivery to local mailboxes is still blocked. sm-mta reports R accepting connections, but maillog is still full of: R jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited R with exit value 1 Can you temporarily replace your local mailer? I found the problem - mail.local exiting because it couldn't load libsasl2.so.2 - and worked around by adding an entry in libmap pointing to .3. This is (obviously) not the final solution, and I am trying to figure out how to recompile mail.local to fix this. Recompiling all of sendmail didn't seem to catch it Thanks, 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: sendmail not working
From owner-freebsd-questi...@freebsd.org Thu Jan 10 17:04:06 2013 From: Robert Huff roberth...@rcn.com Date: Thu, 10 Jan 2013 18:00:42 -0500 To: freebsd-questions@freebsd.org Subject: Re: sendmail not working Karl Vogel writes: R After looking into several things, I can now send mail successfully. R However, delivery to local mailboxes is still blocked. sm-mta reports R accepting connections, but maillog is still full of: R jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited R with exit value 1 Can you temporarily replace your local mailer? I found the problem - mail.local exiting because it couldn't load libsasl2.so.2 - and worked around by adding an entry in libmap pointing to .3. This is (obviously) not the final solution, and I am trying to figure out how to recompile mail.local to fix this. Recompiling all of sendmail didn't seem to catch it Go to the dir where the sendmail sources live. there will be subdirs named (among others) doc, sendmail, and mail.local. cd to mail.local, then run: make clean make ldd mail.local #to confirm the libs used then make install Thanks, 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail not working
On 1/7/2013 11:48 PM, Gary Aitken wrote: On 01/07/13 19:45, Robert Huff wrote: I have compiled sendmail following the instructions in the cyrus-sasl port. Sendmail starts, but no mail is processed either way. /var/log/maillog has this: Jan 7 21:07:42 jerusalem sm-mta[69792]: r05KsfdB048780: forward /home/huff/.forward: Group writable directory Jan 7 21:07:42 jerusalem sm-mta[69792]: r05KsfdB048780: smtpquit: mailer local exited with exit value 1 Jan 7 21:07:42 jerusalem sm-mta[69792]: r05KsfdB048780: to=huff@localhost, delay=2+05:11:25, xdelay=00:00:00, mailer=local, pri=52831038, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local The sendmail.cf and submit.cf are attached. Any idea what I've screwed up, or my next step in finding out? No clue, except the first message might be saying it's not going to honor anything from .forward because it's in a group writable directory which would be considered a security issue. Try making /home/huff group read only? Done. Restarted sendmail (all parts). Still no mail processed. 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: mtree spec
From owner-freebsd-questi...@freebsd.org Tue Jan 8 07:35:39 2013 Date: Tue, 08 Jan 2013 08:32:17 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD questions questi...@freebsd.org Subject: mtree spec I have this mtree specification file /set type=dir uname=root gname=wheel . etc .. root .. usr local etc .. .. .. .. But I want to have it behave a little differently. What I am after is etc has to be present and any sub-directories off of etc is not a error. Same thing for for root and usr/local/etc The answers to those issues are found in 'man mtree'. IOW, RTFM applies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail not working
From owner-freebsd-questi...@freebsd.org Tue Jan 8 07:43:00 2013 Date: Tue, 08 Jan 2013 08:39:39 -0500 From: Robert Huff roberth...@rcn.com To: freebsd-questions@freebsd.org, free...@dreamchaser.org, Robert Huff roberth...@rcn.com Subject: Re: sendmail not working On 1/7/2013 11:48 PM, Gary Aitken wrote: On 01/07/13 19:45, Robert Huff wrote: I have compiled sendmail following the instructions in the cyrus-sasl port. Sendmail starts, but no mail is processed either way. /var/log/maillog has this: No clue, except the first message might be saying it's not going to honor anything from .forward because it's in a group writable directory which would be considered a security issue. Try making /home/huff group read only? Done. Restarted sendmail (all parts). Still no mail processed. It is a well-known fact that one horse can run faster than another. But _which_ horse? Details are IMPORTANT! WHAT HAPPENS when you -try- to send an email _out_? Do you get an error email? Does it show in the outbound mail queue? (if it's in the queue, look at the qf* file, to see why it is deferred.) What do the sendmail log messages say? WHAT HAPPENS when somebody -tries- to send an email _in_ from somewhere else? Do they get an error email? Does it show in their outbound mail queue? What do your sendmail log messages say? WHAT HAPPENS when you 'telnet' to your mailserver port(s) and try doing smtp transaction(s) manually? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail not working
On 1/8/2013 9:18 AM, Robert Bonomi wrote: I have compiled sendmail following the instructions in the cyrus-sasl port. Sendmail starts, but no mail is processed either way. /var/log/maillog has this: No clue, except the first message might be saying it's not going to honor anything from .forward because it's in a group writable directory which would be considered a security issue. Try making /home/huff group read only? Done. Restarted sendmail (all parts). Still no mail processed. WHAT HAPPENS when you 'telnet' to your mailserver port(s) and try doing smtp transaction(s) manually? I don't get the SMTP prompt. WHAT HAPPENS when you -try- to send an email _out_? Do you get an error email? No. Does it show in the outbound mail queue? (if it's in the queue, look at the qf* file, to see why it is deferred.) In /var/spool/mqueue: V8 T1357573913 K1357659459 N175 P15690892 I0/111/1420867 Mreply: read error from local Fws $_localhost [127.0.0.1] $rESMTP $sjerusalem.litteratus.org ${daemon_flags} ${if_addr}127.0.0.1 Sh...@jerusalem.litteratus.org A MDeferred: Connection reset by local rRFC822; h...@jerusalem.litteratus.org RPFD:h...@jerusalem.litteratus.org H?P?Return-Path: g H??Received: from jerusalem.litteratus.org (localhost [127.0.0.1]) by jerusalem.litteratus.org (8.14.6/8.14.6) with ESMTP id r07FoGPd052948 for h...@jerusalem.litteratus.org; Mon, 7 Jan 2013 10:51:53 -0500 (EST) (envelope-from h...@jerusalem.litteratus.org) H?x?Full-Name: Robert Huff H??Received: (from root@localhost) by jerusalem.litteratus.org (8.14.6/8.14.6/Submit) id r07FoGrl052947 for huff; Mon, 7 Jan 2013 10:50:16 -0500 (EST) (envelope-from huff) H??Date: Mon, 7 Jan 2013 10:50:16 -0500 (EST) H??From: Robert Huff h...@jerusalem.litteratus.org H??Message-Id: 201301071550.r07fogrl052...@jerusalem.litteratus.org H??To: undisclosed-recipients:; H??X-Spam-Status: No, score=4.3 required=5.0 tests=ALL_TRUSTED,EMPTY_MESSAGE, MISSING_HEADERS,MISSING_SUBJECT autolearn=no version=3.3.2 H??X-Spam-Level: H??X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on jerusalem.litteratus.org What do the sendmail log messages say? Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem+: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward+: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited with exit value 1 Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: to=huff@localhost, delay=2+18:16:27, xdelay=00:00:00, mailer=local, pri=56791038, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local 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: sendmail not working
From owner-freebsd-questi...@freebsd.org Tue Jan 8 11:12:57 2013 Date: Tue, 08 Jan 2013 12:09:36 -0500 From: Robert Huff roberth...@rcn.com To: Robert Bonomi bon...@mail.r-bonomi.com Subject: Re: sendmail not working Cc: freebsd-questions@freebsd.org On 1/8/2013 9:18 AM, Robert Bonomi wrote: I have compiled sendmail following the instructions in the cyrus-sasl port. Sendmail starts, but no mail is processed either way. /var/log/maillog has this: No clue, except the first message might be saying it's not going to honor anything from .forward because it's in a group writable directory which would be considered a security issue. Try making /home/huff group read only? Done. Restarted sendmail (all parts). Still no mail processed. WHAT HAPPENS when you 'telnet' to your mailserver port(s) and try doing smtp transaction(s) manually? I don't get the SMTP prompt. Insufficient data a) does telnet say connected? b) if yes, how long did you wait for the banner? (if there's a DNS problem, it can be 90 seconds befre the banner line) For testing, consider running sendmail in -foreground (not as a daemon) with the debug level turned up. WHAT HAPPENS when you -try- to send an email _out_? Do you get an error email? No. Does it show in the outbound mail queue? (if it's in the queue, look at the qf* file, to see why it is deferred.) In /var/spool/mqueue: V8 T1357573913 K1357659459 N175 P15690892 I0/111/1420867 Mreply: read error from local Fws $_localhost [127.0.0.1] $rESMTP $sjerusalem.litteratus.org ${daemon_flags} ${if_addr}127.0.0.1 Sh...@jerusalem.litteratus.org A MDeferred: Connection reset by local rRFC822; h...@jerusalem.litteratus.org RPFD:h...@jerusalem.litteratus.org H?P?Return-Path: A g H??Received: from jerusalem.litteratus.org (localhost [127.0.0.1]) by jerusalem.litteratus.org (8.14.6/8.14.6) with ESMTP id r07FoGPd052948 for h...@jerusalem.litteratus.org; Mon, 7 Jan 2013 10:51:53 -0500 (EST) (envelope-from h...@jerusalem.litteratus.org) H?x?Full-Name: Robert Huff H??Received: (from root@localhost) by jerusalem.litteratus.org (8.14.6/8.14.6/Submit) id r07FoGrl052947 for huff; Mon, 7 Jan 2013 10:50:16 -0500 (EST) (envelope-from huff) H??Date: Mon, 7 Jan 2013 10:50:16 -0500 (EST) H??From: Robert Huff h...@jerusalem.litteratus.org H??Message-Id: 201301071550.r07fogrl052...@jerusalem.litteratus.org H??To: undisclosed-recipients:; H??X-Spam-Status: No, score=4.3 required=5.0 tests=ALL_TRUSTED,EMPTY_MESSAGE, MISSING_HEADERS,MISSING_SUBJECT autolearn=no version=3.3.2 H??X-Spam-Level: H??X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on jerusalem.litteratus.org What do the sendmail log messages say? Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem+: Group writable directory Supposedly you fixed the above problem. But sendmail disagrees. wry grin check permissions on / /home and /home/huff if any are symlinks, check the 'pointed-to' directory as well. Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward+: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward.jerusalem: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: forward /home/huff/.forward: Group writable directory Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: smtpquit: mailer local exited with exit value 1 Jan 8 10:12:44 jerusalem sm-mta[28896]: r05KsfdB048780: to=huff@localhost, delay=2+18:16:27, xdelay=00:00:00, mailer=local, pri=56791038, relay=local, dsn=4.4.2, stat=Deferred: Connection reset by local ok, it's been trying to deliver for nearly three days. with local delivery (program mail.local) failing. mail.local can fail for a number of reasons that shouldn't happen. check permissions on the mailbox directory also owner/permissions on the mailbox, for starters. maildir quota set?? ___ 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
update to SASL breaks sendmail
I have followed the canonical procedure to get Sendmail to use SASL. Yesterday this worked. This morning I updated cyrus-sasl to the latest version, which bumps the library version from .2 to ,3. This appears to break sendmail in at least two places. I have added a mapping in libmap.conf ... which seems to work ... but I'm pretty sure that's Not The Right Thing. What is? Respectfully, 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: update to SASL breaks sendmail
On 1/5/2013 8:30 PM, Dan Nelson wrote: In the last episode (Jan 05), Robert Huff said: This morning I updated cyrus-sasl to the latest version, which bumps the library version from .2 to ,3. This appears to break sendmail in at least two places. I have added a mapping in libmap.conf ... which seems to work ... but I'm pretty sure that's Not The Right Thing. What is? Rebuild sendmail so that it links against the updated sasl libraries, or make sure to preserve old shared libraries when upgrading packages. I know how to build world; what is the correct way of building/installing just sendmail and making sure I get the right libraries? (The information in /usr/ports/security/cyrus-sasl/files/Sendmail.readme doesn't appear to apply.) 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: update to SASL breaks sendmail
On 1/5/2013 8:55 PM, Dan Nelson wrote: Base sendmail doesn't link with sasl by default. If you had edited Makefiles or make.conf to enable that, running make clean all install clean in /usr/src/usr.sbin/sendmail/ should build and install just the new sendmail. Or, if you had installed the mail/sendmail port with sasl enabled, force-upgrade that port using your favorite method. Good news: Rebuilt sendmail per above, and it starts without complaining. Bad news: Mail is not flowing in or out. Looking at /var/log/maillog, I'm guessing this has to do with the line: sm-mta: smtpquit: mailer local exited with exit value 1 It also complains about my .forward being group-writable, when it is 750. 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: Changing value of uname -r
From owner-freebsd-questi...@freebsd.org Tue Jan 1 11:52:49 2013 Date: Tue, 01 Jan 2013 12:49:17 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD Questions freebsd-questions@freebsd.org Subject: Changing value of uname -r uname -r returns 10.0-CURRENT setenv UNAME_r 9.0-RELEASE uname -r now returns 9.0-RELEASE How to reset uname -r to original value without doing setenv UNAME_r 10.0-CURRENT? Is there some way just to deactivate the effect of the setenv UNAME_r so it returns to the real value of the system? Did you try: unsetenv UNAME_r If yes, what were the results? If no, _why_not_? ___ 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: following 9-STABLE but getting 9.1-PRERELEASE
From owner-freebsd-questi...@freebsd.org Mon Dec 31 02:45:09 2012 Date: Mon, 31 Dec 2012 09:42:03 +0100 (CET) From: Marco Beishuizen mb...@xs4all.nl To: freebsd-questions@freebsd.org Subject: following 9-STABLE but getting 9.1-PRERELEASE Hi, I'm following the 9-STABLE branch with svn and just updated my system. But after booting I noticed that my system is still at 9.1-PRERELEASE, and not 9.1-STABLE or 9-STABLE. Surely you're not suggesting someone forgot to lock the horse after the stable escaped? *groan* ___ 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: problem after installkernel going from 9.0 to CURRENT
On 12/30/2012 7:11 PM, Robert Huff wrote: It indicates that the / partition cannot be mounted to continue booting. Maybe you can interrupt at the boot loader and examine the mount source for /, or manually set it to be ada0p1? I'll try that. OK - I'm at the part of loader2(?) where it shows: OK and wants something of the form disk partitionpath to bootable kernel However, the sample format for the partition is 0:ad(0,a) How do I specify a GPT partition? 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: utility to compare 2 dir trees
From owner-freebsd-questi...@freebsd.org Mon Dec 31 19:26:37 2012 Date: Mon, 31 Dec 2012 20:23:33 -0500 From: Fbsd8 fb...@a1poweruser.com To: FreeBSD Questions freebsd-questions@freebsd.org Subject: utility to compare 2 dir trees I want to compare 2 different directory trees to each other to locate any differences in directories and files contained there in. Any suggestions? 'man diff' ___ 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 after installkernel going from 9.0 to CURRENT
Situation: One of my boxes failed, and for various reasons it became easier to just scrub and rebuild it. 1) Using BSDinstall, I created the first disk: ada0p1 freebsd-boot128k ada0p2 freebsd-swap4g ada0p3 freebsd-ufs 25g 2) Installed off the CD, got it up and running, everything was good. 3) Like it's predecessor, this wants to run CURRENT. Used csup (tag=.) to update the source tree as of midnight last night. 4) Built world - OK. Build kernel - OK. Ran mergemaster - OK. Installed kernel - OK. 5) On rebooting, the loader(??) claims to not be able to find a bootable partition - i.e. I get a screen that ends in mountpoint . Providing the presumptive value by hand returns error 19. 6) Boot using installation CD and use gpart show to double check device names and partitions; everything looks good. 7) Try normal booting again, no go. This is my first time installing to a GPT partitioned system, and I have (obviously) failed to grok something. I checked src/UPDATING and found nothing which covered this. What is it, and how do I fix it? Respectfully, 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: problem after installkernel going from 9.0 to CURRENT
On 12/30/2012 6:24 PM, Polytropon wrote: Used csup (tag=.) to update the source tree as of midnight last night. This seems to be discouraged today. Instead svn should be used. I'm using this for ports, will convert for source ... probably in the next round after I deal with this. 5) On rebooting, the loader(??) claims to not be able to find a bootable partition - i.e. I get a screen that ends in mountpoint . Are you sure this isn't the mountroot prompt? Right you are; sorry, typing from memory on a different system. It indicates that the / partition cannot be mounted to continue booting. Maybe you can interrupt at the boot loader and examine the mount source for /, or manually set it to be ada0p1? I'll try that. Providing the presumptive value by hand returns error 19. No root partition, probably. :-) Duh. :-) That's why _I_ prefer old-fashioned MBR partitioning with sysinstall which has never failed me. :-) There's something to be said for that. On the other hand, GPT is the rising tide and one has to learn to swim sometimes. 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: static ip address and ifconfig
Date: Sat, 29 Dec 2012 18:09:59 -0500 From: Fbsd8 fb...@a1poweruser.com Subject: Re: static ip address and ifconfig But lets not get side tracked by something the question is not asking about. Please Focus on the part of the post you cut out which is asking about static ip addressees. The short answer is 'have the company _pay_ someone (who knows what they're doing) set it up for them'. To be blunt you lack the required knowlege of essential concepts and routine network configuration practices to either 'do it yourself' -or- to describe the _entire_ configuration environment with sufficient precision for anyone else to give you the 'simple' answer you require. The answer to your original queston, AS ASKED, is: the ifconfig output will depend on how the network admin set tbings up, and -nobody- can guarantee what he did. I'm not trying to be hostile or condescending, but you cannot do advanced things when you lack the fundamentals. I can produce an ifconfig output for a single interface, showing 4 different 'public' addressees and 6 'private' ones and *nobody* except the network admin for that box can tell which were staticly configured and which were issued via DHCP. When you figure out 'why not' enlightenment will follow. ___ 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: using iniparser.h
From owner-freebsd-questi...@freebsd.org Thu Dec 27 01:39:38 2012 Date: Wed, 26 Dec 2012 23:36:37 -0800 (PST) From: Jack Mc Lauren jack.mclau...@yahoo.com Subject: using iniparser.h To: FreeBSD Global Users Mailing List freebsd-questions@freebsd.org Hi guys Take a look to the code below : #include iostream #include string.h #include iniparser.h #include dictionary.h using namespace std; int main() { dictionary *dict = new dictionary; dirent *dir = new dirent; char *c; dict = iniparser_load(/tmp/test.ini); c = iniparser_getstring(dict,s,w); cin.get(); return 0; } I have this error : ***main.cpp:17: undefined reference to `iniparser_load' ***/main.cpp:18: undefined reference to `iniparser_getstring' any suggestions ? a) your code doesn't match the errors -- 3-4 lines missing. b) did you specify the iniparser lib when you tried to compile ? 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 ___ 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: modem communication
From owner-freebsd-questi...@freebsd.org Sat Dec 15 03:27:08 2012 Date: Sat, 15 Dec 2012 12:54:44 +0330 Subject: modem communication From: s m sam.gh1...@gmail.com To: freebsd-questions@freebsd.org hello guys, please forgive me if my question is not related to this list but i don't know where i should ask about it. i have a freebsd8.2 and wanna talk my modem by com port. when i connect my modem to com port, everything is ok. for some reasons, i have to communicate with modem, run a command, close the connection, connect again, run another command, close connection,... . in the other words, in each communication i have to run just one ati command and close connection. BAD IDEA(TM) my question is: are there any ati commands in modems that should be run continuously (in the same communication)? i mean running one command, close connection, open it again and run another command would make any wrong? yes. my program should work with all modems not a specific one. any hints or comments are really appreciated. Open the serial port at the beginning of the 'session', keep it open while you do everything needed, then (and only then!) close the serial port. ___ 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: Safe Way to Tell if Process is Running
Subject: Safe Way to Tell if Process is Running Date: Tue, 04 Dec 2012 13:39:41 -0600 From: Martin McCormick mar...@dc.cis.okstate.edu About 20 years ago, I saw some code in which you verified whether or not a process was running by giving it a kill -0 command. If the process was running, nothing happened to it but your kill -0 command exited with a 0 status. If there was no process with that PID, the kill command exited non-zero. I use this in a system(command); in a C program I wrote some years ago and I think this is now causing a segmentation fault when the process number being signalled doesn't exist. Is there a better way to determine if process number 12345 is running without bothering it? None of the documentation on kill (1) shows a signal 0 nor does kill -l. Something tells me this is a bad idea these days, but I still need an easy way to see if XYZ process is still alive. 'man 2 kill' tells all. ___ 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: redirect incoming telnet to com port
From owner-freebsd-questi...@freebsd.org Mon Dec 3 07:14:37 2012 From: saeedeh motlagh saeedeh.motl...@gmail.com Date: Mon, 3 Dec 2012 16:42:07 +0330 Subject: redirect incoming telnet to com port To: freebsd-questions freebsd-questions@freebsd.org hello everybody i have freebsd8.2. i want to redirect incoming telnet from telnet port to a com port. i mean if somebody telnet to my system with a specific port (or 22 which is default telnet port), connect to com port and can talk to modem (something like cisco). is it possible or not? Possible, yes, but you do NOT want to do it THAT way. It bypasses all system access controls. set up a special purpose userid with a login script that runs a terminal program (via 'exec') like kermit with a start-up script for that program that selects the proper port and then sets the needed serial settings, and goes into 'connect' mode. whed they exit the terminal session, they're automatically logged off the system. ___ 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: Unexepected results when piping syslog to a fifo
Date: Thu, 29 Nov 2012 22:21:30 -0600 From: Paul Schmehl pschmehl_li...@tx.rr.com Subject: Re: Unexepected results when piping syslog to a fifo Now I'm even more confused. According to man (5) syslog.conf, a pipe should redirect its output to /dev/null. A vertical bar (``|''), followed by a command to pipe the selected messages to. The command is passed to sh(1) for evaluation, so usual shell metacharacters or input/output redirection can occur. (Note however that redirecting stdio(3) buffered output from the invoked command can cause additional delays, or even lost output data in case a logging subprocess exited with a signal.) The command itself runs with stdout and stderr redirected to /dev/null. And yet this: *.* |cat /var/run/program/program.fifo results in the log data going both to the fifo and to /var/log/messages. I really don't want to fill up the messages log with this stuff. Any suggestions? to clear up the confusion: 1) syslogd creates an environment where stdout/stderr are set to /dev/null, invokes sh in that environment, passing it the command string for evaluation/execution. If the command string does *not* redirect stdout/stderr, they are /dev/null.*IF* redirected in he command string, things go where redirected. 2) syslogd writes messages to _every_ destination where the selection criteria match. To accomplish what you want you'll need something like: +remotehost *.* |cat fifo -remotehost {console criteria} /dev/console {'messages' criteria} /var/log/messages {{ etc., etc.}} [ you may need +* on it's own line just before -remotehost ___ 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: just thought of a new gui port!
Date: Wed, 28 Nov 2012 07:26:25 -0800 Subject: Re: just thought of a new gui port! From: Waitman Gobble gobble...@gmail.com On Nov 27, 2012 5:20 PM, Robert Bonomi bon...@mail.r-bonomi.com wrote: Date: Tue, 27 Nov 2012 15:10:50 -0800 From: Gary Kline kl...@thought.org Subject: just thought of a new gui port! 2. I live so close to the airport weather station that im sure that would tell me tons more stuff that I could pick up outside the house. Iremember seeing the weather bureau for the entire US. pretty sure there are global sites with similar data. www.wunderground.com has more than you could want to know. Odds are good that somebody near you has a private weather station on line already. If not, lots of info about weather station equipment with computer interface. wunderground is definitely a great site however at least in my location the temperature can be off as much as ten degrees, its almost like they are reading from a station on top of the mountain, and I.m in the valley. Its an issue of being on the coast I suppose, for example it could be 80 degrees inland but a ten mile drive and your down to 50 degrees. You mean none of the *19* wunderground stations listed as being in San Jose proper, or the =40+= in the metro area, are 'accurate' for your location? http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=San+Jose+California#stations ___ 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: denyhosts, fail2ban, or something else?
From owner-freebsd-questi...@freebsd.org Tue Nov 27 16:26:46 2012 Date: Tue, 27 Nov 2012 17:25:08 -0500 Subject: denyhosts, fail2ban, or something else? From: Aleksandr Miroslav alexmiros...@gmail.com To: freebsd-questions@freebsd.org Finally got sick of seeing tons of ssh break-in attempts in my logs. Am considering using denyhosts, or fail2ban. Anyone have any experience with these? I'm already using the AllowUsers facility of ssh to only allow specific users in, so I'm not overly concerned about the attempts. The single most effective method of reducng such log 'noise' is to run sshd on a non-standard port. Does NOT provide any added security; DOES reduce the noise. virtually _100%_effective_ at noise reduction. fail2ban is painlesss to install/configure. Helps with repeat stuff from he same source. Not much help with 'distributed' sources. I've used it, found non-standard port to be 'good enough for 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: just thought of a new gui port!
Date: Tue, 27 Nov 2012 15:10:50 -0800 From: Gary Kline kl...@thought.org Subject: just thought of a new gui port! 2. I live so close to the airport weather station that im sure that would tell me tons more stuff that I could pick up outside the house. Iremember seeing the weather bureau for the entire US. pretty sure there are global sites with similar data. www.wunderground.com has more than you could want to know. Odds are good that somebody near you has a private weather station on line already. If not, lots of info about weather station equipment with computer interface. ___ 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: newfs -m for large filesystem
From owner-freebsd-questi...@freebsd.org Fri Nov 23 09:31:00 2012 Date: Fri, 23 Nov 2012 16:27:23 +0100 From: Ireneusz Pluta ipl...@wp.pl To: freebsd-questions@freebsd.org Subject: newfs -m for large filesystem Hello, are the remarks given for the -m option in tunefs(8) and newfs(8) still the same for very large filesystems, or the free-space margin might be safely reduced in these cases? For instance, when I have a 12TB filesystem then the default 8% margin gets close to the value of 1TB, which seems like a waste of capacity. the tunefs remarks do apply. especially the threshold for space vs. time optimization. That said, there is nothing detrimental to reducing minfee to 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: portsnap
From: jb jb.1234a...@gmail.com Subject: Re: portsnap Date: Wed, 21 Nov 2012 10:43:30 + (UTC) So, the manual for portsnap(8) is imprecise, actually unfortunate because misleading. The manual/ manpage for portsnap(8) and its use of 'command' is precise *and* entirely consistant with roughly 40(!!) years of Unix documentation history. (see, for instance, the 'mt' manpage, which existed before 6th Edition Unix.) And, of course, if one follows/accepts jb's reasoning, that which follows the '-c' parameter on a shell invocation is not a command. nor is that which follows '-exec' on a 'find' invocation. nor is that which follows the 'exec' command. ` *snicker* ___ 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