From tonyberth at googlemail.com Fri Aug 1 06:05:18 2008 From: tonyberth at googlemail.com (Tony Berth) Date: Fri, 1 Aug 2008 15:05:18 +0200 Subject: search archives Message-ID: <3494db260808010605h823d8c2s1f5eab48004cfbb7@mail.gmail.com> sorry for asking such a primitive question but can I search the archives of that list? I couldn't find any related info to this. Thanks Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080801/eeab678b/attachment.html From josh at jggimi.homeip.net Fri Aug 1 07:10:40 2008 From: josh at jggimi.homeip.net (Josh Grosse) Date: Fri, 1 Aug 2008 10:10:40 -0400 Subject: search archives In-Reply-To: <3494db260808010605h823d8c2s1f5eab48004cfbb7@mail.gmail.com> References: <3494db260808010605h823d8c2s1f5eab48004cfbb7@mail.gmail.com> Message-ID: <20080801140944.M76671@jggimi.homeip.net> On Fri, 1 Aug 2008 15:05:18 +0200, Tony Berth wrote > sorry for asking such a primitive question but can I search the archives of that list? I couldn't find any related info to this. > > Thanks > > Tony If you're asking about *this* list, sure.? Click on http://marc.info, look for openbsd-newbies.? While there, note that you can search official openbsd lists, too. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080801/e8912630/attachment.html From tonyberth at googlemail.com Mon Aug 4 08:36:29 2008 From: tonyberth at googlemail.com (Tony Berth) Date: Mon, 4 Aug 2008 17:36:29 +0200 Subject: login message Message-ID: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> Hi, is any way to display a pre-defined message for a specific user or a group of users any time they log into their account? Thanks Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080804/8b0f1a2e/attachment-0001.html From marmot at pennswoods.net Mon Aug 4 11:54:03 2008 From: marmot at pennswoods.net (Woodchuck) Date: Mon, 4 Aug 2008 14:54:03 -0400 (EDT) Subject: login message In-Reply-To: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> References: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> Message-ID: On Mon, 4 Aug 2008, Tony Berth wrote: > Hi, > > is any way to display a pre-defined message for a specific user or a group > of users any time they log into their account? > > Thanks > > Tony Just to get the ball rolling, man login.conf, and look at capability "welcome", which defaults to /etc/motd. I think you can set this capability for various users... how, I'm not too sure, since I don't mess with login.conf more than once every five years or so. Dave -- When was the day your shine was taken? -- gerg From marmot at pennswoods.net Mon Aug 4 12:32:01 2008 From: marmot at pennswoods.net (Woodchuck) Date: Mon, 4 Aug 2008 15:32:01 -0400 (EDT) Subject: login message In-Reply-To: References: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> Message-ID: On Mon, 4 Aug 2008, Woodchuck wrote: > On Mon, 4 Aug 2008, Tony Berth wrote: > > > Hi, > > > > is any way to display a pre-defined message for a specific user or a group > > of users any time they log into their account? > > > > Thanks > > > > Tony > > Just to get the ball rolling, man login.conf, and look at capability > "welcome", which defaults to /etc/motd. I think you can set this > capability for various users... how, I'm not too sure, since I don't > mess with login.conf more than once every five years or so. > > Dave Now that I look at the /etc/login.conf file, I see there's an example already present in which members of the class "authpf" get a customized motd. Unfortunately, I can see nothing other than the login class available to discriminate among users or groups. So this is not as fine grained as you want. If the users are "disciplined", it would be easy enough to write a hack into /etc/profile (or the equivalent for other shells) to cat a file based on the user's UID and/or group memberships. By "disciplined" I mean the users wouldn't try to weasel out of executing /etc/profile by some sly means -- i.e. they should want to see these messages. Don't put this in /etc/ksh.kshrc or equivalent places for other shells; you do not want this custom motd spewing out except for a login shell. I recall a fun afternoon tracing down a bizarre bug in "make build" due to a stray carriage return being emitted by ksh.kshrc. The hack would take the form of a big "case" statement, based on UID and maybe GID. A little auxiliary program in perl or C might be more fun to do. A slicker way would be to hack the source to login, but that's a wee bit delicate and "unsupported". It's a swell way to lock up a system tighter than a crab's butt, not ~quite~ as bad as wrecking /bin/sh, but you get the picture. I'm kinda surprised that this capability that you describe doesn't exist already. I would think that one should be able to run arbitrary code based on UID and GID and even terminal line and time of day during login. Am I missing something? Dave -- When was the day your shine was taken? -- gerg From tonyberth at googlemail.com Wed Aug 6 05:43:24 2008 From: tonyberth at googlemail.com (Tony Berth) Date: Wed, 6 Aug 2008 14:43:24 +0200 Subject: login message In-Reply-To: References: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> Message-ID: <3494db260808060543t18774a09gf7e9d6a9b69552b6@mail.gmail.com> On Mon, Aug 4, 2008 at 9:32 PM, Woodchuck wrote: > On Mon, 4 Aug 2008, Woodchuck wrote: > > > On Mon, 4 Aug 2008, Tony Berth wrote: > > > > > Hi, > > > > > > is any way to display a pre-defined message for a specific user or a > group > > > of users any time they log into their account? > > > > > > Thanks > > > > > > Tony > > > > Just to get the ball rolling, man login.conf, and look at capability > > "welcome", which defaults to /etc/motd. I think you can set this > > capability for various users... how, I'm not too sure, since I don't > > mess with login.conf more than once every five years or so. > > > > Dave > > Now that I look at the /etc/login.conf file, I see there's an example > already present in which members of the class "authpf" get a customized > motd. > > Unfortunately, I can see nothing other than the login class available > to discriminate among users or groups. So this is not as fine grained > as you want. > > If the users are "disciplined", it would be easy enough to write a > hack into /etc/profile (or the equivalent for other shells) to cat > a file based on the user's UID and/or group memberships. By > "disciplined" I mean the users wouldn't try to weasel out of executing > /etc/profile by some sly means -- i.e. they should want to see these > messages. > > Don't put this in /etc/ksh.kshrc or equivalent places for other > shells; you do not want this custom motd spewing out except for a > login shell. I recall a fun afternoon tracing down a bizarre bug > in "make build" due to a stray carriage return being emitted by > ksh.kshrc. > > The hack would take the form of a big "case" statement, based on > UID and maybe GID. A little auxiliary program in perl or C might > be more fun to do. > > A slicker way would be to hack the source to login, but that's a > wee bit delicate and "unsupported". It's a swell way to lock up > a system tighter than a crab's butt, not ~quite~ as bad as wrecking > /bin/sh, but you get the picture. > > I'm kinda surprised that this capability that you describe doesn't > exist already. I would think that one should be able to run arbitrary > code based on UID and GID and even terminal line and time of day > during login. Am I missing something? > > Dave > -- > When was the day your shine was taken? > -- gerg > _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies > Sorry for my late reply and thanks for your valuable Info. Actually the login class mechanism is fine for my needs. Just a last question, in login.conf, when I define a new class, can I inherit/include settings from an existing class and just add my own modifications? Thanks Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080806/75ae9bdc/attachment.html From marmot at pennswoods.net Sat Aug 9 12:42:02 2008 From: marmot at pennswoods.net (Woodchuck) Date: Sat, 9 Aug 2008 15:42:02 -0400 (EDT) Subject: login message In-Reply-To: <3494db260808060543t18774a09gf7e9d6a9b69552b6@mail.gmail.com> References: <3494db260808040836u59b6ac72qb6a5b9b7f8300a11@mail.gmail.com> <3494db260808060543t18774a09gf7e9d6a9b69552b6@mail.gmail.com> Message-ID: On Wed, 6 Aug 2008, Tony Berth wrote: > Sorry for my late reply and thanks for your valuable Info. Actually the > login class mechanism is fine for my needs. > > Just a last question, in login.conf, when I define a new class, can I > inherit/include settings from an existing class and just add my own > modifications? I believe that you can inherit from your own classes. myclass: :stuff:nonsense:feathers:fur:\ :tc=default: aclass:\ :stuff:otherstuff:\ :tc=myclass: "myclass" inherits from "default", "aclass" inherits from "myclass" (and therefor from default, too). Dave -- When was the day your shine was taken? -- gerg From macintoshzoom at lavabit.com Mon Aug 11 10:54:10 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Mon, 11 Aug 2008 11:54:10 -0600 Subject: "env" or "export env"? Message-ID: <48A07CC2.9060908@lavabit.com> I have a dude in this command, at least for people running this from KDE konsole or konqueror: At http://www.openbsd.org/faq/faq5.html , section 5.3.5 - Building the userland : ... Make sure all the appropriate directories are created. # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs ... But it seems to me that the proper command for this (from KDE) should be: # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs as "export env", not "env" is the proper command for KDE consoles, e.g. when $ echo $SHELL /bin/ksh $ Can any one give me some light about this? Mac From kousue at gmail.com Mon Aug 11 11:50:56 2008 From: kousue at gmail.com (Nick Guenther) Date: Mon, 11 Aug 2008 14:50:56 -0400 Subject: "env" or "export env"? In-Reply-To: <48A07CC2.9060908@lavabit.com> References: <48A07CC2.9060908@lavabit.com> Message-ID: <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> On Mon, Aug 11, 2008 at 1:54 PM, macintoshzoom wrote: > I have a dude in this command, at least for people running this from KDE > konsole or konqueror: > > At http://www.openbsd.org/faq/faq5.html , > section 5.3.5 - Building the userland : > ... > Make sure all the appropriate directories are created. > # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs > ... > > But it seems to me that the proper command for this (from KDE) should be: > > # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs > > > as "export env", not "env" is the proper command for KDE consoles, > e.g. when > $ echo $SHELL > /bin/ksh > $ > > Can any one give me some light about this? > 'env' is a command that takes a list of environment variables to temporarily define and then runs the command that you give it in that new environment. 'export' is a command that takes a list of strings, treats them as environment variables, and pushes those variables out to the world outside of your current shell (that's why you have to use export in .profile, because .profile gets run in its own subshell, just like every script). "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, rather, it does not mean what you think it does. Try this: $ export env DESTDIR=/ make distrib-dirs $ set #shows the current environment variables Anyway, why would using KDE have any impact on how commands in a shell work? I hope that helps clear up your understanding? -Nick From adam at akarsoft.com Mon Aug 11 11:58:11 2008 From: adam at akarsoft.com (D. Adam Karim) Date: Mon, 11 Aug 2008 11:58:11 -0700 Subject: "env" or "export env"? In-Reply-To: <48A07CC2.9060908@lavabit.com> References: <48A07CC2.9060908@lavabit.com> Message-ID: <20080811185811.GA28880@emac.akarsoft.com> You should really take a look at the man page for env. Basically, env(1) allows you to modify the environment for the utility you use after it. The man page goes into further detail about it but the FAQ's are correct in their wording whether you are in konsole or not. On Mon, Aug 11, 2008 at 11:54:10AM -0600, macintoshzoom wrote: > I have a dude in this command, at least for people running this from KDE > konsole or konqueror: > > At http://www.openbsd.org/faq/faq5.html , > section 5.3.5 - Building the userland : > ... > Make sure all the appropriate directories are created. > # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs > ... > > But it seems to me that the proper command for this (from KDE) should be: > > # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs > > > as "export env", not "env" is the proper command for KDE consoles, > e.g. when > $ echo $SHELL > /bin/ksh > $ > > Can any one give me some light about this? > > Mac > > > > _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies -- D. Adam Karim adam at akarsoft.com ------------------------------------------------------------------------------- Bacchus, n.: A convenient deity invented by the ancients as an excuse for getting drunk. -- Ambrose Bierce, "The Devil's Dictionary" From macintoshzoom at lavabit.com Mon Aug 11 12:50:08 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Mon, 11 Aug 2008 13:50:08 -0600 Subject: "env" or "export env"? OK In-Reply-To: <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> Message-ID: <48A097F0.9020300@lavabit.com> OK, so the proper command is the original one, no matter if ksh is shell or not. Thanks Nick and Adam. I got confused by the fact that: $ env FOO= _=/usr/bin/env bla bla FOO= $ but then if I do $ env |grep FOO no trace of FOO $ So I understand that env sets the environment temporary ONLY for the command line. but when doing $ export env FOO= $ env |grep FOO FOO= $ the temporary env FOO= stays in successive new commands till I close the konsole, a feature that I like and use very usually. Mac Nick Guenther wrote: > On Mon, Aug 11, 2008 at 1:54 PM, macintoshzoom > wrote: >> I have a dude in this command, at least for people running this from KDE >> konsole or konqueror: >> >> At http://www.openbsd.org/faq/faq5.html , >> section 5.3.5 - Building the userland : >> ... >> Make sure all the appropriate directories are created. >> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs >> ... >> >> But it seems to me that the proper command for this (from KDE) should be: >> >> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs >> >> >> as "export env", not "env" is the proper command for KDE consoles, >> e.g. when >> $ echo $SHELL >> /bin/ksh >> $ >> >> Can any one give me some light about this? >> > > 'env' is a command that takes a list of environment variables to > temporarily define and then runs the command that you give it in that > new environment. > 'export' is a command that takes a list of strings, treats them as > environment variables, and pushes those variables out to the world > outside of your current shell (that's why you have to use export in > .profile, because .profile gets run in its own subshell, just like > every script). > > "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, > rather, it does not mean what you think it does. Try this: > $ export env DESTDIR=/ make distrib-dirs > $ set #shows the current environment variables > > Anyway, why would using KDE have any impact on how commands in a shell work? > > I hope that helps clear up your understanding? > -Nick > From adam at akarsoft.com Mon Aug 11 13:00:51 2008 From: adam at akarsoft.com (D. Adam Karim) Date: Mon, 11 Aug 2008 13:00:51 -0700 Subject: "env" or "export env"? OK In-Reply-To: <48A097F0.9020300@lavabit.com> References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> <48A097F0.9020300@lavabit.com> Message-ID: <20080811200050.GB28880@emac.akarsoft.com> $(export env Foo=) is the same as using $(export Foo=) so save yourself from the extra typing! Also to note, closing the shell is not necessary to remove the variable from your shell, just use $(unset Foo) and you're good to go. Glad that you're now able to do a build. Good luck on your BSD hacking ;) On Mon, Aug 11, 2008 at 01:50:08PM -0600, macintoshzoom wrote: > OK, so the proper command is the original one, no matter if ksh is shell or > not. > Thanks Nick and Adam. > > I got confused by the fact that: > > $ env FOO= > _=/usr/bin/env > bla bla > FOO= > $ > > but then if I do > > $ env |grep FOO > no trace of FOO > $ > > So I understand that env sets the environment temporary ONLY for the > command line. > > but when doing > > $ export env FOO= > $ env |grep FOO > FOO= > $ > > the temporary env FOO= stays in successive new commands till I close the > konsole, a feature that I like and use very usually. > > Mac > > Nick Guenther wrote: >> On Mon, Aug 11, 2008 at 1:54 PM, macintoshzoom >> wrote: >>> I have a dude in this command, at least for people running this from KDE >>> konsole or konqueror: >>> >>> At http://www.openbsd.org/faq/faq5.html , >>> section 5.3.5 - Building the userland : >>> ... >>> Make sure all the appropriate directories are created. >>> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs >>> ... >>> >>> But it seems to me that the proper command for this (from KDE) should be: >>> >>> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs >>> >>> >>> as "export env", not "env" is the proper command for KDE consoles, >>> e.g. when >>> $ echo $SHELL >>> /bin/ksh >>> $ >>> >>> Can any one give me some light about this? >>> >> >> 'env' is a command that takes a list of environment variables to >> temporarily define and then runs the command that you give it in that >> new environment. >> 'export' is a command that takes a list of strings, treats them as >> environment variables, and pushes those variables out to the world >> outside of your current shell (that's why you have to use export in >> .profile, because .profile gets run in its own subshell, just like >> every script). >> >> "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, >> rather, it does not mean what you think it does. Try this: >> $ export env DESTDIR=/ make distrib-dirs >> $ set #shows the current environment variables >> >> Anyway, why would using KDE have any impact on how commands in a shell work? >> >> I hope that helps clear up your understanding? >> -Nick >> -- D. Adam Karim adam at akarsoft.com ------------------------------------------------------------------------------- Nasrudin walked into a teahouse and declaimed, "The moon is more useful than the sun." "Why?", he was asked. "Because at night we need the light more." From jim at well.com Mon Aug 11 14:17:07 2008 From: jim at well.com (jim) Date: Mon, 11 Aug 2008 14:17:07 -0700 Subject: "env" or "export env"? OK In-Reply-To: <20080811200050.GB28880@emac.akarsoft.com> References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> <48A097F0.9020300@lavabit.com> <20080811200050.GB28880@emac.akarsoft.com> Message-ID: <1218489427.10905.1031.camel@ubuntu> whatever command you execute on a command line kicks off a process that is a child of the shell: in the case of a command that takes a little bit of time, that delay is shown as a blank line -- only after the command completes do you see another shell prompt. a Bourne family shell has an internal table of environment variables that are to be exported to child processes. in general, your environment variables are not copied into the environment of child processes unless you have used the export command to tell the shell to put them into the export table. the following code uses the sh command, but the same results work if you would use the ls command or any other external command. $ BUGGY=bug $ sh # this spawns a shell as a child of the shell used above $ set | grep BUGGY # using the child shell $ # still using the child shell $ exit # using the child shell, telling the child shell to kill itself $ # child shell gone, this is the original shell $ BUGGY=bug $ sh export BUGGY $ sh # create the child shell $ set | grep BUGGY # using the child shell BUGGY=bug $ # still using the child shell $ exit # terminating the child shell $ # child shell gone, parent is back On Mon, 2008-08-11 at 13:00 -0700, D. Adam Karim wrote: > $(export env Foo=) is the same as using $(export Foo=) so save yourself > from the extra typing! Also to note, closing the shell is not necessary > to remove the variable from your shell, just use $(unset Foo) and you're > good to go. > > Glad that you're now able to do a build. Good luck on your BSD hacking > ;) > > On Mon, Aug 11, 2008 at 01:50:08PM -0600, macintoshzoom wrote: > > OK, so the proper command is the original one, no matter if ksh is shell or > > not. > > Thanks Nick and Adam. > > > > I got confused by the fact that: > > > > $ env FOO= > > _=/usr/bin/env > > bla bla > > FOO= > > $ > > > > but then if I do > > > > $ env |grep FOO > > no trace of FOO > > $ > > > > So I understand that env sets the environment temporary ONLY for the > > command line. > > > > but when doing > > > > $ export env FOO= > > $ env |grep FOO > > FOO= > > $ > > > > the temporary env FOO= stays in successive new commands till I close the > > konsole, a feature that I like and use very usually. > > > > Mac > > > > Nick Guenther wrote: > >> On Mon, Aug 11, 2008 at 1:54 PM, macintoshzoom > >> wrote: > >>> I have a dude in this command, at least for people running this from KDE > >>> konsole or konqueror: > >>> > >>> At http://www.openbsd.org/faq/faq5.html , > >>> section 5.3.5 - Building the userland : > >>> ... > >>> Make sure all the appropriate directories are created. > >>> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs > >>> ... > >>> > >>> But it seems to me that the proper command for this (from KDE) should be: > >>> > >>> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs > >>> > >>> > >>> as "export env", not "env" is the proper command for KDE consoles, > >>> e.g. when > >>> $ echo $SHELL > >>> /bin/ksh > >>> $ > >>> > >>> Can any one give me some light about this? > >>> > >> > >> 'env' is a command that takes a list of environment variables to > >> temporarily define and then runs the command that you give it in that > >> new environment. > >> 'export' is a command that takes a list of strings, treats them as > >> environment variables, and pushes those variables out to the world > >> outside of your current shell (that's why you have to use export in > >> .profile, because .profile gets run in its own subshell, just like > >> every script). > >> > >> "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, > >> rather, it does not mean what you think it does. Try this: > >> $ export env DESTDIR=/ make distrib-dirs > >> $ set #shows the current environment variables > >> > >> Anyway, why would using KDE have any impact on how commands in a shell work? > >> > >> I hope that helps clear up your understanding? > >> -Nick > >> > From marmot at pennswoods.net Mon Aug 11 13:40:19 2008 From: marmot at pennswoods.net (Woodchuck) Date: Mon, 11 Aug 2008 16:40:19 -0400 (EDT) Subject: "env" or "export env"? In-Reply-To: <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> Message-ID: On Mon, 11 Aug 2008, Nick Guenther wrote: > 'export' is a command that takes a list of strings, treats them as > environment variables, and pushes those variables out to the world > outside of your current shell (that's why you have to use export in > .profile, because .profile gets run in its own subshell, just like > every script). .profile is used to modify the *current* environment, and it is typically run as $ . ./.profile i.e., without a subshell. A subprocess (which is what a subshell is) cannot affect its parent's environment (or other parts of its address space without special measures, not discussed here). This is an "iron law" of the Unix process model. If you put lines in .profile: ZIP="zap" export ZIP and execute .profile as: $ ./.profile then $ echo $ZIP you get nothing. On the other hand $ . ./.profile $ echo $ZIP zap There are three dots in that . ./.profile, each different. For the record, the first one means "execute without spawning a subshell" the 2nd one means "the current working directory" the 3rd one is just part of the file name and has almost no special significange except to ls(1). This is for ksh. env is not needed in ksh. $ FOO=bar program program will see FOO with value bar in its (program's) environment. > "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, > rather, it does not mean what you think it does. Try this: It will attempt to export an environment variable named "env", and export an environment variable DESTDIR with value "/", and also export two more blank variables "make" and "distrib-dirs". > $ export env DESTDIR=/ make distrib-dirs > $ set #shows the current environment variables > > Anyway, why would using KDE have any impact on how commands in a shell work? Who knows what wonders KDE is capable of inflicting on the young and innocent? I have no idea which shell KDE runs in its "konsole". csh does not do environemnt variables exactly the same as ksh or sh. this "env" command is probably an attempt to get consistent results across different shells. Dave "garrulous in a good cause" -- When was the day your shine was taken? -- gerg From kousue at gmail.com Mon Aug 11 15:56:43 2008 From: kousue at gmail.com (Nick Guenther) Date: Mon, 11 Aug 2008 18:56:43 -0400 Subject: "env" or "export env"? In-Reply-To: References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> Message-ID: <98f5a8830808111556v5a6130f0n5f4f482e22a3f020@mail.gmail.com> On Mon, Aug 11, 2008 at 4:40 PM, Woodchuck wrote: > On Mon, 11 Aug 2008, Nick Guenther wrote: > >> 'export' is a command that takes a list of strings, treats them as >> environment variables, and pushes those variables out to the world >> outside of your current shell (that's why you have to use export in >> .profile, because .profile gets run in its own subshell, just like >> every script). > > > A subprocess (which is what a subshell is) cannot affect its > parent's environment (or other parts of its address space without > special measures, not discussed here). This is an "iron law" of > the Unix process model. > > If you put lines in .profile: > > ZIP="zap" > export ZIP > > and execute .profile as: > > $ ./.profile > > then > $ echo $ZIP > > you get nothing. > > On the other hand > > $ . ./.profile > $ echo $ZIP > zap Oh, I didn't realize that. Thanks. That's very subtle. -Nick From macintoshzoom at lavabit.com Tue Aug 12 02:05:29 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 03:05:29 -0600 Subject: proper PKG_PATH= for -current? Message-ID: <48A15259.90601@lavabit.com> proper PKG_PATH= for OpenBSD 4.4-current (GENERIC.MP) (i386)? PKG_PATH=ftp://ftp.kddlabs.co.jp/OpenBSD/snapshots/packages/i386/ or any other snapshots mirror? It seems to me that latest ports tree are more advanced that snapshots. I am on a bleeding edge experimental box. Mac From macintoshzoom at lavabit.com Tue Aug 12 02:15:04 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 03:15:04 -0600 Subject: pkg_add don't understand stems anymore! Message-ID: <48A15498.1000104@lavabit.com> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, I am preparing my attack to the updating of my installed packages and ports. I got an issue probably related to syntax or eventually to my sophisticated experimental proxy environment (everything via tor). I tested also doing # export PKG_PATH= , just to let the system to check for the OpenBSD.org proper site if in need to verify or fetch something. # pkg_add kdelibs Can't resolve kdelibs # What could be wrong? $ pkg_info |grep kdelibs kdelibs-3.5.9p1 K Desktop Environment, libraries $ As per man pkg_add: pkg_add also understands `stems', that is, package names without any version specification. For instance, with pkg_add kdelibs, pkg_add will look in the current directory (or the PKG_PATH) for a kdelibs package. But then if I do: # pkg_add -u kdelibs Looking for updates: complete Cannot find updates for esound-0.2.38v0 desktop-file-utils-0.15 qt3-mt-3.8p2 lcms-1.17p0 libart-2.3.20p0 aspell-0.50.5p4 libaudiofile-0.2.6p0 libgcrypt-1.2.4 jasper-1.900.1p0 libmng-1.0.10 hicolor-icon-theme-0.10p1 bzip2-1.0.5 libogg-1.1.3 png-1.2.28 OpenEXR-1.6.1p0 arts-1.5.9p0 jpeg-6bp3 libxslt-1.1.24 ilmbase-1.0.1p2 tiff-3.8.2p0 libvorbis-1.2.0p0 libiconv-1.12 libxml-2.6.32p1 libmad-0.15.1bp1 libgpg-error-1.5 glib2-2.16.4p0 gettext-0.17 fam-2.7.0p5 pcre-7.7p0 libidn-1.1 kdelibs-3.5.9p1 # Does this means that my kdelibs is up to date? Anyway, why: # pkg_add kdelibs Can't resolve kdelibs # ? Instead of something like "already installed and updated" Mac From macintoshzoom at lavabit.com Tue Aug 12 02:42:45 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 03:42:45 -0600 Subject: after rebuilt userland, update /dev and /etc ? Message-ID: <48A15B15.2010007@lavabit.com> I succeeded updating my system to OpenBSD 4.4-current (GENERIC.MP) (yup yup!), and after I rebuilt my kernel and reboot I rebuilt my userland. Ok till here. Now I have to check http://www.openbsd.org/faq/current.html and update /etc and /dev ... What! I do not know about most programs this page is telling me about, most of them I never installed (e.g. rtadvd) nor it seems the system installed it on my behalf, so may I have understand that for this e.g. rtadvd I have nothing to do by now. Any script to tell me better info here? Can you give me some light about what do I have to do at this stage, or what you use to do here? ( http://www.openbsd.org/faq/current.html ) e.g.: At section 2008/07/24 - changes in libc and libm What? What is that? It seems main libraries. Let's go if I have some of these installed: $ pkg_info | grep libc libcddb-1.3.0 library to access data on a CDDB server libcdio-0.80p2 compact disk input and control library libcroco-0.6.1p0 generic CSS parsing library for GNOME project ?? $ pkg_info | grep libm libmad-0.15.1bp1 high-quality MPEG audio decoder libmal-0.44 MAL convenience library libmatroska-0.8.1 extensible open standard audio/video container library libmikmod-3.1.10p4 mikmod sound library libmng-1.0.10 Multiple-image Network Graphics (MNG) reference library libmpcdec-1.2.6 musepack decoder library libmpeg2-0.4.1 free MPEG-2 video stream decoder libmspack-20040308a library for handling microsoft compression formats libmtp-0.2.6.1p0 Media Transfer Protocol (MTP) implementation $ Terror, panic is invading me, what do I have to do with all those to update it? Moreover, this "2008/07/24 - changes in libc and libm" says also: 4. Build and install gcc. What? Which one? Those gcc I installed from packages or the gcc that comes with the system and I don't know which one it is as pkg_info didn't tell me about? If your platform uses gcc 2.95.3: blah blah If your platform uses gcc 3.3.5: blah blah ?? $ pkg_info | grep gcc gcc-4.2.20070307p7 GNU compiler collection: core C compiler $ Still, again, terror, panic is invading me to make (or to forget) something wrong. Please, have a pint of caipirinha ( http://en.wikipedia.org/wiki/Caipirinha ) with me and give some clues! Note: If I survice from here, (I will do for sure) my next todo steps: Install xenocara with radeonhd for my ASUS "ATI Radeon HD 2400 Pro" videocard (?!) and updating all my installed ports and packages (!?) .. will need more caipirinhas and help! Mac From macintoshzoom at lavabit.com Tue Aug 12 02:49:56 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 03:49:56 -0600 Subject: -current xenocara with radeonhd? Message-ID: <48A15CC4.2050401@lavabit.com> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, updated /etc and dev/, now I will have to build xenocara (that's, it seems as a tweaked X.org by OpenBSD): Will I risk to never be able to restart my X after so many efforts to tune kdm, kde, my custom themes and styles, etc!?? Do I have to build/install xenocara before or after updating my ports and packages? If my xenocara build fails, Is there a way/script (how?) to preserve my current X system and settings as a backup? If it fails, how do I use this backup to restore (any script?) my old (but working good) X? I am on an "ATI Radeon HD 2400 Pro" which should benefit a lot from the newest radeonhd driver that I have read somewhere latest xenocara supports: Any of you succeeded with the radeonhd? Thanks again to all! Mac. From macintoshzoom at lavabit.com Tue Aug 12 03:30:33 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 04:30:33 -0600 Subject: "env" or "export env"? In-Reply-To: References: <48A07CC2.9060908@lavabit.com> <98f5a8830808111150j74eea219nc283917d8082cfe4@mail.gmail.com> Message-ID: <48A16649.6010203@lavabit.com> konsole 1.6.6 on KDE 3.5.9: $ echo $SHELL /bin/ksh $ Mac Woodchuck wrote: > On Mon, 11 Aug 2008, Nick Guenther wrote: > >> 'export' is a command that takes a list of strings, treats them as >> environment variables, and pushes those variables out to the world >> outside of your current shell (that's why you have to use export in >> .profile, because .profile gets run in its own subshell, just like >> every script). > > .profile is used to modify the *current* environment, and it is > typically run as > $ . ./.profile > > i.e., without a subshell. > > A subprocess (which is what a subshell is) cannot affect its > parent's environment (or other parts of its address space without > special measures, not discussed here). This is an "iron law" of > the Unix process model. > > If you put lines in .profile: > > ZIP="zap" > export ZIP > > and execute .profile as: > > $ ./.profile > > then > $ echo $ZIP > > you get nothing. > > On the other hand > > $ . ./.profile > $ echo $ZIP > zap > > There are three dots in that . ./.profile, each different. For the > record, > the first one means "execute without spawning a subshell" > the 2nd one means "the current working directory" > the 3rd one is just part of the file name and has almost no > special significange except to ls(1). > > This is for ksh. > > env is not needed in ksh. > > $ FOO=bar program > > program will see FOO with value bar in its (program's) environment. > > >> "export env DESTDIR=/ make distrib-dirs" doesn't mean anything. Well, >> rather, it does not mean what you think it does. Try this: > > It will attempt to export an environment variable named "env", and > export an environment variable DESTDIR with value "/", and also export > two more blank variables "make" and "distrib-dirs". > > >> $ export env DESTDIR=/ make distrib-dirs >> $ set #shows the current environment variables >> >> Anyway, why would using KDE have any impact on how commands in a shell work? > > Who knows what wonders KDE is capable of inflicting on the young > and innocent? I have no idea which shell KDE runs in its "konsole". > > csh does not do environemnt variables exactly the same as ksh or sh. > > this "env" command is probably an attempt to get consistent results > across different shells. > > Dave "garrulous in a good cause" From macintoshzoom at lavabit.com Tue Aug 12 08:44:23 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 09:44:23 -0600 Subject: Can't safely update to xxx (use -F update to force it) ? Message-ID: <48A1AFD7.1000500@lavabit.com> # cd /usr/ports/x11/kde/kdeutils # make update .. blah blah .. Can't safely update to kdeutils-3.5.9p0 (use -F update to force it) # How should I do "(use -F update to force it)" from my ports folder, there is no "make -f update" command? Thanks. Mac From fbax at sympatico.ca Tue Aug 12 06:36:01 2008 From: fbax at sympatico.ca (Frank Bax) Date: Tue, 12 Aug 2008 09:36:01 -0400 Subject: pkg_add don't understand stems anymore! In-Reply-To: <48A15498.1000104@lavabit.com> References: <48A15498.1000104@lavabit.com> Message-ID: <48A191C1.7020508@sympatico.ca> macintoshzoom wrote: > After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, I > am preparing my attack to the updating of my installed packages and ports. > > I got an issue probably related to syntax or eventually to my > sophisticated experimental proxy environment (everything via tor). > > I tested also doing # export PKG_PATH= , just to let the system > to check for the OpenBSD.org proper site if in need to verify or fetch > something. > > # pkg_add kdelibs > Can't resolve kdelibs > # > > What could be wrong? Where did you get the idea that PKG_PATH= will search openbsd.org? It does not. From macintoshzoom at lavabit.com Tue Aug 12 07:13:16 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 08:13:16 -0600 Subject: "env" or "export env"? In-Reply-To: <20080812125703.GA4943@lain.home> References: <48A07CC2.9060908@lavabit.com> <20080812125703.GA4943@lain.home> Message-ID: <48A19A7C.1040902@lavabit.com> Hi Marc Espie, As I told this list yesterday, "Re: "env" or "export env"? OK", yes I was wrong. Thanks to Nick and Adam and others who kindly explained the question. Mac. Marc Espie wrote: > On Mon, Aug 11, 2008 at 11:54:10AM -0600, macintoshzoom wrote: >> I have a dude in this command, at least for people running this from KDE >> konsole or konqueror: >> >> At http://www.openbsd.org/faq/faq5.html , >> section 5.3.5 - Building the userland : >> ... >> Make sure all the appropriate directories are created. >> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs >> ... >> >> But it seems to me that the proper command for this (from KDE) should be: >> >> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs >> >> >> as "export env", not "env" is the proper command for KDE consoles, >> e.g. when >> $ echo $SHELL >> /bin/ksh >> $ >> >> Can any one give me some light about this? > > You're wrong. > > From macintoshzoom at lavabit.com Tue Aug 12 09:19:16 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 10:19:16 -0600 Subject: does this means this is already updated? Message-ID: <48A1B804.4050001@lavabit.com> # cd /usr/ports/x11/kde/kdeutils # make update ===> Updating for kdeutils-3.5.9p0 Upgrading from kdeutils-3.5.9p0 .. blah blah Can't safely update blah blah # does this means kdeutils-3.5.9p0 is already updated? Thanks. Mac. From macintoshzoom at lavabit.com Tue Aug 12 09:42:35 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 10:42:35 -0600 Subject: what it is update-desktop-database (KDE)? Message-ID: <48A1BD7B.8050001@lavabit.com> On OpenBSD 4.4-current (GENERIC.MP): # cd /usr/ports/x11/kde/kdeutils # make update ===> Updating for kdeutils-3.5.9p0 Upgrading from kdeutils-3.5.9p0 New package kdeutils-3.5.9p0 contains potentially unsafe operations @exec /usr/local/bin/update-desktop-database Can't safely update to kdeutils-3.5.9p0 (use -F update to force it) /usr/sbin/pkg_add: kdeutils-3.5.9p0:Fatal error *** Error code 1 Stop in /usr/ports/x11/kde/utils3 (line 1472 of /usr/ports/infrastructure/mk/bsd.port.mk). # does this means kdeutils-3.5.9p0 is already updated? If so I don't need to execute /usr/local/bin/update-desktop-database, unless It can reset, clean or improve something, if I discover what. Does anyone knows what exactly it does this /usr/local/bin/update-desktop-database ? Will damage, or replace some of my customizations or settings? Can't find info about this: $ man update-desktop-database man: no entry for update-desktop-database in the manual. $ $ /usr/local/bin/update-desktop-database --help Usage: update-desktop-database [OPTION...] [DIRECTORY...] Help Options: -?, --help Show help options Application Options: -v, --verbose Display more information about processing and updating progress -q, --quiet Don't display any information about about processing and updating progress $ Thanks! Mac. From marmot at pennswoods.net Tue Aug 12 11:21:30 2008 From: marmot at pennswoods.net (Woodchuck) Date: Tue, 12 Aug 2008 14:21:30 -0400 (EDT) Subject: -current xenocara with radeonhd? In-Reply-To: <48A15CC4.2050401@lavabit.com> References: <48A15CC4.2050401@lavabit.com> Message-ID: On Tue, 12 Aug 2008, macintoshzoom wrote: > After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, > updated /etc and dev/, now I will have to build xenocara (that's, it > seems as a tweaked X.org by OpenBSD): > Will I risk to never be able to restart my X after so many efforts to > tune kdm, kde, my custom themes and styles, etc!?? Unknowable, because you have "custom" things. > Do I have to build/install xenocara before or after updating my ports > and packages? man release > If my xenocara build fails, Is there a way/script (how?) to preserve my > current X system and settings as a backup? man tar man dump > If it fails, how do I use this backup to restore (any script?) my old > (but working good) X? man tar man restore > I am on an "ATI Radeon HD 2400 Pro" which should benefit a lot from the > newest radeonhd driver that I have read somewhere latest xenocara > supports: Any of you succeeded with the radeonhd? > > Thanks again to all! > > Mac. You should be making more effort to answer these questions yourself. I have indicated where answers are. Dave -- When was the day your shine was taken? -- gerg From macintoshzoom at lavabit.com Tue Aug 12 12:54:46 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 13:54:46 -0600 Subject: pkg_add don't understand stems anymore! SOLVED In-Reply-To: <48A191C1.7020508@sympatico.ca> References: <48A15498.1000104@lavabit.com> <48A191C1.7020508@sympatico.ca> Message-ID: <48A1EA86.9060704@lavabit.com> Hi Frank, Marc, all, SOLVED!: The problem was: 1-You say that a PKG_PATH must be set, as there is no default one. OK Anyway, I tested with and without PKG_PATH. 2-I am testing a FETCH_CMD using wget, which it seems it don't understand "stems" as yes ftp does (the default OpenBSD fetcher). So for pkg_add via wget I have to specify the package name including extension (must test more about this): # pkg_add -v -i bmp-0.9.7p13.tgz blahblah bmp-0.9.7p13: complete # Thanks for your help. May be I got confused by pbrowser which yes, if you don't start it with the command -p "PKG_PATH" (or setup the path from its Edit>Package Path menu) it fetch everything from OpenBSD.org by default, a clever option for newbies. So, if I don't specify somewhere the PKG_PATH, pkg_add and probably also make will not work! This is why pkg_add didn't understand stems. BUT this way a newly installed OpenBSD would not be able to install anything till the new user finds how to and set-up a PKG_PATH. An added pain for new users. Why not a preset OpenBSD.org PKG_PATH? To minimize and distribute traffic so individual servers are under less strain fetching could be done via an automated mirror's load balancer system, a metalink system http://www.metalinker.org/ or similar else. Mac Frank Bax wrote: > macintoshzoom wrote: >> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, I >> am preparing my attack to the updating of my installed packages and ports. >> >> I got an issue probably related to syntax or eventually to my >> sophisticated experimental proxy environment (everything via tor). >> >> I tested also doing # export PKG_PATH= , just to let the system >> to check for the OpenBSD.org proper site if in need to verify or fetch >> something. >> >> # pkg_add kdelibs >> Can't resolve kdelibs >> # >> >> What could be wrong? > > > > Where did you get the idea that PKG_PATH= will search > openbsd.org? It does not. > _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies > From macintoshzoom at lavabit.com Tue Aug 12 12:55:45 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 13:55:45 -0600 Subject: "env" or "export env"? In-Reply-To: <98f5a8830808120925t3946104l192177556fafd766@mail.gmail.com> References: <48A07CC2.9060908@lavabit.com> <20080812125703.GA4943@lain.home> <48A19A7C.1040902@lavabit.com> <98f5a8830808120925t3946104l192177556fafd766@mail.gmail.com> Message-ID: <48A1EAC1.3020508@lavabit.com> Hi Nick, Please sorry, English is not my native language, but as you may see, I am making efforts to be understandable. As soon as you speak me in nuanced english, I'm lost. I am not good at jargons, I use answers.com, wikipedia and babelfish translation tools when in need of (many times). What does means your post? "ignoring the bitter ones' slings and arrows. I commend you on it." bitter? slings? arrows? commend? answers.com: Dictionary: bitter 1. Having or being a taste that is sharp, acrid, and unpleasant. Dictionary: sling 1. A weapon consisting of a looped strap in which a stone is whirled and then let fly. Dictionary: arrow 1. A missile having a straight thin shaft with a pointed head at one end and often flight-stabilizing vanes at the other, meant to be shot from a bow. 2. Something, such as a directional symbol, that is similar to an arrow in form or function. Dictionary: commend 1. To represent as worthy, qualified, or desirable; recommend. 2. To express approval of; praise. See synonyms at praise. 3. To commit to the care of another; entrust. So, I can understand your post in 2 ways: A- Optimistic, you praise me for my diplomatic answer to a bit rude "You're wrong." (dot) answer form Marc Espie. B- You amend me because my answer was polite but a bit acid: I dislike those kind of unpleasant "You're wrong."(DOT) answers (=similar to shut up stupid ignorant or the like). I think may be Marc Espie is a strong OpenBSD guru, and as I emailed a copy of this post to www at openbsd.org he get it there (?) (I shouldn't, at least until verification), this has maybe annoyed Marc a bit. My fault. Anyway this is open source, OpenBSD is all of us with each drop of effort and brainstorming ideas. May you can explain me your phrase in a plain basic English? or tell me if its A or B my understanding?. Now is just a question of curiousness, it doesn't matter very much, but I'm not a robot nor a computer, I'm a sensible human person. And I'm new on mail lists, so I have to learn how people are here and how to be kind but also exigent when it's a matter of human respect and kind manners. May be someone could send me privately some kind of who-is-who opinions about people in OpenBSD and in those mail-lists? Just to know more about each one, as I have known giants that were rude in their manners but in deep they were very kind. Sorry, I noticed that I talk too much, that's me. Thanks for your help anyway. Mac. Nick Guenther wrote: > You're very good at ignoring the bitter ones' slings and arrows. I > commend you on it. > > On Tue, Aug 12, 2008 at 10:13 AM, macintoshzoom > wrote: >> Hi Marc Espie, >> >> As I told this list yesterday, "Re: "env" or "export env"? OK", yes I >> was wrong. >> >> Thanks to Nick and Adam and others who kindly explained the question. >> >> Mac. >> >> Marc Espie wrote: >>> On Mon, Aug 11, 2008 at 11:54:10AM -0600, macintoshzoom wrote: >>>> I have a dude in this command, at least for people running this from KDE >>>> konsole or konqueror: >>>> >>>> At http://www.openbsd.org/faq/faq5.html , >>>> section 5.3.5 - Building the userland : >>>> ... >>>> Make sure all the appropriate directories are created. >>>> # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs >>>> ... >>>> >>>> But it seems to me that the proper command for this (from KDE) should be: >>>> >>>> # cd /usr/src/etc && export env DESTDIR=/ make distrib-dirs >>>> >>>> >>>> as "export env", not "env" is the proper command for KDE consoles, >>>> e.g. when >>>> $ echo $SHELL >>>> /bin/ksh >>>> $ >>>> >>>> Can any one give me some light about this? >>> You're wrong. >>> >>> >> _______________________________________________ >> Openbsd-newbies mailing list >> Openbsd-newbies at sfobug.org >> http://mailman.theapt.org/listinfo/openbsd-newbies >> > From josh at jggimi.homeip.net Tue Aug 12 13:06:44 2008 From: josh at jggimi.homeip.net (Josh Grosse) Date: Tue, 12 Aug 2008 16:06:44 -0400 Subject: macintoshzoom's questions regarding kdeutils In-Reply-To: <48A1BD7B.8050001@lavabit.com> References: <48A1BD7B.8050001@lavabit.com> Message-ID: <20080812194523.M33783@jggimi.homeip.net> Within one hour, "Mac" asked the same question three different ways, with three different subject lines, and in the third one, cc'ed the KDE list, which I have dropped from this reply, as this has nothing to do with KDE, rather, with port/package management on OpenBSD. Question #1: On Tue, 12 Aug 2008 09:44:23 -0600, macintoshzoom wrote > Can't safely update to kdeutils-3.5.9p0 (use -F update to force it) > # > > How should I do "(use -F update to force it)" from my ports folder, > there is no "make -f update" command? Answer #1: Use pkg_add(8). Note the "-F update" option in the man page. Then, after remembering if you manually updated files in /usr/local for that particular package, use pkg_add to update the package. You might use something like: # env PKG_PATH=/usr/ports/packages//all/ pkg_add -ri -F update kdeutils Question #2: On Tue, 12 Aug 2008 10:19:16 -0600, macintoshzoom wrote > blah blah Can't safely update blah blah > # > does this means kdeutils-3.5.9p0 is already updated? Answer #2: No. It means after building the package, make was unable to install it as there are install/deinstall scripts involved. See Answer #1. On Tue, 12 Aug 2008 10:42:35 -0600, macintoshzoom wrote > > ...does this means kdeutils-3.5.9p0 is already updated? No, see Answers #1 and #2. > If so I don't need to execute /usr/local/bin/update-desktop-database, > unless It can reset, clean or improve something, if I discover what. > > Does anyone knows what exactly it does this > /usr/local/bin/update-desktop-database ? You can find out which package the file belongs to by issuing: $ pkg_info -E /usr/local/bin/update-desktop-database Once you learn that, you can see the complete list of files associated with that package by issuing: $ pkg_info -L If you output that to a pager, such as more(1) or less(1), e.g.: $ pkg_info -L | less You can then browse the files to see if there's a man page, an info file, or documentation that may lead you to discover what the file does. I hope this helps. From macintoshzoom at lavabit.com Tue Aug 12 13:11:24 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Tue, 12 Aug 2008 14:11:24 -0600 Subject: macintoshzoom's questions regarding kdeutils In-Reply-To: <20080812194523.M33783@jggimi.homeip.net> References: <48A1BD7B.8050001@lavabit.com> <20080812194523.M33783@jggimi.homeip.net> Message-ID: <48A1EE6C.90005@lavabit.com> Thanks, will see all that tomorrow. Mac Josh Grosse wrote: > Within one hour, "Mac" asked the same question three different ways, with > three different subject lines, and in the third one, cc'ed the KDE list, which > I have dropped from this reply, as this has nothing to do with KDE, rather, > with port/package management on OpenBSD. > > Question #1: > > On Tue, 12 Aug 2008 09:44:23 -0600, macintoshzoom wrote > >> Can't safely update to kdeutils-3.5.9p0 (use -F update to force it) >> # >> >> How should I do "(use -F update to force it)" from my ports folder, >> there is no "make -f update" command? > > Answer #1: > > Use pkg_add(8). Note the "-F update" option in the man page. Then, after > remembering if you manually updated files in /usr/local for that particular > package, use pkg_add to update the package. You might use something like: > > # env PKG_PATH=/usr/ports/packages//all/ pkg_add -ri -F update kdeutils > > Question #2: > > On Tue, 12 Aug 2008 10:19:16 -0600, macintoshzoom wrote > >> blah blah Can't safely update blah blah >> # >> does this means kdeutils-3.5.9p0 is already updated? > > Answer #2: > > No. It means after building the package, make was unable to install it as > there are install/deinstall scripts involved. See Answer #1. > > On Tue, 12 Aug 2008 10:42:35 -0600, macintoshzoom wrote >> ...does this means kdeutils-3.5.9p0 is already updated? > > No, see Answers #1 and #2. > >> If so I don't need to execute /usr/local/bin/update-desktop-database, >> unless It can reset, clean or improve something, if I discover what. >> >> Does anyone knows what exactly it does this >> /usr/local/bin/update-desktop-database ? > > You can find out which package the file belongs to by issuing: > > $ pkg_info -E /usr/local/bin/update-desktop-database > > Once you learn that, you can see the complete list of files associated with > that package by issuing: > > $ pkg_info -L > > If you output that to a pager, such as more(1) or less(1), e.g.: > > $ pkg_info -L | less > > You can then browse the files to see if there's a man page, an info file, or > documentation that may lead you to discover what the file does. > > I hope this helps. > From fbax at sympatico.ca Tue Aug 12 13:37:27 2008 From: fbax at sympatico.ca (Frank Bax) Date: Tue, 12 Aug 2008 16:37:27 -0400 Subject: pkg_add don't understand stems anymore! SOLVED In-Reply-To: <48A1EA86.9060704@lavabit.com> References: <48A15498.1000104@lavabit.com> <48A191C1.7020508@sympatico.ca> <48A1EA86.9060704@lavabit.com> Message-ID: <48A1F487.6030205@sympatico.ca> I did not say PKG_PATH must be set. It does not. pkg_add DOES work when PKG_PATH is not set; it will look in the current directory for packages. When installing packages from the cdrom you purchased, there is no need to set PKG_PATH if you "cd" into the appropriate directory first. PKG_PATH does NOT need to be a remote site. If you manually download packages with wget or lynx; then you can point PKG_PATH to this directory and install packages from there. pkg_add DOES understand stems. If you download several packages manually; then set PKG_PATH to the directory you used; "pkg_add *" will install all packages in that directory. macintoshzoom wrote: > Hi Frank, Marc, all, > > SOLVED!: > The problem was: > > 1-You say that a PKG_PATH must be set, as there is no default one. OK > Anyway, I tested with and without PKG_PATH. > > 2-I am testing a FETCH_CMD using wget, which it seems it don't > understand "stems" as yes ftp does (the default OpenBSD fetcher). > So for pkg_add via wget I have to specify the package name including > extension (must test more about this): > > # pkg_add -v -i bmp-0.9.7p13.tgz > blahblah > bmp-0.9.7p13: complete > # > > Thanks for your help. > > May be I got confused by pbrowser which yes, if you don't start it with > the command -p "PKG_PATH" (or setup the path from its Edit>Package Path > menu) it fetch everything from OpenBSD.org by default, a clever option > for newbies. > > So, if I don't specify somewhere the PKG_PATH, pkg_add and probably also > make will not work! > > This is why pkg_add didn't understand stems. > > BUT this way a newly installed OpenBSD would not be able to install > anything till the new user finds how to and set-up a PKG_PATH. > An added pain for new users. > Why not a preset OpenBSD.org PKG_PATH? > To minimize and distribute traffic so individual servers are under less > strain fetching could be done via an automated mirror's load balancer > system, a metalink system http://www.metalinker.org/ or similar else. > > Mac > > > Frank Bax wrote: >> macintoshzoom wrote: >>> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, >>> I am preparing my attack to the updating of my installed packages and >>> ports. >>> >>> I got an issue probably related to syntax or eventually to my >>> sophisticated experimental proxy environment (everything via tor). >>> >>> I tested also doing # export PKG_PATH= , just to let the >>> system to check for the OpenBSD.org proper site if in need to verify >>> or fetch something. >>> >>> # pkg_add kdelibs >>> Can't resolve kdelibs >>> # >>> >>> What could be wrong? >> >> >> >> Where did you get the idea that PKG_PATH= will search >> openbsd.org? It does not. >> _______________________________________________ >> Openbsd-newbies mailing list >> Openbsd-newbies at sfobug.org >> http://mailman.theapt.org/listinfo/openbsd-newbies >> > > From daniels at Ponderosatel.com Tue Aug 12 16:00:56 2008 From: daniels at Ponderosatel.com (Daniel Sichel) Date: Tue, 12 Aug 2008 16:00:56 -0700 Subject: OpenBSD 4.3 and wireless total n00b question Message-ID: <190DFDD2F99A65469B4B15D3658C0D2B03F87DE6@PTC6.ponderosatel.com> So I have a Dell Latitude D600 with a Broadcom 1350 wireless chipset built in which I gather is not supported, I get the following error at boot up, Bwi0: error 2, could not read firmware bwi-airforce. Since I am not one to bang my head against the wall, and I find no evidence that this chipset is supported I pull out my handy dandy pcmcia wireless card That uses a different chipset. Now on bootup I get 02Micro, SmartCardBus Reader, V1.0 at mcmcia1 function 0 not configured. I would like to get one of the two working. I did some googling and read the man cardbus, but I can make no sense of it. Sooo, if somebody could help a n00b with wireless, it would be much appreciated. Cheers, Daniel Sichel, CCNP, MCSE,MCSA,MCTS (Windows 2008) Network Engineer Ponderosa Telephone (559) 868-6367 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080812/3d30b763/attachment.html From josh at jggimi.homeip.net Tue Aug 12 18:08:27 2008 From: josh at jggimi.homeip.net (Josh Grosse) Date: Tue, 12 Aug 2008 21:08:27 -0400 Subject: OpenBSD 4.3 and wireless total n00b question In-Reply-To: <190DFDD2F99A65469B4B15D3658C0D2B03F87DE6@PTC6.ponderosatel.com> References: <190DFDD2F99A65469B4B15D3658C0D2B03F87DE6@PTC6.ponderosatel.com> Message-ID: <20080813010827.GA15316@jggimi.homeip.net> On Tue, Aug 12, 2008 at 04:00:56PM -0700, Daniel Sichel wrote: > Bwi0: error 2, could not read firmware bwi-airforce. If you read the bwi(4) man page, you will see where to obtain the firmware. (The firmware is not included with OpenBSD due to license restrictions.) From macintoshzoom at lavabit.com Wed Aug 13 02:03:00 2008 From: macintoshzoom at lavabit.com (macintoshzoom) Date: Wed, 13 Aug 2008 03:03:00 -0600 Subject: pkg_add don't understand stems anymore! SOLVED but ... In-Reply-To: <48A1F487.6030205@sympatico.ca> References: <48A15498.1000104@lavabit.com> <48A191C1.7020508@sympatico.ca> <48A1EA86.9060704@lavabit.com> <48A1F487.6030205@sympatico.ca> Message-ID: <48A2A344.9000300@lavabit.com> 1- PKG_PATH : Okay for your explanation about the default OpenBSD PKG_PATH policy. Default path is set to the current directory. Trying to do any pkg_add -u will fail unless you have pre-downloaded the newest packages to a directory and cd to it, or if you have to manually investigate where the OpenBSD mirrors are, choose one, investigate where you have to set up your PKG_PATH for later use, do it with the correct syntax (don't forget the last trash, or may be that's issue has already been fixed in latest release?), etc, etc. Investigate where are the faqs, mans, information on how to do the job. So a mere mortal new OpenBSD user will pain (as I did) for loong days till understanding the whole thing: How to keep upgraded/updated your system. Really, a pain. There is still a long road to make OpenBSD kind. 2- "pkg_add don't understand stems": It seems to me that pkg_add DON'T understand stems by itself, it relies on calling ftp (default fetch app) to do that job. But if you set a custom FETCH_CMD= to use "dsocks-torify.sh wget + some options" as fetcher (because ftp don't goes via tor as you want to): # FETCH_CMD="/usr/local/bin/fetch-via-wget-xxxx.sh" # PKG_PATH=ftp://ftp.xxxxx.com/OpenBSD/snapshots/packages/i386/ # pkg_add -v -i -n abcde No packages available in the PKG_PATH Can't resolve abcde # It only works if you specify the full file name to instal: # pkg_add -v -i abcde-2.3.0.tgz parsing abcde-2.3.0.tgz Dependencies for abcde-2.3.0 resolve to: vorbis-tools-1.2.0p0, cdparanoia-3.a9.8p0 found libspec c.48.0 in /usr/lib Error from ftp://ftp.xxxxx.com//OpenBSD/snapshots/packages/i386/abcde-2.3.0.tgz:***********************************| 100% --2008-08-13 02:41:17-- ftp://ftp.xxxxx.com//OpenBSD/snapshots/packages/i386/abcde-2.3.0.tgz => `-' Resolving ftp.xxxxx.com... xxx.xxx.xxx.xxx Connecting to ftp.xxxxx.com|xxx.xxx.xxx.xxx|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /OpenBSD/snapshots/packages/i386 ... done. ==> SIZE abcde-2.3.0.tgz ... 43660 ==> PASV ... done. ==> RETR abcde-2.3.0.tgz ... done. Length: 43660 (43K) 0K .......... .......... .......... .......... .. 100% 4.10K=10s 2008-08-13 xx:xx:xx (4.10 KB/s) - `-' saved [43660] abcde-2.3.0: complete # Note: Please let me explain you that I am building an OpenBSD that goes to Internet exclusively via its own tor anonymizer socks4a proxy server, (including updates and contacts to the OpenBSD mirrors, and that's why I am looking for alternates to ftp as ftp as is can't be socksified (why?) to pass through tor, even using dsocks. (I am anyway looking at the new TransPort tor feature that maybe yes it can do the job, and will try later also some other ideas, next week). Mac Frank Bax wrote: > I did not say PKG_PATH must be set. It does not. > > pkg_add DOES work when PKG_PATH is not set; it will look in the current > directory for packages. When installing packages from the cdrom you > purchased, there is no need to set PKG_PATH if you "cd" into the > appropriate directory first. > > PKG_PATH does NOT need to be a remote site. If you manually download > packages with wget or lynx; then you can point PKG_PATH to this > directory and install packages from there. > > pkg_add DOES understand stems. If you download several packages > manually; then set PKG_PATH to the directory you used; "pkg_add *" will > install all packages in that directory. > > > > > macintoshzoom wrote: >> Hi Frank, Marc, all, >> >> SOLVED!: >> The problem was: >> >> 1-You say that a PKG_PATH must be set, as there is no default one. OK >> Anyway, I tested with and without PKG_PATH. >> >> 2-I am testing a FETCH_CMD using wget, which it seems it don't >> understand "stems" as yes ftp does (the default OpenBSD fetcher). >> So for pkg_add via wget I have to specify the package name including >> extension (must test more about this): >> >> # pkg_add -v -i bmp-0.9.7p13.tgz >> blahblah >> bmp-0.9.7p13: complete >> # >> >> Thanks for your help. >> >> May be I got confused by pbrowser which yes, if you don't start it with >> the command -p "PKG_PATH" (or setup the path from its Edit>Package Path >> menu) it fetch everything from OpenBSD.org by default, a clever option >> for newbies. >> >> So, if I don't specify somewhere the PKG_PATH, pkg_add and probably also >> make will not work! >> >> This is why pkg_add didn't understand stems. >> >> BUT this way a newly installed OpenBSD would not be able to install >> anything till the new user finds how to and set-up a PKG_PATH. >> An added pain for new users. >> Why not a preset OpenBSD.org PKG_PATH? >> To minimize and distribute traffic so individual servers are under less >> strain fetching could be done via an automated mirror's load balancer >> system, a metalink system http://www.metalinker.org/ or similar else. >> >> Mac >> >> >> Frank Bax wrote: >>> macintoshzoom wrote: >>>> After updating to OpenBSD 4.4-current (GENERIC.MP), rebuilt userland, >>>> I am preparing my attack to the updating of my installed packages and >>>> ports. >>>> >>>> I got an issue probably related to syntax or eventually to my >>>> sophisticated experimental proxy environment (everything via tor). >>>> >>>> I tested also doing # export PKG_PATH= , just to let the >>>> system to check for the OpenBSD.org proper site if in need to verify >>>> or fetch something. >>>> >>>> # pkg_add kdelibs >>>> Can't resolve kdelibs >>>> # >>>> >>>> What could be wrong? >>> >>> >>> Where did you get the idea that PKG_PATH= will search >>> openbsd.org? It does not. >>> _______________________________________________ >>> Openbsd-newbies mailing list >>> Openbsd-newbies at sfobug.org >>> http://mailman.theapt.org/listinfo/openbsd-newbies >>> >> > > _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies > From badut at mail.dk Thu Aug 14 02:57:51 2008 From: badut at mail.dk (badut at mail.dk) Date: Thu, 14 Aug 2008 11:57:51 +0200 Subject: sending dmesg to dmesg@openbsd.org Message-ID: <20080814095750.PDIN6405.fep50.mail.dk@post.tele.dk> When sending my dmesg's to dmesg at openbsd.org, I don't get any "mail received" confirmation. Does this mean the mails i some way have been rejected ? Thanks in advance Badut From DStaal at usa.net Thu Aug 14 05:07:54 2008 From: DStaal at usa.net (Daniel Staal) Date: Thu, 14 Aug 2008 08:07:54 -0400 Subject: sending dmesg to dmesg@openbsd.org In-Reply-To: <20080814095750.PDIN6405.fep50.mail.dk@post.tele.dk> References: <20080814095750.PDIN6405.fep50.mail.dk@post.tele.dk> Message-ID: --As of August 14, 2008 11:57:51 AM +0200, badut at mail.dk is alleged to have said: > When sending my dmesg's to dmesg at openbsd.org, I don't get any "mail > received" confirmation. Does this mean the mails i some way have been > rejected ? Thanks in advance > > Badut --As for the rest, it is mine. I'd figure they follow the standard email rules: you might get a 'mail undeliverable' if there was an error, but nothing specific is required on success. If you are using the automatic reporter tool, I believe it does say thank you when it has sent it. (But that's entirely local.) Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --------------------------------------------------------------- From tonino-pablo at lycos.com Sun Aug 17 05:22:44 2008 From: tonino-pablo at lycos.com (x x) Date: Sat, 16 Aug 2008 23:22:44 -0400 (EDT) Subject: No subject Message-ID: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> An HTML attachment was scrubbed... URL: http://mailman.theapt.org/pipermail/openbsd-newbies/attachments/20080816/cf0e93db/attachment.html From ml-openbsd at etherpunk.com Sun Aug 17 23:25:00 2008 From: ml-openbsd at etherpunk.com (Kennith Mann III) Date: Sun, 17 Aug 2008 16:25:00 -0500 Subject: In-Reply-To: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> References: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> Message-ID: <473db6c20808171425y4c98923ftc17e39aab4b61a2b@mail.gmail.com> ~/ is your home directory for the user. So it would be /home/bob You will need to move the file to /home/bob. As a good habit, for things like that you shouldn't need to be root and as such it won't let you make these kinds of mistakes. It can also help for when you typo on a path -- which, as humans, we've all done from time to time. http://www.fvwm.org/documentation/faq/ <-- that may help you with other fvwm related questions. More specifically, this link (which was found with a search of 'background'): http://www.fvwm.org/documentation/faq/#6.6 This was acquired from this google search (to help you on your path to teaching yourself): http://www.google.com/search?q=fvwm+change+background For your other questions, I would suggestion trying a Google search with "fvwm X" and replace X with the application in mind or whatever context. Another important thing to know when doing Googling is as you find other questions already asked -- look for the date. If it's from 5 years ago, it's likely things may be different now so you will need to keep searching. Hope this helps. --Kenny On Sat, Aug 16, 2008 at 10:22 PM, x x wrote: > what is ~/, like ~/.mg? Is that /home/.mg or /home/bob/.mg? > > I copied /etc/X11/xinit/xinitrc to /home/.xinitrc is it ok to edit that for > how I want fvwm to load with startx command? I can use fvwm for Firefox and > Pidgin can't I? > > How do I change how it looks, like colours and add some sort of background > wallpaper? "Do or not not. There is no try." -- Yoda From the.phule at gmail.com Sun Aug 17 23:35:15 2008 From: the.phule at gmail.com (h) Date: Sun, 17 Aug 2008 22:35:15 +0100 Subject: In-Reply-To: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> References: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> Message-ID: <48A89993.4090003@gmail.com> x x wrote: > what is ~/, like ~/.mg? Is that /home/.mg or /home/bob/.mg? ~/ is defined as that users home folder ie on my system, when I'm login in as kim ~/ is the same as /home/kim/ I'm not sure what happens to su, as i think it still goes to the original user not root. > > I copied /etc/X11/xinit/xinitrc to /home/.xinitrc is it ok to edit > that for how I want fvwm to load with startx command? I can use fvwm > for Firefox and Pidgin can't I? I'm pretty sure, and I'm sure someone will correct me if I'm wrong, but it think you want .xinitrc to be in your home _not_ the /home directory. And yes you can run firefox and pidgin from fvwm > > How do I change how it looks, like colours and add some sort of > background wallpaper? > have a look at xsetroot it gives you options for setting all sorts of wondrous things my favorite one is xsetroot -solid black it's the first thing i type on most boxes. have fun kim From the.phule at gmail.com Sun Aug 17 23:44:15 2008 From: the.phule at gmail.com (h) Date: Sun, 17 Aug 2008 22:44:15 +0100 Subject: In-Reply-To: <48A89993.4090003@gmail.com> References: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> <48A89993.4090003@gmail.com> Message-ID: <48A89BAF.3000708@gmail.com> h wrote: > x x wrote: >> what is ~/, like ~/.mg? Is that /home/.mg or /home/bob/.mg? > > ~/ is defined as that users home folder > > ie on my system, when I'm login in as kim > > ~/ > > is the same as > > /home/kim/ > > I'm not sure what happens to su, as i think it still goes to the > original user not root. Actually no im being misleading there... if you su, then cd ~/ you'll end up in /root/ sorry about that kim From the.phule at gmail.com Sun Aug 17 23:55:57 2008 From: the.phule at gmail.com (h) Date: Sun, 17 Aug 2008 22:55:57 +0100 Subject: symbolic links and apache Message-ID: <48A89E6D.3060900@gmail.com> Hi I'm trying to follow the install instructions for tikiwiki in 4.3/packages/i386 it's telling me create a symbolic link with # ln -s /var/www/tikiwiki /var/www/htdocs/tikiwiki this then appears to work as i can cd /var/www/htdocs/tikiwiki and everthing appears normal, but when i point a web browser at /tikiwiki/tiki-admin.php i get a 404 Not Found, same with everything else that should be in the folder. Can someone point me in the right direction? kim From adam at akarsoft.com Sun Aug 17 21:56:27 2008 From: adam at akarsoft.com (D. Adam Karim) Date: Sun, 17 Aug 2008 12:56:27 -0700 Subject: In-Reply-To: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> References: <20080816232244.HM.0000000000003eI@tonino-pablo.bos-mail-wwl12.lycos.com> Message-ID: <16A6F224-3502-4E39-9CC6-28F41E3854B1@akarsoft.com> ~/ is short for /home/username. So, in your case, it would be /home/ bob. If you are modifying a xinitrc, you should copy it to /home/ bob/.xinitrc D. Adam Karim On Aug 16, 2008, at 8:22 PM, x x wrote: > what is ~/, like ~/.mg? Is that /home/.mg or /home/bob/.mg? > > I copied /etc/X11/xinit/xinitrc to /home/.xinitrc is it ok to edit > that for how I want fvwm to load with startx command? I can use fvwm > for Firefox and Pidgin can't I? > > How do I change how it looks, like colours and add some sort of > background wallpaper? _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies From mike at erdelynet.com Mon Aug 18 03:30:38 2008 From: mike at erdelynet.com (Mike Erdely) Date: Sun, 17 Aug 2008 21:30:38 -0400 Subject: symbolic links and apache In-Reply-To: <48A89E6D.3060900@gmail.com> References: <48A89E6D.3060900@gmail.com> Message-ID: <20080818013037.GC5120@erdelynet.com> Sun, Aug 17, 2008 at 10:55:57PM +0100, h wrote: > Hi > > I'm trying to follow the install instructions for tikiwiki in > 4.3/packages/i386 > > it's telling me create a symbolic link with > > # ln -s /var/www/tikiwiki /var/www/htdocs/tikiwiki Read the FAQ about the Apache Chroot. Try this: # cd /var/www/htdocs && ln -s ../tikiwiki -ME > this then appears to work as i can > > cd /var/www/htdocs/tikiwiki > > and everthing appears normal, but when i point a web browser at > /tikiwiki/tiki-admin.php > > i get a 404 Not Found, same with everything else that should be in the > folder. Can someone point me in the right direction? > > kim > > _______________________________________________ > Openbsd-newbies mailing list > Openbsd-newbies at sfobug.org > http://mailman.theapt.org/listinfo/openbsd-newbies From the.phule at gmail.com Mon Aug 18 12:08:43 2008 From: the.phule at gmail.com (h) Date: Mon, 18 Aug 2008 11:08:43 +0100 Subject: symbolic links and apache In-Reply-To: <20080818013037.GC5120@erdelynet.com> References: <48A89E6D.3060900@gmail.com> <20080818013037.GC5120@erdelynet.com> Message-ID: <48A94A2B.10209@gmail.com> Mike Erdely wrote: > Sun, Aug 17, 2008 at 10:55:57PM +0100, h wrote: >> Hi >> >> I'm trying to follow the install instructions for tikiwiki in >> 4.3/packages/i386 >> >> it's telling me create a symbolic link with >> >> # ln -s /var/www/tikiwiki /var/www/htdocs/tikiwiki > > Read the FAQ about the Apache Chroot. Try this: Ok, as per FAQ, i tested apache with # apachectl stop # httpd -u which then allowed me access to the pages, so following the FAQ i certainly appears to be the chroot doing it's thing. > # cd /var/www/htdocs && ln -s ../tikiwiki That didn't change anything, and i can still only access tiki unchrooted, the FAQ mentions cgi but tiki doesn't appear to have any, so what am i suppose to point ldd at? cheers for the help kim From mike at erdelynet.com Tue Aug 19 23:34:17 2008 From: mike at erdelynet.com (Mike Erdely) Date: Tue, 19 Aug 2008 17:34:17 -0400 Subject: symbolic links and apache In-Reply-To: <48A94A2B.10209@gmail.com> References: <48A89E6D.3060900@gmail.com> <20080818013037.GC5120@erdelynet.com> <48A94A2B.10209@gmail.com> Message-ID: <20080819213417.GT5120@erdelynet.com> On Mon, Aug 18, 2008 at 11:08:43AM +0100, h wrote: > Mike Erdely wrote: >> # cd /var/www/htdocs && ln -s ../tikiwiki > > That didn't change anything, I probably should have either told you to run this: # cd /var/www/htdocs && ln -sf ../tikiwiki . or to rm /var/www/htdocs/tikiwiki first. You probably got an error message. > and i can still only access tiki > unchrooted, the FAQ mentions cgi but tiki doesn't appear to have any, so > what am i suppose to point ldd at? Not having ever run tikiwiki, I don't know. From spending 2 minutes looking at their documentation, tikiwiki connects to a database. How is it set up to connect to the database? Via /var/run/mysql/mysql.sock? That's not in the chroot... Did you look at /var/www/logs/error_log? Any clues? What does "not work" mean? Are you getting any error messages? > cheers for the help > > kim -ME From marmot at pennswoods.net Fri Aug 22 23:13:15 2008 From: marmot at pennswoods.net (Woodchuck) Date: Fri, 22 Aug 2008 17:13:15 -0400 (EDT) Subject: From address when using mail command (fwd) Message-ID: I found this excellent post on misc@, and recommend that those with the very common problems described in it note it well. Mr Hsu has done a very good job of answering. I forward it here with his permission. Dave ---------- Forwarded message ---------- Date: Thu, 21 Aug 2008 21:48:42 -0500 (CDT) From: Aaron W. Hsu To: misc at openbsd.org, webmaster at bennettconstruction.us Subject: Re: From address when using mail command Hello Chris, From webmaster at bennettconstruction.us Thu Aug 21 21:28:29 2008 From: Chris Bennett Subject: From address when using mail command Everything with my sendmail and dovecot works great. But when I occasionally want to send a message using mail command, The From: address ends up as: user at b03ls15le.corenetworks.net. This is not a good address that someone can reply to. Sendmail is doing what it is supposed to here. It is sending out mail from your machine (b03ls15le.corenetworks.net) which are from "user." Where does mail obtain the From address? Sendmail is attempting to send out mail from your machine, and it uses the information of your machine to identify itself. Moreover, since you are sending from account "user," sendmail is also identifying your username as the user of the machine sending this mail. Reading man pages about /etc/myname file doesn't really make it clear (to me) what other contents it can have. You should leave those contents the same. Can I change it to my main server's address and not have a problem? Would this fix the mail From problem? If you did a search on this, you probably would have found out a lot more about what sendmail does and how it works. You also would have discovered some common solutions to this common misunderstanding. The reason this problem does not manifest itself when you are using other clients is probably because they either use their own smtp client to send mail to a SMART HOST, or they are changing the From header of your messages to reflect the settings of that client. Mail does not do that, but rather feeds a more spartan message to sendmail, which then inserts the relevant headers that it can derive from its configuration. I believe what you are trying to do is send mail from your machine, where your machine is not the main mail machine. In other words, another machine is the hosting mail server (not the exactly correct term). Chances are you are on a network which is not configured with an IP address which is likely to avoid the large Dynamic blacklists that many ISPs place on senders, so you don't even want to use your machine as the primary mail server. What you do want to do is use sendmail as a client to relay its non-local messages to another server which is your main mail server. Usually this server is provided by your ISP (whether your network or mail provider). The steps for this are: 1) Configure a SMART_HOST 2) [Possibly] configure authentication 3) [Possibly] configure username rewriting (2) is necessary if your SMTP server which you use to relay your mail from your machine to the rest of the world requires some kind of authentication. This is usually the case if you are using a mail provider that is different than your network provider, or if you have a separate SMART HOST outside of your network provider's mail server. (3) is required if you are going to be using a different username than the one that you are currently using. The method you choose to do this may depend on whether you need to rewrite just the username, the domain only, or both the username and the domain of the sender address. If you just need to change the domain, then usinge MASQUERADING will get the job done. If you are just doing username rewriting (you are not just doing this) you can get by with some other things. If you are doing both, then you will probably want either a combination of both MASQUERADING and GENERICS TABLES. GENERICS TABLES will allow you to map your local username to an external address. MASQUERADING will just change the domain name sendmail uses when sending out mail. There are many other options you will want to investigate. All of this must be done by choosing the right sendmail ".mc" configuration file, editing it appropriately, compiling it through m4 and placing it as directed into the correct location, restarting sendmail, and some possible (likely) other work. The instructions for conducting such interesting surgery on your system (it's more like putting on a little make-up than anything really serious) can be found in rather good detail in the op.txt manual for sendmail, and the configuration README in /usr/share/sendmail. In addition to this, you may be interested in a tutorial I wrote some time ago on this topic, which can be found at I hope this helps a little! As I mentioned, the rest is online. Aaron