LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-21-2015, 02:13 AM   #1
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Rep: Reputation: Disabled
LFS 7.7 : bash: mesg: command not found


Hi guys.

In 6.4, Entering the chroot environment, I try to be in chroot mode with the command
chroot "$LFS" /tools/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h

but it doesn't work. And the prompt says :

bash: mesg: command not found

I went back I tried to find where I did something wrong but I haven't had any luck with it... Do any of you guys have any ideas regarding my problem ?

Thanks.
 
Old 05-21-2015, 02:45 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

1, did you mount lfs partition?
2, was LFS set for root? echo $LFS
3, did you do Ch 6.2.2 and 6.2.3
 
Old 05-21-2015, 02:53 AM   #3
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.

Yes, I've mounted lfs partition and echo $LFS shows me /mnt/lfs so it's okay too.
And yes, I did Chap. 6.2.2 and 6.2.3 as well. Actually, I went back and did it a second time to be sure.
 
Old 05-21-2015, 02:55 AM   #4
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
The thing is, I don't know where the "mesg" plays a part in the command for the login in chroot environment.
 
Old 05-21-2015, 02:58 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Is it set for Root as that is the user you are using
 
Old 05-21-2015, 03:04 AM   #6
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yes I'm root, as you can see in this picture.
Attached Thumbnails
Click image for larger version

Name:	msef.png
Views:	75
Size:	20.6 KB
ID:	18526  
 
Old 05-21-2015, 04:57 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Do you have 'mesg' command in /tools/bin.
 
Old 05-21-2015, 05:20 AM   #8
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
Do you have 'mesg' command in /tools/bin.
Yes, I have it.
 
Old 05-21-2015, 05:26 AM   #9
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Check bash startup files for 'mesg' command. In /mnt/lfs/etc/profile, /mnt/lfs/root/.bash_profile and ...
 
Old 05-21-2015, 05:45 AM   #10
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
There isn't any 'mesg' in /mnt/lfs/etc/profile and I don't have the .bash_profile file. But I have a .bashrc file and after checking it, there isn't a 'mess'.
That's what you were asking, right ? Because I didn't really understand what you are telling me to do, sorry.
I left you some screenshots of the files.
Attached Thumbnails
Click image for larger version

Name:	bashrc.png
Views:	41
Size:	67.8 KB
ID:	18527   Click image for larger version

Name:	Profile_1.png
Views:	25
Size:	66.0 KB
ID:	18528   Click image for larger version

Name:	Profile_2.png
Views:	24
Size:	39.7 KB
ID:	18529  
 
Old 05-21-2015, 06:16 AM   #11
TIBO
LQ Newbie
 
Registered: May 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Actually, it's like I'm in chroot environment expect I don't have "I have no name!:/" at the start of the prompt but "root@debian:~" became "root@debian:/". So, does this mean everything is ok ?
Code:
root@debian:~ # echo $LFS
/mnt/lfs
root@debian:~ # chroot "$LFS" /tools/bin/env -i \
                    HOME=/root                  \
                    TERM="$TERM"                \
                    PS1='\u:\w\$ '              \
                    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
                    /tools/bin/bash --login +h
bash: mesg: command not found
root@debian:/ #
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
source ~/.bash_profile bash: -lfs-linux-gnu: command not found k3lt01 Linux From Scratch 15 09-16-2014 01:57 AM
[SOLVED] LFS 7.3--> tar xf lfs-bootscripts-20130123.tar.bz2 , bash : tar : command not found AkiraMizuki Linux From Scratch 3 06-01-2013 03:00 AM
[lfs 7.2] many command not found after chroot mercuyr Linux From Scratch 13 10-16-2012 06:08 AM
GCC command not found LFS book 6.3, section 6.7.1 cdc5205 Linux From Scratch 1 08-16-2008 01:56 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration