LinuxQuestions.org
Help answer threads with 0 replies.
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 02-19-2013, 02:24 PM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

@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).

Quote:
cd /dev/sdaX
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.
 
Old 02-19-2013, 02:26 PM   #17
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
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.
 
Old 02-19-2013, 02:26 PM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by luckylinuxluser View Post
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......
 
Old 02-20-2013, 11:20 AM   #19
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-20-2013, 11:26 AM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by luckylinuxluser View Post
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.
 
Old 02-20-2013, 11:30 AM   #21
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-20-2013, 11:38 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by luckylinuxluser View Post
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.
 
Old 02-20-2013, 11:40 AM   #23
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
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.
 
Old 02-23-2013, 12:41 AM   #24
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-23-2013, 03:32 AM   #25
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@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.
 
Old 02-23-2013, 10:42 AM   #26
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
Errors installing perl-gtk2 via slackbuilds Ook Slackware 1 02-11-2013 12:14 PM
Getting errors while installing perl-dbi bootleg550 Linux - Software 3 05-24-2011 01:59 PM
wxPython build take a long time madhu Linux - Embedded & Single-board computer 1 12-16-2010 09:41 PM
bugzilla - installing perl DBD::mysql - what do these errors mean? neocontrol Linux - Software 2 03-19-2007 02:17 PM
perl errors when installing modules jimi_j Programming 12 07-19-2004 11:16 PM

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

All times are GMT -5. The time now is 06:05 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