LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   changing ownership : operation not permitted (https://www.linuxquestions.org/questions/linux-from-scratch-13/changing-ownership-operation-not-permitted-873909/)

druuna 04-13-2011 04:42 AM

Quote:

Originally Posted by janakiramulu (Post 4323071)
see pageno-189

Which chapter, I use the on-line version of the book, which does not have page numbers.

You are probably talking about chapter 6.60 and this is what the book says:
Quote:

Documentation for other available options can be obtained by running the following command:
Code:

vim -c ':options'

What is not clear about this?

druuna 04-13-2011 05:01 AM

Quote:

Originally Posted by janakiramulu (Post 4323089)
root:/logout
output is
there are stopped jobs

The bold part could be a problem, but without knowing which job(s) I cannot help you on that (and I don't know how to find out which job(s) the message is talking about)

Quote:

next i re enter to chroot
.
.
output is
chroot:cannot change root directory t /tools/bin/env:not a directory(there is no directory with name)
Does /tools/bin/env exist? (ls -l /tools/bin/env). If it does not exist you probably removed something you should not have removed.

Is LFS set (echo $LFS), if not: it should be.

janakiramulu 04-13-2011 05:29 AM

hi druuna
1)
i redo chapter 6.60. Vim-7.3
while running
root:/sources# make test (6.60.1. Installation of Vim)
is giving error in red colour (highlighted bold letters) moving fast(scrolling)
but at the end of make test result no error messages are appearing
------------------------------------------------------------------------------------------------------------

2)post no 29
yes this -6.60.2. Configuring Vim(pageno-189) ,here i will give very clear
when i issue this----root:/sources/vim73#vim -c 'ptions'
result is in diff colors text and options as red colour like 1,2,3........25
option window [while bar on that black letters with this name )
-
-
-
-
[no name]
then i press from keyboard(cntl+c)
following message showing
type:i quit(<enter> for quit)
then i press from keyboard(cntl+z)
output mesage is [1]:stopped

here i have to do nothing right(do i simply quit from this)when i issue this command 'vim -c 'ptions'
is it k.
------------------------------------------------------------------------
3)post 32
i am talking about 6.62. Stripping Again

root:/sources/vim73#logout
output is
there are stopped jobs(not bold letter)
---------------------------------------------------------
4)here i checked LFS set with following
root:/sources/:echo $LFS
result nothing
i need to set $LFS with export right
--------------------------------------------
5) where i have to perform this 6.60.2. Configuring Vim(,in vim source directory)

janakiramulu 04-13-2011 05:36 AM

6)i check
ls -l /tools/bin/env
doent exist env dir in /tools/bin

druuna 04-13-2011 05:47 AM

Hi,

If you have been building (parts of) chapter 6 without LFS being set, you need to start again from the beginning of chapter 6. You've been told the importance of the LFS variable again and again in the book........

You still do not follow the book and still don't have a clue what it is you are doing. I don't think it is wise for you to continue until you have a better understanding of linux in general and know how to follow the instructions in the book.

This also means that I will not be answering your questions any more until I see a significant improvement.

janakiramulu 04-13-2011 05:51 AM

which i am asking above questions are conflict,i would have mention(above questions) as in the book
(but i followed the book as they mention)

janakiramulu 04-15-2011 12:51 AM

hi druuna
1)i have small doubt (echo $LFS)because of this i am not moving further
first i exit from lfs usr
then
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $ LFS
result is /mn/lfs (this result till chapter 6.23)

