Re: cksum entire dir??
On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: how, with mtree, could I tell whether dir1 == dir2 or not? From the manpage: ``The mtree utility compares the file hierarchy rooted in the current directory against a specification read from the standard input. Messages are written to the standard output for any files whose characteristics do not match the specifications, or which are missing from either the file hierarchy or the specification.'' So you run mtree twice, once against dir1 with the -c option to output the specification for the directory tree to stdout (which you can capture to a file, or pipe straight into the second invocation) and once against dir2 with the output of the first one as input (either in a pipeline, or by using -f with the filename of the captured output). Jonathan ___ freebsd-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: cksum entire dir??
On Wednesday 12 September 2012 08:31:45 Matthew Seaman wrote: On 12/09/2012 00:14, Polytropon wrote: % cksum directory [snip] That will give you a checksum on the directory inode -- file names and associated metadata only, not file content. [snip] Generally I find the best test for differences between old and new copies of a filesystem is 'rsync -avx -n ...' Wouldn't suitable applications of mtree(8) also do what's wanted? Jonathan ___ freebsd-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: Warning - FreeBSD (*BSD) entanglement in Linux ecosystem
On Wednesday 22 August 2012 15:41:05 David Jackson wrote: So this is clearly not about portability, FreeBSD is free to implement these software interfaces to assure that software is portable to FreeBSD. Really? You make software portable by writing it to one environment and then changing every other environment to suit the software? I'm not sure software portability means what you think it means. Jonathan ___ freebsd-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: Flaming mailing lists (was Re: Why Clang)
On Friday 22 June 2012 07:04:35 Bernt Hansson wrote: I want to whish all a very mery Midsummer's Eve and Midsummer's Day http://en.wikipedia.org/wiki/Midsummer#Sweden I appreciate the sentiment but it's midwinter here ;) Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Flaming mailing lists (was Re: Why Clang)
On Wednesday 20 June 2012 12:59:51 Stephen Cook wrote: On 6/19/2012 4:06 PM, Anonymous Remailer (austria) wrote: [snip childish invective] I'm a relative newcomer. Are the FreeBSD mailing lists always this flame-y? I realize that this particular post might be trolling / satire No, they aren't. And I notice that whoever is primarily responsible for it isn't even prepared to sign his own name to his tirades - he (or she) is using anonymous remailers. (Irritatingly this makes him difficult to killfile - it turns out there's at least one recent legitimate post that's been sent through a similar remailer so I can't just toss them all away). Jonathan ___ freebsd-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: cat sort(1) sort floating point numbers?
On Monday 03 October 2011 14:05:42 Anton Shterenlikht wrote: I tried sorting a file with a column of floating point numbers (below) with sort(1) -n. However, the numbers seem to have been sorted by the first digit only. sort -g Due to the GNU project's obsession with info (http://xkcd.com/912/), you can't readily find this out from the manpage - but the info documentation available on the web for coreutils describes the difference between -g and -n: [when using -n] Neither a leading ‘+’ nor exponential notation is recognized. To compare such strings numerically, use the --general-numeric-sort (-g) option. Jonathan ___ freebsd-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 the Packages System' international
On Tuesday 16 August 2011 12:13:24 Amanda Lynn wrote: Hi! [snip] Regards, Amanda Lynn +(360) 488-0303 Google the phone number. This has cropped up here before iirc - I'm not sure exactly what the scam is, but scam it is. Jonathan ___ freebsd-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: Established method to enable suid scripts?
On Thursday 12 May 2011 17:26:49 Chris Telting wrote: On 05/12/2011 07:57, Jonathan McKeown wrote: I'll say that again. It is inherently insecure to run an interpreted program set-uid, because the filename is opened twice and there's no guarantee that someone hasn't changed the contents of the file addressed by that name between the first and second open. It's one thing to tell people they need to be careful with suid because it has security implications. Deliberately introducing a well-known security hole into the system would in my view be dangerous and wrong. That race condition bug was fixed in ancient times. Before Freebsd or Linux ever existed I believe. It's a meme that just won't die. People accepted mediocrity in old commercial versions of Unix. I personally am unsatisfied by kludges. That seems somewhat unlikely given, as someone else pointed out upthread, that Perl still comes with a compile-time option SETUID_SCRIPTS_ARE_SECURE_NOW, suggesting that they often aren't. Yes, there are ways to avoid this race condition - the usual one is to pass a handle on the open file to the interpreter, rather than closing it and reopening it. This fix is not present in every Unix or Unix-like OS. In particular (although I'm happy to be corrected if I'm wrong) it's not present in FreeBSD, to the best of my knowledge. Whether there's a reason for that other than lack of developer time I don't know. Jonathan ___ freebsd-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: Established method to enable suid scripts?
On Thursday 12 May 2011 16:13:50 Chris Telting wrote: On 05/11/2011 07:14, Jerry McAllister wrote: On Tue, May 10, 2011 at 05:54:04PM -0700, Chris Telting wrote: I've googled for over an hour. I'm not looking to get into a discussion on security or previous bugs that are currently fixed. Suid in and of itself is a security issue. But if you are using suid it it should work; I don't want to use a kludge and I don't want to use sudo. I'm hoping it's a setting that is just disabled by default. My understanding is that in general the system does not allow SUID on scripts. The way I have gotten around that (a long time ago) was to create a small binary that exec's the script and making the binary SUID. Well it's all hacks and in my not so humble option like chasing your tail. The assumption is that if someone creates an executable (assumption is programming is C) they are more credible not to make mistakes. That's a fallacy and just plain nuts. And I'm an interpreted language snob saying that. Suid is either allowable or not and should be a sysctl and apply equally to binaries and scripts. Yet another thing to add to my project list. Anyone know of an established patch for fix this freebsd issue or am I yet again going to have to create my own? Have you appreciated the issue with suid on scripts? It's nothing at all to do with whether someone writing a compiled language is a better programmer than someone writing an interpreted language. When the OS launches a binary, the file containing the program is opened once. When the OS launches an interpreted program, the file is opened once to find out which interpreter to run, and then the interpreter is told to re-open the same filename - whose contents might meanwhile have changed. I'll say that again. It is inherently insecure to run an interpreted program set-uid, because the filename is opened twice and there's no guarantee that someone hasn't changed the contents of the file addressed by that name between the first and second open. It's one thing to tell people they need to be careful with suid because it has security implications. Deliberately introducing a well-known security hole into the system would in my view be dangerous and wrong. Jonathan ___ freebsd-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: Established method to enable suid scripts?
On Wednesday 11 May 2011 04:19:29 Devin Teske wrote: The reason that the suid bit doesn't work on scripts (shell, perl, or otherwise) is because these are essentially text files that are interpreted by their associated interpreter. It is the interpreter itself that must be suid. I'm pretty sure that's not the case, although I'm open to correction. The reason the system ignores the suid bit on a script is because of what would happen when it's executed: 1) the script is read from a file called filename and the system notices that it needs to be interpreted by another program. 2) that program is launched and told to re-open the file named filename and execute its contents with suid privilege. The problem is a race condition: there's no guarantee that the filename opened by the interpreter in step 2 is the same file the user executed in step 1. There are two common ways round this: ignore the suid bit; or arrange within the OS to pass a handle to the original file rather than a filename so that the script can't be changed out from under the interpreter. Jonathan ___ freebsd-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 with shell script
On Wednesday 12 January 2011 17:58:33 David Scheidt wrote: ps ax | grep [s]lapd | wc -l The [] creates a one-character class that doesn't match the regex. Easier to type and grep should be a bit faster. And you can save another process by using ps ax | grep -c '[s]lapd' Although as others have pointed out, you can also use pgrep. Jonathan ___ freebsd-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 wanted to install vim - had to spend entire day building X11
On Monday 10 January 2011 15:02:35 Ed Smith wrote: This seems bizarre. Logically, it would seem better to do a split like vim (bare vim - what you would expect) and xvim (vim with X11) similar to how emacs does emacs/xemacs. Er, no. xemacs is a fork of emacs. emacs has X-related dependencies unless you make it WITHOUT_X11. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: a perl question
On Tuesday 04 January 2011 12:32:00 S Mathias wrote: cat asdf.txt bla-bla bla-bla bla[XYZ] importantthing another important thing [/XYZ] bla-bla bla-bla [XYZ] yet another thing hello! [/XYZ] bla-bla etc. $ SOMEPERLMAGIC asdf.txt output.txt $ cat output.txt importantthing another important thing yet another thing hello! This could mean almost anything (witness another response which excludes lines containing blah or XYZ, which gives the desired output on your test input). Are you actually trying to extract all the lines inside [XYZ]...[/XYZ] tags? are the tags guaranteed not to occur on the lines you need to extract, as they appear here? Because (all on one line) perl -ne 'print if ($check = m{\[XYZ\]} .. m{\[/XYZ\]}) 1 and $check !~ /E0$/' asdf.txt output.txt produces the same output as you have above for the test input. (The .. range operator in scalar context is true as soon as the left-hand expression is true, and false as soon as the right-hand expression is true. It returns 1 each time it becomes true, incrementing integers as it stays true, and appends E0 to the last number as it becomes false, which lets you exclude both endpoints). Jonathan ___ freebsd-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: Shopping cart other than OSCommerce?
On Thursday 09 December 2010 01:07:38 Kevin Kinsey wrote: Chuck Swiger wrote: You don't magically get immunity from SQL injection by using JDBC or EOF or whatever, but using bound variables in queries rather than feeding user input into raw SQL, or invoking stored procedures or user-defined functions instead will mitigate one of the more common security problems. And these practices are Good Practice in any language, including PHP. I think a big part of PHP's problem was [... documentation] I don't think it was just documentation. Perl, for example, comes with a standard way to access databases, DBI, which has good practices like binding variables in queries, escaping of input and output and so on, baked in. PHP comes with builtin functions for accessing MySQL databases, which do nothing at all to help the programmer make sensible decisions and follow best practice. There are database abstraction modules for PHP as far as I know, but if someone decides not to use them, is it still as hard as it was to do things safely using the builtin mysql_* functions? Jonathan ___ freebsd-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: Glue records (was Re: ATTN GARY KLINE)
On Friday 05 November 2010 22:51:01 Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Fri Nov 5 02:26:31 2010 From: Jonathan McKeown j.mcke...@ru.ac.za To: freebsd-questions@freebsd.org Date: Fri, 5 Nov 2010 10:27:38 +0200 Subject: Glue records (was Re: ATTN GARY KLINE) When a nameserver delegates a zone, it's not responsible for any of that zone's records any more, with two exceptions. It provides NS records to indicate which nameservers /are/ responsible, and it retains responsibility for the A records of nameservers inside the zone - and only those nameservers. (That's glue.) There's no way a .com nameserver should be providing A records for hosts in the .au zone. sure there is. Domain: foo.com (an aussie company) nameservers ns1.alicesprings.au, ns2.umelbourneatperth.au I think we're agreeing violently ;) The nameservers for the .com zone, when asked about foo.com, should reply with the hostnames of the two nameservers. It shouldn't reply with their IP addresses; the only nameservers that can do that are the ones serving the .au zone or the alicesprings.au and umelbourneatperth.au zones. They're still wrong to bw whinging about a lack o glue records. glue is needed _only_ when the nameserver is _in_ the domain it is the authoritative servr for. So, in the above frivolous example, foo.com does *NOT* need any glue records, but if ns1.alicesprings.au is an authoritative server for alicesprings.au, then *it* needs a glue record for that domain. Well, the glue record will be ``above the cut'': if .au delegates alicesprings.au, it's the .au nameserver that provides the A record for ns1.alicesprings.au; but, yes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Glue records (was Re: ATTN GARY KLINE)
On Friday 05 November 2010 09:28:27 Ian Smith wrote: But you don't always have any control of what parent nameservers do; eg we do DNS for a .com but both NS are in .au so DNS reports always whinge about lack of glue They should be whingeing about lack of clue (their own) unless I'm horribly wrong about how DNS works. When a nameserver delegates a zone, it's not responsible for any of that zone's records any more, with two exceptions. It provides NS records to indicate which nameservers /are/ responsible, and it retains responsibility for the A records of nameservers inside the zone - and only those nameservers. (That's glue.) There's no way a .com nameserver should be providing A records for hosts in the .au zone. nonetheless it works, though only after a hunt down through the .au servers, until cached. Yes, this is exactly what /should/ happen. Only the .au servers (or servers they delegate to) are authoritative for hosts in the .au zone. Jonathan ___ freebsd-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: Which OS for notebook
On Tuesday 05 October 2010 13:31:08 Carmel wrote: I have been tooling around with FreeBSD for a year or so now and I find it incredible that there is virtually no support for modern hardware; i.e., drivers for 'N' protocol devices. That one factor alone, and there are others, precludes me from seriously thinking about installing FreeBSD on a new laptop. The one PC that I have FreeBSD installed on is connected via Ethernet cable to my LAN. Once that PC is replaced by year's end with a more powerful, and wireless enabled unit, I am afraid my experiment with FreeBSD will come to a close. At present it certainly will not support the wireless card installed, and I am not even sure if it will support all of the other hardware either. I realize that at this point someone will inevitably chime in and play the blame the manufacturers whine. If that were factually correct, then no one else would be able to supply drivers and support for hardware that FreeBSD has left orphaned. The bottom line is that FreeBSD, if it is to continue to be considered a viable alternative operating system, must stay current in today's market. Many posts that I have viewed on other forums seem to feel that FreeBSD is sadly, whether do to bad choices such as those related to GPL licenses, or failure to properly gage today's market trends, is slipping into an abyss. So. What's the connection between freebsd.u...@seibercom.net, carmel...@hotmail.com and ges...@yahoo.com, who all post through scorpio.seibercom.net, and who all have remarkably similar views on why FreeBSD is a pile of rubbish? And in terms of keeping my killfile reasonably effective, is there any easy way to filter out /all/ the sockpuppets at once? Or do I just need to keep adding them one at a time? Jonathan ___ freebsd-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: Which OS for notebook
On Tuesday 05 October 2010 15:47:36 Pierre-Luc Drouin wrote: On Tue, Oct 5, 2010 at 9:31 AM, Jonathan McKeown j.mcke...@ru.ac.za wrote: On Tuesday 05 October 2010 13:31:08 Carmel wrote: I have been tooling around with FreeBSD for a year or so now and I find it incredible that there is virtually no support for modern hardware; i.e., drivers for 'N' protocol devices. [snip] I realize that at this point someone will inevitably chime in and play the blame the manufacturers whine. If that were factually correct, then no one else would be able to supply drivers and support for hardware that FreeBSD has left orphaned. So. What's the connection between freebsd.u...@seibercom.net, carmel...@hotmail.com and ges...@yahoo.com, who all post through scorpio.seibercom.net, and who all have remarkably similar views on why FreeBSD is a pile of rubbish? And in terms of keeping my killfile reasonably effective, is there any easy way to filter out /all/ the sockpuppets at once? Or do I just need to keep adding them one at a time? Well, according to me FreeBSD works very well on desktops (except for CUDA), but I agree that its usage is extremely limited for laptops and netbooks. If I can't use ACPI or wireless on my laptop/netbook, I don't really see the point... Over the past 6 years I have tried many times to use FreeBSD on my laptops/netbooks but these problems always made me fall back to Linux... I still use FreeBSD as the only OS on my desktop computers though... I'm not disputing that there are things not supported on/by FreeBSD that it would be nice to see working. I'm just getting bored with hearing very similar whinges, posted from multiple email addresses but apparently all from the same person: look at http://lists.freebsd.org/pipermail/freebsd-questions/2009-December/209946.html and then http://lists.freebsd.org/pipermail/freebsd-questions/2009-December/209966.html Both messages are sent from carmel_ny at hotmail.com. They have the identical ascii-art flag in the sigblock. One is signed Carmel (carmel at hotmail.com), the other Jerry (gesbbb at yahoo.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: this is probably a little touchy to ask...
On Wednesday 15 September 2010 13:02:41 Jerry wrote: It took years, literally, before FreeBSD matured enough to get 64-bit drivers for nVidia working correctly on its platform. The failure to get the latest version(s) of Java working correctly on FreeBSD and thereby, at least in my case, make the latest version of Firefox fully usable, rests with the FreeBSD developers. I have not been able to ascertain exactly why Java cannot be made functional on a modern FreeBSD system. Other than receiving some useless suggestion about donating money to the Java foundation, or whatever it is called, nobody has responded with an answer. The bottom line is that Java appears to be functioning on other flavors of *.nix, but not FreeBSD. It would seem pretty obvious where the problem lies. Yes. It lies with Sun and Oracle, and the licensing terms that prevent the FreeBSD project from distributing modified Java packages. More generally, the problem lies with companies who won't support FreeBSD but also prevent the project from supporting their product itself. There are strong commercial interests in Linux - IBM, Red Hat, Oracle, to name three - which makes it worth spending some money supporting a product on Linux. (That goes for other products too: nvidia graphics card drivers, flash, wireless networking device drivers...) Even so there are products that have patchy support in Linux too. FreeBSD isn't as attractive a commercial target, since it has no financially powerful backers (that I'm aware of), a small market share, and not much public awareness. Some companies are prepared to sink resources into supporting it anyway, and others are prepared to release the information needed for the FreeBSD project to support their products for them. There are other companies, as I said, that won't do either. I don't think it's fair to blame the FreeBSD developers for that; nor indeed to expect the FreeBSD developers to be responsible for making Sun/Oracle's Java and the Mozilla Foundation's Firefox work. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Grepping a list of words
On Friday 13 August 2010 15:47:38 Jack L. Stone wrote: The only thing it didn't do for me was the next step. My final objective was to really determine the words in the word.file that were not in the main.file. I figured finding matches would be easy and then could then run a sort|uniq comparison to determine the new words not yet in the main.file. Since I will have a need to run this check frequently, any suggestions for a better approach are welcome. sort -u and comm(1)? comm will compare two sorted files and produce up to three lists: of words only in file one, of words only in file 2 and of words common to both files. You can suppress any or all of the output lists. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to connect a jail to the web ?
On Wednesday 11 August 2010 03:07:32 Rocky Borg wrote: You should probably preface this by saying you're the author of Qjail and have been actively promoting it in a few places including the fbsd forums. That's interesting, given that you're replying to Fbsd8 fb...@a1poweruser.com. The announcement of qjail came from Aiza aiz...@comclark.com. No reason why someone shouldn't use two email accounts, I guess; but I must admit I'd naively assumed fbsd8 was independently endorsing aiza's utility. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Detecting fake library versions
On Thursday 17 June 2010 09:39:37 Matthew Seaman wrote: But what about hard links? I hear you ask. Simple: find /usr/lib /lib -name '*.so.*' -links +2 +1 surely? + modifier in find(1) means ``more than'', not ``at least''. Jonathan ___ freebsd-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: Simulate CRON
On Monday 14 June 2010 13:39:15 Carmel wrote: On Mon, 14 Jun 2010 16:41:19 +0530 Amitabh Kant amitabhk...@gmail.com articulated: On Mon, Jun 14, 2010 at 3:42 PM, Carmel carmel...@hotmail.com wrote: I saw a posting here months ago regarding a way to simulate running a script under CRON. I wrote it down and now cannot find it. Googling has not proved very useful either. I just cannot remember the program name. I hope I am explaining this sanely enough. Are you looking for a cron syntax check? If yes, then this site should be of some help: http://www.hxpi.com/cron_sandbox.php No, sorry. There was a command or program, I forgot which, that would allow a user to run a program under another environment, similar to the environment that a script under CRON would be running under. env(1)? From the manpage: The env utility executes another utility after modifying the environment as specified on the command line. Jonathan ___ freebsd-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: Midphase Hosting
On Thursday 10 June 2010 18:30:52 Matthew Seaman wrote: On 10/06/2010 17:12:50, Jerry wrote: On Thu, 10 Jun 2010 15:12:48 +0200 Jonathan McKeown j.mcke...@ru.ac.za articulated: Isn't that called VERP (variable envelope return path)? I agree - the load it would impose isn't worth it. I'm just shocked that midphase care so little about their reputation or the impression this is giving, on one of the more widely-archived mailing lists, of their competence and diligence. I have employed VERP with mailing lists that I controlled. I never noticed any adverse effects. I know of several technical lists like Dovecot that employ it. Obviously, they find it useful. VERP itself is reasonably lightweight, as it modifies the envelope sender address -- something that can be applied during processing by the MTA as part of sending the message. As far as mail delivery goes, that's a very different story -- it goes from one message with tens of thousands of recipients, to tens of thousands of messages each with one recipient. Exactly - you can't batch up all the messages for users at the same domain because they now have different envelope senders. The impact of that on your mail delivery system (and the receiver's SMTP receiving system) depends on whether you have lots of individual subscribers, or several large groups. Having said that, I looked up VERP last night to check that I was right about the extra load, and came across a reference to VERP being the idea of DJB, and being acceptable to qmail users because there's no penalty load - qmail never batches up messages for the same domain, always sending each one individually. Is that true? It seems an odd design decision to me. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: why does ps |grep sometimes not return itself?
On Thursday 10 June 2010 03:30:14 Pieter de Goeje wrote: On Wednesday 09 June 2010 09:34:40 Matthew Seaman wrote: On 09/06/2010 08:15:23, Eitan Adler wrote: Why do I sometimes see the grep in ps's output and sometimes not see it? When you run that pipeline the OS doesn't start both programs exactly simultaneously. [...] It's a race condition. I would like to add that you can avoid the issue entirely by using this command: % ps aux -p `pgrep sh` [output snipped due to bad wrapping] Or the old trick: ps | grep '[s]h' Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Midphase Hosting
So, it would appear that Midphase hosting are still incapable of working out why their ticketing system is sending replies with forged From: address to posters to the freebsd-questions mailing list. (Their support queue is at mpcustomer.com). I'm assuming the list admins already have examples to work with, but here is a set of headers from the reply I got to my last list post, in case it's any help. Return-Path: freebsd-questions@freebsd.org Received: from mx.ru.ac.za (mx.ru.ac.za [2001:4200:1010:0:250:56ff:fe8d:2ebb]) by imap.ru.ac.za (Cyrus v###) with LMTPA; Thu, 10 Jun 2010 10:05:39 +0200 X-Sieve: CMU Sieve Envelope-to: j.mcke...@ru.ac.za Delivery-date: Thu, 10 Jun 2010 10:05:39 +0200 Received: from secure.mpcustomer.com ([208.43.146.75]:46852) by mx.ru.ac.za with esmtp (Exim 4.69 (FreeBSD)) (envelope-from freebsd-questions@freebsd.org) id 1OMcld-000Eww-H3 for j.mcke...@ru.ac.za; Thu, 10 Jun 2010 10:05:39 +0200 Received: by secure.mpcustomer.com (Postfix, from userid 99) id 4841C1532997; Thu, 10 Jun 2010 02:46:31 -0500 (CDT) To: Jonathan McKeown j.mcke...@ru.ac.za Subject: [#24548754] Re: why does ps |grep sometimes not return itself? Date: Thu, 10 Jun 2010 02:46:31 -0500 From: freebsd-questions@freebsd.org Reply-To: supp...@mpcustomer.com Message-ID: e436b556aafa1c4bd0f2c367a0097...@secure.mpcustomer.com X-Priority: 3 X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4] X-Uberinst: uber_phase-support X-Mailer: Ubersmith MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ___ freebsd-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: Midphase Hosting
On Thursday 10 June 2010 14:06:46 Rob Farmer wrote: On Thu, Jun 10, 2010 at 4:24 AM, Matthias Fechner ide...@fechner.net wrote: Hi, Am 10.06.10 11:47, schrieb Jonathan McKeown: Subject: [#24548754] Re: why does ps |grep sometimes not return itself? Date: Thu, 10 Jun 2010 02:46:31 -0500 From: freebsd-questions@freebsd.org Reply-To: supp...@mpcustomer.com Message-ID:e436b556aafa1c4bd0f2c367a0097...@secure.mpcustomer.com I suggest to block on the freebsd server the complete domain mpcustomer.com that should solve the problem. I haven't received any of the messages, but I think they are being sent directly to list posters (not via the list) so FreeBSD can't really do much about it. If mpcustomer.com refuses to deal with it you can always try complaining to their upstream provider, taking the line that since the messages are unsolicited and there is no way to unsubscribe the practice is probably illegal. Well, yes, the message is being sent direct to list posters, but supp...@mpcustomer.com (or some address that's relaying to it) is presumably subscribed to the list (which I'm guessing was done maliciously), otherwise they wouldn't be receiving these messages. I know it creates work for the admins, but couldn't their address be unsubscribed and banned, given that they have been creating a nuisance for at least the last several weeks now? Jonathan ___ freebsd-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: Midphase Hosting
On Thursday 10 June 2010 14:51:42 Rob Farmer wrote: On Thu, Jun 10, 2010 at 5:32 AM, Jonathan McKeown j.mcke...@ru.ac.za wrote: [rant about midphase hosting and mpcustomer.com] They posted in a previous thread about this, saying they couldn't unsubscribe under their address, ie. somebody is relaying mail to them. They were told they need to provide headers so postmaster can determine what address is subscribed. They never replied (at least on list). I'm not an expert about such things but I think without their cooperation there's no real way to tell who the relay is. So this is a hosting company that has had (assuming everyone else is having the same experience as I am, namely one ticket per posting) almost 500 junk tickets added to their support queue in the last ten days (476 messages on the freebsd-questions archive for June when I checked a moment ago), and either can't think of a way to address the issue, or doesn't actually care enough to do anything about it, all the while presumably having real support requests swamped in the noise? I'd be jumping up and down looking for a solution by now (in fact I would have been weeks ago - can anyone remember how long this has been happening?). Jonathan (I should probably stress that I am not speaking on behalf of my employer and my opinions are entirely my own). ___ freebsd-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: Midphase Hosting
On Thursday 10 June 2010 15:04:53 Matthew Seaman wrote: The only other mechanism might be to tag each list e-mail with a unique value for each recipient in such a way that it is preserved in the message that mpcustomer.com's help system sends out. That has severe problems of scale and load on the FreeBSD mail servers, but it might be possible. There is a similar technique (whose name I have temporarily forgotten) that some mailing lists use where they tag the envelope sender address with the recipient name in order to identify addresses that are bouncing back the list e-mail. Isn't that called VERP (variable envelope return path)? I agree - the load it would impose isn't worth it. I'm just shocked that midphase care so little about their reputation or the impression this is giving, on one of the more widely-archived mailing lists, of their competence and diligence. I'll shut up now. Jonathan ___ freebsd-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: Fwd: [#24525016] External USB drive causes system to hang completely
On Sunday 30 May 2010 22:29:14 Alejandro Imass wrote: Hi all, I sent a question regarding a problem with USB and I get this in reply. Can someone explain? Thanks, Alejandro Imass Yes. There's a hosting company called MidPhase whose support queue (at mpcustomer.com) has been added (probably maliciously by some kiddie that thinks it's clever) to the mailing list. They appear either not to know how to stop their ticketing system responding to list emails, or not to care. Either way, it's not a great advertisement for them, as this has been going on for several weeks now with no improvement. Jonathan ___ freebsd-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: usage of /usr/bin
On Wednesday 07 April 2010 11:13:13 Fbsd1 wrote: Polytropon wrote: On Wed, 07 Apr 2010 15:24:51 +0800, Fbsd1 fb...@a1poweruser.com wrote: Why are there RELEASE base files in /usr/bin. I thought /usr was to only contain binaries installed from ports or packages. No. The /usr/local subtree (LOCAL) is for local additions (ports and packages), while things outside this structure usually belong to the system itself; I'm excluding mounted filesystem and other things here for a moment. [snip] But that is not true. The postfix port populates /usr/bin. I haven't installed postfix, but is this possibly related to the recently (2010-03-22) added option to install postfix into the base? In which case the commit six days later claims to correct a problem with the default (non-base) install. Jonathan ___ freebsd-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: Postfix in base system
On Wednesday 07 April 2010 13:34:07 Jerry wrote: I noticed that someone in another thread mentioned: quote (2010-03-22) added option to install Postfix into the base /quote I have not been able to locate that item. Could someone list the URL for that notice or tell me where to look for it? :-? Thanks %-\ I found it in the cvsweb interface to the ports tree: http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/postfix/Makefile Which lists rev1.155 with the commit message: Add an option to install into the base, and related support HTH Jonathan ___ freebsd-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, postfix and push email
On Tuesday 30 March 2010 09:31:00 Matthew Seaman wrote: On 30/03/2010 03:01:27, Tim Judd wrote: I've never heard of either, but when I configure my IMAP server and put any mail client to it, as soon as a mail is delivered, the mail client is notified. That's the IDLE extension to IMAPv4 -- it's not a push protocol as such: the client still has to log into the server rather than vice versa, but once the client has read all the available e-mail, it can put itself into an idle state, and the server will wake it up as soon as any new e-mail comes in. Yes. In fact, one of the nice things about IMAPrev4 as a protocol is that the server is allowed (in fact, required by rfc3501) to notify the client if the mailbox size increases while executing any command, by sending an EXISTS response which the client is required to handle. IDLE is just a command that takes a long time to execute (specifically, until the client ends it or the server's time limit is reached) so that the server has to send EXISTS responses whenever mail comes in. Jonathan ___ freebsd-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: Booting MFS from Secondary Partition
On Saturday 06 March 2010 15:02:20 Martin McCormick wrote: Fbsd1 writes: just dd the image to what ever drive you want That is the goal. The challenge is to launch a script that detects when the boot device has been unmounted as dd will not work on an active file system. Martin it may or may not work, but there's a sysctl for the geom subsystem which might do what you want. sysctl kern.geom.debugflags=16 This used to be used (for all i know still can be) to allow writing metadata for (eg) building a gmirror on a mounted disk - it's often referred to as the ``allow-footshooting'' flag. That might allow you to dd your image onto the mounted disk - i'd either try it with a handy spare system or wait for someone more expert than i to comment, though. Jonathan ___ freebsd-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 get hints of software installed by Ports ?
On Friday 05 March 2010 16:20:36 Aaron Lewis wrote: Hi, I installed some software from ports today , and it outputs some useful information when finished. e.g where its config file is Due to some mistakes , i lost these important information , how do i see it again ? Is there any tricks to show out it directly ? I don't want to install it again .. Any ideas will appreciate ;-) pkg_info -D ___ freebsd-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: Perl 5.8 - 5.10 On Current Production System
On Thursday 04 March 2010 19:13:36 Matthew Seaman wrote: You got bitten by an ill-considered change introduced after the UPDATING instructions were written. To work around it, you need to set DISABLE_CONFLICTS when rebuilding the port, eg like this: # portupgrade -m DISABLE_CONFLICTS=yes -o lang/perl5.10 -f perl-5.8\.* Please feel free to complain volubly about this: it's hand-holding for newbies which annoys and incoveniences the vastly larger number of non-newbies (ie. anyone who has been using the ports for more than a few weeks.) Has this absolutely ludicrous change not been reverted with extreme prejudice yet? And is there a PR where we can add interesting suggestions as to what miseries should be inflicted on the person responsible for 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: Dislike the way port conflicts are handled now
On Sunday 17 January 2010 10:24:43 Matthew Seaman wrote: Ion-Mihai Tetcu wrote: I'd be very happy if I could: - fetch the distfiles, even if I have a conflicting port installed - be able to use portmaster -o to switch from one port to an other one that conflicts with it. - be able to at least compile a port (eg. for testing) without having to de-install the current one. I'm all in favor of restoring the old behavior with a switch available to turn on the new one. +1 Although a big fat warning message at fetch or build phase when operating on a port with conflicts wouldn't go amiss. I'd agree with this too. The idea of the change seems to be to protect people from wasting time downloading and building something which they can't install without resolving a conflict. How exactly was that wasted time? Surely you don't download and build a port you're not going to install? What the change actually does is penalise people who want to download and build regardless of conflicts, to reduce the time between uninstalling the conflicting port and being able to install the replacement. This seems to me to be a very badly thought-out change which should be reverted. Jonathan ___ freebsd-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: Dislike the way port conflicts are handled now
On Monday 18 January 2010 17:48:37 b. f. wrote: Argh! Stop! I wish that people who felt the need to add to this thread would read the prior posts beforehand, and consider their comments before posting. I don't know why you assume people didn't. I read the whole thread. I saw people who had individual special requirements, but I didn't see anything that suggested I was wrong in assuming the most common use case, by far, to be downloading and building a port in order to install it. Assuming that *is* indeed the commonest use case, this change makes life a little more difficult for almost everyone in order to save possibly as much as tens of minutes of wasted time for a few people. Worse than that, the new behaviour either increases downtime (by requiring that the conflicting port be removed before even starting to download the replacement) or requires, as you pointed out, setting a risky option which if accidentally misused, could break the whole system. I still think it's an ill-considered change for the worse to make the new behaviour the default. Jonathan ___ freebsd-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: 8.0: OpenSSL stat()'s NLS 500+ times causing extreme system load
On Tuesday 15 December 2009 23:24:16 Linda Messerschmidt wrote: On Tue, Dec 15, 2009 at 12:53 PM, Dan Nelson dnel...@allantgroup.com wrote: It's defined in src/lib/libc/Makefile, so you should be able to remove that line, rebuild libc and reinstall, and see whether your performance issue goes away. I tried that and as you predicted, all the bogus stat calls went away. Unfortunately the performance issue did not. :( Back to the drawing board for me! Upon further inspection, it seems as though for each check, Nagios spawns a process that spawns a process that spawns a process that runs the check. I did ktrace -i -t w -p (nagiospid) on Nagios for 30 seconds and the ktrace output contained records from 2365 different processes spawned in that 30 seconds. During that time, I would expect about 800 checks to have run, so it does seem like it's right at 3 processes per check. I just don't think the system can keep up with all that fork()ing without going all out; it's just a limit of the Nagios plugin architecture. You've probably already spotted this, but this behaviour is documented in largeinstallationtweaks.html: ``Normally Nagios will fork() twice when it executes host and service checks. This is done to (1) ensure a high level of resistance against plugins that go awry and segfault and (2) make the OS deal with cleaning up the grandchild process once it exits. The extra fork() is not really necessary, so it is skipped when you enable this option. As a result, Nagios will itself clean up child processes that exit (instead of leaving that job to the OS). This feature should result in significant load savings on your Nagios installation.'' It can also be enabled separately in nagios's main config file - child_processes_fork_twice is the option to look for. Jonathan ___ freebsd-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: black hole test
On Wednesday 16 December 2009 22:05:06 Peter Wemm wrote: Daignostic message to trace mailing list processing, please ignore. You have heard of freebsd-test@ , haven't 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: upgraded to 8, no mouse is broken
On Friday 11 December 2009 08:17:06 Polytropon wrote: On Thu, 10 Dec 2009 21:38:04 -0700 (MST), Warren Block wbl...@wonkity.com wrote: Please see the Handbook section on X11 configuration instead: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html Just a side question: 5.4.2 Note 2 § 5 states: You will have to reboot your machine to force hald to read this file. which refers to /usr/local/etc/hal/fdi/policy/x11-input.fdi that re-enables Ctrl+Alt+Backspace to kill X. Is it really, really needed to reboot the machine? Can't HAL just be restarted? I always thought reboot to make a minor setting work was the domain of Windows... At the risk of me-tooing, I also wondered about this. It seems insane to have to restart the OS and hardware to reread a config file. ___ freebsd-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: [] confession...
On Tuesday 24 November 2009 09:15:43 Gary Kline wrote: it's time to come clean an admit that i have never taken advantage of the option that lets you press [???], then press other keys in order so the result is like pressing multiple keys at once. i have never made a big deal over having but one useful hand simply because in my line as a hacker, one hand was enough. programming at 95mph was never the goal. everybody on this list has learned that forethought and planning beat typing speed! ---still, when my shoulder began to dislocate in 1999, typing thr number-shift keys [like '*', '', '^', and the rest became harder [*]. i'm ready to set up the multi-key stuff that's built in to at least KDE. appreciate a pointer to a url or tutorial on this... and/or to know what this feature is even called. it's time to get practical. i am stubborn, just not particular stupid. maybe slow :_) If you're using KDE3.5, look for Regional and Accessibility|accessibility under the Control Centre. There are two options, and I think the one you need is called sticky-keys, which makes the modifier keys (shift, alt, ctrl) ``stay pressed'' until you press another key. In other words, you can type the old three-fingered salute by pressing and releasing ctrl, pressing and releasing alt, and then pressing and releasing del. There's also an option called ``lock sticky keys''. If you choose this, the sequence of separate press-releases: shift a b results in Ab (the shift only applies to the next key pressed) whereas the sequence shift shift a b c shift d results in ABCd (double-shift locks shift key on until it's pressed again). (The other options, slow keys and bounce keys, apply if muscle control is impaired and cause a key to have to be held for a set time before it registers, and released for a certain time before registering a second key-press). Jonathan ___ freebsd-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: Merging Related Information from 2 Tables
On Thursday 29 October 2009 20:44:12 Martin McCormick wrote: Giorgos Keramidas writes: You should use a Perl or Python script, and a hash... If you show us a few sample lines from the input file and how you want the output to look, it shouldn't be too hard to quickly hack one of those together. The alternative is to use join(1). A records look like: hydrogen.cis.osu. 43200 IN A 192.168.2.123 Text or TXT records look similar [...] hydrogen.cis.osu. 5 IN TXT cordell-north,009,192.168.2.123 This will work well since the default join field is the first field in the line. Jonathan ___ freebsd-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 sendmail is part of the system and not a package?
On Thursday 29 October 2009 21:58:54 Lars Eighner wrote: On Thu, 29 Oct 2009, Ruben de Groot wrote: sendmail is NOT a legacy application. It's actively being developed ON FreeBSD. Actually, the maintainer(s) are doing a great job Bullshit. Why does sendmail call up the internet during boot? If it needs to know who it is, why can't it look in hosts? Since it cannot be trusted to send mail, what does it need to know from the internet? It has been horribly broken for the 15 years or so that I have run FBSD, and this m4 stuff is a pile of crap. There is no documentation whatsoever. Unless you buy a book from O'Reilly and line the pockets of the maintainer(s). Why can't it be a option to configure the system without it? Not any money in that, is there? This is exactly the sort of ill-informed religious rant that always comes up when sendmail is discussed, and makes me wonder why some people are so vehemently anti-sendmail that they feel the need to say things which are only marginally true if that. My laptop boots quite happily without an Internet connection, so it's simply not true to say that sendmail always calls the Internet during boot. Have a look at /usr/share/sendmail/cf/README, and at /usr/src/contrib/sendmail/doc/op (where you can make the sendmail operations guide in a variety of formats including pdf) and you'll realise that your claim that there's no documentation is also flat-out false. I've got the Bat book (in fact I've got *looks at bookshelf* the 2nd and 3rd editions). I almost never look at them any more because I can find what I need in the documentation provided with sendmail. No-one is asking you to use sendmail, or even to like it, but please don't lie about it; and if you don't want sendmail in the base system, do as several people have suggested, pull your finger out and do the work to fix it. Jonathan (Just in case, I should probably point out explicitly that, as usual, I don't speak for my employer: this is an entirely personal opinion). ___ freebsd-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 sendmail is part of the system and not a package?
On Monday 26 October 2009 21:29:27 Yuri wrote: It's in /usr/sbin/sendmail. How many people actually use it? Very few. Why isn't it moved to ports? What is this anti-sendmail obsession people have? Almost everyone I've ever spoken to about why they dislike sendmail trots out a bunch of cliches based on sendmail 8.8. People, we're up to sendmail 8.14 now. Get over it! Just as a matter of interest, if you want to rip sendmail out of the base system, which MTA would you like to replace it with? Or are you suggesting the system ship with no way to handle mail? Jonathan ___ freebsd-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: NTP Client synchronization with a Windows 2003/2008
On Wednesday 14 October 2009 18:04:41 Jacques Henry wrote: Alternatively, from the commandline try ntpd -g -q -c /etc/ntp.conf The -g flag allows ntpd to set the clock once regardless of the offset and the -q causes it to quit after setting the time. I tried this command without success... I can see the NTP packets (client and server) but the clock is never set Are you running with an elevated securelevel? ___ freebsd-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: NTP Client synchronization with a Windows 2003/2008
On Tuesday 13 October 2009 18:44:57 Jon Radel wrote: Jacques Henry wrote: I commented the commands involved and nothing changed... (with only 10 minutes of time difference) The 19 minutes between when I sent my suggestions and you responded is hardly enough time to see if ntpd was slewing the time. Slewing 587 seconds takes days. I even tried to force the sync: U450XA0A0800650nstop ntp U450XA0A0800650ntpd -x -n -q -c /var/ntp.conf U450XA0A0800650nstart ntp Are you sure that -x in there, telling ntpd to not step unless the offset is over 600 sec, doesn't override what you're trying to do with the -q? How about you try simple: ntpdate the_windows_server and see what that does? After that look in /var/log/messages. In fact I am still quite convinced that the MS implementation isn't totally compliant with the client... Could be, but ntpq was showing that your ntpd was accepting time data from the Windows server at least on some level. Alternatively, from the commandline try ntpd -g -q -c /etc/ntp.conf The -g flag allows ntpd to set the clock once regardless of the offset and the -q causes it to quit after setting the time. In /etc/rc.conf, all you should need is ntpd_enable=YES ntpd_sync_on_start=YES The second option adds -g to the ntpd flags, allowing it to set the clock at startup and continue running. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Killfiles (was Re: reporter on deadline seeks comment about reported security...)
On Wednesday 16 September 2009 16:59:27 Paul Schmehl wrote: --On Wednesday, September 16, 2009 06:08:50 -0500 Jerry ges...@yahoo.com The backscatter is useful in a way, in that it confirms that my original reasons for applying an ignore filter on Jerry's email address still apply, but I wish a few more people would just ignore him as well. If he's not trolling for angry responses, I find it hard to see what he's doing here at all, given how little good he has to say about FreeBSD or the people involved with 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: remove newlines from a file
[Agghh. To list this time] On Tuesday 01 September 2009 20:03:19 Paul Schmehl wrote: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? I'd use rs(1). inputfile rs -C\ (The \ is escaping a space delimiter.) unless I was worried about maximum length of output lines, in which case inputfile xargs Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: questions about FreeBSD
On Monday 31 August 2009 17:00:07 Jerry McAllister wrote: Same response. Do your homework. The nature of the OP's questions strongly suggested that we are doing his homework. I'm surprised so many people spoonfed the answers rather than pointing to resources like the handbook, as the first responder did. ___ freebsd-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: SUID permission on Bash script
On Friday 28 August 2009 10:54:19 Giorgos Keramidas wrote: On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo jeronimocal...@googlemail.com wrote: Hi folks! Im trying to set up a reaaallly basic scrip to allow one user to shutdown my machine without root permisions, seting up SUID as follows: [snip] The good thing is that you don't need a shell script to do that. You can install `sudo' and give permission to the specific user to run: sudo shutdown -p now Or (assuming it doesn't grant too many other privileges) just put the user in group operator. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: what www perl script is running?
On Wednesday 26 August 2009 15:44:41 Adam Vande More wrote: [450 lines including multiple signatures and twelve levels of quoting, all to say:] Specifically what am I confused on? Or are you just going to continue with the personal attacks? You've offered no technical rebuttal, simply insults. Please, take it to email - or at least learn to trim (ideally both). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: what www perl script is running?
On Monday 24 August 2009 10:07:50 Olivier Nicole wrote: Is there a command like fuser or lsof which can be used to determine what files this perl instance is using? Any other ideas on how to figure out what is going on here? lsof is in the ports. and fstat(1) is in the core. ___ freebsd-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 for the common man(or woman) (was: upgrade 7.2 overwrites partitions)
On Thursday 06 August 2009 09:43:47 Mark Stapper wrote: In light of this, I would really enjoy seeing a Ubuntu like movement in the FreeBSD corner. What I mean is that it would be nice for my mother to install and use FreeBSD. [snip] To achieve this, there are two things that should be made easier: 1. Installing a basic desktop system(next to any currently installed OS) 2. Keeping the base system and ports up to date. And when I mean easier I mean it should be done without bothering the user unless you about to rm -rf / as root, so to say. This is what a couple of projects are already doing. PC-BSD springs to mind - I can't remember what the other one is called. PC-BSD is FreeBSD, pre-packaged with a usable desktop and its own simplified package manager. Jonathan ___ freebsd-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 designations terminology confusion -- amd64 used for into quad core
On Wednesday 05 August 2009 15:14:49 David Southwell wrote: Hi every one My understanding is that one uses the amd64 for building a kernel for systems with Intel Quad Core processors. It is helpful when naming conventions follow a logical strand. I mean why does freebsd use a single manufacturer's name to represent a genre? Because it's technically correct, as I understand it. Unless I've got this wrong (in which case I'm sure someone will shout), there were initially two 64-bit instruction sets, amd64 from AMD and ia64 from Intel. ia64 saw so little uptake that Intel started using the AMD instruction set, but amd64 is still the appropriate description for most 64-bit processors these daya regardless of manufacturer. Jonathan ___ freebsd-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: upgrade 7.2 overwrites partitions
On Wednesday 05 August 2009 15:49:38 PJ wrote: Polytropon wrote: On Mon, 03 Aug 2009 10:58:58 -0400, PJ af.gour...@videotron.ca wrote: Could somone explain to me why an upgrade from sysinstall would overwrite partitions; especially when the instructions indicate that files will not be overwritten? I'm not sure how to explain. It's possible that sysinstall recreated the slices and paritions, or at least the partitions were marked as to be formatted (Y after the file system type in the partition editor). Because I've never used the Upgrade functionality of sysinstall, I'm not even sure what it is supposed to do. Well, whatever it was it sure screwed up my system You screwed up your system. Possibly that started when you tried to use freebsd-update with a non-GENERIC kernel, but you then thrashed around, apparently ignoring most of the help you were offered on this list and getting into more and more trouble, while never explaining exactly what you were doing. This is the textbook example of how not to report a problem: the whole machine became un bootable when some xcb or something like that could not be loaded because of some problem with a python port. Even so, several people put time and effort into helping you, and suggesting ways you could reach a quicker solution when you made it clear what your personal effort limit was. Due to diligence and a great deal of my time, I managed to save all the files that were on the system and recovered the XP disks so everything can now be re-installed and used. Actually, it was also a great deal of time donated by other busy people around the world. The only victim in the end is FreeBSD as I will never touch it again. It has been going downhill since way back; but I think I just preferred to stay with my illusions and tolerated the waste of time and effort reconfiguring, searching for answers and reinstalling, rebooting and the whole shebang under the aura of learning. So learn I did. Don't touch it; it sucks. There are other systems better than FBSD, so g'bye all. :o :-P ``I can't use it, therefore it's rubbish''. That's fine, no-one forced you to use FreeBSD in the first place and I doubt anyone minds that you don't want to use it any more. Personally, I do think it's a pity, because FreeBSD (in my experience, since FreeBSD 4.5) is stable, easy to use (once you have the basic Unix concepts on board), and astonishingly well-documented. It's also supported by one of the friendliest and most knowledgeable communities I know. I don't recognise FreeBSD or its user community in your description and I hope your tirade, on an extremely publically archived mailing list, doesn't put other people off trying it. Having said all that, I wish you well and I hope you find a system which suits you better than the one you have trashed. Jonathan ___ freebsd-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 boot or access problem file system
On Thursday 30 July 2009 23:14:39 PJ wrote: But isn't it strange that it used to be pretty simple to upgrade and update. But recently, I notice that communication between the developers and users (or is it the manual page writers) are getting far away from the realities of user/operational needs. Oh, what's the sense of beating a dead horse, mechanics will never be writers... let's not kid ourselves. I may be misunderstanding what you've been saying over the last couple of days (I can understand your frustration, but your questions would be much clearer if you didn't let it spill over into chippy remarks about FreeBSD like the above). Let me summarise what I think you've said, and what I think it means, and please, correct me if I'm wrong. You run a custom kernel, and you decided for your latest system upgrade that you would use freebsd-update, which as far as I know doesn't work with custom kernels. You discovered this and tried to move your custom kernel aside and put a GENERIC kernel in place for the upgrade, rebooted in the middle of the process, and now when you try and boot up, your system can't find a kernel - which is why the bootloader is asking you to tell it where to look. If that's the case, your data should all still be there in the original slices/partitions (others have told you how to check that). You are likely to struggle to get the system booted unless you can work out where to direct the bootloader to find a kernel, but you may well be able to inspect the data on the disk if you boot a LiveCD (which is a version of FreeBSD that runs from the CD - there's one in the release set). Given the problems you've encountered so far, and the level of effort and learning that's acceptable to you in your situation to try and resolve it, I would suggest you go and buy a new hard drive (they're not expensive these days compared with the cost of your time), and fit it alongside your messed-up drive in your computer. You can then do a fresh install on the new drive, get everything set up the way you want, and then retrieve the data from the old hard drive (various ways to do this: mounting the drive and simply copying files, dump and restore of complete filesystems, etc). You've also thrown in a new problem, which is that X doesn't recognise your mouse. Unfortunately, that doesn't have much to do with FreeBSD. It's a result of a decision by the X developers to require a hardware abstraction layer - you probably need to enable hal and dbus. Googling will put you on the right track. Jonathan ___ freebsd-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: Automatic screen lock when leaving desk
On Wednesday 15 July 2009 12:45:02 Matthew Seaman wrote: I used to be a NeXTie, and the Screensaver.app there had a really nifty little feature. I'm surprised it's not been copied into other screensaver applications since, as it's pretty simple. They just had a facility where moving the mouse cursor to one corner of the screen and leaving it still for a few seconds would cause the screen saver / screen lock to come on straight away. Conversely you could designate another corner of the screen as don't turn on screensaver even after an extended period of idleness. Being a NeXT app this was all configurable by dragging little '+' or '-' icons around a scaled down image of the screen, or off it entirely if you didn't want that facility. KDE 3.5 provides this feature - it's under Advanced Options on the screensaver configuration. ___ freebsd-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: FTP Server for individual client spaces
On Friday 10 July 2009 16:10:24 RS Wood wrote: I run a small engineering company* that exchanges large files (CAD, etc.) with clients, and I want to keep the docs off my email server by setting up a stand alone FTP server where each client can upload and download its relevant files. As such, my own users/employees should be able to reach every client’s FTP space but each client should only be able to reach his own. As my users finish a doc, they place it in that client’s FTP directory and the client can log in and get it. As such, I don’t want any form of unauthenticated FTP. [snip] Is the solution ftpchroot? If so, it’s not clear how I can chroot each potential client into his own directory, as my understanding is that all chrooted users wind up at the same place (like /var/ftp/pub). Or is the solution that each client gets access to his own home directory; if so, how do I ensure my staff has access to each client’s home directory? I haven't tried this, but man ftpd.conf suggests something along the lines of: chroot chroot /some/path/%u where the second chroot is the ftp class, and %u will be expanded to the username. Make sure all your external users are in ftp class chroot (by putting their usernames in /etc/ftpchroot), and make /some/path group-owned and group-readable by a group all your staff are in (the group ownership of a directory automatically propagates to new directories created below it). Let us know how it goes! Jonathan ___ freebsd-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: POLL: Linux preferences from FreeBSD users
On Thursday 02 July 2009 07:21:25 Polytropon wrote: On Wed, 1 Jul 2009 18:58:15 -0400, Daniel Underwood djuatde...@gmail.com wrote: QUESTION: Of the various modern Linux distributions, which do you prefer? and why? Actually, I'm not a Linux user. But Linux was my first step into using UNIX on a x86 PC. More than 10 years ago, I started with Slackware Linux, and with the rise of FreeBSD 4.0, I did abandon it. I was wondering if there were any other Slackers out there! I've still got my first Linux distribution, and possibly my first FreeBSD release too: I bought the Walnut Creek 4-CD box of Slackware 3.6 in a little shop in the West End of London, and a couple of years later, the boxed set of FreeBSD 4.5 from either the Linux Emporium or CheapBytes (can't remember which). Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Editor in minimal system (was Re: The question of moving vi to /bin)
This whole thread only really got started because I questioned Manish Jain's assertion that there was no editor available in /bin. To summarise: There are several editors available ranging from ed (49604 bytes) and ee (60920 bytes) (both with two library dependencies) to emacs (in ports; 5992604 bytes and 50 library dependencies in my installation) and probably beyond. One of them, ed, is available in /bin and therefore in single-user mode. Two of them, ed and vi, are available in /rescue and therefore in single-user mode even when something horrible happens and libraries are broken (although /rescue/vi is currently slightly broken itself due to the termcap issue which is being fixed in -CURRENT and I hope will be MFC'd). Anyone who wants /usr/bin/vi available in single-user mode can install FreeBSD with one large partition; or mount /usr once in single-user mode. The original poster suggested that the fix for not having vi in /bin was not to have any editor at all in /rescue, which comprehensively misses the point of /rescue. The only argument that's been advanced for moving vi seems to be ``vi should be in /bin because that's how I want it''. I find that argument unconvincing, but it's not up to me. I'm open to a sensible argument, if anyone has one. Jonathan ___ freebsd-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: The question of moving vi to /bin
On Wednesday 24 June 2009 12:59:13 Manish Jain wrote: About ed first. I might annoy a few people (which would gladden me in this particular case), but ed was just one of Ken Thompson's nightmares which he managed to reproduce in Unix with great precision. By no stretch of imagination would it qualify as an editor, because an editor can meaningfully edit only what it can first show. And ed has never had anything to show. A modern operating system like FreeBSD should really be kicking ed out of the distribution completely : bad ideas don't have to be necessarily perpetuated just for the sake of compliance with the original concept of Unix. Hold on. I didn't claim it was a *good* editor - I was reacting to your suggestion that /bin didn't contain an editor at all. ed(1)'s interface is certainly minimal, but it's easy enough to list lines in the file you're editing, contrary to what you seem to be saying - to list every line of the file, try the two characters , l. However, if you want a more visual editor, perhaps /usr/bin/ee (which is just over 10K bigger than /bin/ed) would do? You also suggested doing away with ed and /rescue/vi altogether. You may not need statically-linked tools very often, but when you do need them, you *REALLY* need them. Don't suggest throwing them away without thinking through the implications. Jonathan ___ freebsd-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: No sound, no mouse and now X applications won't start
On Tuesday 23 June 2009 15:41:48 Manish Jain wrote: I hope the next release will address these problems, as well as a pretty reasonable request from me much earlier to move vi from /usr/bin to /bin. Even in single-user mode, you almost always need an editor. Which is why you have ed(1) - both in /bin and in /rescue - and /rescue/vi (although that needs a bit of tweaking due to the /etc/termcap problem). Bear in mind that /usr/bin/vi is over 300K, compared to the whole of /bin which is ~950K (if you avoid double-counting entries like /bin/csh and /bin/tcsh which are hardlinks to the same file), so you need to convince people who think /bin should stay small to let it grow by a third to save people learning ed(1). Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Compiling in sound driver in kernel
On Friday 12 June 2009 12:54:19 Polytropon wrote: On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson be...@bah.homeip.net wrote: Mel Flynn said the following on 2009-06-12 01:23: FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC Yes. Added sound and snd_hda Polite note: This is NOT the way to create a custom kernel. The handbook mentions that it's advised to create a copy of GENERIC and work with that. Just to emphasise this point: look at the other kernel configs supplied with source. They tend to include GENERIC, and then have a small list of changed options. Messing about with GENERIC is not a good idea. Jonathan ___ freebsd-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: Need a filesystem with unlimited inodes
On Wednesday 10 June 2009 21:06:06 Karl Vogel wrote: Create 256 folders named 00-ff: #!/bin/sh hex='0 1 2 3 4 5 6 7 8 9 a b c d e f' for x in $hex ; do for y in $hex ; do mkdir ${x}${y} done done exit 0 Or use jot(1) instead of two for loops: for i in `jot -w %02x 256 0`; do mkdir $i; done To see the output of the jot in a readable format: jot -w %02x 256 0 | rs 0 16 Jonathan ___ freebsd-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
On Monday 08 June 2009 17:37:14 Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: [snip] * * 31 1/2 * * * 30 4/2 * * * 28 2 * This isn't right, surely? It goes wrong in August and stays wrong for the rest of the year. The 31-day months are 1,3,5,7,8,10,12. Don't forget leapyear. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: What's wrong with this picture?
On Saturday 06 June 2009 05:43:15 Charlie Kester wrote: On Fri 05 Jun 2009 at 15:06:40 PDT Paul Chvostek wrote: If you elect to filter this person's traffic, and are concerned that you'll continue to be inundated with replies, I'd like to suggest a small procmail script I wrote years ago. http://www.it.ca/~paul/s/procmail-filter-msgid It caches the message-id of the troll's posts and filters the message (redirect or bitbucket). It then caches the message-id of any message that includes a cached message-id in its headers (i.e. In-Reply-To, Refererences) and filters that too. The effect is to hide not just the troll's mail, but all the conversations he starts. I haven't actively used this thing since 2003, but procmail hasn't changed much in that time either. Hope it helps. Thanks, I'll give it a try. One thought however. If I'd already filtered this thread, I would have missed helpful tips like yours. I guess that's the price that has to be paid. Unless you're absolutely certain someone is never going to talk sense, I reckon the backscatter is quite useful, to keep an eye on what the killfiled person is talking about and how people are reacting. Killfiling whole threads automatically because a particular person has joined in is a drastic step. Jonathan ___ freebsd-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: n00b question regarding installation via serial console
On Thursday 04 June 2009 17:28:56 Tim Judd wrote: On 6/4/09, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: Hello list, Is it possible to boot into the serial console from the installation CD, or must boot.flp be used as per make your own CD add file boot.config containing just one line: -P to existing, make sure you it's bootable (mkisofs -b boot/cdboot -no-emul-boot) and record refer to man boot.config Unless things have changed since I last did this, this isn't going to work. First of all, the CD boot process doesn't pick up the boot.config. Secondly, many motherboards use a BIOS which causes the -P test to fail. What you can do is create boot/loader.conf on the CD image containing console=comconsole Sure that's enough? ttys is still going to mark the ttyd0 line as off and won't present a tty/login then. Yes, it is. You don't need a login for an installation. You do need to make sure you enable the correct serial port (usually ttyd0, as you point out) in /etc/ttys before you reboot at the end of the installation. I think it's more complicated than that. And what if the boot process hangs for some reason? no console output either by your solution. It's not an ideal process (particularly since the serial console only cuts in at a very late stage). One day I will make time to sit down and work out how to do it properly on a CD. Jonathan ___ freebsd-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: n00b question regarding installation via serial console
On Thursday 04 June 2009 15:46:11 John . wrote: Hello list, Is it possible to boot into the serial console from the installation CD, or must boot.flp be used as per http://www.freebsd.org/doc/en/books/handbook/install-advanced.html ? (the machine has no floppy drive (yet) It's possible - but only by making your own install CD. Check back through the list archives: Martin McCormick and I had a lengthy discussion about this a while back. Jonathan ___ freebsd-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/SetGID Kernel Option
Hi Martin On Thursday 04 June 2009 16:23:29 Martin McCormick wrote: I have been asked to enable the following kernel option: SetUID/SetGID - Allow directories to inherit their owner from the parent directory. The generic kernel under FreeBSD6.3 is what we presently use on the system in question and I see no commented-out option for compilation. You need to add option SUIDDIR To the kernel config. You can find a sample line in /sys/conf/NOTES We see in the fstab the following: # Device Mountpoint FStype Options DumpPass# #Default is for no SUIDDIR. #/dev/mfid0s1a/ ufs rw 1 1 #Living a bit more dangerously, we turned it back on. /dev/mfid0s1a / ufs rw,SUIDDIR 11 This looks like it may address the issue, but a test shows that it does not appear to happen. Once you've recompiled the kernel you also need to use suiddir in the mount options for any filesystem where you want file ownership to be inherited from the directory. It's described in the kernel notes and in the mount manpage as a dangerous option which opens security holes. I notice that you mention setGID as well, which under sysV-derived systems allows file to inherit group ownership from the directory. If that's what's wanted, you don't need to do anything, as the behaviour that's optional on sysV systems like Linux is the default behaviour on FreeBSD. Jonathan ___ freebsd-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: Canon printer and TurboPrint
On Thursday 28 May 2009 22:52:47 Jerry wrote: Did you ever bother to consider that if the printer manufacturers actually formed a consensus on a printer language, some third world county or the EU would probably sue them. Nothing I have seen in 20 years equals the audacity of the EU. As long as no 'standard' no matter how arbitrary, stupid or counter-productive exists, they are in theory safe from the EU. Besides, nothing stifles development as tightly as being bound to an arbitrary 'standard'. What a breathtakingly stupid remark. The EU has acted against two companies (Microsoft and Intel) who have used illegal business methods to protect and extend their monopolies and suppress competition. Or are you suggesting that a format or protocol which is implemented by several different companies, allowing vendors to compete fairly on other grounds (price, features, quality, ... ) while protecting consumers by making it possible for them to move from one vendor to another, is somehow a worse idea than a proprietary format or protocol which is forced into a market-dominating position by illegal tactics such as paying manufacturers extra to incorporate it, or penalising them financially for providing competing products? If that's the case, why is no-one trying to use the courts to prevent the use of ODF, a published standard which is now used by several companies and Free Software projects to provide a common format for documents? Once a company dominates a particular market it's held to a different standard than other companies in that market - because the power of the monopoly can be used not only to prevent competition in the original market, but to extend the market domination into new markets, by techniques like product tying, distributing at below cost (effectively drawing subsidy from the original monopoly product) until competitors are driven out of business, and so on. Microsoft has been convicted of doing all these things, in US courts, in courts in Asia, and in courts in Europe. These are matters of fact, not opinion. Intel has been convicted of many of these things in courts in Asia and in Europe. The fact that the US system is too supine to take action against these companies doesn't make the EU ``arrogant''. Let's not forget why Unix took off and expanded the way it did: once upon a time the US courts did take antitrust seriously, and prevented ATT using its telco monopoly to expand into market domination of the computer business. Jonathan ___ freebsd-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: Canon printer and TurboPrint
[Sorry for the excessive quoting - I couldn't decide which bits to take out] On Friday 29 May 2009 12:48:00 Jerry wrote: On Fri, 29 May 2009 09:34:36 +0200 Jonathan McKeown j.mcke...@ru.ac.za wrote: On Thursday 28 May 2009 22:52:47 Jerry wrote: Did you ever bother to consider that if the printer manufacturers actually formed a consensus on a printer language, some third world county or the EU would probably sue them. Nothing I have seen in 20 years equals the audacity of the EU. As long as no 'standard' no matter how arbitrary, stupid or counter-productive exists, they are in theory safe from the EU. Besides, nothing stifles development as tightly as being bound to an arbitrary 'standard'. What a breathtakingly stupid remark. The EU has acted against two companies (Microsoft and Intel) who have used illegal business methods to protect and extend their monopolies and suppress competition. Or are you suggesting that a format or protocol which is implemented by several different companies, allowing vendors to compete fairly on other grounds (price, features, quality, ... ) while protecting consumers by making it possible for them to move from one vendor to another, is somehow a worse idea than a proprietary format or protocol which is forced into a market-dominating position by illegal tactics such as paying manufacturers extra to incorporate it, or penalising them financially for providing competing products? The concept behind the EU is socialism, pure and simple. It attempts to create an artificial playing field that allows the incompetent to compete with the motivated. It forces those who create new technology to share it, usually sans monetary compensation, with common bottom feeders. A free, open market is the way to encourage development and new ideas and technology. Not some pathetic, socialistic concept. If that's the case, why is no-one trying to use the courts to prevent the use of ODF, a published standard which is now used by several companies and Free Software projects to provide a common format for documents? Once a company dominates a particular market it's held to a different standard than other companies in that market - because the power of the monopoly can be used not only to prevent competition in the original market, but to extend the market domination into new markets, by techniques like product tying, distributing at below cost (effectively drawing subsidy from the original monopoly product) until competitors are driven out of business, and so on. A company has the right to disperse their product as they see fit. I know a socialist like you finds that abhorrent; however, it is never the less true. Tell me, if I wanted to sell you a $300 thousand dollar Ferrari for $10, would you: A: complain to the police or what ever legal authority you feel so fit to complain to; B: slam $10 in my hand in a heart beat? I think we know the answer. You are a hypocrite. Has it ever occurred to you how a company grows and becomes successful? I know, in your world it is by using the Government to squash competition; however, in a truly free society, it is by hard word and giving the consumer what they want at a price they are willing to pay. Basic business 101. Microsoft has been convicted of doing all these things, in US courts, in courts in Asia, and in courts in Europe. These are matters of fact, not opinion. Intel has been convicted of many of these things in courts in Asia and in Europe. The fact that the US system is too supine to take action against these companies doesn't make the EU ``arrogant''. Let's not forget why Unix took off and expanded the way it did: once upon a time the US courts did take antitrust seriously, and prevented ATT using its telco monopoly to expand into market domination of the computer business. The spinelessness of the American court system is that they do not take legal action against European countries that practice reverse discrimination, or the outright breach of copyright laws, etc. I know, you socialists also abhor copyright laws. The concept of an individual actually benefiting from his/her hard work and not having to share it with every scum sucker who comes begging at his door disturbs you. Whoa. I don't think that level of personal attack is appropriate or acceptable behaviour in a public forum. (I call it attack because you clearly regard socialist as a swear word. I'm not a socialist but I don't regard it as an insult. I do regard hypocrite as an insult which I choose to ignore.) Your first paragraph, the one beginning ``the concept behind the EU is socialism, pure and simple'', is essentially the Microsoft party line: the socialist EU wants to steal our hard work and give it away to people who can't stand the heat of competition. The reality is almost the exact opposite: the EU is using competition law to try and restore a level playing field, despite
Re: single SATA disk and yet identified as 'ad4'
On Monday 11 May 2009 21:38:50 Saifi Khan wrote: Hi all: The system has just one SATA disk and yet bootloader process identified it as 'ad4'. Ideally, it should be ad1. [snip] How does the labelling logic work ? FreeBSD reserves numbers for devices that aren't currently connected, so that if you connect them later your existing devices don't need to be renumbered. Your BIOS is reporting two IDE interfaces, each of which could have a master and slave disk drive, so ad0-3 are reserved for those four drives, meaning SATA starts at ad4. Some BIOSes let you change this. Jonathan ___ freebsd-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: When a System Dies; Getting back in operation again.
On Friday 01 May 2009 22:43:51 Jerry McAllister wrote: On Fri, May 01, 2009 at 12:07:22PM -0500, Martin McCormick wrote: Let's say we have a system that is backed up regularly and it vanishes in a puff of smoke one day. One can get FreeBSD installed on a new drive in maybe half an hour or so but we also need to get back to the right patch level and then we can say we are back where we started. What you want to do is use the fixit image to set up the disk. That means fdisk and bsdlabel and newfs it. You can actually use sysinstall to do this as well. Just let the installer come up and do the disk stuff, choose minimal install and then after it finishes making the disks, kill the rest of the install (or just let it finish and then overwrite it. But, I find it actually easier to do the fdisk, bsdlabel and newfs-s myself. But, then I am used to it. Right after you get done making sure where your fixit is living, then use fdisk and bsdlabel to check for the way you have the disk set up currently. Write it down or print it out and keep it near that installation/fixit disk. [Lots of good stuff about creating the partitions] Now all you have to do is newfs each partition. Just take the defaults. Remember that newfs wants the full device spec, not just the drive identifier. If you have kept the right information beforehand, you can actually restore your dumps onto ``bare metal'' without doing a partial install first, and with the same newfs settings for each partition as you originally had. You need to use bsdlabel and dumpfs -m and keep the output for rebuilding. The rest of this message is the details. On your running system, create and keep two files. My system has one slice, ad6s1, and the usual partitions - a for root, d for /tmp, e for /var, f for /usr, and I've shown the commands you need, and the resulting file contents on my current system, below: bsdlabel ad6s1 ad6s1.label ad6s1.label contains: # /dev/ad6s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 104857604.2BSD 2048 16384 8 b: 8388608 1048576 swap c: 1562963220unused0 0 # raw part, don't edit d: 20971520 94371844.2BSD 2048 16384 28552 e: 1048576 304087044.2BSD 2048 16384 8 f: 124839042 314572804.2BSD 2048 16384 28552 I usually put all the spare space on a disk into /usr, so changing the first field on the f: line (the size) from 124839042 to * tells bsdlabel to do exactly that in case the replacement disk is a different size from the original. We now need the newfs settings for all the 4.2BSD filesystems except c, so (in sh syntax) for i in a d e f; do dumpfs -m ad6s1$i; done newfscmds.ad6s1 newfscmds.ad6s1 now contains: # newfs command for ad6s1a (/dev/ad6s1a) newfs -O 2 -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o time -s 262144 /dev/ad6s1a # newfs command for ad6s1d (/dev/ad6s1d) newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o time -s 5242880 /dev/ad6s1d # newfs command for ad6s1e (/dev/ad6s1e) newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o time -s 262144 /dev/ad6s1e # newfs command for ad6s1f (/dev/ad6s1f) newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o time -s 31209760 /dev/ad6s1f take out the -s 31209760 in the command for ad6s1f (this is the size of the new filesystem and it defaults to the size of the partition - which we made to take up the rest of the disk). Now you can save these two files somewhere. When it comes to a catastrophic failure and restore, boot a liveCD. Use fdisk to create your single large slice on the new disk with fdisk -BI ad6 Use bsdlabel -R ad6s1 ad6s1.label to restore the disklabel. If your device name is different from before, you need to edit newfscmds.ad6s1 to change the ad6 to the new device name wherever it occurs, but you then run the newfs commands in the file to create your filesystems with the same parameters (softupdates on/off, etc) as before. You now have the basic structure of your previous disk, ready to have the root, /var/ and /usr dumps restored to make a running system identical to the destroyed one, with one last step: bsdlabel -B ad6s1 to put the boot code on the slice. (I haven't tried this bit, so if you're going to use the boot code from your root partition, which is stored at /boot/boot, you'll need to check whether you can run bsdlabel -B on a mounted disk. If you can, the command would be bsdlabel -B -b /mnt/boot/boot /dev/ad6s1 assuming you mounted /dev/ad6s1a on /mnt). If you have a different device name, of course, you also need to edit your fstab before rebooting. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to
Re: When a System Dies; Getting back in operation again.
On Monday 04 May 2009 15:59:14 Jerry McAllister wrote: On Mon, May 04, 2009 at 10:31:16AM +0200, Jonathan McKeown wrote: If you have kept the right information beforehand, you can actually restore your dumps onto ``bare metal'' without doing a partial install first, and with the same newfs settings for each partition as you originally had. You need to use bsdlabel and dumpfs -m and keep the output for rebuilding. The rest of this message is the details. If you have a specific reason to want your new filesystems' to have identical superblock info, you can use dumpfs -m, but you don't need to worry about all that. Just fdisk, bsdlabel and then let newfs take its defaults. Which of your filesystems currently has softupdates disabled? You may not care - but the point is that using dumpfs in the way I described will preserve that information (along with all the other tuning options) for people who do care. If you're restoring a complete machine from backup, the less you have to think about, the better. Knowing that my filesystems are going to be restored with whatever tuning options I was previously running with, without my having to try and remember, gives me peace of mind ahead of time. Jonathan ___ freebsd-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: make run-depends-list-recursive?
On Thursday 16 April 2009 12:27:04 Mel Flynn wrote: But yes, all-depends-list is exactly that, with the provision that it does not take changed OPTIONS into account. That's what I suspected you were saying yesterday, and it seems to be wrong. Try this (assuming you haven't already configured/installed net/freeradius2 and security/krb5) cd /usr/ports/net/freeradius2 make all-depends-list make config# select Kerberos make all-depends-list make -C /usr/ports/security/krb5 config# unselect documentation for krb5 make all-depends-list make -C /usr/ports/security/krb5 rmconfig make rmconfig You will get three different lists of dependencies: in the first case, the main port (net/freeradius2) has the default OPTIONS and doesn't depend on security/krb5 or its dependencies. In the second case you will find teTeX and its dependencies in the list as they are dependencies of krb5 in its default setting. In the third case, you have changed an OPTION of security/krb5 to remove its dependency on teTeX, and net/freeradius2 correctly removes the teTeX dependency from its all-depends-list. This certainly looks like all-depends-list correctly taking account of the changed OPTIONS in the target port and all its dependencies. What *is* a problem is make config-recursive, which doesn't take account of any dependencies added as a result of OPTIONS changes made during the config-recursive process. This is relatively easily fixed, as make config-recursive actually runs make config-conditional for everything in all-depends-list, so if you keep running make config-recursive until nothing happens you can be reasonably sure you've dealt with all the unexpected dialogues that might otherwise pop up. This is worth knowing if you like doing overnight unattended installs and don't want to accept default settings (so can't use BATCH=yes). Until I discovered it I had immense frustration setting an installation/upgrade running only to come back the next day and find a dialogue sitting on the screen. Jonathan ___ freebsd-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: make run-depends-list-recursive?
On Tuesday 14 April 2009 21:02:08 Mel Flynn wrote: On Monday 13 April 2009 03:56:15 Tim Judd wrote: make all-depends-list Two things: 1) It surpresses config target and if a port has OPTIONS set, then you may get surprised once you've configured the port and ticked/unticked an option I'm not sure what you're saying here, but if you want to avoid a surprise you can run make config to choose options, then re-run make all-depends-list: the dependency list changes according to the config options. This is occasionally useful - for example it's how I found out that security/krb5 can be prevented from bringing in the whole of teTeX and its dependencies: just unselect the documentation (which is selected by default). (On a separate note, does it strike anyone else as a bit excessive to install teTeX - which is well over 100MB of download not counting its own dependencies - behind the scenes as part of installing documentation?) Jonathan ___ freebsd-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 log-in anymore
On Wednesday 15 April 2009 03:58:08 Ruel Luchavez wrote: Hi.. I know someoene here can help fix my biggest problem so far. I can't log-in any more in my FreebSD box the serverver always complain /libexec/ld-elf.so.1:shared object lib.so.7 not found, required by sh Enter full pathname of shell or RETURN fro /bin/sh: I press enter but nothing happens it always came back with that prompt. I'm not sure if there is something wrong with the library but few hours before that happens I can still log-in on my box. Any idea guys? I can't log-in anymore.. /bin/sh is dynamically linked - if you've blown away the library you have a problem. You should be able to get in using /rescue/sh, which is statically linked, but to get the system back I think you're going to need more hands-on help than you can get here; either that or you're going to have to provide more detail about exactly what you were doing. Jonathan ___ freebsd-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: new package system proposal
On Wednesday 08 April 2009 21:24:00 Bob Johnson wrote: PC-BSD seems to already keep up-to-date binary packages of their applications. Do they accomplish that by only offering a small subset of the full ports collection? Yes - have a look at http://www.pbidir.com/. I installed PC-BSD on a spare machine to investigate it. The first three ports/metaports I tried to install after completing the base setup were emacs, TeTeX and the Psi Jabber/XMPP client. None of those was available, and after seeing how few prebuilt packages there were in all categories, I gave up. My personal view is that PC-BSD gives the end user an impressive and reasonably slick computer-as-appliance with some ability to customise and still stay ``on the path''. For people who need that, PC-BSD is what they need. My feeling, though, is that anyone who finds themselves wanting to install a bunch of stuff from outside the PBI system (in other words, from ports, which are still there under the hood of PC-BSD) will soon want to switch to mainstream FreeBSD. As such PC-BSD has the potential to be an effective ``gateway drug''(!) Jonathan ___ freebsd-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: new package system proposal
On Tuesday 07 April 2009 23:35:03 Bob Johnson wrote: On 4/4/09, Chris Whitehouse cwhi...@onetel.com wrote: Hi all [...] My suggestion is to start with a ports tree that is fixed in time. Make that ports tree available as part of this package system and compile a typical desktop set of ports, particularly choosing ones which are large or have many dependencies. When it is all complete release it and start again. Surely quite a wide selection of desktops, wm's and apps could be compiled in a couple of weeks? How is it an improvement over the existing tools? I must be missing something, because it sounds to me like you are merely asking that there be more ports made available as packages than are now offered. I think what you're missing is the suggestion to bundle a set of pre-built packages with a snapshot of the ports tree used to build them. Currently it's difficult to mix and match packages and ports because the versions of dependencies are likely to differ between the package and the local version of the ports tree. If you know you have the same ports tree your packages were built from, you can much more easily combine pre-built packages and local builds from source. This has clear advantages. At the moment, unless you're very lucky with your timing, you tend to find that as soon as you want to build one port from source (perhaps to fiddle with the configuration) you have to stop using prebuilt packages altogether. The drawback I can see is the disk space required to keep several generations of packages online - if the package-port bundle is rebuilt every three weeks, let's say, and you want to keep 6 months' worth of packages online, you need to keep 9 complete versions available. Chris's suggestion is certainly more than just a request for more packages, though. Jonathan ___ freebsd-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: Restricting users to their own home directories / not letting users view other users files...?
On Thursday 12 February 2009 03:07:42 Paul Schmehl wrote: Sorry if I wasn't clear. I wasn't suggesting that the *users* chgrp the files. Keith would do that as root. Then he sets the setgid bit to www (or whatever the web user is), and from that point going forward any files created by the user would be user:www instead of user:user. Set the umask to 027, and world has no readability. This is exactly how I used to handle some files on a webserver that I maintain that other people needed to be able to edit, add and delete files from. Once the sgid bit is set, the group membership of the files remains www no matter what user creates/touches a file. Erm, isn't this only true for Linux and other SysV-type systems? Unless I'm remembering wrong, in FreeBSD files are always created with group ownership the same as the directory they're created in - so all you need to do is change the group ownership of the directory (which has to be done by root). Jonathan ___ freebsd-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: Restricting users to their own home directories / not letting users view other users files...?
On Thursday 12 February 2009 19:15:21 Paul Schmehl wrote: If you set the world readable bit, you break the entire schema. To make it work, world must have no access - not even directory search access. So you set u=rwx,g=srx,o-rwx (or 2750), for homedirs and u=rw,g=sr,o-rwx (or 2640) for files. To maintain the schema you would also need to change the users' umask to 027 or (script a perm change periodically to remove the world bits from new files.) If you want to get more granular, you can set the homedirs and all subdirs to owner:owner and only set the public_html dir and its subdirs to owner:www. The key is to remove the world access from the homedirs and everything under them, set the group to www, setgid and change the umask. setgid on the directory is a SysV-ism to switch on BSD behaviour. FreeBSD always sets group ownership of files to the group of the directory they're created in, so all you need to do is change the ownership of the directory and the umask. Jonathan ___ freebsd-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 parameter substitution problem
On Wednesday 11 February 2009 12:47:17 Ian Smith wrote: I'm getting nowhere trying to parse out IP addresses from strings of this form in /bin/sh, which have been awk'd out of 'tail named.run': addr='195.68.176.4#1440:' addr='195.68.176.4#16811:' addr='195.68.176.4#276:' sh(1) in hand, I've tried: ip=${addr:%#*} ip=${addr:%%#*} ip=${addr:%[#]*} ip=${addr:%%[#]*} but all of these report './testbit: 7: Syntax error: Bad substitution' Take out the : in the parameter expansion. $ addr='195.68.176.4#1440:'; ip=${addr%#*}; echo $ip 195.68.176.4 : is for supplying default values or an error for unset variables. Jonathan ___ freebsd-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: shell commands - exclusion
On Friday 06 February 2009 02:55, Chris Whitehouse wrote: I think you should be able to do it with a combination of -prune and -delete (or -exec rm -rf {} \; ) on a find command. Substitute your other commands for rm -rf in the -exec above. I would give you a working example except I can't figure out the syntax for -prune. Examples from google don't seem to work in (my) FreeBSD. [skip to the end for a simple answer without the lengthy exposition] find(1) can be confusing, especially if you think of the ``actions'' ( -print, -exec and -delete plus their variants like -ls and -ok ) as something different from the ``tests'' ( -name and so on), or if you don't take account of the evaluation order. A find expression comprises a number of what the manpage calls primaries, each of which evaluates as true or false. (It may also have a side-effect, like -print whose side-effect is to print the name). Primaries can be combined with -and (which is usually implied) or -or. Where -and and -or both occur, find will group the -anded primaries together before evaluation. Taking one of your examples below, find . -print -or -prune -name dir1 this is grouped as find . -print -or \( -prune -and -name dir1 \) find will then evaluate the whole expression from left to right for each pathname in the tree it's looking at, stopping within each set of (implied) parentheses and within the overall expression as soon as it can determine truth or falsehood. (This is what's referred to in programming as short-circuiting in boolean expressions). If primaries are linked by -and, find can stop at the first one that's false, knowing the expression is false; if they're linked by -or it can stop at the first one that's true, knowing the expression is true. Otherwise it has to evaluate the whole expression. Before it does this, though, find checks for side-effects. If there isn't a side-effect anywhere in your expression, find will put brackets round the whole expression and a -print after it. Looking at your examples: chr...@pcbsd% find . (No expression). Find adds a -print, so this is the same as the next one: chr...@pcbsd% find . -print . ./test.mov ./test.mpg ./dir1 ./dir1/file1 ./dir1/file2 ./file3 -print is always true so the expression is true for each name - they get printed as a side-effect. chr...@pcbsd% find . -print -o -prune dir1 find: dir1: unknown option -prune doesn't take an argument, so dir1 is a syntax error. chr...@pcbsd% find . -print -o -prune -name dir1 find evaluates the print, which prints each name as its side-effect. -print evaluates as true. Since it's in an -or, find can stop there, so it never sees the second expression ( -prune -and -name dir1: the -and is implicit). . ./test.mov ./test.mpg ./dir1 ./dir1/file1 ./dir1/file2 ./file3 chr...@pcbsd% find . -print -o -name dir1 -prune Same again: find stops after the -print which is always true, and ignores the -name dir1 -and -prune. chr...@pcbsd% find . -name * -o -name dir1 -prune None of these primaries has a side-effect, so find rewrites this internally as find . \( -name * -or -name dir1 -prune \) -print -name * is always true, so find can ignore everything after the -or up to the parenthesis. Because the first expression is true, and the parens are followed by (an implied) -and, find has to evaluate the -print, which is always true, so the whole expression is always true and it always prints the name as a side-effect. . ./test.mov ./test.mpg ./dir1 ./dir1/file1 ./dir1/file2 ./file3 What you need is an expression with two outcomes: a -prune for some names and a -print for others. That tells you you need an -or, and the -print must come after it because it's always true. Before the -or, -prune is always true so you need some sort of testing primary before the -prune. That gives you find . -name dir1 -prune -or -print Jonathan ___ freebsd-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: KDE: What a monster!
On Monday 26 January 2009 17:02:05 n j wrote: Linus Torvalds on KDE4... [quote] A: I used to be a KDE user. I thought KDE 4.0 was such a disaster I switched to GNOME. I hate the fact that my right button doesn't do what I want it to do. But the whole break everything model is painful for users and they can choose to use something else. I realise the reason for the 4.0 release, but I think they did it badly. They did so many changes it was a half-baked release. It may turn out to be the right decision in the end and I will re-try KDE, but I suspect I'm not the only person they lost. I've seen it suggested that KDE4 is faster than KDE3. I'm running FreeBSD 7.0 - granted, my machine is not brand-new: it's a P4 1.8GHz with 512MB of RAM and an NVidia GeForce MX4000 (I mention the graphics card because the latest NVidia binary driver doesn't support it). KDE3.5 does what I want my window manager to do - keeps out of my way and works snappily enough that I don't notice it. I recently installed PCBSD7.02, which uses KDE4.1. It's unusable. For example, with only two applications running - the KBreakout game and the Psi Jabber/XMPP client - the game was unplayable because each time Psi received an incoming chat or event, the game froze for a second or two while KDE struggled to open the chat window. The claim that KDE4 is faster than KDE3 is frankly incredible to me. Jonathan ___ freebsd-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 i split a pdf file?
On Monday 26 January 2009 09:17:05 Andrew Robinson wrote: Message: 2 Date: Sun, 25 Jan 2009 20:20:51 -0500 From: Chuck Robey chu...@telenix.org Subject: Re: can i split a pdf file? To: FreeBSD Mailing List freebsd-questions@FreeBSD.ORG Message-ID: 497d0ff3.6090...@telenix.org Content-Type: text/plain; charset=ISO-8859-1 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie Kester wrote: On Sun 25 Jan 2009 at 16:18:26 PST Gary Kline wrote: Is there a way to split a large pdf file into smaller [ say 1MB ] chunks? Or are there open source tools out there that i can build? [various suggestions including pdfmerge and psnup from ports] Alternatively, if you have a reasonably complete TeX installation (I'm still using teTeX), check whether you have texexec installed - which can extract pages from PDFs. Jonathan ___ freebsd-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 copy only skeleton files while creating a existing user's homes directory?
On Friday 16 January 2009 12:48:38 O. Hartmann wrote: Hello, I have the following situation: Users are stored in OpenLDAP. I need to create homes directories on new machine memebers in the pool of workstations and do not want the usage of an automated creation of loggin in user via pam_mkhomedir. Creation should be done manually. My question: is it possible to use a FreeBSD tool/command like 'pw(8)' only for copying and initiating an existant user's home? I tried simply pw useradd USER -m -b /homes/ for that purpose, but pw errors me saying the user USER already exists (is a OpenLDAP user). Try usermod instead of useradd. Jonathan ___ freebsd-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 question
On Monday 22 December 2008 00:27:44 Gary Kline wrote: anyway, this is one for giiorgos, or another perl wiz. i've been using the perl subsitution cmd one-liner for years with unfailing success. is there a way of deleting lines with perl using the same idea as: perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN For a single file it's very easy: perl -ne 'print unless 8..10' filename will print every line except lines 8, 9 and 10. The .. or range operator (in scalar context) is a sort of flip-flop. It keeps its own state, which is either true or false. When it's false it only evaluates its left-hand argument; when it's true it only evaluates its right-hand argument; and whenever the argument it's currently looking at returns true, the expression changes state. If the argument is an integer, it's treated as a comparison against the current line number, $. ; so the first expression, 8..10, means ($. == 8) .. ($. == 10) It's false to start with, until ($. == 8) returns true (on line 8); it becomes true and remains true until ($. == 10) returns true (on line 10), when it becomes false again and remains false until it next sees line number 8. You can also use more complicated tests in the range operator: perl -ne 'print unless /START/ .. /END/' will find each line containing the word START anywhere, and delete from that line to the next line containing END (inclusive of both endpoints) - this will work for multiple occurrences of START and END in your file. There are two problems if you string multiple files together on the command line: first, if you're using line numbers, the line number doesn't reset between files unless you do an explicit close on each file. The bigger problem is if you have a file in which the second condition doesn't occur (a file with only 9 lines in the first example, or a file with a START and no corresponding END in the second case): the range operator will stay true until it sees the ending condition in the next file, meaning you'll lose the first ten lines in the numeric case, or every line from the top of file to the first END in the second case. To get round these two problems, you need to test for eof in the range operator, and close each file when it hits eof to reset the line count. perl -ne 'print unless 8 .. $. == 10 || eof; close ARGV if eof' file[1-n] perl -ne 'print unless /START/../END/ || eof; close ARGV if eof' file[1-n] There's some hairy precedence in the first range expression: a useful tip for checking that you've got it right (and indeed in general for checking that a bit of Perl does what you think it does) is the B::Deparse core module, which you call like this: perl -MO=Deparse,-p -e 'print unless 8 .. $. == 10 || eof' which outputs ((8 .. (($. == 10) || eof)) or print($_)); -e syntax OK The ,-p argument to -MO=Deparse tells it to put in parentheses everywhere. If you're like me and like to leave them all out, feed your expression to Deparse with all the parens in and leave off the ,-p argument: Deparse will get rid of all the unnecessary ones: $ perl -MO=Deparse -e 'print unless (8 .. (($. == 10) or eof))' print $_ unless 8 .. $. == 10 || eof; -e syntax OK Jonathan ___ freebsd-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: Release schedules
On Friday 12 December 2008 19:26, Sean Cavanaugh wrote: -- From: Joe S js.li...@gmail.com Sent: Friday, December 12, 2008 12:20 PM To: Roland Smith rsm...@xs4all.nl Cc: freebsd-questions@freebsd.org; Jonathan McKeown jonathan+freebsd-questi...@hst.org.za Subject: Re: Release schedules On Wed, Nov 12, 2008 at 4:01 AM, Roland Smith rsm...@xs4all.nl wrote: On Wed, Nov 12, 2008 at 12:59:24PM +0200, Jonathan McKeown wrote: I've been biting my tongue about this because I'm not sure that I can offer any help or useful suggestions, but here goes... What on earth is going on with release scheduling? Two words: volunteer project I would propose to do away with the release schedule altogether, or make it very succinct; next release: when it's done. What? Isn't that the Linux kernel schedule? Give me a break. The OpenBSD team of volunteers makes a new release every six months, with target release dates in May and November. I can't recall a slip of even one day. I know, this isn't OpenBSD, but it proves that a regular release schedule is indeed possible. also remember that 6.4 was being worked on at the same time. there's only a finite number of people to spread across both projects. finalization of 7.1 should come faster as 6.4 has been released According to http://www.freebsd.org/releases/7.1R/schedule.html , the ports tree was frozen on 8 September, tagged on 22 September and unfrozen. (I see elsewhere in this thread someone saying it's still frozen - I'm not sure which statement is correct). 7.1-RELEASE should have been done a couple of weeks later - early in October for announcement on 13 October. We are now looking at a release in January. That's not a few days or even a few weeks late - it's almost four months late; and 7.1-RELEASE will ship with a ports tree that's almost 5 months out of date. Not only that - it's shipping mere weeks before the end-of-life for 7.0-RELEASE (currently 28 Feb 2009). I have been watching the web page and freebsd-stable. There has been no obvious indication of the reason for the delays or the expected duration. (For earlier releases, there was a todo page linked from the release webpage which listed areas needing more work and areas needing testing). The -RC1 release announcement finally acknowledged that there had been a number of major problems, not all of which have been fully addressed yet. As a community, we should be ashamed of this: ``volunteer effort'' just isn't a good enough excuse - and those of us who haven't volunteered need to find out how we can help get things back on track for the next release. When I first raised this, I asked if there was anything I could do to help the release engineering team with communication. Zbigniew Szalbot made a similar offer. I really think that once 7.1 is out, we (collectively) need to have a long hard look at the release process and make sure this doesn't happen again (and again and again and again - it's not the first time that I've scheduled work around release dates and ended up being embarrassed or having to do jobs twice, with a pre-release and then again when the release arrives.) Jonathan ___ freebsd-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: process always running
On Thursday 27 November 2008 15:46:58 Dominik Meister wrote: Hi Gian Paolo Buono [Thu, Nov 27, 2008 at 02:05:44PM +0100]: there is a method in freebsd for restart process whenever it terminates ? I use in linux respawn in inittab... One possibility that comes to mind is using daemontools [0]. Should be in ports but there are probably easier ways to achieve this. I've never tried it, but according to the manpage for init(8) you can get the same effect as a respawn entry in a sysV inittab by putting the command in /etc/ttys. Perhaps someone who's done it could comment? Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ascii text format
On Friday 21 November 2008 12:49:16 pwn wrote: algouth this is not a freebsd specific text, i need to format some texts under freebsd for they appear in the center of the page when opened in a browser, but i dont want to use HTML for format them, i just want to add tabulation to my *.txt. what software/tool can i use for format my *.txt? there is command on VIM like set textwidth but this is not suitable for me. any help i appreciate. i add an example on a temporary host for make sure all understand. (i need to format the text for he appear like the example good.txt) http://one.xthost.info/temphost/good.txt http://one.xthost.info/temphost/bad.txt You seem to be fighting against your tools rather than working with them - the browser will strip out your whitespace and reflow your text anyway unless you prevent it somehow (pre tags?) so you might be better off just using HTML/CSS to control the format. However, you could look at various tools for processing text, depending exactly what you're trying to do: the manpages for fmt, groff, and pr might all offer some ideas. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: host based authetication with OpenLDAP and FreeBSD
On Friday 14 November 2008 14:32, O. Hartmann wrote: Hello, I have a OT question and maybe some of the FreeBSD server admins here can help me out. [snip] Having nss_ldap and pam_ldap installed on every single FreeBSD server/box which is capable of being accessed I found in etc/ldap.conf the tags 'pam_filter' and 'pam_check_host_attr'. Setting latter to 'yes' implies having the 'host' attribute in each user's object located in OpenLDAP's DIT for the specific domain. But objectClass=account seems to conflict with objectClass=organizationalPeople which is a must in our configuration, so the host attribute is not of any further investigation. Did you not like the answer I gave you in April when you asked essentially the same question? http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/174152.html For posterity (again) the extensibleObject auxiliary objectClass was introduced for precisely this reason - so that you could add any attribute the server knows about to an existing object which otherwise couldn't hold it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: php5 Only IE Users can View Pages.
On Friday 14 November 2008 19:36, Martin McCormick wrote: I inherited a mrtg application thatnow is running on a FreeBSD6.3 system. Clients report that one can see the php pages when using Internet Explorer but not other browsers that should display the pages. Those customers see raw code. Any suggestion as to what I should be looking for? Hi Martin Bear in mind I'm answering off the top of my head, so you may need to do some digging. I have a feeling that Internet Explorer ignores the Content-Type header from the server and displays what it thinks you should see. If the server is not configured with a MIME type for .php, the default with Apache is to send the pages with a MIME type of text/plain. Internet Explorer will ignore this, interpret the page as HTML and display it, whereas almost every other browser will obey the server's instruction and therefore display the raw HTML as plain text without any interpretation. Check whether Apache has an AddType application/x-httpd-php .php line or similar in the config file. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Release schedules
I've been biting my tongue about this because I'm not sure that I can offer any help or useful suggestions, but here goes... What on earth is going on with release scheduling? FreeBSD 7.1-RELEASE, according to the scheduling page at www.freebsd.org, should have had a Release Candidate published two months ago, on 13 September. Instead we're still on a Beta - BETA-2, which isn't mentioned in the original schedule. The todo list which has appeared on the website in previous releases isn't available this time, so I can't even get a feel for the likely cause of the holdup. As I said, I hate to stand on the sidelines and heckle when I'm not doing anything to contribute to the release, but the timetable has slipped badly and I don't feel I can find information about the reasons or the revised timings. What exactly is going on, and is there anything a busy sysadmin, poor in time, bandwidth and C skills, can do to help with either the release itself or the apparent scheduling/communication issues? (I've sent this to -questions rather than -stable because it seems to be an ongoing problem with the timetabling of releases.) Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Release schedules
On Wednesday 12 November 2008 14:01:47 Roland Smith wrote: On Wed, Nov 12, 2008 at 12:59:24PM +0200, Jonathan McKeown wrote: I've been biting my tongue about this because I'm not sure that I can offer any help or useful suggestions, but here goes... What on earth is going on with release scheduling? Two words: volunteer project Oh, I fully understand that, which is why I also asked whether there's anything I can do to help, with my meagre abilities and resources. This wasn't intended to demean the efforts of the release team at all; it was more a plea for better communication when delays start to accumulate. I would propose to do away with the release schedule altogether, or make it very succinct; next release: when it's done. Yes - but is it not possible to estimate (and as a long-suffering sysadmin, I know I'm on shaky ground here after some of the estimated schedules I've given my management and my users!) roughly how far off we are? Even the old todo list on the website offered some guide. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scripting text replacement
On Sunday 09 November 2008 00:02:11 Giorgos Keramidas wrote: On Sat, 8 Nov 2008 19:43:52 +0100, bsd [EMAIL PROTECTED] wrote: I have a file containing a list of items like that: line1item1 line1item2 line1item3 line2item1 line2item2 line2item3 …400 times I need to insert this into another text file using printf() items should be converted into variable looping… like that: printf Bla bla bla $1 bla bla $2 bla bla $3 bla bla $2 A little more detail about the Bla bla part may be important in our effort to help you effectively. What you seem to describe above may be trivial to do with awk(1): More detail definitely needed. When you say insert into another text file, do you mean you want to create an output file in which each line is identical bar the four parameters from the first file (in other words your bla bla bla is the same for every input line) (in which case a simple awk '{printf}' will meet the need), or are you actually doing a merge of two files where bla bla bla represents the text from the next line of the other input file and changes from line to line? Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: eps to jpg conversion - which program?
On Friday 07 November 2008 21:19, Polytropon wrote: On Fri, 07 Nov 2008 13:36:51 +0100, Laszlo Nagy [EMAIL PROTECTED] wrote: A batch solution is simple: #!/bin/sh for f in *eps; do convert ${f} `basename ${f} .eps`.jpg done You can also save yourself repeated calls to basename by using for f in *eps; do convert ${f%.eps}.jpg done Look under parameter expansion in the manpage for sh(1) (or bash(1) if you have bash installed). As far as I can tell csh/tcsh doesn't support this useful feature. Essentially, a Bourne-type shell with parameter expansion expands ${variable#prefix} or ${variable%suffix} to $variable with the prefix or suffix, respectively, removed. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recommendation word processer for xfce
On Saturday 08 November 2008 13:55, Jerry wrote: On Fri, 7 Nov 2008 16:28:00 -0700 Chad Perrin [EMAIL PROTECTED] wrote: . . . or, as someone else pointed out, one could just learn to scroll to the end before typing. It's not that difficult -- even in Outlook. CTRLEND works like a charm also. It is amazing what people will bitch at. The same people who will spend days attempting to get a video card fully functional will find placing the cursor at the end of an email message too daunting of a task. The best response to the issue of Outlook and top-posting I've seen recently was on the London Perlmongers mailing list - although I should warn that some may find this offensive. space to protect the sensitive ... ... ... ... ... ... ... ... ... ... potentially offensive response The last I checked, cursor keys worked in Outlook just fine without any third-party hacks, so there is no reason for top-posting just because the cursor happens to be there. It's a bit like crapping in your pants because that's where your arse happens to be. -- Peter Corlett, london.pm Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Broken quoting (was Re: XFCE4)
On Monday 03 November 2008 16:17:20 Bob McConnell wrote: [Jonathan to joeb via freebsd-questions] I don't know whether it's you or your email client, but your quoting is hideously broken. Please fix it. It's his email client. Microsoft Lookout will no longer do standard quoting and forces top posting of replies. I am also required to use it by our IT department policies and have to manually reformat each message I reply to. There used to be an option that could be set to get angle bracket quoting, but that disappeared in the update from MS-Office 2000 to 2003. The top line, -Original Message-, is the clue that he is using the Microsoft client. That is its standard separator for all replies. Yes, it is a major pain. I really do prefer Thunderbird. I'm used to seeing the original message starting with its headers in the Outlook style - that's not what's confusing me here. joeb, I don't mean to be rude but I find your posts hard to read (and I've seen others comment so as well), because instead you somehow end up with the original headers AFTER the original message, which is unexpected, and your response after that again - looking as though it belongs to the original header block. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Shell Script using Awk
On Sunday 02 November 2008 03:21:55 David Allen wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I have A Very Long String that containing records, each delimited by a single space. I need to print those records in columnar format, but with only 7 columns per line: record1 record2 record3 record4 record5 record6 record7 record08 record09 record10 record11 record12 record13 record14 Are you dead set on using awk(1)? Because my first thought would be rs(1). cat inputfile | rs 0 7 To turn your space-separated entries into 7 columns. You may need some fiddling about (to avoid running out of memory, space on the line, etc). This is one of my top three sadly-neglected BSD commands everyone should know more about, along with lam(1) and jot(1). Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]