The FreeBSD Diary: 2005-02-20 - 2005-03-12
The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives http://www.freebsd.org/search/search.html#mailinglists and/or The FreeBSD Diary http://www.freebsddiary.org/. -- Dan Langille BSDCan - http://www.BSDCan.org/ - BSD Conference ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfw or pf
On Fri, Mar 04, 2005 at 01:41:23PM +0100, Albert Shih wrote: Le 03/03/2005 ? 13:07:53-0800, Loren M. Lang a ?crit Well it's not de syntaxes, I always use packet filter system (sometime on hardware like Foundry/Cisco) where the rule is : First match first use. And the pf use entire rules is very strange for me (I known I can use ?quick? butwell it's not the philosophy I think). I like first match better too, but I think pf is sufficiently better that I just use it with quick over ipfw. Better on what ? More security features like srubbing packets. This can look for errors like bad tcp flag combinations that some port scanners might use. Also, it is just more flexible by using tables for matches that can even be updated dynamically. ipf and ipfw would require a completely new rule to change the firewall. Tables can be used to, say, keep track of a blacklist of ip address like the ones that keep trying to log into ssh accounts on my server that don't exists. pf also has built-in passive os fingerprinting if you think that might be useful. Read through the pf faq on openbsd.org. I really like to known. And my question is not a troll or something like that. Regards -- Albert SHIH Universite de Paris 7 (Denis DIDEROT) U.F.R. de Mathematiques. Heure local/Local time: Fri Mar 4 13:40:29 CET 2005 -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpFJzYOvayaR.pgp Description: PGP signature
Re: What's the easiest way to do a backup and verify?
On Mon, Mar 07, 2005 at 09:47:31AM -0500, Jerry McAllister wrote: Is there an easy way to combine a backup and verify when doing backups with dump? On Windows NT it's just a matter of checking a box. I seem to recall the last time I looked into this on UNIX there was no easy way to accomplish a verify operation for a backup, but perhaps things have changed with FreeBSD 5.3 (?). I've never had a problem with backup (I backup to DAT tape), but I'd feel better if every backup was followed by a verify to make sure the tape is readable. Actually, if used frequently for backups - such as every day, DAT is notoriously prone to failure.So, it is a good idea to check dumps made to DAT. Unfortunately, there is not a reasonable way to automatically do it. There is a verify, but it cannot work on a running system, because it compares files (inodes) on the tape back to the ones on disk. Any changes mean an error, even if it was a real change in the file between the time it was written and the time it was read back. The only real thing you can do is to read back the tape and look for a couple of files with fairly high inode numbers for each file system dumped.If you can read them, you can assume the tape is readable. I'm not very familiar with tapes, but I think that the dump is written straight out to something like /dev/st0 right? So then wouldn't a second dump of the same snapshot diffed to the tape device be a good for a verify? Position tape at beginning of dump dump / | diff - /dev/st0 Though I don't have much experience with either dump or tapes to verify. jerry -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgphHnj25wEf4.pgp Description: PGP signature
Re: logo design competition
Alexander wrote: - FreeBSD ... .. This is the wrong place to post it. Try going to http://logo-contest.FreeBSD.org/ instead. -- [WBR], Arcade. [SAT Astronomy/Think to survive!] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Russian from ssh console
Sergei Gnezdov wrote: I'd like to be able to read Russian messages from slrn. I set LANG environment variable to ru_RU, but it does not help. I think it is because the underlying system does not support Russian or something like this. I don't plan to type messages in Russian. Most of the GUI apps seem to support foreign languages out of the box. What's so difficult with the console apps? Compare your ~/.login_conf to /etc/login.conf. Set the LANG there. -- [WBR], Arcade. [SAT Astronomy/Think to survive!] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to merge an unused partition.
On Sat, Mar 12, 2005 at 09:09:47PM -0600, Chris wrote: Heya folks - here's my issue; I removed a OS from my drive and that freed up 10 gig. I wish to merge the free 10 gig into my FreeBSD file system. Here's what she looks like via fdisk: Disk name: ad1FDISK Partition Editor DISK Geometry: 9729 cyls/255 heads/63 sectors = 156296385 sectors (76316MB) Offset Size(MB)End Name PType Desc Subtype 0 10236 20964824- 12 unused0 20964825 66079 156296384ad1s1 8freebsd 165 156296385 2 156301487- 12 unused0 So - what do I need to do to take the 1st line and merge it into the existing system? The big problem with merging it in is that everything is designed to grow at the end, not at the beginning. growfs can be used to extend a filesystem afterwards, but not before. One idea that might work is to use some kind of volume management system like vinum. If your current system already used that, this would be a simple matter. What you could do though it to setup vinum on the unused partition and start moving data over. Eventually you could extend vinum with the second partition once all the data is moved over. If you aren't using more than about 9 gigs total on freebsd right now, then you just have to move data over once. Sorry for the formatting ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgp7JX8FtIu5h.pgp Description: PGP signature
Re: Decent HTML editor?
On 2005-03-13, Joshua Tinnin [EMAIL PROTECTED] wrote: On Saturday 12 March 2005 10:59 pm, bsdzz [EMAIL PROTECTED] wrote: Is there a simple HTML editor that is known to be pretty good in the ports tree? nvu (best) amaya (confusing) mozilla (too simple) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfw or pf
On Sunday 13 March 2005 09:16, Loren M. Lang wrote: On Fri, Mar 04, 2005 at 01:41:23PM +0100, Albert Shih wrote: Le 03/03/2005 ? 13:07:53-0800, Loren M. Lang a ?crit Well it's not de syntaxes, I always use packet filter system (sometime on hardware like Foundry/Cisco) where the rule is : First match first use. And the pf use entire rules is very strange for me (I known I can use ?quick? butwell it's not the philosophy I think). I like first match better too, but I think pf is sufficiently better that I just use it with quick over ipfw. Better on what ? More security features like srubbing packets. This can look for errors like bad tcp flag combinations that some port scanners might use. Also, it is just more flexible by using tables for matches that can even be updated dynamically. ipf and ipfw would require a completely new rule to change the firewall. Tables can be used to, say, keep track of a blacklist of ip address like the ones that keep trying to log into ssh accounts on my server that don't exist man ipfw ipfw table number add addr[/masklen] [value] ipfw table number delete addr[/masklen] ipfw table number flush ipfw table number list ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: password manager?
On 2005-03-05, Sergei Gnezdov [EMAIL PROTECTED] wrote: I like Windows password manager Access Manager. Is there an easy way to manage my passwords, pin numbers on FreeBSD? It would be nice to have both UI and Console interfaces as long as they are easy to use. I like to use Gnome oriented tools when it comes to UI. Figaro's Password Manager seems to be the best choice. http://sergei.homeunix.org/~sergei/notes/PasswordManagersOnFreeBSD.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Stupid ASCII loader prompt
hello i find that loader prompt very frustrating: 1. it is *VERY* unprofessional 2. having that demon in there, it invites evil into my world 3. it's bad for my image too, when other people see it, they laugh and go: is THAT your supersystem? blah somebody please tell me, how do i remove it? i don't want anything to do with it. thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chmod equivalent to find commands
On Sat, Mar 12, 2005 at 06:53:59AM -0500, Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; The EXACT equivalent would be: find . -type d -exec chmod u=rwx,go=rx {} \; find . -type f -exec chmod u=rw,go=r {} \; But I take it that that isn't exactly what your looking for. Your probably looking for something like chmod -R u=rwX,go=rX . it fixes my permissions ... i haven't tested this yet but i think it's wrong: chmod -R u+rwX,a+rX This may work it depends on exactly what you need to do and how bad your permissions are messed up. Instead of a+rX, it might be better to do go+rX since you already have u covered, but I don't think it will make a big difference. Also, this adds to the existing permissions, it won't take away any permissions like my example earlier does. Lastly, the big difference between this and the find version is that the find version, both mine and yours, will set the execute bit on all directories and not on any normal files where the recursive chmod with the X permission with set the x permission on any file/directory that already has at least one type of execute permission already set and not on any other files or directories. So if your permissions are messed so badly that you have directories without any execute permission, this won't fix that. The find version on the other hand will ignore everything that is not a normal file or directory (i.e. fifos, sockets, device files), but this probably won't be a big deal either. The single recursive chmod I gave you will most likely be what you need. what would be the best solution here? thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpeTFjDB1JLg.pgp Description: PGP signature
Re: chmod equivalent to find commands
On Sat, Mar 12, 2005 at 09:53:02PM +0200, Giorgos Keramidas wrote: On 2005-03-12 10:30, Eric McCoy [EMAIL PROTECTED] wrote: Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Uhm, why? Even if that were possible, isn't clarity more important that stuffing as many actions as possible in one line? What you list above is similar to the way I use for changing the permissions of files/dirs and it works all the time. There's no reason to try to write one, long, complicated command just for the sake of making it one command instead of two. Otherwise, you may as well do more complex stuff like: Summing it up into one command does not neccessarily mean it's longer or more complicated. I use the following command all the time to fix permissions similar to what he seems to be doing. Though it's not technically equivalent, it's probably all he needs. chmod -R u=rwX,go=rX . My umask of 022 simplifies the command to the following: chmod -R =rwX . find . | while read line; do mode='' [ -d ${line} ] mode=0755 [ -f ${line} ] mode=0644 [ -n ${mode} ] echo chmod ${mode} \${line}\ done | sh But this is getting quickly very difficult to remember easily and repeat consistently every time you want to do something similar :) what would be the best solution here? I would do it the same way you do, but with xargs instead: find . -type X -print0 | xargs -0 chmod XXX This is an excellent way to do this, IMHO. If you were feeling crazy and use sh: find . | while read path; do \ if [ -d $path ]; then chmod 755; else chmod 644; fi; \ done I guess you meant to write: find . | while read path; do \ if [ -d $path ]; then chmod 755 ${path}; else chmod 644 ${path}; fi; \ done Otherwise, many chmod failures are the only result. But this has a minor buglet. It will change everything that is not a directory to mode 0644. This mode is ok for files, but it may not be ok (or it may even fail) for other stuff (symbolic links, for instance). - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgppl3wPpj89X.pgp Description: PGP signature
Re: chmod equivalent to find commands
On Sun, Mar 13, 2005 at 02:09:12AM -0800, Loren M. Lang wrote: On Sat, Mar 12, 2005 at 06:53:59AM -0500, Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; The EXACT equivalent would be: find . -type d -exec chmod u=rwx,go=rx {} \; find . -type f -exec chmod u=rw,go=r {} \; But I take it that that isn't exactly what your looking for. Your probably looking for something like chmod -R u=rwX,go=rX . And one last thing, I'm assuming your umask is probably 022. When chmod doesn't have the u, g, o, or a qualifies, then it uses the umask to mask the permission bits as appropriate so the command can be simplified to the following: chmod -R =rwX . it fixes my permissions ... i haven't tested this yet but i think it's wrong: chmod -R u+rwX,a+rX This may work it depends on exactly what you need to do and how bad your permissions are messed up. Instead of a+rX, it might be better to do go+rX since you already have u covered, but I don't think it will make a big difference. Also, this adds to the existing permissions, it won't take away any permissions like my example earlier does. Lastly, the big difference between this and the find version is that the find version, both mine and yours, will set the execute bit on all directories and not on any normal files where the recursive chmod with the X permission with set the x permission on any file/directory that already has at least one type of execute permission already set and not on any other files or directories. So if your permissions are messed so badly that you have directories without any execute permission, this won't fix that. The find version on the other hand will ignore everything that is not a normal file or directory (i.e. fifos, sockets, device files), but this probably won't be a big deal either. The single recursive chmod I gave you will most likely be what you need. what would be the best solution here? thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgp8S8gtJsQUs.pgp Description: PGP signature
Re: Stupid ASCII loader prompt
On Sun, Mar 13, 2005 at 05:06:40AM -0500, Fafa Diliha Romanova wrote: hello i find that loader prompt very frustrating: 1. it is *VERY* unprofessional I don't see much difference between seeing a giant daemon, a giant window, and a giant apple on startup. 2. having that demon in there, it invites evil into my world It's not a demon, but a daemon. 3. it's bad for my image too, when other people see it, they laugh and go: is THAT your supersystem? blah All my friends think it's so much cooler than that penguin they used to see. All that aside, I think putting beastie_disable=YES in /boot/loader.conf will do the trick. somebody please tell me, how do i remove it? i don't want anything to do with it. thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgp7dMP90u3ee.pgp Description: PGP signature
Re: chmod equivalent to find commands
Thank you for your kind assistance! That was exactly what I was looking for. But after the constructive response from many other kind souls on this list, I have decided to stick with my find command for now and keep your recursive chmod as an alternate. I keep a local mirror of all my modified configuration files (gives me easy backup and a great deal control over my system). I needed this command to quickly change permissions and ownership of the homedir I store them in. Thanks again! -- Fafa - Original Message - From: Loren M. Lang [EMAIL PROTECTED] To: Fafa Diliha Romanova [EMAIL PROTECTED] Subject: Re: chmod equivalent to find commands Date: Sun, 13 Mar 2005 02:09:12 -0800 On Sat, Mar 12, 2005 at 06:53:59AM -0500, Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; The EXACT equivalent would be: find . -type d -exec chmod u=rwx,go=rx {} \; find . -type f -exec chmod u=rw,go=r {} \; But I take it that that isn't exactly what your looking for. Your probably looking for something like chmod -R u=rwX,go=rX . it fixes my permissions ... i haven't tested this yet but i think it's wrong: chmod -R u+rwX,a+rX This may work it depends on exactly what you need to do and how bad your permissions are messed up. Instead of a+rX, it might be better to do go+rX since you already have u covered, but I don't think it will make a big difference. Also, this adds to the existing permissions, it won't take away any permissions like my example earlier does. Lastly, the big difference between this and the find version is that the find version, both mine and yours, will set the execute bit on all directories and not on any normal files where the recursive chmod with the X permission with set the x permission on any file/directory that already has at least one type of execute permission already set and not on any other files or directories. So if your permissions are messed so badly that you have directories without any execute permission, this won't fix that. The find version on the other hand will ignore everything that is not a normal file or directory (i.e. fifos, sockets, device files), but this probably won't be a big deal either. The single recursive chmod I gave you will most likely be what you need. what would be the best solution here? thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 2.dat -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why not?
bsdzz wrote: On the other hand, no, Linux does not have that stupid notion of having totally separate kernel development for different issues. If you want a secure BSD, you get OpenBSD; if you want a usable BSD, you get FreeBSD; and if you want BSD on other architectures, you get NetBSD. That___s just idiotic, to have different teams worry about different things. I guess Linus didn't have anything to say about the 200 different versions of Linux, with their 200 different installers, and 200 different file hierachies, and their multiple package management systems. Why not all three teams work together for just one BSD version? If I remember correctly, there are multiple versions of BSD because the teams could not work together. Indeed. I'm not judging nor do I know what its all about, but things like this won't bring the BSD's together... quote From: Theo de Raadt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [BSD-Misc] FreeBSD hiding security stuff A few FreeBSD developers apparently have found some security issue of some sort affecting i386 operating systems in some cases. They have refused to give us real details. A promise is now being made. If a bug is found in OpenSSH, which we believe to have security consequences, we wil inform FreeBSD last. Fair is fair. I really wish it was not this way, but after a week of trying to get the policy to be fixed, we are changing our policy as well. Without immediate action from them to repair their policy, and a public apology for this, that policy will stand. /quote Beni. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chmod equivalent to find commands
I think it's really best that I stick to my find commands. chmod -R u=rwX,go=rX . worked really fast but it also made all my files executable. Bad idea, asking for such a command. By the way, umask 022? What is meant by that? - Original Message - From: Loren M. Lang [EMAIL PROTECTED] To: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: chmod equivalent to find commands Date: Sun, 13 Mar 2005 02:15:00 -0800 On Sat, Mar 12, 2005 at 09:53:02PM +0200, Giorgos Keramidas wrote: On 2005-03-12 10:30, Eric McCoy [EMAIL PROTECTED] wrote: Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Uhm, why? Even if that were possible, isn't clarity more important that stuffing as many actions as possible in one line? What you list above is similar to the way I use for changing the permissions of files/dirs and it works all the time. There's no reason to try to write one, long, complicated command just for the sake of making it one command instead of two. Otherwise, you may as well do more complex stuff like: Summing it up into one command does not neccessarily mean it's longer or more complicated. I use the following command all the time to fix permissions similar to what he seems to be doing. Though it's not technically equivalent, it's probably all he needs. chmod -R u=rwX,go=rX . My umask of 022 simplifies the command to the following: chmod -R =rwX . find . | while read line; do mode='' [ -d ${line} ] mode=0755 [ -f ${line} ] mode=0644 [ -n ${mode} ] echo chmod ${mode} \${line}\ done | sh But this is getting quickly very difficult to remember easily and repeat consistently every time you want to do something similar :) what would be the best solution here? I would do it the same way you do, but with xargs instead: find . -type X -print0 | xargs -0 chmod XXX This is an excellent way to do this, IMHO. If you were feeling crazy and use sh: find . | while read path; do \ if [ -d $path ]; then chmod 755; else chmod 644; fi; \ done I guess you meant to write: find . | while read path; do \ if [ -d $path ]; then chmod 755 ${path}; else chmod 644 ${path}; fi; \ done Otherwise, many chmod failures are the only result. But this has a minor buglet. It will change everything that is not a directory to mode 0644. This mode is ok for files, but it may not be ok (or it may even fail) for other stuff (symbolic links, for instance). - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 2.dat -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid ASCII loader prompt
Thank you! I don't see much difference between seeing a giant daemon, a giant window, and a giant apple on startup. Like the words of a blind man. It's not a demon, but a daemon. demon n 1: one of the evil spirits of traditional Jewish and Christian belief [syn: {devil}, {fiend}, {daemon}, {daimon}] All my friends think it's so much cooler than that penguin they used to see. Keep your friends close, but your enemies closer. All that aside, I think putting beastie_disable=YES in /boot/loader.conf will do the trick. Excellent! THANK YOU! :) Such a thing cannot be centralized to rc.conf instead? Thanks, -- Fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chmod equivalent to find commands
On Sun, Mar 13, 2005 at 05:33:12AM -0500, Fafa Diliha Romanova wrote: I think it's really best that I stick to my find commands. chmod -R u=rwX,go=rX . worked really fast but it also made all my files executable. That should only of happened if they already had at least one execute bit set. Now if you mistyped it as a lower-case x, then it's garenteed to set the execute bit. Bad idea, asking for such a command. By the way, umask 022? What is meant by that? umask is used to mask off certain permission bits from being set when a file is created. Most files are created with permissions 666, but a umask of 022 will mask it to 644. For directories it would mask 777 to 755. Other common umask are 002, 027, and 077. Umask: 022 002 027 077 022 002 027 077 Start: 666 666 666 666 777 777 777 777 Finish: 644 664 640 600 755 775 750 700 The techninal operation is mode ~umask Now when you use the string =rwX instead of something like u=rwX, no qualifier in front of the =, +, or - sign, then it sets all bits minus what is masked off so a umask of 022 will prevent it from setting the write bit on group or other permissions. - Original Message - From: Loren M. Lang [EMAIL PROTECTED] To: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: chmod equivalent to find commands Date: Sun, 13 Mar 2005 02:15:00 -0800 On Sat, Mar 12, 2005 at 09:53:02PM +0200, Giorgos Keramidas wrote: On 2005-03-12 10:30, Eric McCoy [EMAIL PROTECTED] wrote: Fafa Diliha Romanova wrote: hello. i know there's an equivalent to these two find commands that can be summed up in one chmod command: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Uhm, why? Even if that were possible, isn't clarity more important that stuffing as many actions as possible in one line? What you list above is similar to the way I use for changing the permissions of files/dirs and it works all the time. There's no reason to try to write one, long, complicated command just for the sake of making it one command instead of two. Otherwise, you may as well do more complex stuff like: Summing it up into one command does not neccessarily mean it's longer or more complicated. I use the following command all the time to fix permissions similar to what he seems to be doing. Though it's not technically equivalent, it's probably all he needs. chmod -R u=rwX,go=rX . My umask of 022 simplifies the command to the following: chmod -R =rwX . find . | while read line; do mode='' [ -d ${line} ] mode=0755 [ -f ${line} ] mode=0644 [ -n ${mode} ] echo chmod ${mode} \${line}\ done | sh But this is getting quickly very difficult to remember easily and repeat consistently every time you want to do something similar :) what would be the best solution here? I would do it the same way you do, but with xargs instead: find . -type X -print0 | xargs -0 chmod XXX This is an excellent way to do this, IMHO. If you were feeling crazy and use sh: find . | while read path; do \ if [ -d $path ]; then chmod 755; else chmod 644; fi; \ done I guess you meant to write: find . | while read path; do \ if [ -d $path ]; then chmod 755 ${path}; else chmod 644 ${path}; fi; \ done Otherwise, many chmod failures are the only result. But this has a minor buglet. It will change everything that is not a directory to mode 0644. This mode is ok for files, but it may not be ok (or it may even fail) for other stuff (symbolic links, for instance). - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 2.dat -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpL1VDKoE3jR.pgp Description: PGP signature
Re: Stupid ASCII loader prompt
On Sun, 13 Mar 2005 05:06:40 -0500, Fafa Diliha Romanova [EMAIL PROTECTED] wrote: hello i find that loader prompt very frustrating: 1. it is *VERY* unprofessional 2. having that demon in there, it invites evil into my world tooo late...by using FreeBSD you've already invited evil into your world...:)) check this link to see the bad thing you did http://www.freebsd.org/copyright/daemon.html 3. it's bad for my image too, when other people see it, they laugh and go: is THAT your supersystem? blah somebody please tell me, how do i remove it? the best solution is to use fdisk... i don't want anything to do with it. thanks, -- fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
To Jail behind NAT or not.
Greetings all, I have the following topology: Internet - Gateway - DMZ | LAN I'm using PF to redirect traffic to the DMZ machine which carries the following: bind9;postfix;dovecot(imaps,pop3s),openwebmail;apache13;isc dhcp;sfs,ftps I have ssl certs for services such as mail/web/ftp. The gateway machine has 3 NICs and doesn't have any service enabled on its external interface nor internal. Remote access is denied to the gateway only console access allowed. It only forwards traffic to the inside DMZ. Also my LAN is on a different subnet from the DMZ. If all my services are behind that NAT box is it premature or too much paranoid to have multiple jails one for postfix another for apache and so on..on the DMZ machine that is hosting all these services ? Or can I say that I'm protected to a good extent that jail won't give me any additional protection because services are behind NAT ? I use SSH keys to access anymachin on my network, and I have OTP configured if I needed access from outside my network for college. Thanks for the insight. -- Regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Incorrect geometry
On Fri, Mar 11, 2005 at 10:32:19PM -0600, Mike Loiterman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin Kinsey mailto:[EMAIL PROTECTED] wrote: Mike Loiterman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When I do a new install of FreeBSD 5.3-RELEASE I get an error saying the drive geometry is incorrect. In the next screen, I put in the correct geometry, as reported by the BIOS, but after I hit q, I get the same error. The drive is a brand new 160 SATA Segate. The geometry FreeBSD suggests yield 152 Gigs, slices correctly and functions perfectly. I'm plannning on reformating anyway as this is only a test run, but do I need to be conserned about the error? Isn't the rest of the error message using a more likely geometry? IANAE, but I believe FBSD is simply stating that it doesn't find the BIOS's numbers to be what it wants, so it's going to use its own. This would explain the effect you see in the second sentence above. As yield, slice, and function seems OK, I think go for it! is perfectly good advice in this instance. I've seen the error several times, too, and so far so good. I am willing to be corrected by my betters, though, of course. Kevin Kinsey It does say, using a more likely geometry. The numbers are vastly different then what the BIOS says, but as I said, the capacity seems correct and it functions normally. I just don't want to have any trouble down the road... It shouldn't be a problem. Geometries nowdays aren't as useful as they used to be and aren't really used much, LBA alleviates most of that. The geometries that FreeBSD uses aren't the same that the drive internally uses. In fact, using geometries has been the cause of an old 8 gig limit on hard drives, a newer 137 gig limit, and an old boot loader problem booting anything over cylinder 1023. As for the missing 8 gigs, that's probably because your hard drive manufacture used SI units (10^3=1000) instead of the standard units (2^10=1024) just to make the number look bigger. My 250 gig drive is only 238 gig in reality. - -- Mike Loiterman grantADLER Tel: 630-302-4944 Fax: 773-442-0992 Email: [EMAIL PROTECTED] PGP Key: 0xD1B9D18E -BEGIN PGP SIGNATURE- Version: PGP 8.1 iQA/AwUBQjJw02jZbUnRudGOEQIFgACghb4rW7h8yi7Gy51D427MDeIlfMQAn1b5 v4YVKUhIT9gwS6SZBMDDwYK0 =KtaI -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpFxXlYrciuB.pgp Description: PGP signature
Re: To Jail behind NAT or not.
On Sun, Mar 13, 2005 at 03:15:57AM -0800, BSD Mail wrote: Greetings all, I have the following topology: Internet - Gateway - DMZ | LAN I'm using PF to redirect traffic to the DMZ machine which carries the following: bind9;postfix;dovecot(imaps,pop3s),openwebmail;apache13;isc dhcp;sfs,ftps I have ssl certs for services such as mail/web/ftp. The gateway machine has 3 NICs and doesn't have any service enabled on its external interface nor internal. Remote access is denied to the gateway only console access allowed. It only forwards traffic to the inside DMZ. Also my LAN is on a different subnet from the DMZ. If all my services are behind that NAT box is it premature or too much paranoid to have multiple jails one for postfix another for apache and so on..on the DMZ machine that is hosting all these services ? Or can I say that I'm protected to a good extent that jail won't give me any additional protection because services are behind NAT ? An NAT router doesn't protect against buffer overflows in apache or postfix, or any other number of bugs that they may have. All nat really does is prevents someone from trying to connect to arbitrary ports of arbitrary machines behind the router that aren't being forwarded inside, but it doesn't protect the ports that are forwarded like http to your dmz machine. I use SSH keys to access anymachin on my network, and I have OTP configured if I needed access from outside my network for college. Thanks for the insight. -- Regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpfJgq6FVT3R.pgp Description: PGP signature
Re: Location of disklabel
On Thu, Mar 10, 2005 at 04:32:30PM -0500, Carl J wrote: Hi all! To all your FS guru's outthere, I desperately need to know where the disklabel is stored (since my disk is in trouble!) Situation: My /dev/ad0s1 has 2 partitions: a (FS) followed by b (swap). By using disklabel -r, I see my a and b indeed take up the entire slice. My desperate question: Where, then, is the disklabel stored? The second sector of the slice that the disklabel is partitioning. For example, a disklabel on your first slice would be stored in the second sector of /dev/ad0s1. The command dd if=/dev/ad0s1 skip=1 | hexdump will give you a hexdump of the disklabel. Since the 'a' partition of the disklabel normally starts at the beginning of the slice that the disklabel is in, it is identical to reading from the slice directly, just a little shorter. Also, the 'c' partition always covers the entire slice so it is identical assuming the disklabel isn't messed up. Somewhere in the partition table? The Master Boot Record? The reserved cylinder #0? No, msdos partition table that creates what are called slices in the bsd world reside in the last few byte of the Master boot record, but this has nothing to do with the disklabel that is stored in the slice. And normally the only thing you will find in cylinder 0 is the master boot record which is the very first sector of the hard disk. Or is it stored somewhere inside /dev/ad0s1a ?? (if that's the case, does that mean the UFS1 intentionally left some space unused, for this purpose? And if so, is it always at a fixed location within a UFS1 slice?) Actually, since the 'a' partition is the same as the beginning of the slice it's in, the ufs filesystem always skips the first 16 sectors of whatever partition it's in. What if in my slice, I have SWAP first, and then UFS1, then does that mean the SWAP Format also reserves some unused space for the disklabel to go??? Sorry if the question is stupid. I just somehow couldn't logically see where it would be stored, and yet be compatible with having other OS on the same drive... etc. Thanks! - Carl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpSnGRsgOe1o.pgp Description: PGP signature
RE: format slice
-Original Message- From: Alejandro Pulver [mailto:[EMAIL PROTECTED] Sent: zondag 13 maart 2005 1:30 To: Alejandro Pulver Cc: Freek Nossin; 'Jerry McAllister'; freebsd-questions@freebsd.org Subject: Re: format slice On Sat, 12 Mar 2005 21:06:05 -0300 Alejandro Pulver [EMAIL PROTECTED] wrote: On Sun, 13 Mar 2005 00:04:06 +0100 Freek Nossin [EMAIL PROTECTED] wrote: Then I used bsdlabel to create a label on ad0s1 by typing: #bsdlabel -w ad0s1 And following the handbook, my next command was: #bsdlabel -e ad0s1 Now I wrote in the text editor (I admit, after 4 tries and a lot of reading...): # /dev/ad0s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] c: 208201770unused0 0 # raw part, don't e: 2082017704.2BSD 2048 16384 32776 now I wanted to use newfs to create a file system on ad0s1e, but it could not. My problem is illustrated by my ls output: pcwin451# ls /dev/ad* /dev/ad0/dev/ad0s2 /dev/ad0s2b /dev/ad0s2d /dev/ad0s1 /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e bsdlabel -e didn't create a new partition, although the output of bsdlabel ad0s1 is: pcwin451# disklabel ad0s1 # /dev/ad0s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] c: 208201770unused0 0 # raw part, don't edit e: 20820161 164.2BSD 2048 16384 32776 How can this be? (and how do I fix it...?) Thanks for your help already so far Freek Hello, In my second disk I have free space between two slices so I tried the procedure by myself. When I did a 'bsdlabel -w /dev/adXsY' (without editing them) I ended with a partition labeled 'a', and it instantly appeared in '/dev/'. Then I did what you have done ('bsdlabel -e slice') and it also appeared in'/dev'. I do not know about this, but maybe this helps: 1) Try with only 'bsdlabel -w slice'. The partition should appear as'a'. 2) If the partition does not appear in '/dev/' then you can reinitialize the ATA channel (0 or 1, I think your disk is in 0) your disk is in, with 'atacontrol reinit channel'. For a list of ATA channels with the devices do 'atacontrol list'. ***WARNING***: do ***NOT*** 'detach' and 'attach' the channel your device your running hard disk (that contain the FreeBSD you are running) is connected to (but you can safely 'reinit' it). A 'detach' removes the disk and slices/partitions from the kernel and powers down the devices in that channel, so FreeBSD will stall when it tries to read/write on its partitions ('/', '/usr', etc.). I could detach and atach it once (in less than 5 seconds), but the other time it crashed my machine (I had to rewrite this mail three times, because I was experimenting with 'atacontrol'). It is more safe to reboot the machine. Best Regards, Ale Thank, but unfortunately it dit not help pcwin451# atacontrol reinit 0 Master: ad0 Maxtor 5T020H2/TAH71DP0 ATA/ATAPI revision 6 Slave: no device present pcwin451# bsdlabel -w ad0s1 pcwin451# ls /dev/ad* /dev/ad0/dev/ad0s2 /dev/ad0s2b /dev/ad0s2d /dev/ad0s1 /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, Have you tried to reinitialize the ata channel before changing the partitions? Sorry, I mean after. Try unmounting '/dev' and mounting it again (forcing it with '-f'). If the problem persist, the only alternative is to reboot. Do you have a dynamic IP? If that is the case it is possible to add a crontab entry that executes a script on each system startup. The script can send you an e-mail to you using the internal sendmail (must be enabled for that) relay so it will contain the IP of your server (in the complete headers). Alternatively the script can upload a file containing the output of 'ifconfig' to an FTP site. If you are interested you can ask me for more information. Best Regards, Ale ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hello, I did try to reinitialize the ata channel: no effect I did try to unmount and mount /dev: no effect Next on the list was: Shutdown -r now. The reboot fortunately went well. But my problems weren't solved. Still ad0s1a wasn't in /dev.
RE: Confused about connection between an option in rc.conf and the associated action?
Hello Giorgos and everybody else Thank you for your answers. It clarified things a bit but there is still a few things that I don't understand. Say I want to create my own script that should run depending on the setting in rc.conf: - Do I need to parse rc.conf myself in the script or is rc.conf parsed once and for all by rcorder (or someone else) and the settings are available e.g. as environment variables? - How is my own script found and executed by the rc script? Does the rc script execute all *.sh files in the /etc/rc.d/ directory or is some other mechanism used? - Must the config string in rc.conf have any correspondence to the actual script file using it? E.g. if I add a setting test_enable=YES my script must be named test.sh? - This last question is somewhat related to the first. Say that I don't have to parse rc.conf myself, which variable name to I test in my script for the rc.conf setting? E.g. if I have a config string in rc.conf named test_enable=YES, how do I test for this variable's value? Do I use test_enable == YES or do I use test == YES, i.e. the _enable part may be stripped by the parser? BTW I use FreeBSD 5.3. Kind regards, Ola Theander -Original Message- From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] Sent: den 13 mars 2005 03:14 To: Ola Theander Cc: freebsd-questions@freebsd.org Subject: Re: Confused about connection between an option in rc.conf and the associated action? # Redirected from freebsd-newbies to freebsd-questions. # Please do not post technical questions to freebsd-newbies. # This is what freebsd-questions is for. Followups set. On 2005-03-13 02:49, Ola Theander [EMAIL PROTECTED] wrote: Dear subscribers I'm slightly confused about enabling an option in rc.conf and the associated action? E.g. say that I enable gateway_enable=YES or maybe dhcpd_enable=YES, how does FreeBSD associate this simple line to the associated action? I've had a theory that adding e.g. test_enable=YES to rc.conf would trigger the execution of the file /etc/rc.d/test.sh at boot time but it seems like this isn't how it's done. The /etc/rc script is the first rc script that runs. This is the one that takes care of running all the rest of the rc stuff. In pre-5.X versions of FreeBSD, the /etc/rc script called a predefined set of /etc/rc.* scripts at specific points during the startup process, delegating pieces of the work to them. In 5.3-RELEASE and later versions of FreeBSD, there is a collection of small /etc/rc.d/* scripts, that are called by /etc/rc instead of the older /etc/rc.* stuff. The specific order these scripts will have is determined at boot time, by the /sbin/rcorder utility. Each script, either one of the older /etc/rc.* stuff or the newer /etc/rc.d/* scripts, slurps in /etc/rc.conf and then checks what parts of the script are enabled to run. It is the responsibility of the specific script to check the proper rc.conf variables and act accordingly. A small example of an rc script that checks a variable and modifies its own behavior is /etc/rc.d/tmp, which contains (among other stuff): load_rc_config $name # If we do not have a writable /tmp, create a memory # filesystem for /tmp. If /tmp is a symlink (e.g. to /var/tmp, # then it should already be writable). # case ${tmpmfs} in [Yy][Ee][Ss]) ... Thus, it's not /etc/rc that checks the tmpfs variable from rc.conf, but the specific script that is interested in its value. Regards, Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Who is using ACLs in production?
Anyone using ACLs in production on FreeBSD 5.x? If so, how do you use them, and what are your impressions? How do they affect performance, how reliable is the code, does it really help security, etc.? I've enabled them on my test system to see how they work. Also, if someone can tell me why tunefs refuses to enable ACLs on the root filesystem, I'd appreciate it. I get # tunefs -a enable /dev/da0s1a tunefs: ACLs set tunefs: /dev/da0s1a: failed to write superblock I get the same error if I try to set ACLs on just '/', and the error is the same in both single-user and multiuser modes. If I mount / read-only, I can set ACLs and verify it with tunefs -p, but after I reboot, the ACLs are disabled again. What do I have to do to enable ACLs on /? -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Confused about connection between an option in rc.conf and the associated action?
On 2005-03-13 13:15, Ola Theander [EMAIL PROTECTED] wrote: Hello Giorgos and everybody else Thank you for your answers. It clarified things a bit but there is still a few things that I don't understand. Say I want to create my own script that should run depending on the setting in rc.conf: - Do I need to parse rc.conf myself in the script or is rc.conf parsed once and for all by rcorder (or someone else) and the settings are available e.g. as environment variables? This is done implicitly, by the common code present in ``/etc/rc.subr''. A typical rc.d script that uses the rc.subr stuff to do its work will contain near the beginning a line like: . /etc/rc.subr This pulls in a lot of useful shell code. In particular, the load_rc_config() and run_rc_command() shell functions are defined after rc.subr has been pulled in. These two functions can then be used as an abstraction around the rc.conf options, as shown in the final two lines of every /etc/rc.d script: load_rc_config ${name} run_rc_command $1 The first of these two lines takes care of finding out which options of rc.conf apply for this particular rc.d script and preparing internal ``rc.subr'' variables that are used to perform the action requested (start, stop, restart the service associated with the rc.d script, etc). - How is my own script found and executed by the rc script? Does the rc script execute all *.sh files in the /etc/rc.d/ directory or is some other mechanism used? All the *.sh and all the executable files under ``/etc/rc.d'' are considered rc scripts and are run by the following part of ``/etc/rc'': files=`rcorder ${skip} /etc/rc.d/* 2/dev/null` for _rc_elem in ${files}; do run_rc_script ${_rc_elem} ${_boot} done The logic of the tests and what _is_ an rc script is hidden a bit, in the definition of run_rc_script() within ``/etc/rc.subr''. - Must the config string in rc.conf have any correspondence to the actual script file using it? E.g. if I add a setting test_enable=YES my script must be named test.sh? Not necessarily. The load_rc_config() shell function takes care of setting the ``rc.conf'' variables that you ask for. You could call your rc script ``/etc/rc.d/ola'' and then set $name in the script itself to something different: % grep name /etc/rc.d/ola name='myrc' Then ``/etc/rc'' would run as a script called ``ola'' but use myrc_XXX=YES options from the ``/etc/rc.conf'' file. - This last question is somewhat related to the first. Say that I don't have to parse rc.conf myself, which variable name to I test in my script for the rc.conf setting? You don't have to explicitly test anything, unless you really need to (i.e. your rc script depends on at least one other option being set). E.g. if I have a config string in rc.conf named test_enable=YES, how do I test for this variable's value? You don't. At least you don't have to. You just set $name to the proper value and let run_rc_command() do the checks for you. If you find yourself in the need to _do_ some check though, the checkyesno() shell function of ``/etc/rc.subr'' can help a lot: if checkyesno ${test_special} ;then # The special ``test_special'' option is set. # Do something about it. fi Do I use test_enable == YES or do I use test == YES, i.e. the _enable part may be stripped by the parser? The _enable part *is* necessary, AFAIK. Regards, Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Java
I have an application written in Java that I am thinking about deploying on FreeBSD. I am considering FreeBSD because of its reputation for stability and performance. The only concern I have is the port of Java on this system. I am a newcomer to FreeBSD (a few days in fact) so I just wanted to know what is the stability / reliability of the Java implementation? Are there many known problems etc. Regards, Rhys ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: connecting a FreeBSD-4.10 to Internet using DSL with static ip address
I have tried searching the net with FreeBSD+DSL but all I can read is about PPPoE which requires a username and password which I don't have. My DSL account is an always on account with a static IP address and I guess it doesnt have a username/password for connection to the ISP. My DSL is always on and I get static IP, however, I do have a user name and password. I am in Australia by the way. You may try getting an ADSL modem+router, not just an ADSL modem. The router will connect to the ISP, and it is via PPPoE, the modem provides DHCP, then you can connect your 4.10 to it. But then again, I do supply username and password to the ADSL router. Please find out from your ISP if you do get a username+ password. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Java
Rhys Campbell writes: I have an application written in Java that I am thinking about deploying on FreeBSD. I am considering FreeBSD because of its reputation for stability and performance. The only concern I have is the port of Java on this system. I am a newcomer to FreeBSD (a few days in fact) so I just wanted to know what is the stability / reliability of the Java implementation? Are there many known problems etc. Why not just write it in C or some other compiled language, and eliminate the variable of a Java interpreter (while improving performance greatly to boot)? -- Anthony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Portinstall/upgrade stops with no error
On Sunday 13 March 2005 02:36 am, Doug Lee wrote: On Sat, Mar 12, 2005 at 03:24:19PM -0800, Michael C. Shultz wrote: Portmanager is at version 0.2.9_2 now so you should update with cvsup. I'm guessing you did not run portmanager as root, if that is the problem the current version will correctly report it. -Mike Yes I ran it as root (hence the # in Kirk 3#), but I'm now doing a cvsup of ports and will try an upgrade of portmanager anyway. If it still cores, build with WITH_DEBUG=yes and send me the core please if you are on a X86 system. If not the output of gdb /usr/local/bin/portmanager ./portmanager.core bt would be very helpful. Thanks -Mike Built with debug, still cores. gdb output first: (gdb) bt #0 0x280d5b74 in strstr () from /usr/lib/libc.so.4 #1 0x2806f7a0 in PMGRrAddDependencies (property=0xbfbff5b4, portName=0x804e1b0 pine-4.44) at PMGRrAddDependencies.c:109 #2 0x2806fca6 in PMGRrDbCreate (property=0xbfbff5b4) at PMGRrDbCreate.c:173 #3 0x280746ff in PMGRrStatus (property=0xbfbff5b4) at PMGRrStatus.c:53 #4 0x8049137 in PMGRrShowLeaves () at PMGRrShowLeaves.c:26 #5 0x8048a44 in PMGRrShowLeaves () at PMGRrShowLeaves.c:26 #6 0x8048986 in PMGRrShowLeaves () at PMGRrShowLeaves.c:26 (gdb) f 1 #1 0x2806f7a0 in PMGRrAddDependencies (property=0xbfbff5b4, portName=0x804e1b0 pine-4.44) at PMGRrAddDependencies.c:109 109 stringSize = strstr( portDependencyDir, \n ) - portDependencyDir; (gdb) print portDependency $1 = 0x8050049 cclient-2001a,1 (gdb) Core size 417 K. If you need it, I'll email it privately. I doubt there's anything compromising in there... This back trace is very helpful, from it I should be able to find the problem so thanks! If your machine is a X86 class machine then sending the core file would make things even easier, also the output of uname -a would be nice. On first glance I am suspicious of the /var/db/pkg/pine-4.44/+CONTENTS file, it maybe corrupt on your system but I need to install pine and check it out on my system first. Even if there is something wrong with pine on your system portmanager should be printing an error message and not core dumping. I certainly have a bug to fix on this end so thanks for reporting this! I'll keep you informed on the progress with fixing this. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid ASCII loader prompt
* Fafa Diliha Romanova [2005-03-13 05:41 -0500] It's not a demon, but a daemon. demon n 1: one of the evil spirits of traditional Jewish and Christian belief [syn: {devil}, {fiend}, {daemon}, {daimon}] Firstly, I'd like to say that you of course are free to remove the devil if it offends you. But that beeing said; the fact that the word deamon (or demon for that matter) is used in some contexts to mean something evil, does not necessarily make the word (or the image of it) evil too. It's all about what connotation you put on the word. E.g. to make a file world read-writable you would type chmod 666 file. Even though the number 666 is the number of the devil, the number itself is not evil. Just as little as the command is evil, or someone who types it. It's just a number. Put whatever meaning into it you like! (If, on the other hand, you would put the number inside a pentagram written in blood on some dark stone alter, I would not think the number was meant to be harmless by the writer.) Originally daemon just meant something like spirit. Then it became a certain kind (an evil one) of spirit in some religions. In other places and other contexts (i.e. the FreeBSD community, et.al) that transformation does however not hold true! This makes it irrelevant to bring up these dictionary definitions, as they both are all equally true and false. The dictionary does not define a language, it describes it's use. If deamon in some groups is used to mean evil spirit, while in others to mean spirit as in servant, they are both true! However, noone can deny the fact that Beastie *could* be interpreted as an image of something evil, and that it often does. One should therefore be careful when using the Beastie before an audience you don't know. (That beeing said, one could never be guaranteed not to offend anyone. The apple could easily be thought of as a symbol of the original sin. And the window I'm sure could also be interpreted in some way that would offend someone. This is especially true for words and names, where a word could means something completely different in two languages.) Svein Halvor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Trying to turn ipv6.sh into rc.conf directives ...
Hey! I'm trying to centralize my system by placing as much as possible into rc.conf. I also think it looks prettier that way. These settings were given to me by BTExact: ifconfig gif create ifconfig gif0 inet 213.188.174.11 213.121.24.85 ifconfig gif0 inet6 2001:614:365::d5bb:b546 prefixlen 128 route add -inet6 default 'fe80::%gif0' ifconfig lnc0 inet6 2001:614:365:6ad9:: prefixlen 64 sysctl -w net.inet6.ip6.forwarding=1 /usr/sbin/rtadvd lnc0 So far I've converted them to this: ipv6_enable=YES ipv6_gateway_enable=YES ipv6_network_interfaces=gif0 ipv6_defaultrouter=2001:614:365:: ipv6_network_interfaces=gif0 lnc0 ipv6_ifconfig_gif0=inet 213.188.174.11 213.121.24.85 ipv6_ifconfig_gif0=inet6 2001:614:365::d5bb:b546 prefixlen 128 ipv6_ifconfig_lnc0=inet6 2001:614:365:6ad9:: prefixlen 64 ipv6_network_interfaces=gif0 lnc0 ipv6_firewall_enable=YES ipv6_firewall_type=open rtadvd_enable=YES rtadvd_interfaces=lnc0 Does that look alright to you IPv6 gurus? Will I now be able to reboot with a fully functional IPv6 connection? Thank you, -- Fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid ASCII loader prompt
Svein Halvor Halvorsen wrote: * Fafa Diliha Romanova [2005-03-13 05:41 -0500] It's not a demon, but a daemon. demon n 1: one of the evil spirits of traditional Jewish and Christian belief [syn: {devil}, {fiend}, {daemon}, {daimon} Now, look up Daemon on the same site you used for demon. Surmised: Disk And Execution MONitor Now know it off or I'll summon the evil daemon, Beastie, to rape and pilfer your disk drive. /Sarcasm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Thunderbird and local mail ?
Hi, System: 5.3-REL-p5 I would like to get my local mail (from /var/mail/user) in my Thunderbird (v1.0 - 20050310) mailbox. I found http://lists.freebsd.org/pipermail/freebsd-questions/2003-December/027652.html which is talking about version 0.3... But I get the same message as described after having created a movemail mailbox : unable to create user.lock file. I've tried to set up a movemail for the user and one for Root, but get the same message back. So, how do I get those local mails transferred into my mailbox ? Beni. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cron mail
How do I change the e-mail address and SMTP server cron uses to e-mail the daily root report? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Java
Rhys Campbell wrote: I have an application written in Java that I am thinking about deploying on FreeBSD. I am considering FreeBSD because of its reputation for stability and performance. The only concern I have is the port of Java on this system. I am a newcomer to FreeBSD (a few days in fact) so I just wanted to know what is the stability / reliability of the Java implementation? Are there many known problems etc. Regards, Rhys Rhys, I have been using the native FreeBSD jdk1.4.2-p7 port for a while now and I have not had any problems with it at all. I am also currently developing a Java3D based tool and it also runs very nicely on FreeBSD. If you want an ide, eclipse is in ports and it rocks. Jdk1.5 is still in alpha testing I believe although it seems to work ok but I wouldn't rely on it for anything important just yet. HTH Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Decent HTML editor?
If you just need simple, flat HTML and you really don't want to learn how to code it yourself, you might want to try Amaya. /usr/ports/www/amaya - http://www.w3.org/Amaya/ Amaya, and nvu (which the other fellow mentioned) look like what I am seeking. I will try them both. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Thunderbird and local mail ?
FreeBSDBeni wrote: Hi, System: 5.3-REL-p5 I would like to get my local mail (from /var/mail/user) in my Thunderbird (v1.0 - 20050310) mailbox. I found http://lists.freebsd.org/pipermail/freebsd-questions/2003-December/027652.html which is talking about version 0.3... But I get the same message as described after having created a movemail mailbox : unable to create user.lock file. I've tried to set up a movemail for the user and one for Root, but get the same message back. So, how do I get those local mails transferred into my mailbox ? How and why are you getting local mail? If your using TB for pop/smtp (via ISP), and all you really want is to ensure you get root's mail, goto /etc/mail and edit aliases to something like this: root: [EMAIL PROTECTED] Then, type newaliases and viola, your root's mail is sent to you at your ISP's account, then TB will get that mail. This is only one way of doing it, and without knowing what and why, that's the 1st thing that came to mind. Chris -- Best regards, Chris PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kerberos problems
Hi, I'm currently battling with kerberos, and am having a bit of a problem authenticating. It is most likely an error on my part, the whole process of what is involved in kerberos and how it works is yet to click in my head. I followed the handbook guide to setting it up, and it all seems to be working ok. I have now setup telnetd as described to test how it is working. If I have done a kinit previously, it will log in no problem, but if I do not do a kinit (or do a kdestroy before hand) I get - kerberos V5: mk_req (No Such File or direcotry). Any ideas? Cheers, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ntp problems (strata too high)
This seems to have sorted itself out - it appears to have been working all along, I was just being a bit impatient - i.e. it takes a while for the ntpd server to sync with the other servers, and while it does that it will not answer queries. After a while it will sync with the other servers and happily anser requests (that is my assumption anyway). cheers, Martin Hi, I am having problems getting my client machine syncing with hy ntp server. Details follow - doing a ntpdate -d 192.168.16.1 on the client returns 12 Mar 19:35:56 ntpdate[1443]: ntpdate 4.2.0-a Thu Nov 4 22:31:39 UTC 2004 (1) Looking for host 192.168.16.1 and service ntp transmit(192.168.16.1) receive(192.168.16.1) transmit(192.168.16.1) receive(192.168.16.1) transmit(192.168.16.1) receive(192.168.16.1) transmit(192.168.16.1) receive(192.168.16.1) transmit(192.168.16.1) 192.168.16.1: Server dropped: strata too high server 192.168.16.1, port 123 stratum 16, precision -20, leap 11, trust 000 refid [192.168.16.1], delay 0.02574, dispersion 0.0 transmitted 4, in filter 4 reference time:. Thu, Feb 7 2036 6:28:16.000 originate timestamp: c5ddc31c.eacb5afa Sat, Mar 12 2005 19:35:56.917 transmit timestamp: c5ddc31d.053aaf24 Sat, Mar 12 2005 19:35:57.020 filter delay: 0.02579 0.02577 0.02574 0.02574 0.0 0.0 0.0 0.0 filter offset: -0.10333 -0.10334 -0.10334 -0.10334 0.00 0.00 0.00 0.00 delay 0.02574, dispersion 0.0 offset -0.103344 On the server ntpq -cas returns - ind assID status conf reach auth condition last_event cnt === 1 15532 b024 yes yes nonereject reachable 2 2 15533 b024 yes yes nonereject reachable 2 3 15534 b024 yes yes nonereject reachable 2 4 15535 b024 yes yes nonereject reachable 2 --- and ntpq -p returns remote refid st t when poll reach delay offset jitter == clueful.shagged 195.66.241.3 2 u 107 256 17 33.901 199.499 14.837 sky.nuxi.it 217.11.227.683 u 108 256 17 68.775 212.512 17.382 i157107.upc-i.c 193.79.237.142 u 107 256 17 54.001 203.632 9.815 62.152.126.5146.48.83.1823 u 109 256 17 58.000 201.334 9.996 ntp.conf on server is restrict 192.168.16.0 mask 255.255.255.0 nomodify notrap restrict 127.0.0.1 server uk.pool.ntp.org server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org logfile /var/log/ntp.log --- (server ip is 192.168.16.1, client is 192.168.16.200) doing a ntpdate uk.pool.ntp.org from either server or client syncs fine. Any help would be much appreciated. Cheers, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Java
Anthony Atkielski wrote: Rhys Campbell writes: I have an application written in Java that I am thinking about deploying on FreeBSD. I am considering FreeBSD because of its reputation for stability and performance. The only concern I have is the port of Java on this system. I am a newcomer to FreeBSD (a few days in fact) so I just wanted to know what is the stability / reliability of the Java implementation? Are there many known problems etc. Why not just write it in C or some other compiled language, and eliminate the variable of a Java interpreter (while improving performance greatly to boot)? This is a pretty silly comment. If he has written it in Java then porting it to C is probably not going to be trivial. On the performance side, Java's performance is actually pretty good. This is an article on Java vs various other languages. It is a 2003 article so I would imagine things are even better nowadays. http://www.idiom.com/~zilla/Computer/javaCbenchmark.html Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: format slice
Hello, Sorry I did not noticed it before, but your first slice must be of type 165 (or 0xa5 in hex), that is the type of FreeBSD slices. The data for partition 1 is: sysid 0 (),(unused) start 63, size 20820177 (10166 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 174/ head 15/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 20820240, size 19201392 (9375 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 It appeares as unused. So try changing the type. Best Regards, Ale ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to merge an unused partition.
Am Sonntag, 13. März 2005 05:35 schrieb Chris: Greg 'groggy' Lehey wrote: On Saturday, 12 March 2005 at 21:09:47 -0600, Chris wrote: Heya folks - here's my issue; I removed a OS from my drive and that freed up 10 gig. I wish to merge the free 10 gig into my FreeBSD file system. Here's what she looks like via fdisk: Disk name: ad1FDISK Partition Editor DISK Geometry: 9729 cyls/255 heads/63 sectors = 156296385 sectors (76316MB) Offset Size(MB)End Name PType Desc Subtype 0 10236 20964824- 12 unused0 20964825 66079 156296384ad1s1 8freebsd 165 156296385 2 156301487- 12 unused0 So - what do I need to do to take the 1st line and merge it into the existing system? That depends on what you want to do with the space. It would be relatively complicated (but not impossible) to merge it into an existing file system. If you just want to create a another file system, just create a new partition in the partition editor, set it to tye 165, then in the label editor create one (or just possibly more than one) file system. Both here and in the label editor, use the W command to actually write the stuff to disk. Sorry for the formatting Looks fine to me. Greg I assume doing this while in single user mode. Otherwise I am getting an error: unable to write to disk. If you want to modify a running fs you can set kern.geom.debugflags to 16. -Harry But as you mentioned,. I would prefer to somehow merge it into the current FBSD file system. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] pgpFNqXKB5x9t.pgp Description: PGP signature
Re: Thunderbird and local mail ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris wrote: | FreeBSDBeni wrote: | | Hi, | | System: 5.3-REL-p5 | | I would like to get my local mail (from /var/mail/user) in my | Thunderbird (v1.0 - 20050310) mailbox. | | I found | http://lists.freebsd.org/pipermail/freebsd-questions/2003-December/027652.html | which is talking about version 0.3... But I get the same message | as described after having created a movemail mailbox : unable to | create user.lock file. I've tried to set up a movemail for | the user and one for Root, but get the same message back. | | So, how do I get those local mails transferred into my mailbox ? | | | | How and why are you getting local mail? If your using TB for | pop/smtp (via ISP), and all you really want is to ensure you get | root's mail, goto /etc/mail and edit aliases to something like | this: As to the how and why part : someone has to read the daily/weekly output from /etc/periodic/, no ? Kmail and others handle it nicely, so why shoudn't Thunderbird do it ? (By the way, in Kmail all you have to do is create a local mailbox, point the location to /var/mail/user and chose None as locking method). | root: [EMAIL PROTECTED] I have : root: beni (and ran newaliases) which is me as the user. Why should I send those mails to my ISP and then be read back with TB, since they are already here ? Beni. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCNFza98oeEzEDrEcRArg3AKCQxgLjW5fmp66MXg9J7Hnmr4cZxgCdHwxs fJ0b2XZTU2clKX2J1oH7wq8= =HqSg -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Thunderbird and local mail ?
beni wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris wrote: | FreeBSDBeni wrote: | | Hi, | | System: 5.3-REL-p5 | | I would like to get my local mail (from /var/mail/user) in my | Thunderbird (v1.0 - 20050310) mailbox. | | I found | http://lists.freebsd.org/pipermail/freebsd-questions/2003-December/027652.html | which is talking about version 0.3... But I get the same message | as described after having created a movemail mailbox : unable to | create user.lock file. I've tried to set up a movemail for | the user and one for Root, but get the same message back. | | So, how do I get those local mails transferred into my mailbox ? | | | | How and why are you getting local mail? If your using TB for | pop/smtp (via ISP), and all you really want is to ensure you get | root's mail, goto /etc/mail and edit aliases to something like | this: As to the how and why part : someone has to read the daily/weekly output from /etc/periodic/, no ? Kmail and others handle it nicely, so why shoudn't Thunderbird do it ? (By the way, in Kmail all you have to do is create a local mailbox, point the location to /var/mail/user and chose None as locking method). | root: [EMAIL PROTECTED] I have : root: beni (and ran newaliases) which is me as the user. Why should I send those mails to my ISP and then be read back with TB, since they are already here ? I dunno - as I said, it was off the top. Lots of way to do it. TB also allows the use of local afaik. I can't look now due to the fact that I'm doing a portupgrade. But as you said, if KMail can, TB ought to -- Best regards, Chris PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gtk2 problem?
Hi, just about to install velocity but bump into a lot of dependency upgrade, like atk (1.8- 1.9) and gtk2 (2.4 - 2.6) and pango, etc. anyway, gnomevfs2 failed to compile: gmake[2]: Entering directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' /usr/local/bin/orbit-idl-2 -I `pkg-config --variable=idldir bonobo-activation-2.0` ./GNOME_VFS_Daemon.idl /libexec/ld-elf.so.1: Shared object libgobject-2.0.so.400 not found, required by orbit-idl-2 gmake[2]: *** [GNOME_VFS_Daemon.h] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0' gmake: *** [all] Error 2 *** Error code 2 and want to reinstall gtk-gnutella, since gtk related stuff are change, but this is what I got: cc -c -I../../../.. -I../../.. -I../.. -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -DGUI_SOURCES -DCURDIR=src/ui/gtk/gtk2 -O -O -pipe -I/usr/local/include/ downloads.c In file included from downloads.c:30: pbarcellrenderer.h:57:1: warning: GTK_TYPE_CELL_RENDERER_PROGRESS redefined In file included from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:53, from ../../gtk/gui.h:31, from downloads.c:26: /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:34:1: warning: this is the location of the previous definition In file included from downloads.c:30: pbarcellrenderer.h:62: error: redefinition of typedef 'GtkCellRendererProgress' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:41: error: previous declaration of 'GtkCellRendererProgress' was here pbarcellrenderer.h:63: error: redefinition of typedef 'GtkCellRendererProgressClass' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:42: error: previous declaration of 'GtkCellRendererProgressClass' was here pbarcellrenderer.h:66: error: redefinition of `struct _GtkCellRendererProgress' pbarcellrenderer.h:71: error: redefinition of `struct _GtkCellRendererProgressClass' *** Error code 1 I am not sure if this is due to gtk2 or something, would anybody help me? thank you! Best Regards, Tsu-Fan Cheng _ Do You Yahoo!? @yahoo.com @ http://chinese.mail.yahoo.com Get your free @yahoo.com address at http://chinese.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gtk2 problem?
T.F. Cheng wrote: Hi, just about to install velocity but bump into a lot of dependency upgrade, like atk (1.8- 1.9) and gtk2 (2.4 - 2.6) and pango, etc. anyway, gnomevfs2 failed to compile: gmake[2]: Entering directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' /usr/local/bin/orbit-idl-2 -I `pkg-config --variable=idldir bonobo-activation-2.0` ./GNOME_VFS_Daemon.idl /libexec/ld-elf.so.1: Shared object libgobject-2.0.so.400 not found, required by orbit-idl-2 gmake[2]: *** [GNOME_VFS_Daemon.h] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0' gmake: *** [all] Error 2 *** Error code 2 and want to reinstall gtk-gnutella, since gtk related stuff are change, but this is what I got: cc -c -I../../../.. -I../../.. -I../.. -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -DGUI_SOURCES -DCURDIR=src/ui/gtk/gtk2 -O -O -pipe -I/usr/local/include/ downloads.c In file included from downloads.c:30: pbarcellrenderer.h:57:1: warning: GTK_TYPE_CELL_RENDERER_PROGRESS redefined In file included from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:53, from ../../gtk/gui.h:31, from downloads.c:26: /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:34:1: warning: this is the location of the previous definition In file included from downloads.c:30: pbarcellrenderer.h:62: error: redefinition of typedef 'GtkCellRendererProgress' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:41: error: previous declaration of 'GtkCellRendererProgress' was here pbarcellrenderer.h:63: error: redefinition of typedef 'GtkCellRendererProgressClass' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:42: error: previous declaration of 'GtkCellRendererProgressClass' was here pbarcellrenderer.h:66: error: redefinition of `struct _GtkCellRendererProgress' pbarcellrenderer.h:71: error: redefinition of `struct _GtkCellRendererProgressClass' *** Error code 1 I am not sure if this is due to gtk2 or something, would anybody help me? thank you! What does /usr/ports/UPDATING tell you?! -- Best regards, Chris PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid ASCII loader prompt
On Sunday 13 March 2005 11:06, Fafa Diliha Romanova wrote: 2. having that demon in there, it invites evil into my world What is the daemon doing to that funny penguin? http://gbraad.spotsnel.nl/images/takeittux.png -- The ability of the OSS process to collect and harness the collective IQ of thousands of individuals across the Internet is simply amazing. - Vinod Vallopillil http://www.opensource.org/halloween/halloween4.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kerberos problems
On Sun, Mar 13, 2005 at 03:38:46PM -, [EMAIL PROTECTED] wrote: I followed the handbook guide to setting it up, and it all seems to be working ok. I have now setup telnetd as described to test how it is working. If I have done a kinit previously, it will log in no problem, but if I do not do a kinit (or do a kdestroy before hand) I get - kerberos V5: mk_req (No Such File or direcotry). Any ideas? That sounds like it's working normally. Without a valid ticket (as shown by `klist`), which is cached in a file, services like telent which use Kerberos won't authenticate you. If I'm misunderstanding the problem you're describing, please add some more detail as to what you expected to have happen and how reality differed :-) -T -- Page xxviii: More than any other computer system today, Unix will repay every moment that you spend learning and experimenting. - Harley Hahn, _The Unix Companion_ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Stupid ASCII loader prompt
Luyt wrote: On Sunday 13 March 2005 11:06, Fafa Diliha Romanova wrote: 2. having that demon in there, it invites evil into my world What is the daemon doing to that funny penguin? http://gbraad.spotsnel.nl/images/takeittux.png If Fafa is so put out about the Daemon, then Fafa, you are free to use another OS. Don't go on a wholier then thou crusade and change something that YOU take offense to. We have a saying here in the States, if you don't like whats on the TV or radio, you are free to change the statrion. Do not change the format because you take issue with it, YOU change to something that suits your likes. Now as to the above link - Was that really needed? -- Best regards, Chris PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
¨quotes¨ problem
I have encountered a strange problem with my keyboard: When I try to write double quotes using Shift, I get smaller quotes like these ¨. I checked the ASCII table and it shows that these smaller quotes are \168 rather than the normal \34. Some editors treat them as unknown characters. I am using freeBSD 5.3 with KDE 3.3.2 and my keyboard is a generic 105-key one. If you know how to fix this strange behavior, please send a note. Any insights would be appreciated. Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kerberos problems
On Sun, Mar 13, 2005 at 03:38:46PM -, [EMAIL PROTECTED] wrote: I followed the handbook guide to setting it up, and it all seems to be working ok. I have now setup telnetd as described to test how it is working. If I have done a kinit previously, it will log in no problem, but if I do not do a kinit (or do a kdestroy before hand) I get - kerberos V5: mk_req (No Such File or direcotry). Any ideas? That sounds like it's working normally. Without a valid ticket (as shown by `klist`), which is cached in a file, services like telent which use Kerberos won't authenticate you. If I'm misunderstanding the problem you're describing, please add some more detail as to what you expected to have happen and how reality differed :-) Yeah, it could well be the way it is supposed to work. Basically I want to end up with a centralised login system for my network (i.e. no need to create usernames on each client). I am planning to use ldap for this, and as I understand it ldap can use kerberos for the authentication aspect. So I am atm trying to make sure I have a good understanding of the kerberos system and have it up and running before I tackle the next part. what I was assuming would happen when I try to telnet in without a ticket (i.e. with running kinit) was that I would get asked for a username/password, and then I would get issued a ticket, rather than manually having to kinit first. How would this affect using pam to authenticate i.e. if I want to use pam_krb to login to the console, I would not be able to run kinit before hand? [Apologies for sending this to you twice tillman , need to be more careful with the reply to button :)] Cheers, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
var/tmp
I'd like some info on: man 7 hier: /var/tmp tempory files that are kept between system reboots Can I safely delete this directory. Probabl not 'cause it's kept in between, but how can I weed some files then in a safe manner? What can and what cannot be deleted and why? some info poiters would be welcome ;-) -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Realplay10GOLD] Error: ELF binary type 0 not known
On Sun, 13 Mar 2005, Jason Henson wrote: On 03/11/05 03:47:27, P.H.Tung wrote: I successfully installed Realplayer10GOLD on FreeBSD released 5.3 When I run realplay from console, I got following error: ELF binary type 0 not known. /usr/local/lib/RealPlayer/realplay.bin: 1: Syntax error: ( unexpected What does it means? any advises? Thanks! ___ Sounds like a compiler error? Check man brandelf. $ brandelf -l known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0) You could try to rebrand it to type 9. as root: brandelf -f 9 /usr/local/lib/RealPlayer/realplay.bin But the syntax error, how would that get there? Try to make reinstall after a make distclean if branding fails. It's a little more mysterious than that. the Realplayer port is a Linux binary, so branding it for FreeBSD probably won't work. But here's what's odd -- I just installed linux-realplayer-10.0.2_1, and it seems to have installed OK. When I check its branding, I get: bender# brandelf /usr/local/lib/RealPlayer/realplay.bin File '/usr/local/lib/RealPlayer/realplay.bin' is of brand 'SVR4' (0). so it's not branded for Linux or FreeBSD! And yet it seems to be ok. And the 'Syntax error' the OP is getting makes no sense at all. My suggestion at this point - do brandelf /usr/local/lib/RealPlayer/realplay.bin file /usr/local/lib/RealPlayer/realplay.bin and report the results back. -- David Fleck [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portsdb -uU error (I also need some tips)
Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: # Updating the ports index ... Generating INDEX.tmp - please wait..cannot create /tmp/index.UHO8TTKq/INDEX.tmp.desc.german: No such file or directory *** Error code 2 1 error Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. (INDEX builds are not supported with partial or out-of-date ports collections -- in particular, if you are using cvsup, you must cvsup the ports-all collection, and have no refuse files.) If that is the case, then report the failure to [EMAIL PROTECTED] together with relevant details of your ports configuration (including FreeBSD version, your architecture, your environment, and your /etc/make.conf settings, especially compiler flags and WITH/WITHOUT settings). Note: the latest pre-generated version of INDEX may be fetched automatically with make fetchindex. *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F # Thank you all so much! All the best, -- Fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
update all ports
To update all installed ports with protupgrade (not portmanager) will I need portupgrade -ra or portupgrade -rRa ? This will be done _after_ running the gnome_update.sh script ;-) -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [Realplay10GOLD] Error: ELF binary type 0 not known
On 03/11/05 03:47:27, P.H.Tung wrote: I successfully installed Realplayer10GOLD on FreeBSD released 5.3 When I run realplay from console, I got following error: ELF binary type 0 not known. /usr/local/lib/RealPlayer/realplay.bin: 1: Syntax error: ( unexpected What does it means? any advises? Thanks! ...you *do* have Linux compatibility enabled, right? -- David Fleck [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gtk2 problem?
shoot! everytime!! I always forgot to check that first, thank you so much for the tip!! :-) --- Chris [EMAIL PROTECTED] wrote: T.F. Cheng wrote: Hi, just about to install velocity but bump into a lot of dependency upgrade, like atk (1.8- 1.9) and gtk2 (2.4 - 2.6) and pango, etc. anyway, gnomevfs2 failed to compile: gmake[2]: Entering directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' /usr/local/bin/orbit-idl-2 -I `pkg-config --variable=idldir bonobo-activation-2.0` ./GNOME_VFS_Daemon.idl /libexec/ld-elf.so.1: Shared object libgobject-2.0.so.400 not found, required by orbit-idl-2 gmake[2]: *** [GNOME_VFS_Daemon.h] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0/libgnomevfs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/gnomevfs2/work/gnome-vfs-2.10.0' gmake: *** [all] Error 2 *** Error code 2 and want to reinstall gtk-gnutella, since gtk related stuff are change, but this is what I got: cc -c -I../../../.. -I../../.. -I../.. -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/X11R6/include/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -DGUI_SOURCES -DCURDIR=src/ui/gtk/gtk2 -O -O -pipe -I/usr/local/include/ downloads.c In file included from downloads.c:30: pbarcellrenderer.h:57:1: warning: GTK_TYPE_CELL_RENDERER_PROGRESS redefined In file included from /usr/X11R6/include/gtk-2.0/gtk/gtk.h:53, from ../../gtk/gui.h:31, from downloads.c:26: /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:34:1: warning: this is the location of the previous definition In file included from downloads.c:30: pbarcellrenderer.h:62: error: redefinition of typedef 'GtkCellRendererProgress' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:41: error: previous declaration of 'GtkCellRendererProgress' was here pbarcellrenderer.h:63: error: redefinition of typedef 'GtkCellRendererProgressClass' /usr/X11R6/include/gtk-2.0/gtk/gtkcellrendererprogress.h:42: error: previous declaration of 'GtkCellRendererProgressClass' was here pbarcellrenderer.h:66: error: redefinition of `struct _GtkCellRendererProgress' pbarcellrenderer.h:71: error: redefinition of `struct _GtkCellRendererProgressClass' *** Error code 1 I am not sure if this is due to gtk2 or something, would anybody help me? thank you! What does /usr/ports/UPDATING tell you?! -- Best regards, Chris PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363 Best Regards, Tsu-Fan Cheng _ Do You Yahoo!? @yahoo.com @ http://chinese.mail.yahoo.com Get your free @yahoo.com address at http://chinese.mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron mail
Dennis Olvany [EMAIL PROTECTED] writes: How do I change the e-mail address and SMTP server cron uses to e-mail the daily root report? There are several methods. You can configure periodic(8) itself through settings in periodic.conf(5) [i.e., type man 5 periodic.conf for details]. My favorite method is by redirecting *all* of root's mail in the aliases(5) file. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: update all ports
To update all installed ports with protupgrade (not portmanager) will I need portupgrade -ra or portupgrade -rRa ? This will be done _after_ running the gnome_update.sh script ;-) - Based on man portupgrade I would say that portupgrade -a updates all installed ports. r and R are interesting only if you want to update one port and its up/downward depencies. Hexren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to remote contact x server
Hello I've two X server: a client and a server. How I can contact from the client the server (I read some articles but did not find a solution)? I can successfully start X applications over SSH but I can't contact the xdm. What do I wrong? -- Regards Martin Schweizer [EMAIL PROTECTED] PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; pgprRLeVbtj38.pgp Description: PGP signature
Need help setting up qmail / binc imap on FreeBSD
Hi I am trying to implement a qmail based mailserver with binc imap on FreeBSD 5.3-RELEASE using the instructions found on : http://www.bsdguides.org/guides/freebsd/mailserver/qmail+vpopmail+qmailadmin.php I am using packet filter (pf) to setup the firewall. I have added the following rules to permit incoming traffic on ports 993 (imaps) and 465 (smtps) : pass in on $ext_if proto tcp from any to $ext_if \ port 993 flags S/SA keep state \ (max 15, source-track rule, max-src-nodes 100, max-src-states 3) pass in on $ext_if proto tcp from any to $ext_if \ port 465 flags S/SA keep state \ (max 15, source-track rule, max-src-nodes 100, max-src-states 3) However, when I try to connect to the server using openssl : /usr/local/ssl/bin/openssl s_client -connect servername:993 -crlf connect: Connection refused connect:errno=29 I have generated a .pem file for SSL over binc imap and made the suggested additions to /usr/local/etc/bincimap/bincimap.conf. Upon consulting /var/log/qmail/current, I see a slew of messages like : @40004233d471384eecb4 delivery 2: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/ @40004233d4713850679c status: local 0/10 remote 0/20 sockstat reveals that ports 143, 110 and 25 are being listened to (but are closed in the firewall). I wish to make qmail + binc to listen to 993 and 465 instead. Any hints on fixing the setup would be welcome. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to remote contact x server
On Mar 13, 2005, at 1:10 PM, Martin Schweizer wrote: Hello I've two X server: a client and a server. How I can contact from the client the server (I read some articles but did not find a solution)? I can successfully start X applications over SSH but I can't contact the xdm. What do I wrong? What do you mean? If you're starting the X app on the remote system using X-forwarding with ssh, you're running a remote application using the remote system's CPU and memory. If you're trying to do something like open a whole X session on the remote system like a remote terminal, something like a remote desktop, you'd probably need to look into using something like VNC over SSH or something using XNest may work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why not?
On Mar 12, 2005, at 2:45 PM, Chris wrote: Aperez wrote: Hello everybdody I read an interview of Linus Torvald made by Linux Magazine. In that interview Linus mentioned the following: On the other hand, no, Linux does not have that stupid notion of having totally separate kernel development for different issues. If you want a secure BSD, you get OpenBSD; if you want a usable BSD, you get FreeBSD; and if you want BSD on other architectures, you get NetBSD. That___s just idiotic, to have different teams worry about different things. Here's irony posed as a question: ... and how many distros of Linux are there? I think the difference is that Linus is working on the Linux kernel. The distros, numerous as they are, all run the same kernel. Those separate distros package the other applications and userland apps and default configs. The kernel itself isn't under separate forks, whereas from what I understand the kernels for FBSD/NetBSD/OBSD are very similar, share a lot of crossed-over code, but are not identical and have separate management teams behind them. The Linux distros keep getting their kernel workings from one group (even if they tweak them). The BSDs do not. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Who is using ACLs in production?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2005-03-13, Anthony Atkielski scribbled these curious markings: Anyone using ACLs in production on FreeBSD 5.x? If so, how do you use them, and what are your impressions? How do they affect performance, how reliable is the code, does it really help security, etc.? While not a traditional production environment, my 5.x webserver uses ACLs to keep user home directories relatively private but accessible at the same time. I didn't want to open up my home directory to every user on the system. But at the same time I didn't want to set my files to group www. ACLs provide a nice middle ground in that sort of situation. Best Regards, Christopher Nehren -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCNIgUk/lo7zvzJioRAjh1AJ9z1tn23YSbKNmFlF8ef8f/ERReaACgmZGH x0X6e2WdHTXORTDlSPUtwXw= =Re5U -END PGP SIGNATURE- -- I abhor a system designed for the user, if that word is a coded pejorative meaning stupid and unsophisticated. -- Ken Thompson If you ask the wrong questions, you get answers like 42 and God. Unix is user friendly. However, it isn't idiot friendly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: update all ports
On 03/13/05 12:13:22, Dick Hoogendijk wrote: To update all installed ports with protupgrade (not portmanager) will I need portupgrade -ra or portupgrade -rRa ? This will be done _after_ running the gnome_update.sh script ;-) -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ If you want to upgrade all ports, then -faRr. Every port is rebuilt. This would be good for ports listed with incorrect dependencies. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
configuring php4 and apache2
Hello I am have problems getting php4 to work with apache2. I have these working on another FreeBSD 4.10 server but I can not get it working on my 5.3 server. When I try to load a php page with my web browser it just ask me if I want to download the php file. Here is what I have done to configure and install: installed apache-2.0.53 php4-4.3.10_2 php4-extensions-1.0 edited /etc/rc.conf apache2_enable=YES /usr/local/etc/apache2/httpd.conf LoadModule php4_modulelibexec/apache2/libphp4.so AddType application/x-http-php .php AddType application/x-http-php-source .phps copied php.ini-recommended to php.ini edited php.ini include_path = .:/php/includes include_path =/usr/local/share/pear I have reloaded all the application and rebooted the computer. I have read the php manual, I believe I have followed all the steps in the pkg-message files and tried google but I can not find the answer. I am sorry for asking such a basic question which is probably documented somewhere. Thank you Aaron ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Synaptics Touchpad driver
Hi, On Sat, 12 Mar 2005, Loren M. Lang wrote: It seems that FreeBSD 5.3 now has support in the kernel for the synaptics touchpad that my laptop has. Right now it's just running as a normal mouse, it looks like the support is disabled by default. In isa/psm.c, I can see the synaptics support in there, but it's disabled unless hw.psm.synaptics_support is set to 1. My question is how do I set it to one? It's setup as a TUNABLE_INT, but there is no sysctl for it. Does it only appear on boot? It is not a sysctl, it is a kernel tunable. You control it from the boot loader, for example by putting hw.psm.synaptics_support=1 into /boot/loader.conf. See loader.conf(5) and /boot/defaults/loader.conf for more information. $.02, /Mikko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portsdb -uU error (I also need some tips)
On 03/13/05 12:09:24, Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: It looks like a problem with /var/db/pkg. You have time to wipe /var/db/pkg and remove all ports? Try portmanager before you wipe your ports and db. Have you cd /usr/ports mkae fetchindex? Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error chmod error? Are you root or what? # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F Don't do pkgdb unattended, you may need to answer questions. You could skip all this index stuff if you use portmanager. But you need /var/db/pkg in good condition to use pormanager, I think? # Thank you all so much! All the best, -- Fafa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: configuring php4 and apache2
I also had this issue with a couple o f Mozilla browsers until I deleted all the cache, closed and reopened the browser. I am not sure if this will work for you, but I found it to be a minor inconvenience with Mozilla that affected me. T - Original Message - From: Aaron Siegel [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Sunday, March 13, 2005 10:48 AM Subject: configuring php4 and apache2 Hello I am have problems getting php4 to work with apache2. I have these working on another FreeBSD 4.10 server but I can not get it working on my 5.3 server. When I try to load a php page with my web browser it just ask me if I want to download the php file. Here is what I have done to configure and install: installed apache-2.0.53 php4-4.3.10_2 php4-extensions-1.0 edited /etc/rc.conf apache2_enable=YES /usr/local/etc/apache2/httpd.conf LoadModule php4_modulelibexec/apache2/libphp4.so AddType application/x-http-php .php AddType application/x-http-php-source .phps copied php.ini-recommended to php.ini edited php.ini include_path = .:/php/includes include_path =/usr/local/share/pear I have reloaded all the application and rebooted the computer. I have read the php manual, I believe I have followed all the steps in the pkg-message files and tried google but I can not find the answer. I am sorry for asking such a basic question which is probably documented somewhere. Thank you Aaron ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron mail
MAILTO=[EMAIL PROTECTED] in the /etc/crontab file... I believe. It's discussed in man 5 crontab. Ben Dennis Olvany wrote: How do I change the e-mail address and SMTP server cron uses to e-mail the daily root report? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portsdb -uU error (I also need some tips)
Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: # Updating the ports index ... Generating INDEX.tmp - please wait..cannot create /tmp/index.UHO8TTKq/INDEX.tmp.desc.german: No such file or directory *** Error code 2 1 error Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. (INDEX builds are not supported with partial or out-of-date ports collections -- in particular, if you are using cvsup, you must cvsup the ports-all collection, and have no refuse files.) If that is the case, then report the failure to [EMAIL PROTECTED] together with relevant details of your ports configuration (including FreeBSD version, your architecture, your environment, and your /etc/make.conf settings, especially compiler flags and WITH/WITHOUT settings). Note: the latest pre-generated version of INDEX may be fetched automatically with make fetchindex. *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F # Thank you all so much! All the best, -- Fafa This may not fix all of your problems, but doing a cd /usr/ports make fetchindex is much faster and less problematic than portsdb -uU ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
upgrade a couple of nearly identical machines
I run three machines with FreeBSD-4.11 and lots of the same ports installed. Upgrading these three must be more easy then running portupgrade on every machine again and again, upgrading the same ports multiple times. This is waste of cpu power ;-) Does anybody has suggestions on how to handle this situation in a more practicle way? -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
did a bad thing to my ports?
This morning, after running cvsup and portsdb, portversion told me I had a stale dependency in linux-sun-jdk. This didn't surprise me, as I had installed the jdk yesterday (and what a pain that was). So, I did as it suggested and ran pkgdb -F it asked me some questions... well, I'll just paste the output below. The question/problem is that now portversion says that I need to upgrade 85 ports! When I checked a few days ago, I had nothing to upgrade, so I have a feeling I messed something up. Any help would be appreciated. Ben output: (starting from end of cvsup run...) Shutting down connection to server Finished successfully [EMAIL PROTECTED]: portsdb -uU Updating the ports index ... Generating INDEX.tmp - please wait..Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.2 Done. done [Updating the portsdb format:bdb1_btree in /usr/ports ... - 12565 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000. . done] [EMAIL PROTECTED]: portversion -l [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 263 packages found (-0 +4) done] Stale dependency: linux-sun-jdk-1.4.2.07_1 -- linux-fontconfig-2.1_2 -- manually run 'pkgdb -F' to fix, or specify -O to force. [EMAIL PROTECTED]: pkgdb -F --- Checking the package registry database Stale origin: 'multimedia/nautilus-media': perhaps moved or obsoleted. - The port 'multimedia/nautilus-media' was removed on 2005-03-12 because: Deprecated, and no longer builds - Hint: nautilus-media-0.8.1_1 is required by the following package(s): gnome2-lite-2.8.3 - Hint: checking for overwritten files... - No files installed by nautilus-media-0.8.1_1 have been overwritten by other packages. Deinstall nautilus-media-0.8.1_1 ? [no] no Stale dependency: linux-sun-jdk-1.4.2.07_1 - linux-fontconfig-2.1_2 (x11-fonts/linux-fontconfig): linux-sun-jdk-1.4.2.07_1 (score:37%) ? ([y]es/[n]o/[a]ll) [no] yes Fixed. (- linux-sun-jdk-1.4.2.07_1) Stale dependency: linux-sun-jdk-1.4.2.07_1 - linux-XFree86-libs-4.3.99.902_2 (x11/linux-XFree86-libs): linux-sun-jdk-1.4.2.07_1 (score:26%) ? ([y]es/[n]o/[a]ll) [no] yes Fixed. (- linux-sun-jdk-1.4.2.07_1) Stale dependency: linux-sun-jdk-1.4.2.07_1 - linux-expat-1.95.5_2 (textproc/linux-expat): linux-sun-jdk-1.4.2.07_1 (score:31%) ? ([y]es/[n]o/[a]ll) [no] yes Fixed. (- linux-sun-jdk-1.4.2.07_1) Cyclic dependencies: linux-sun-jdk-1.4.2.07_1 - (linux-sun-jdk-1.4.2.07_1) Unlink linux-sun-jdk-1.4.2.07_1 - linux-sun-jdk-1.4.2.07_1 ? [yes] yes Command failed [exit code 1]: grep -v \^linux-sun-jdk-1.4.2.07_1\\\$\ /var/db/pkg/linux-sun-jdk-1.4.2.07_1/+REQUIRED_BY /tmp/+REQUIRED_BY77658.0 [EMAIL PROTECTED]: portversion -l ORBit2 arts atk desktop-file-utils eel enlightenment eog epiphany fileroller firefox fluxbox-devel fluxconf (etc... 85 in all.) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portsdb -uU error (I also need some tips)
On Sunday 13 March 2005 11:01 am, Jason Henson wrote: On 03/13/05 12:09:24, Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: It looks like a problem with /var/db/pkg. You have time to wipe /var/db/pkg and remove all ports? Try portmanager before you wipe your ports and db. Have you cd /usr/ports mkae fetchindex? Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error chmod error? Are you root or what? # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F Don't do pkgdb unattended, you may need to answer questions. You could skip all this index stuff if you use portmanager. But you need /var/db/pkg in good condition to use pormanager, I think? portmanager doesn't use /var/db/pkg/pkgdb.db, I think that is what you are refering to. It should be able to fix this person's problem like you suggested though. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrade a couple of nearly identical machines
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2005-03-13, Dick Hoogendijk scribbled these curious markings: I run three machines with FreeBSD-4.11 and lots of the same ports installed. Upgrading these three must be more easy then running portupgrade on every machine again and again, upgrading the same ports multiple times. This is waste of cpu power ;-) Make packages of the ports, and then install them on each machine? Use devel/distcc to split up the load for each? Best Regards, Christopher Nehren -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCNJGhk/lo7zvzJioRAqpoAJ9/XfkAxOYBqe/hu+jN3J0nIk4jAgCfSNQh WFbdBVpIKQDcrpJs+zh27y8= =SHZn -END PGP SIGNATURE- -- I abhor a system designed for the user, if that word is a coded pejorative meaning stupid and unsophisticated. -- Ken Thompson If you ask the wrong questions, you get answers like 42 and God. Unix is user friendly. However, it isn't idiot friendly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portsdb -uU error (I also need some tips)
Hey! I haven't tried fetchindex or portmanager. I'll try them now. As for the make.PORTS, I run them inside screen, so incase I need to answer something, it won't continue untill I do. But do you guys have a suggestion to how a more efficient make.PORTS could look like? Now I'll include cd /usr/ports make fetchindex into it but how about the order and amount of instances of each command etc? Thanks. - Original Message - From: Jeff Hinrichs [EMAIL PROTECTED] To: Fafa Diliha Romanova [EMAIL PROTECTED] Subject: Re: portsdb -uU error (I also need some tips) Date: Sun, 13 Mar 2005 12:55:25 -0600 Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: # Updating the ports index ... Generating INDEX.tmp - please wait..cannot create /tmp/index.UHO8TTKq/INDEX.tmp.desc.german: No such file or directory *** Error code 2 1 error Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. (INDEX builds are not supported with partial or out-of-date ports collections -- in particular, if you are using cvsup, you must cvsup the ports-all collection, and have no refuse files.) If that is the case, then report the failure to [EMAIL PROTECTED] together with relevant details of your ports configuration (including FreeBSD version, your architecture, your environment, and your /etc/make.conf settings, especially compiler flags and WITH/WITHOUT settings). Note: the latest pre-generated version of INDEX may be fetched automatically with make fetchindex. *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F # Thank you all so much! All the best, -- Fafa This may not fix all of your problems, but doing a cd /usr/ports make fetchindex is much faster and less problematic than portsdb -uU -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
If I have portmanager, do I need portupgrade?
If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. - Original Message - From: Jason Henson [EMAIL PROTECTED] To: Fafa Diliha Romanova [EMAIL PROTECTED] Subject: Re: portsdb -uU error (I also need some tips) Date: Sun, 13 Mar 2005 19:01:03 + On 03/13/05 12:09:24, Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: It looks like a problem with /var/db/pkg. You have time to wipe /var/db/pkg and remove all ports? Try portmanager before you wipe your ports and db. Have you cd /usr/ports mkae fetchindex? Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error chmod error? Are you root or what? # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F Don't do pkgdb unattended, you may need to answer questions. You could skip all this index stuff if you use portmanager. But you need /var/db/pkg in good condition to use pormanager, I think? # Thank you all so much! All the best, -- Fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
IPv6 in rc.conf only: create gif0 / add route?
Hey! I am trying to add my entire IPv6 setup into rc.conf. But it seems it won't automagically create gif0, nor will it add the default route. This is my rc.conf: # *** IPv6 configuration # ipv6_enable=YES ipv6_gateway_enable=YES ipv6_network_interfaces=gif0 ipv6_defaultrouter=fe80::%gif0 ipv6_ifconfig_gif0=inet 213.183.143.59 213.121.24.85 ipv6_ifconfig_gif0=inet6 alias 2001:618:400:4572::1 prefixlen 64 ipv6_ifconfig_gif0=inet6 alias 2001:618:400:4572::2 prefixlen 64 ipv6_ifconfig_gif0=inet6 alias 2001:618:400:4572::3 prefixlen 64 ipv6_firewall_enable=YES ipv6_firewall_type=open rtadvd_enable=YES rtadvd_interfaces=gif0 Is anybody able to tell what I lack? I certainly cannot ping6 6bone.net after reboot. Thanks! All the best, -- Fafa -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portsdb -uU error (I also need some tips)
On Sunday 13 March 2005 11:59 am, Fafa Diliha Romanova wrote: Hey! I haven't tried fetchindex or portmanager. I'll try them now. As for the make.PORTS, I run them inside screen, so incase I need to answer something, it won't continue untill I do. But do you guys have a suggestion to how a more efficient make.PORTS could look like? Now I'll include cd /usr/ports make fetchindex into it but how about the order and amount of instances of each command etc? Thanks. portmanager doesn't need fetchindex, but if you want to make the readme.html's or do things like make search= in /usr/ports then make fetchindex is a good idea. You are going to loose the index every time you cvsup so here is how I would set up a script to automate things as much as possible: cd /usr/ports make update (this assumes you have /etc/make.conf setup for cvsup) make fetchindex portmanager -u - Original Message - From: Jeff Hinrichs [EMAIL PROTECTED] To: Fafa Diliha Romanova [EMAIL PROTECTED] Subject: Re: portsdb -uU error (I also need some tips) Date: Sun, 13 Mar 2005 12:55:25 -0600 Fafa Diliha Romanova wrote: Hello! There's been a lot of mess in my ports lately. I want to get rid of this: pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded pkg_delete: package bsdpan-libwww-perl-5.800 has no origin recorded Which pops up every time I install/deinstall a port or package. I have done a 'pkgdb -F' which seemed to work. Upon 'portsdb -uU' I get: # Updating the ports index ... Generating INDEX.tmp - please wait..cannot create /tmp/index.UHO8TTKq/INDEX.tmp.desc.german: No such file or directory *** Error code 2 1 error * *** Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. (INDEX builds are not supported with partial or out-of-date ports collections -- in particular, if you are using cvsup, you must cvsup the ports-all collection, and have no refuse files.) If that is the case, then report the failure to [EMAIL PROTECTED] together with relevant details of your ports configuration (including FreeBSD version, your architecture, your environment, and your /etc/make.conf settings, especially compiler flags and WITH/WITHOUT settings). Note: the latest pre-generated version of INDEX may be fetched automatically with make fetchindex. * *** *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. No such file or directory - /tmp/INDEX8274.0 portsdb: index chmod error # So what is this? Also, can anybody tell me if these commands are all I need to do a full cleanup and upgrade of my ports? This is my /root/make.PORTS: # cvsup -g -L 2 /etc/cvsupfile pkgdb -F portupgrade -ra portsdb -uU portupgrade -ra pkgdb -F # Thank you all so much! All the best, -- Fafa This may not fix all of your problems, but doing a cd /usr/ports make fetchindex is much faster and less problematic than portsdb -uU ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
Chris Hodgins wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris The time is about the same (in my experiance) AND (most importantly) portmanager seems to handle upgrading better then portupgrade does. IE: Thunderbird, Gnome, Firefox. Another nifty thing is that portmanager creates a package and dumps it in /usr/ports/mail/thunderbird (for example) and at least for me, I can pkg_add that to my laptop since they both run 5.3 -- Best regards, Chris Misery no longer loves company nowdays it insists on it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kern.maxpipekva exceeded, please see tuning(7)
I have seen a mention or two of this error on the lists before, including this link to the current list I pulled up from Google: http://lists.freebsd.org/pipermail/freebsd-current/2004-January/019150.html In my case, the errors began after my exploratory two-year-old found the shiny 'reset' button and could not resist its powers. I'm also getting HDD error messages on boot, 'fsck -y' shows all the file systems as read-only and returns errors on one of them, and I can no longer SSH into my system (due to, I assume, too many open file handles), or even get a command in on my console without an error popping in.. The solution does not seem clear cut to me, and it seems the error message itself does not provide valid (or, at least, sufficient) information. Could someone please help, or point me in the right direction? Thanks, as always, John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
On Sunday 13 March 2005 12:38 pm, you wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris That is a tough question here is how it tends to work for me: First I run it everyday since I'm developing it I have to know if there is anything changed in ports that is going to cause portmanager to crash. Most days it takes less than an hour, but sometimes when just one lower level port like gettext for example is updated it may take 24 hours to finish. I'm using a 1ghz machine with both gnome and kde (all together about 300 installed ports) as an example. Here is exactly how portmanager works: First dependent ports that are out of date are upgraded, then everything that depends on them are upgraded. portupgrade does not work this same way so the time comparison is very tough to predict. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
Chris wrote: Chris Hodgins wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris The time is about the same (in my experiance) AND (most importantly) portmanager seems to handle upgrading better then portupgrade does. IE: Thunderbird, Gnome, Firefox. Another nifty thing is that portmanager creates a package and dumps it in /usr/ports/mail/thunderbird (for example) and at least for me, I can pkg_add that to my laptop since they both run 5.3 Excellent. Does it leave packages for everything or is just thunderbird that does this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
Chris Hodgins wrote: Chris wrote: Chris Hodgins wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris The time is about the same (in my experiance) AND (most importantly) portmanager seems to handle upgrading better then portupgrade does. IE: Thunderbird, Gnome, Firefox. Another nifty thing is that portmanager creates a package and dumps it in /usr/ports/mail/thunderbird (for example) and at least for me, I can pkg_add that to my laptop since they both run 5.3 Excellent. Does it leave packages for everything or is just thunderbird that does this? I assume so - I just checked Firefox - and its in there. -- Best regards, Chris The tendency of smoke from a cigarette, barbeque, campfire, etc. to drift into a person's face varies directly with that person's sensitivity to smoke. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
Michael C. Shultz wrote: On Sunday 13 March 2005 12:38 pm, you wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris That is a tough question here is how it tends to work for me: First I run it everyday since I'm developing it I have to know if there is anything changed in ports that is going to cause portmanager to crash. Most days it takes less than an hour, but sometimes when just one lower level port like gettext for example is updated it may take 24 hours to finish. I'm using a 1ghz machine with both gnome and kde (all together about 300 installed ports) as an example. Here is exactly how portmanager works: First dependent ports that are out of date are upgraded, then everything that depends on them are upgraded. portupgrade does not work this same way so the time comparison is very tough to predict. -Mike Ah I see. So portmanager is sort of doing the equivelant to: portupgrade -fr myOutOfDatePort ?? Does this not mean it will always be slower than portupgrade? If it a low-level port it is going to take ages but if it is high-level it will start to get closer to the time it takes for portupgrade to run. Never faster? Or am I missing something. Is there a reason it does it this way over portupgrades method? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: If I have portmanager, do I need portupgrade?
On Sunday 13 March 2005 12:40 pm, Chris wrote: Chris Hodgins wrote: Michael C. Shultz wrote: On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: If I just do: cvsup -g -L 2 /etc/cvsupfile portmanager -u Do I need portupgrade at all then? Thanks. Not for upgrading. portsclean (a part of portsupgrade package) is a nice feature of portupgrade, so is pkg_which and a few others so I keep portupgrade around just the same. -Mike How long does it take to run portmanager. Is it a similar amount of time as portupgrade for each run? Chris The time is about the same (in my experiance) AND (most importantly) portmanager seems to handle upgrading better then portupgrade does. IE: Thunderbird, Gnome, Firefox. Another nifty thing is that portmanager creates a package and dumps it in /usr/ports/mail/thunderbird (for example) and at least for me, I can pkg_add that to my laptop since they both run 5.3 Chris, check and see if you have a /usr/ports/packages directory. If you do then all the packages will end up in /usr/ports/packages/All and a tree of symlinks will be made under /usr/ports/packages for the ports that have packages. For some reason when you first set up FreeBSD/ports it does not make the /usr/ports/packages directory so the packages end up in the ports directory, this isn't a good place for them, here is why: When a port is removed, see /usr/ports/MOVED, cvsup should be able to delete the directory but if a package is setting in there it can't, so over time you will come across port directories that have just a package in it and maybe a readme.html file but nothing else. It will keep things leaner/cleaner if the packages directory exists. I keep meaning to submit a PR about the missing packages directory but never seem to get around to it :( One other thing just to let you know, I've been testing portmanager against this new gnome update, when its done there is a bunch of gstreamer-plugins-* left un-upgraded. I just tried pkg_delete -f gstreamer-plugins-* on them and let portmanager -u bring them back in, it seems to be working but I also cvsup'ed and there is so many new changes it will be awhile before I know for sure. Right now I'm telling anyone who asks to try pkg_delete -f gstreamer-plugins-* first before upgrading with portmanager if they use gnome. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
smbspool
Hi there, I have a problem using smb printer shared on an XP machine. smbspool smb://Guest:@xxx.xxx.xxx.xxx/HPLaserJ 5 nobody title 1 x.txt It says ERROR: cli_session_request() failed... ERROR: Unable to connect to SAMBA host, will retry in 60 seconds... How can I solve this problem Thanx ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why not?
On Sun, Mar 13, 2005 at 01:24:42PM -0500, Bart Silverstrim wrote: On Mar 12, 2005, at 2:45 PM, Chris wrote: Aperez wrote: Hello everybdody I read an interview of Linus Torvald made by Linux Magazine. In that interview Linus mentioned the following: On the other hand, no, Linux does not have that stupid notion of having totally separate kernel development for different issues. If you want a secure BSD, you get OpenBSD; if you want a usable BSD, you get FreeBSD; and if you want BSD on other architectures, you get NetBSD. That___s just idiotic, to have different teams worry about different things. Here's irony posed as a question: ... and how many distros of Linux are there? I think the difference is that Linus is working on the Linux kernel. The distros, numerous as they are, all run the same kernel. Those separate distros package the other applications and userland apps and default configs. The kernel itself isn't under separate forks, whereas from what I understand the kernels for FBSD/NetBSD/OBSD are very similar, share a lot of crossed-over code, but are not identical and have separate management teams behind them. While each distros kernel is probably less different than a NetBSD vs. FreeBSD kernel, there still each different and a lot more of them. I had to download and install a very specific kernel from redhat to use on my debian system so I could use my wireless card. Also, some features can very wildly like IPSEC, some distros patch in FreeSWAN's stack, others the KAME stack. The Linux distros keep getting their kernel workings from one group (even if they tweak them). The BSDs do not. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpxXSubHNRO4.pgp Description: PGP signature
Re: Stupid ASCII loader prompt
On Sun, Mar 13, 2005 at 04:47:17PM +0100, Luyt wrote: On Sunday 13 March 2005 11:06, Fafa Diliha Romanova wrote: 2. having that demon in there, it invites evil into my world What is the daemon doing to that funny penguin? http://gbraad.spotsnel.nl/images/takeittux.png I don't think that things like this really reflect the good side of the BSD community. Though I think there's at least as much, if not more coming from the Linux community, we don't need to do it. -- The ability of the OSS process to collect and harness the collective IQ of thousands of individuals across the Internet is simply amazing. - Vinod Vallopillil http://www.opensource.org/halloween/halloween4.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpCAPLg8fTQ7.pgp Description: PGP signature
Re: Synaptics Touchpad driver
On Sun, Mar 13, 2005 at 10:48:46AM -0800, Mikko Ty?l?j?rvi wrote: Hi, On Sat, 12 Mar 2005, Loren M. Lang wrote: It seems that FreeBSD 5.3 now has support in the kernel for the synaptics touchpad that my laptop has. Right now it's just running as a normal mouse, it looks like the support is disabled by default. In isa/psm.c, I can see the synaptics support in there, but it's disabled unless hw.psm.synaptics_support is set to 1. My question is how do I set it to one? It's setup as a TUNABLE_INT, but there is no sysctl for it. Does it only appear on boot? It is not a sysctl, it is a kernel tunable. You control it from the boot loader, for example by putting hw.psm.synaptics_support=1 into /boot/loader.conf. See loader.conf(5) and /boot/defaults/loader.conf for more information. That's what I was wondering and I tried to set it in the loader, but I haven't noticed a difference. No added sysctls to tune the touchpad, no kernel messages showing anything obvious, the touchpad still acts the same, etc. Also, I looked through the kernel sources for other TUNABLE_INT's: ... /usr/src/sys/cam/scsi/scsi_all.c: TUNABLE_INT_FETCH(kern.cam.scsi_delay, delay); /usr/src/sys/cam/scsi/scsi_cd.c:TUNABLE_INT(kern.cam.cd.changer.min_busy_seconds, changer_min_busy_seconds); /usr/src/sys/cam/scsi/scsi_cd.c:TUNABLE_INT(kern.cam.cd.changer.max_busy_seconds, changer_max_busy_seconds); /usr/src/sys/cam/scsi/scsi_cd.c:TUNABLE_INT_FETCH(tmpstr, softc-minimum_command_size); /usr/src/sys/cam/scsi/scsi_da.c:TUNABLE_INT(kern.cam.da.retry_count, da_retry_count); /usr/src/sys/cam/scsi/scsi_da.c:TUNABLE_INT(kern.cam.da.default_timeout, da_default_timeout); /usr/src/sys/cam/scsi/scsi_da.c:TUNABLE_INT_FETCH(tmpstr, softc-minimum_cmd_size); ... sysctls -a|grep cam: kern.cam.scsi_delay: 15000 kern.cam.cd.changer.min_busy_seconds: 5 kern.cam.cd.changer.max_busy_seconds: 15 kern.cam.da.retry_count: 4 kern.cam.da.default_timeout: 60 It looks like all these tunables are also sysctls. $.02, /Mikko -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgp1pYM6vabIY.pgp Description: PGP signature
Re: Why not?
On Mar 13, 2005, at 4:34 PM, Loren M. Lang wrote: On Sun, Mar 13, 2005 at 01:24:42PM -0500, Bart Silverstrim wrote: On Mar 12, 2005, at 2:45 PM, Chris wrote: Aperez wrote: Hello everybdody I read an interview of Linus Torvald made by Linux Magazine. In that interview Linus mentioned the following: On the other hand, no, Linux does not have that stupid notion of having totally separate kernel development for different issues. If you want a secure BSD, you get OpenBSD; if you want a usable BSD, you get FreeBSD; and if you want BSD on other architectures, you get NetBSD. That___s just idiotic, to have different teams worry about different things. Here's irony posed as a question: ... and how many distros of Linux are there? I think the difference is that Linus is working on the Linux kernel. The distros, numerous as they are, all run the same kernel. Those separate distros package the other applications and userland apps and default configs. The kernel itself isn't under separate forks, whereas from what I understand the kernels for FBSD/NetBSD/OBSD are very similar, share a lot of crossed-over code, but are not identical and have separate management teams behind them. While each distros kernel is probably less different than a NetBSD vs. FreeBSD kernel, there still each different and a lot more of them. I had to download and install a very specific kernel from redhat to use on my debian system so I could use my wireless card. Also, some features can very wildly like IPSEC, some distros patch in FreeSWAN's stack, others the KAME stack. Some vendors may be directly patching certain features, for the most part you shouldn't have to download a specific kernel for a feature to work in Linux unless you wanted it pre-packaged. You should be able to update it by downloading the latest features, running the config to enable/disable what features you want compiled into the kernel (or as modules), then compile it. When everything else breaks because the kernel version changed and something specific is linked to something that depends on something from the previous kernel's config, then you get to delve into some real fun. But still, there is one source kernel, and unless the vendors did something proprietary (which I don't believe they're supposed to be allowed to do), you can compile your own kernel with your own set of enabled and disabled features from the Linux kernel source tree whether you're running Red Hat or Debian; it may break if that particular distro is depending on certain features as you have it configured and you fubar the new kernel's config, but it is still a matter of tweaking that configuration to get it working again. I can't download the sources for NetBSD's kernel, compile it on my FreeBSD box, and have it work no matter how much tweaking I do to the configuration...if I'm wrong, please someone correct me. I *think* (and I'm not following the story closely) what Linus was saying is that it's stupid to have so many people working in parallel on such similar cousins...NetBSD, OpenBSD, and FreeBSD. They share code, they share info, but optimize for certain goals and have a lot of redundancy. Linux's kernel is Linux's kernel, modified by individuals but still one big bulky source tree to work from. Is one way less intelligent than others? I don't know. I never studied it :-) All I know is that in general, for most end users, it doesn't matter...if they stick with a particular distro and their sources and packages, then things tend to work. Linux has fragmented so much that it's difficult to get a package aimed at distro A and have it work on distro B despite them both being Linux. For the BSD's, it's pretty much always worked as if it's in the port tree, you have the package in question work. Otherwise, work from sources. And instructions to get a package working on *BSD pretty much always work whereas for Linux you may run Debian but find instructions for what you're trying to do written for an audience running Red Hat, so you need to translate things as you go along. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kerberos problems
On Sun, Mar 13, 2005 at 05:30:09PM -, [EMAIL PROTECTED] wrote: On Sun, Mar 13, 2005 at 03:38:46PM -, [EMAIL PROTECTED] wrote: I followed the handbook guide to setting it up, and it all seems to be working ok. I have now setup telnetd as described to test how it is working. If I have done a kinit previously, it will log in no problem, but if I do not do a kinit (or do a kdestroy before hand) I get - kerberos V5: mk_req (No Such File or direcotry). Any ideas? That sounds like it's working normally. Without a valid ticket (as shown by `klist`), which is cached in a file, services like telent which use Kerberos won't authenticate you. If I'm misunderstanding the problem you're describing, please add some more detail as to what you expected to have happen and how reality differed :-) Yeah, it could well be the way it is supposed to work. Basically I want to end up with a centralised login system for my network (i.e. no need to create usernames on each client). I am planning to use ldap for this, and as I understand it ldap can use kerberos for the authentication aspect. So I am atm trying to make sure I have a good understanding of the kerberos system and have it up and running before I tackle the next part. what I was assuming would happen when I try to telnet in without a ticket (i.e. with running kinit) was that I would get asked for a username/password, and then I would get issued a ticket, rather than manually having to kinit first. I believe the difference is that kinit is used to get kerberos credentials after you have logged on by some other means. If you use pam_krb5, then it will be using the kerberos for authentication instead of the local passwd file and also save the credentials. The way your currently doing it the local system still will need the user and passwd to log them in before they can run kinit, with pam_krb5 this can be avoided. How would this affect using pam to authenticate i.e. if I want to use pam_krb to login to the console, I would not be able to run kinit before hand? [Apologies for sending this to you twice tillman , need to be more careful with the reply to button :)] Cheers, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgp8zRJpipQqH.pgp Description: PGP signature
Howto monitor system security
Sorry, it is a rather generic message, but the problem is a generic as well. I am running my FreeBSD machine on DMZ. I use ipfw and I expose http and smtp ports. I also expose sshd port, but only to a trusted network (work). I'd like to know what is the best way to monitor my machine security. FreeBSD security email is rather anoying, because it keeps sending messages even if nothing has changed. I need an email sent to me only if there is something abnormal. For example, I'd like to know if there is a significant change in network activity. My mailserver might be hijacked and is sending spam. I am running snort, but most of the time it simply reports MySQL warm attempts. Is there a log to see messages sent by sendmail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrade a couple of nearly identical machines
On Sun, Mar 13, 2005 at 07:57:57PM +0100, Dick Hoogendijk wrote: I run three machines with FreeBSD-4.11 and lots of the same ports installed. Upgrading these three must be more easy then running portupgrade on every machine again and again, upgrading the same ports multiple times. This is waste of cpu power ;-) Does anybody has suggestions on how to handle this situation in a more practicle way? You could use portupgrade to upgrade one machine with the -W option so it won't clean up after itself, then nfs mount the ports directory on another machine and use portupgrade -wWar to upgrade them if I'm not mistaken. If that doesn't work, you could create a binary package of everything installed and copy them over and install them with pkg_add. -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11 ++ FreeBSD 5.3 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 pgpzhGy5whZXp.pgp Description: PGP signature
Re: how to deal with spam for good?
On Mar 12, 2005, at 4:44 AM, Ted Mittelstaedt wrote: [EMAIL PROTECTED] wrote: On Mar 11, 2005, at 1:37 AM, Ted Mittelstaedt wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kirk Strauser Sent: Thursday, March 10, 2005 11:42 AM To: freebsd-questions@freebsd.org Subject: Re: how to deal with spam for good? You know, I'm no longer sure that's true. I think that spam will stick around as long as stupid business owners continue to get suckered into thinking that it's a legitimate means of marketing. One of my associate's customers (a brick and mortar store) was being sweet-talked by a spammer into sending a series of broadcasts. In this situation, the spammer would profit off the ignorance of that *business owner*. Even if 100% of the messages were blocked, he'd still get his pay for performing the service. Didn't anyone tell your associate's customers that spamming is now a felony? And, even if they hire a spammer to do it for them, the law still prosecutes them for the spamming? Add some teeth to that law and some lawyers who are willing to pursue this in volume, and you'd be on to something. As it stands, it's like prosecuting jaywalkers. Who bothers? http://www.forbes.com/home/feeds/ap/2004/11/03/ ap1631798.html%E2%80%9D%20 target= (although while the judge did set aside the verdict for DeGroot, Jayne's appeal of his conviction went nowhere) Keep in mind these are the very first convictions on this. Once the appeals process is exhausted then we will have set some precident, which is vitally important for these to go forward on a large scale. Even junk faxer's get away with that kind of crap despite the fines (happened to catch Tom Martino on the radio yesterday talking about it...) That is only because these days most people handling received faxes for companies are lazy and dumb administrative assistants who don't even know it's illegal or who to complain to. Actually, the problem (if the two really are similar, junk faxers and spammers and laws against them as they are forming) is that lawyers don't WANT the hassle because the payout is so little compared to the time they put into the case. It's just not worth it. One of the guys Tom Martino had on the radio DID sue a junk faxer. Got a lawyer, went to court, won. The law fines something like (from memory here) $500 per fax. He ended up getting something like forty or fifty bucks after the case was done, after fees. The lawyer he hired asked that he find someone else...it was too much paperwork and footwork for the profit to be made. Tom was discussing a class action lawsuit against some junk faxers. People submitting evidence and names were getting something like $25 for a winning case out of the lawsuit (again, I'm recalling this from memory, so you may have to research this if you're interested in more info). Essentially yes, there are laws against this sort of thing but it is expensive to prosecute and the reward is so meager compared to the effort. On top of that, *good luck collecting from Spammers!!* Especially scuzz that hide behind zombie systems and big pipes in Asia. While I won't discount laziness and stupidity as contributing factors to this continuing, the people acting as crimefighters face a long and hard uphill battle to make it worth the time invested. It may be more worthwhile to start finding people who respond to spam and threaten them with lawsuits so big that they'd have to be bankrupted by summary judgment in order to keep them from continuing to finance the spam kings...then their revenue will stop and then spam will stop. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]