2)but
6.4. Entering the Chroot Environment (page no-79)
---------------------------------
see third paragaph
From this point on, there is no need to use the LFS variable anymore, because all work will be restricted to the LFS
file system. This is because the Bash shell is told that $LFS is now the root (/) directory.
------------------------------------------------------------------------------------------------
root[ ~ [#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
result is I have no name!:/# this is right according to book

I have no name!:/#echo $LFS
no (any) output
this is continuing till end of chapter 6,you are saying that it should set (echo $LFS))

how can i set the variable
this is the problem(exact) ,what to do i am going to be mad(with this)
plz help me

janakiramulu 04-15-2011 01:59 AM

5.33. Changing Ownership(page no-73)
Note
The commands in the remainder of this book must be performed while logged in as user root and no
longer as user lfs. Also, double check that $LFS is set in root's environment.
------------------------------------
i set with the $LFS to root with export command
ie
export LFS=/

----------------
then i moved to further
i checked echo $LFS
giving /
this is right according to book(check that $LFS is set in root's environment)
is this right

TobiSGD 04-15-2011 06:00 AM

Read post #35.

janakiramulu 04-15-2011 11:38 PM

hi druuna
just give me clue before moving to chapter6 and till end of lfs build
if i check(any time) echo $LFS,what would be the result

janakiramulu 04-20-2011 05:54 AM

hi druuna
this time i skip this (commands)step 5.32
5.33. Changing Ownership
1)i have gotten echo $LFS result is '/mnt/lfs' after issuing this command root:/#chown -R root:root $LFS/tools
----------------------------------------------------------------------------------
2)but after this
6.4. Entering the Chroot Environment
root [ ~ ]#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

result is
i have no name!:/# (as per book is right)
i have no name!:/#echo $LFS
nothing result
-----------------------------------
3)i moved further till 6.16. GCC-4.5.1(pageno-103) )ie ulimit -s 16384
(Test the results, but do not stop at errors:)
but
root:/sources/gcc-build#make -k check
giving errors
make[2]:***[check] error 127
make[1]:***[check-fxincludes] error2
i moved further(but do not stop at errors:)
-----------------------------------------------------------------
4)and
6.49. Make-3.82 (pageno-167)
root[:/sources/make-3.82#make
result is full of errors
i tred hole chapter 6(till 6.49),echo $LFS
ITS NOT GIVING ANY result

what i am doing mistake
plz tell me

janakiramulu 04-29-2011 05:19 AM

7.8. The Bash Shell Startup Files
 
hi druuna
i learned little,i back with success of chapter 6
now @ 7.8. The Bash Shell Startup Files

cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
-------------------------------------
what i have to use(mine is country' india',language 'english',what about charmap and modifier in my case)

<ll> below with the two-letter code for the desired language (e.g., “en”) and
<CC> with the two-letter code for the appropriate country (e.g., “GB”).
<charmap> should be replaced with the canonical charmap for your chosen locale.
Optional modifiers such as “@euro” may also be present.

is it necessary to use exact our country code and other things
if i use defaultanything ,can we cnange later
does it effect on anything further
(if you need i will ouput of locale -a )

janakiramulu 04-29-2011 05:31 AM

1 Attachment(s)
i am attaching below locale -a result
and
my system is all
hp-Hewlett-Packard INDIAN COMPANY (desktop,keyboard,everything)

druuna 04-29-2011 08:17 AM

Hi,
I do believe India has more then one possible locale setting. These came up (there might be more):
Quote:

hi_IN - Hindi is the official languages of the Indian Union Government and of many states in India.
mr_IN - Marathi language spoken by the Marathi people of western and central India.
en_IN - English (default) spoken and used by the Government and Business in India.
If you want to set your local locale you probably need one of those.

Examples:
Code:

export LANG=hi_IN.utf8

export LANG=en_IN

You can omit this step, English (or more precise POSIX) will then be used. It is possible to change this at a later point.

Do read the part in the book about using UTF-8!

Hope this helps.

janakiramulu 04-29-2011 11:38 PM

hi druuna
thanks for reply
i done following
root:/sources# LC_ALL=en_IN.utf8 locale charmap
UTF-8
root:/sources# LC_ALL=en_IN.utf8 locale language
English
root:/sources# LC_ALL=en_IN.utf8 locale charmap
UTF-8
root:/sources# LC_ALL=en_IN.utf8 locale int_curr_symbol
INR
root:/sources# LC_ALL=en_IN.utf8 locale int_prefix
91
---------------------
root:/sources# cat > /etc/profile << "EOF"
> # Begin /etc/profile
>
> export LANG=en_IN.utf8 INR
> # End /etc/profile
> EOF

(there LC_ALL output is in all capital letters,but in above cat command i used small is it fine)
i am giving above what i got on terminal ,while doing above steps


All times are GMT -5. The time now is 04:16 PM.