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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-19-2013, 02:24 PM
|
#16
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
@luckylinuxluser: It does look like your general Linux knowledge is a bit low and building LFS might become a very difficult task. But if you are up for a challenge.....
The first terminal is the one that pops up when you press ALT-F1 (and nothing will happen if the focus is already on that terminal). Press ALT-F2 for the second termnal (you are probably greeted with a login shell).
This doesn't make any sense. /dev/sdaX is a device, not a directory you can go to. This device is mounted to a directory (a mount-point). LFS uses /mnt/lfs as mount-point.
|
|
|
|
02-19-2013, 02:26 PM
|
#17
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
Quote:
Originally Posted by spiky0011
It will go through to F6
|
Also I guess it would have helped had I tried something other than F1... :\ Sorry and thank you all for the help. I will try copying and pasting the commands and see if that helps.
|
|
|
|
02-19-2013, 02:26 PM
|
#18
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Quote:
Originally Posted by luckylinuxluser
That worked 
|
If you need Ctrl+Alt+F2 then you do have a GUI and you did not boot to the command line (CLI).
In that case: just open an extra terminal......
|
|
|
|
02-20-2013, 11:20 AM
|
#19
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
Ok I can't figure out how to copy text to a clipboard and paste in Links or Lynx.
In links it says to use ^Z or ^X to copy or cut, but that just exits the program. I've been googling but apparently this task is so simple that no one has every asked about it or had to explain it.
|
|
|
|
02-20-2013, 11:26 AM
|
#20
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Quote:
Originally Posted by luckylinuxluser
Ok I can't figure out how to copy text to a clipboard and paste in Links or Lynx.
In links it says to use ^Z or ^X to copy or cut, but that just exits the program. I've been googling but apparently this task is so simple that no one has every asked about it or had to explain it.
|
Don't use a clipboard utility; Select text with the mouse (holding down left mouse button) and paste at the wanted location by pressing right mouse button.
|
|
|
|
02-20-2013, 11:30 AM
|
#21
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
I'm pretty sure the GUI wasn't installed because I left it unchecked.
I've tried "startx" but it's not working. Does Debian have a different command?
|
|
|
|
02-20-2013, 11:38 AM
|
#22
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
Quote:
Originally Posted by luckylinuxluser
I'm pretty sure the GUI wasn't installed because I left it unchecked.
I've tried "startx" but it's not working. Does Debian have a different command?
|
You mentioned in post #14 that you need ctrl-alt-fX to get to a console, which tells me that you/debian has started some sort of GUI. If started in CLI then alt-fX would suffice (although ctrl-alt-fX will work).
But don't worry about having started with the CLI or a GUI, both are suited to copy/paste from and can be used to build LFS.
|
|
|
|
02-20-2013, 11:40 AM
|
#23
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
Quote:
Originally Posted by druuna
You mentioned in post #14 that you need ctrl-alt-fX to get to a console, which tells me that you/debian has started some sort of GUI. If started in CLI then alt-fX would suffice (although ctrl-alt-fX will work).
But don't worry about having started with the CLI or a GUI, both are suited to copy/paste from and can be used to build LFS.
|
No, I'm just retarded and didn't think to try alt+F2. I don't need CTRL+ALT+Fx for it to work.
|
|
|
|
02-23-2013, 12:41 AM
|
#24
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
So figuring out how to copy and paste from Links and Lynx was too difficult for me. I wound up installing a GUI. Unfortunately something happened to my PC and it wound up going into sleep mode or powered off or something. I had to boot it up again and found my consoles had been closed.
I'm not working with Konsole from the GUI and copying and pasting commands from here on out. First I remounted the partition and made the $LFS variable etc tben reentered the chroot environment with:
Code:
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
From there I continued where I left off with Perl. However now after I enter the 'make' command I'm getting...
Code:
root:/sources/perl-5.16.1# make
`sh cflags "optimize='-O2'" perlmini.o` -fPIC -DPERL_IS_MINIPERL -DPERL_EXTERNAL_GLOB perlmini.c
CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings
perl.c: In function 'S_set_caret_X':
perl.c:1437:37: error: expected expression before ',' token
make: *** [perlmini.o] Error 1
I wasn't getting this before I installed the GUI.
Last edited by luckylinuxluser; 02-23-2013 at 12:43 AM.
|
|
|
|
02-23-2013, 03:32 AM
|
#25
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,868
|
@luckylinuxluser: If, for whatever reason, you reboot your host you need to do the following (assuming you are working on chapter 6):
- check/set LFS variable,
- mount LFS related partition(s),
- mount and populate dev (chapter 6.2.2),
- mount virtual kernel file systems (chapter 6.2.3),
- enter chrooted environment (as shown in chapter 6.4).
It looks like you did not do the bold parts.
Also: If you are halfway a chapter when you rebooted, it it wise to completely restart that chapter (remove the build directory, untar package and start again). In this case remove the perl source directory, untar the perl package and start from the top of the chapter (you might not need to do this step: echo "127.0.0.1 localhost $(hostname)" > /etc/hosts. Check /etc/hosts to see if this is already set).
Last edited by druuna; 02-23-2013 at 12:26 PM.
Reason: Fixed minor mistake.
|
|
|
|
02-23-2013, 10:42 AM
|
#26
|
|
LQ Newbie
Registered: Feb 2013
Posts: 23
Original Poster
Rep: 
|
Ok, thank you.
:EDIT: I guess I wasn't typing in the commands correctly after all :\. Thanks for all your help and patience.
Last edited by luckylinuxluser; 02-23-2013 at 11:49 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|