* Re: chroot error: /bin/csh: No such file or directory; trying to create customized livecd/dvd

2011-12-26 Thread Devin Teske


Sent from my iPhone

On Dec 23, 2011, at 8:28 PM, Antonio Olivares olivares14...@gmail.com wrote:

 Dear folks,
 
 I am trying to build a simple livecd to learn more.  I have
 successfully run some commands found here:
 
 http://www.secure-computing.net/wiki/index.php/FreeBSD/LiveCD
 
 # cd /usr/src
 # make buildworld DESTDIR=/usr/home/olivares/tmp/tmp/R/
 # make installworld DESTDIR=/usr/home/olivares/tmp/tmp/R/
 # make buildkernel DESTDIR=/usr/home/olivares/tmp/tmp/R/
 # make installkernel DESTDIR=/usr/home/olivares/tmp/tmp/R/
 # make distribution DESTDIR=/usr/home/olivares/tmp/tmp/R/
 
 all these commands are successful
 
 I mount devfs as instructed in command
 
 # mount -t devfs devfs /path/to/livecd/dev
 # chroot /path/to/livecd
 
 ===
 
 tricorehome# mount -t devfs devfs /usr/home/olivares/tmp/tmp/R/
 tricorehome# chroot /usr/home/olivares/tmp/tmp/R/
 chroot: /bin/csh: No such file or directory
 
 ===
 
 I have tried to use freesbie script(s) by installing freesbie port,
 but it failed and I asked questions but got few to no responses.
 I have tried to look for some scripts/SDK but not have been successful
 like frenzy's to create frenzy livecd.  There are few to no FreeBSD
 LiveCDs, only one that has been working and updated is the GhostBSD
 one by Eric Turgeon.   I see OpenBSD has several livecds/livedvds like
 jggimi, FuguITA, etc to showcase it.  NetBSD has one as well called
 Jibbed.  FreeBSD has specialized ones like PfSense, Monowall, FreeNAS,
 Mahesha, and GhostBSD.  Frenzy was apparently going to be maintained
 but no newer releases.  I have gotten feedback as to there exist
 mfsBSD by Martin Matruska, http://mfsbsd.vx.sk/, and druidbsd,
 http://sourceforge.net/projects/druidbsd/, but cannot do much with
 them :(
 
 I try to get my feet wet, but I get error and can't seem to get around it :(
 
 Any thoughts, ideas, comments, observations?
 I just want to create a livecd/livedvd with customized packages to
 take my desktop everywhere,

That should be pretty easy with druidbsd as it gives you a convenient 
dumping-ground to throw extras.

Note, however, that there is a very large code-drop around the corner that will 
bring about 1.5 years of enhancements in soon. So if it doesn't do quite what 
you want now, it may soon.

That being said, one of the things I feel makes DruidBSD unique is an 
insanely-customized mfsroot designed to break you out into the larger (and more 
expansive) ISO-9660 structure so that you -- as a developer of your own custom 
LiveCD -- CAN expand the functionality simply by dumping binaries and libs into 
the ISO-9660 structure while the mfsroot stays nice and compact.

If you wanted to, you could add X windows even.
-- 
Devin

 I have tried several *BSD livecds out
 there, they are good, but I want to have the packages that I use and
 more newer than FreeSBIE 2.0, and roFreeSBIE 1.3.
 
 I have seen linux-live scripts [http://www.linux-live.org/] by Tomas
 M, and wonder if there exist such a utility in the *BSDs, a universal
 script to create a livecd/livedvd of a running BSD ? if there is not
 any utility, how can I get around the error about /bin/csh, if it is
 apparently there:
 
 tricorehome# which csh
 /bin/csh
 
 so I can chroot to it and add packages/ports to customize the
 livecd/dvd I want to create?
 
 Regards,
 
 
 Antonio
 ___
 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 proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: chroot error: /bin/csh: No such file or directory; trying to create customized livecd/dvd

2011-12-24 Thread Da Rock

On 12/24/11 22:57, Antonio Olivares wrote:

I'll ask a stupid question, and you're more than welcome to give a stupid
answer: Is /bin/csh actually _in_ your chroot?

So csh should be this path: /usr/home/olivares/tmp/tmp/R/bin/csh

HTH
___
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

tricorehome# pwd
/usr/home/olivares/tmp/tmp/R
tricorehome# ls -l /bin/csh
-r-xr-xr-x  2 root  wheel  369288 Apr  2  2011 /bin/csh

I am not sure if it is there now :(
I think you may have missed something there- you do realise that even 
though you've changed directory, you haven't chrooted. So when you run 
ls -l /bin/csh it is still checking your system root- not the chroot. 
Sometimes a single typo can cause huge hassles, eh? :)


Try:

cd /usr/home/olivares/tmp/tmp/R  ls -l bin/csh

Watch the bin/csh- don't make it an absolute path by adding the root 
(/) at the beginning.

___
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: chroot error: /bin/csh: No such file or directory; trying to create customized livecd/dvd

2011-12-24 Thread Antonio Olivares
 I'll ask a stupid question, and you're more than welcome to give a stupid
 answer: Is /bin/csh actually _in_ your chroot?

 So csh should be this path: /usr/home/olivares/tmp/tmp/R/bin/csh

 HTH
 ___
 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

tricorehome# pwd
/usr/home/olivares/tmp/tmp/R
tricorehome# ls -l /bin/csh
-r-xr-xr-x  2 root  wheel  369288 Apr  2  2011 /bin/csh

I am not sure if it is there now :(

Thanks,

Antonio
___
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: chroot error: /bin/csh: No such file or directory; trying to create customized livecd/dvd

2011-12-24 Thread Antonio Olivares
On Sat, Dec 24, 2011 at 7:03 AM, Da Rock
freebsd-questi...@herveybayaustralia.com.au wrote:
 On 12/24/11 22:57, Antonio Olivares wrote:

 I'll ask a stupid question, and you're more than welcome to give a stupid
 answer: Is /bin/csh actually _in_ your chroot?

 So csh should be this path: /usr/home/olivares/tmp/tmp/R/bin/csh

 HTH
 ___
 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

 tricorehome# pwd
 /usr/home/olivares/tmp/tmp/R
 tricorehome# ls -l /bin/csh
 -r-xr-xr-x  2 root  wheel  369288 Apr  2  2011 /bin/csh

 I am not sure if it is there now :(

 I think you may have missed something there- you do realise that even though
 you've changed directory, you haven't chrooted. So when you run ls -l
 /bin/csh it is still checking your system root- not the chroot. Sometimes a
 single typo can cause huge hassles, eh? :)

 Try:

 cd /usr/home/olivares/tmp/tmp/R  ls -l bin/csh

 Watch the bin/csh- don't make it an absolute path by adding the root (/)
 at the beginning.

 ___
 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

I am trying to do what you have suggested, it appears that /bin/csh is
not present in the /usr/home/olivares/tmp/tmp/R directory :(

tricorehome# ls /usr/home/olivares/tmp/tmp/
R
tricorehome# ls -l /usr/home/olivares/tmp/tmp/
total 2
drwxr-xr-x  17 root  wheel  512 Dec 23 21:56 R
tricorehome# ls -l /usr/home/olivares/tmp/tmp/R/
total 46
-rw-r--r--   2 root  wheel   798 Dec 23 21:56 .cshrc
-rw-r--r--   2 root  wheel   265 Dec 23 21:56 .profile
-r--r--r--   1 root  wheel  6200 Dec 23 21:56 COPYRIGHT
drwxr-xr-x   2 root  wheel  1024 Dec 23 21:30 bin
drwxr-xr-x   7 root  wheel   512 Dec 23 21:56 boot
dr-xr-xr-x   2 root  wheel   512 Dec 23 21:30 dev
drwxr-xr-x  20 root  wheel  2048 Dec 23 21:56 etc
drwxr-xr-x   3 root  wheel  1536 Dec 23 21:30 lib
drwxr-xr-x   2 root  wheel   512 Dec 23 21:31 libexec
drwxr-xr-x   2 root  wheel   512 Dec 23 21:30 media
drwxr-xr-x   2 root  wheel   512 Dec 23 21:30 mnt
dr-xr-xr-x   2 root  wheel   512 Dec 23 21:30 proc
drwxr-xr-x   2 root  wheel  2560 Dec 23 21:30 rescue
drwxr-xr-x   2 root  wheel   512 Dec 23 21:56 root
drwxr-xr-x   2 root  wheel  2560 Dec 23 21:31 sbin
lrwxr-xr-x   1 root  wheel11 Dec 23 21:30 sys - usr/src/sys
drwxrwxrwt   2 root  wheel   512 Dec 23 21:30 tmp
drwxr-xr-x  14 root  wheel   512 Dec 23 21:31 usr
drwxr-xr-x  22 root  wheel   512 Dec 23 21:30 var
tricorehome# ls -l /usr/home/olivares/tmp/tmp/R/bin/
total 1692
-r-xr-xr-x  2 root  wheel   11472 Dec 23 21:30 [
-r-xr-xr-x  1 root  wheel   11448 Dec 23 21:30 cat
-r-xr-xr-x  1 root  wheel7912 Dec 23 21:30 chflags
-r-xr-xr-x  1 root  wheel   17576 Dec 23 21:30 chio
-r-xr-xr-x  1 root  wheel8392 Dec 23 21:30 chmod
-r-xr-xr-x  1 root  wheel   21304 Dec 23 21:30 cp
-r-xr-xr-x  2 root  wheel  369288 Dec 23 21:30 csh
-r-xr-xr-x  1 root  wheel   18440 Dec 23 21:30 date
-r-xr-xr-x  1 root  wheel   22104 Dec 23 21:30 dd
-r-xr-xr-x  1 root  wheel   13920 Dec 23 21:30 df
-r-xr-xr-x  1 root  wheel5704 Dec 23 21:30 domainname
-r-xr-xr-x  1 root  wheel5592 Dec 23 21:30 echo
-r-xr-xr-x  2 root  wheel   56880 Dec 23 21:30 ed
-r-xr-xr-x  1 root  wheel   16408 Dec 23 21:30 expr
-r-xr-xr-x  1 root  wheel   10336 Dec 23 21:30 getfacl
-r-xr-xr-x  1 root  wheel5840 Dec 23 21:30 hostname
-r-xr-xr-x  1 root  wheel7128 Dec 23 21:30 kenv
-r-xr-xr-x  1 root  wheel7640 Dec 23 21:30 kill
-r-xr-xr-x  2 root  wheel   11368 Dec 23 21:30 link
-r-xr-xr-x  2 root  wheel   11368 Dec 23 21:30 ln
-r-xr-xr-x  1 root  wheel   30496 Dec 23 21:30 ls
-r-xr-xr-x  1 root  wheel7152 Dec 23 21:30 mkdir
-r-xr-xr-x  1 root  wheel   13576 Dec 23 21:30 mv
-r-xr-xr-x  1 root  wheel   95448 Dec 23 21:30 pax
-r-xr-xr-x  2 root  wheel   16520 Dec 23 21:30 pgrep
-r-xr-xr-x  2 root  wheel   16520 Dec 23 21:30 pkill
-r-xr-xr-x  1 root  wheel   43312 Dec 23 21:30 ps
-r-xr-xr-x  1 root  wheel7128 Dec 23 21:30 pwait
-r-xr-xr-x  1 root  wheel5696 Dec 23 21:30 pwd
-r-sr-xr-x  1 root  wheel   20416 Dec 23 21:30 rcp
-r-xr-xr-x  1 root  wheel5456 Dec 23 21:30 realpath
-r-xr-xr-x  2 root  wheel   56880 Dec 23 21:30 red
-r-xr-xr-x  2 root  wheel   15880 Dec 23 21:30 rm
-r-xr-xr-x  1 root  wheel   72744 Dec 23 21:30 rmail
-r-xr-xr-x  1 root  wheel5784 Dec 23 21:30 rmdir
-r-xr-xr-x  1 root  wheel   18832 Dec 23 21:30 setfacl
-r-xr-xr-x  1 root  wheel  136696 Dec 23 21:30 sh
-r-xr-xr-x  1 root  wheel5448 Dec 23 21:30 sleep
-r-xr-xr-x  1 root  wheel   22608 Dec 23 21:30 stty
-r-xr-xr-x  1 root  wheel4456 Dec 23 21:30 sync
-r-xr-xr-x  2 root  wheel  369288 Dec 23 21:30 tcsh
-r-xr-xr-x  2 root  wheel   11472 Dec 23 21:30 test
-r-xr-xr-x  2 root  wheel   

Re: chroot error: /bin/csh: No such file or directory; trying to create customized livecd/dvd

2011-12-23 Thread Da Rock

On 12/24/11 14:28, Antonio Olivares wrote:

Dear folks,

I am trying to build a simple livecd to learn more.  I have
successfully run some commands found here:

http://www.secure-computing.net/wiki/index.php/FreeBSD/LiveCD

# cd /usr/src
# make buildworld DESTDIR=/usr/home/olivares/tmp/tmp/R/
# make installworld DESTDIR=/usr/home/olivares/tmp/tmp/R/
# make buildkernel DESTDIR=/usr/home/olivares/tmp/tmp/R/
# make installkernel DESTDIR=/usr/home/olivares/tmp/tmp/R/
# make distribution DESTDIR=/usr/home/olivares/tmp/tmp/R/

all these commands are successful

I mount devfs as instructed in command

# mount -t devfs devfs /path/to/livecd/dev
# chroot /path/to/livecd

===

tricorehome# mount -t devfs devfs /usr/home/olivares/tmp/tmp/R/
tricorehome# chroot /usr/home/olivares/tmp/tmp/R/
chroot: /bin/csh: No such file or directory

===

I have tried to use freesbie script(s) by installing freesbie port,
but it failed and I asked questions but got few to no responses.
I have tried to look for some scripts/SDK but not have been successful
like frenzy's to create frenzy livecd.  There are few to no FreeBSD
LiveCDs, only one that has been working and updated is the GhostBSD
one by Eric Turgeon.   I see OpenBSD has several livecds/livedvds like
jggimi, FuguITA, etc to showcase it.  NetBSD has one as well called
Jibbed.  FreeBSD has specialized ones like PfSense, Monowall, FreeNAS,
Mahesha, and GhostBSD.  Frenzy was apparently going to be maintained
but no newer releases.  I have gotten feedback as to there exist
mfsBSD by Martin Matruska, http://mfsbsd.vx.sk/, and druidbsd,
http://sourceforge.net/projects/druidbsd/, but cannot do much with
them :(

I try to get my feet wet, but I get error and can't seem to get around it :(

Any thoughts, ideas, comments, observations?
I just want to create a livecd/livedvd with customized packages to
take my desktop everywhere, I have tried several *BSD livecds out
there, they are good, but I want to have the packages that I use and
more newer than FreeSBIE 2.0, and roFreeSBIE 1.3.

I have seen linux-live scripts [http://www.linux-live.org/] by Tomas
M, and wonder if there exist such a utility in the *BSDs, a universal
script to create a livecd/livedvd of a running BSD ? if there is not
any utility, how can I get around the error about /bin/csh, if it is
apparently there:

tricorehome# which csh
/bin/csh

so I can chroot to it and add packages/ports to customize the
livecd/dvd I want to create?

I'll ask a stupid question, and you're more than welcome to give a 
stupid answer: Is /bin/csh actually _in_ your chroot?


So csh should be this path: /usr/home/olivares/tmp/tmp/R/bin/csh

HTH
___
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