LinuxQuestions.org
Visit Jeremy's Blog.
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-23-2003, 12:01 PM   #1
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Rep: Reputation: 30
lfs bootcd..


well im building and lfs system using the lfs cd (i was usuing knoppix before)....AMAZING...tho i cant do this part

Code:
cat > ~/.bash_profile << "EOF"
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC="gcc -s"
export LFS LC_ALL CC
EOF
source ~/.bash_profile
becuase it wont register the tilde key...whats goign on?
 
Old 05-23-2003, 12:19 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
If your in your currently home directory you should be able to leave off the ~/
Or maybe just specify the full path. Not totally sure why you can't register the ~. What keymap are you using for your keyboard?
 
Old 05-23-2003, 01:09 PM   #3
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
It's most likely a keymap problem yes (i just talked to the lfs bootcd maintainer and he thinks the same thing). The kbd package is installed in a default manner like the LFS book does, so the default keymap is the US-101 one. If you have a different kind of keyboard you need to use loadkeys to load a different map.

Alternatively you do'nt really need to use a tilde if you can't be bothered fixiing the keymap. Use the full path like cat > /home/yourusername/.bash_profile
 
Old 05-23-2003, 01:09 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Btw the README file on the CD mentions the loadkeys issue, you may want to read through it (again).
 
Old 05-23-2003, 02:49 PM   #5
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
lol thanks what does ~ mean in linux anyway, and ill just use the fullpath
 
Old 05-23-2003, 03:01 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
~ is short for $HOME
$HOME is set by your shell to your home directory as it appears in /etc/passwd.

So, /etc/passwd contains /home/gerard, bash sets $HOME to /home/gerard and since ~ translates into $HOME, ~ == /home/gerard

So ~/.bash_profile is $HOME/.bash_profile or /home/gerard/.bash_profile

You also see those ~ used in URLs ala http://linuxfromscratch.org/~gerard/

If ~ is followed by a username like ~gerard, it'll go lookup the username 'gerard' in /etc/passwd and extracts its home directory. So "ls ~gerard" will make ls look at /etc/passwd, find user 'gerard' find its home directory and lists its contents.

I hope this is clear enough?
 
Old 05-23-2003, 08:33 PM   #7
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
what! ok, that is simply amazing, thank you lfslinux for providing the most concise explanation.. thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
Where is FC4 bootCD init source code? caljjc Fedora 2 10-24-2005 04:09 PM
kernel for 'bootcd' package? daryl314 Debian 2 02-05-2005 06:08 PM
Problem with installing Slackware from BootCD Ghoulu Slackware - Installation 2 11-29-2004 03:34 AM
FAI bootcd Cybercool Linux - Newbie 1 05-10-2004 09:35 AM

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

All times are GMT -5. The time now is 04:20 AM.

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