Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 7 Jun 2011 at 21:03, Jack Raats wrote: - Original Message - Hi All. Total frustration here. Before I incinerate the luckless box and get my coat. For whatever reason, I can't get my head round how Exactly to create and use a jail, for a small webserver (Hiawatha) on FreeBSD V8.x First compile the complete system. (kernel and world) Then install ezjail form the ports Then edit ezjail.conf in /usr/local/etc enable ezjail in /etc/rc.conf Then creating the base system: ezjail-admin update -i ezjail-admin update -P after this you can create a jail using: ezjail-admin create hostname.domain.net ip_address_of_jail you can logon to your jail using: ezjail-admin console hostname.domain.net It's quite easy Grtz Jack The problem is Jack, that build / make etc don't run. Just saying compile the complete system is not much help, when as others have pointed out, part of the needed source collection is (was) missing. Re: It's quite easy. Only when you know how! Dave B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 7 Jun 2011 at 12:10, Chuck Swiger wrote: On Jun 7, 2011, at 11:53 AM, Dave wrote: For whatever reason, I can't get my head round how Exactly to create and use a jail, for a small webserver (Hiawatha) on FreeBSD V8.x Did you start with the Handbook? http://www.freebsd.org/doc/handbook/jails.html http://www.freebsd.org/doc/handbook/jails-build.html Yes, I have been there many times. It must be me, because I do not find it much if any help. Cant see the wood for all the trees or something. Like I said, the handbook is a good Reference, but not a How To. Plus, once I've gone and clicked on a few of the refereal links, it's way too easy to loose the plot, or ones place in the overall scheme of things.. You might also consider sysutils/ezjail; see: http://erdgeist.org/arts/software/ezjail [ ... ] I have (aledgedly) downloaded the Sys sources, and Ports. At least it sat there for ages after fumbling arround the sysinstall menu system (whoever designed that should be forced to use it! It's behaviour is apalling, flitting from one context to another with no warning, in a way such that you can't see what you've selected, without affecting the selection, or something else..) Anyway, trying to follow various instructions I found, and those pointed out to me by other helpful souls here (thanks Kaya and Peter.) But Whatever I do, I get a Don't know how to build world. Stop error. I am logged in as root, and AFIK have downloaded all the sys and ports sources.. How do I confirm that, are there trace logs kept somewhere? http://www.freebsd.org/doc/handbook/updating-upgrading.html http://www.freebsd.org/doc/handbook/ports-using.html As Andy and Kaya pointed out, I was missing the Base sources. As at some point, while fighting with the sysinstall menu system, the Base selection got un-selected. I think I have them now, but have not yet re-tried a build or make. Regards, -- -Chuck Thanks. Dave B. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 7 Jun 2011 at 15:23, Jerry wrote: On Tue, 07 Jun 2011 19:53:13 +0100 Dave d...@g8kbv.demon.co.uk articulated: There is at the same time, not enough detailed info as to how to, and way too much detail of what there is. The Man pages are good references, but lousy how to's... (Sorry.) Many knowledgeable people consider man to simple be an acronym for, Much About Nothing. In any case, I assume you have read the documentation @: http://www.freebsd.org/doc/handbook/jails.html Perhaps you could list a few of the steps you have taken to a achieve your goal. -- Jerry jerry+f...@seibercom.net Hi. I was, as I found later, following this... http://www.freebsd.org/doc/handbook/jails-build.html But it failed at step 2, with dont know how to make ... Stop etc... Dave B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 8 Jun 2011 at 0:53, Julian H. Stacey wrote: and AFIK have downloaded all the sys and ports sources.. How do I confirm that, cd /usr/src make clean ; make cleandir ; make clean # gets rid of obj du -s -k 547684 . cant cd to /usr/src/share/info *** Error code 2 Stop in /usr/src. *** Error code 1 Stop in /urs/src. You have new mail. (Contents of the mail is the usual sustem/security stuff) I figure something else is missing, so didn't bother with anything else. Dave B find . -type d -print | wc 47344734 119623 cd /usr/ports du -s -k 477244 . find . -type d -print | wc 31883 31883 704477 are there trace logs kept somewhere? Not that I'm aware of, but I dont use sysinstall beyond minimum installs, (I get my src/ ports/ from my cvs tree which is delivered by ctm from mail) cvs -Q -R export -r RELENG_8_2_0_RELEASE src # du=548 M tgz=115 M cvs -Q -R export -r RELEASE_8_2_0 ports # du=475 M tgz= 49 M cvs -Q -R export -r RELEASE_8_2_0 doc # du=100 M tgz= 27 M Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below, not above; indent with ; Cumulative like a play script. Send plain text format; Not quoted-printable, Not HTML, Not base 64. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 08/06/2011 13:53, Dave wrote: As Andy and Kaya pointed out, I was missing the Base sources. As at some point, while fighting with the sysinstall menu system, the Base selection got un-selected. The best way to get along with sysinstall is not to use it. Or use it as little as possible. Install a really minimal system, then reboot and log into FreeBSD and do everything else from the system command line. sysinstall is not a system administration tool, and attempting to use it as such will lead to much needless suffering. Now, you may be wondering exactly /how/ to do the stuff you want from the command line. The Handbook is a really very good reference for that, or you can search the web or ask here. Getting hold of the latest system sources and compiling and installing FreeBSD from them is very well covered, as are alternative binary-only methods for those who do not want to spend time compiling. (Mind you, if you hate running a compiler, then FreeBSD is probably not for you: compile from source is the 'succeed where all else fails' typical last resort solution to many problems) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On Jun 7, 2011, at 11:53 AM, Dave wrote: For whatever reason, I can't get my head round how Exactly to create and use a jail, for a small webserver (Hiawatha) on FreeBSD V8.x Did you start with the Handbook? http://www.freebsd.org/doc/handbook/jails.html http://www.freebsd.org/doc/handbook/jails-build.html You might also consider sysutils/ezjail; see: http://erdgeist.org/arts/software/ezjail [ ... ] I have (aledgedly) downloaded the Sys sources, and Ports. At least it sat there for ages after fumbling arround the sysinstall menu system (whoever designed that should be forced to use it! It's behaviour is apalling, flitting from one context to another with no warning, in a way such that you can't see what you've selected, without affecting the selection, or something else..) Anyway, trying to follow various instructions I found, and those pointed out to me by other helpful souls here (thanks Kaya and Peter.) But Whatever I do, I get a Don't know how to build world. Stop error. I am logged in as root, and AFIK have downloaded all the sys and ports sources.. How do I confirm that, are there trace logs kept somewhere? http://www.freebsd.org/doc/handbook/updating-upgrading.html http://www.freebsd.org/doc/handbook/ports-using.html Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On Tue, 07 Jun 2011 19:53:13 +0100 Dave d...@g8kbv.demon.co.uk articulated: There is at the same time, not enough detailed info as to how to, and way too much detail of what there is. The Man pages are good references, but lousy how to's... (Sorry.) Many knowledgeable people consider man to simple be an acronym for, Much About Nothing. In any case, I assume you have read the documentation @: http://www.freebsd.org/doc/handbook/jails.html Perhaps you could list a few of the steps you have taken to a achieve your goal. -- Jerry ✌ jerry+f...@seibercom.net Disclaimer: off-list followups get on-list replies or ignored. Do not CC this poster. Please do not ignore the Reply-To header. http://www.catb.org/~esr/faqs/smart-questions.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
- Original Message - From: Dave d...@g8kbv.demon.co.uk To: freebsd-questions@freebsd.org Sent: Tuesday, June 07, 2011 8:53 PM Subject: Sorry. Numpty alert! FreeBSD Jails... Help? Hi All. Total frustration here. Before I incinerate the luckless box and get my coat. For whatever reason, I can't get my head round how Exactly to create and use a jail, for a small webserver (Hiawatha) on FreeBSD V8.x First compile the complete system. (kernel and world) Then install ezjail form the ports Then edit ezjail.conf in /usr/local/etc enable ezjail in /etc/rc.conf Then creating the base system: ezjail-admin update -i ezjail-admin update -P after this you can create a jail using: ezjail-admin create hostname.domain.net ip_address_of_jail you can logon to your jail using: ezjail-admin console hostname.domain.net It's quite easy Grtz Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Sorry. Numpty alert! FreeBSD Jails... Help?
Hi Dave, I didn't find it total plain sailing myself when I did this for the first time a few months back. Ok, so I think you are sitting in /usr/src trying to run the make buildworld right? If you are getting the error you mentioned then I think it means you are missing the Makefile? Ie if you do an ls there is no file called Makefile. In that case you need to install it, which if via sysinstall you need to go: Configure Distributions src base (this has the Makefile) then select ok, and choose FTP etc etc, If you have the other sources already then you should be good to go, cheers Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Sorry. Numpty alert! FreeBSD Jails... Help?
Bingo! Andy said all!! Dave, is missing the base source in your box. Consider use the handbook. I tried all how-to's that I've searched in Google, but only Handbook make my way to heaven. EzJail is a tool that make vry easy manage the jails. Regards / Atenciosamente, --- Thiago Vitorino IT Infrastructure Supervisor Brasmar - An APM Terminals Company Itajaí, Brazil Office +55-47 2103 5602 thiago.vitor...@brasmarcis.com Lifting Global Trade www.brasmar.com.br www.apmterminals.com -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of a.sm...@ukgrid.net Sent: terça-feira, 7 de junho de 2011 18:05 To: d...@g8kbv.demon.co.uk Cc: freebsd-questions@freebsd.org Subject: RE: Sorry. Numpty alert! FreeBSD Jails... Help? Hi Dave, I didn't find it total plain sailing myself when I did this for the first time a few months back. Ok, so I think you are sitting in /usr/src trying to run the make buildworld right? If you are getting the error you mentioned then I think it means you are missing the Makefile? Ie if you do an ls there is no file called Makefile. In that case you need to install it, which if via sysinstall you need to go: Configure Distributions src base (this has the Makefile) then select ok, and choose FTP etc etc, If you have the other sources already then you should be good to go, cheers Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org The information contained in this message is privileged and intended only for the recipients named. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or the information it contains is prohibited. If you have received this message in error, please immediately notify the sender, and delete the original message and attachments. Please consider the environment before printing this email. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
Hi guys, just as I've been helping out already I did actually have this lot in my Wiki: http://wiki.optiplex-networks.com/xwiki/bin/view/FreeBSD/Installing_FreeBSD [quote] Please take note however that the *Buildworld* environment needs to have *all sources* installed into the system in order to compile and build. This however should really only affect people who wish to use *FreeBSD Jails* as standard non-Jail configured systems will run fine with the default selection above. [/quote Which is exactly the same as Andy has just mentioned below. The rest of the procedure then is pretty trivial I think Dave is getting confused about how to use the sysintall software which I did at first too a few years back when I started with FreeBSD but now that I am used to it, I don't suffer any more. The next release of FreeBSD won't have that any more from what I recall reading and will change to something else? - Correct me if wrong... Regards, --K On 06/08/2011 12:05 AM, a.sm...@ukgrid.net wrote: Hi Dave, I didn't find it total plain sailing myself when I did this for the first time a few months back. Ok, so I think you are sitting in /usr/src trying to run the make buildworld right? If you are getting the error you mentioned then I think it means you are missing the Makefile? Ie if you do an ls there is no file called Makefile. In that case you need to install it, which if via sysinstall you need to go: Configure Distributions src base (this has the Makefile) then select ok, and choose FTP etc etc, If you have the other sources already then you should be good to go, cheers Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
and AFIK have downloaded all the sys and ports sources.. How do I confirm that, cd /usr/src make clean ; make cleandir ; make clean # gets rid of obj du -s -k 547684 . find . -type d -print | wc 47344734 119623 cd /usr/ports du -s -k 477244 . find . -type d -print | wc 31883 31883 704477 are there trace logs kept somewhere? Not that I'm aware of, but I dont use sysinstall beyond minimum installs, (I get my src/ ports/ from my cvs tree which is delivered by ctm from mail) cvs -Q -R export -r RELENG_8_2_0_RELEASE src # du=548 M tgz=115 M cvs -Q -R export -r RELEASE_8_2_0 ports # du=475 M tgz= 49 M cvs -Q -R export -r RELEASE_8_2_0 doc # du=100 M tgz= 27 M Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below, not above; indent with ; Cumulative like a play script. Send plain text format; Not quoted-printable, Not HTML, Not base 64. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorry. Numpty alert! FreeBSD Jails... Help?
On 6/8/11 2:53 AM, Dave wrote: Hi All. [snip] What I have learnt so far, is that (for the most part) all the BSD's behave and work much the same. Unlike the hoards of different Linux's, all with their different ways of doing things. Spleen vented, anyone want a challenge? I promise not to shout at you... Dave, in my experience, I've always refer to the Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html) for setup of BSD applications. Only if there's non, then proceed to seek advice from Larry Sergey. You can find the following post to be helpful : - FreeBSD OS setup : http://scratching.psybermonkey.net/2009/08/freebsd-quick-install-guide-aka-how-to.html - Jail setup : http://scratching.psybermonkey.net/2010/06/freebsd-how-to-setup-configure-jail.html Disclosure : the links posted up there are from my blog, except the always trusted source, Handbook from FreeBSD.org. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org