Should we have a "wish me luck" thread?

I’m not sure if the \ at the end of the line would work. Also this could work: (sorry my typo in the thkin)

pete@gentoo ~ $ command=$(cat << EOF
> I thkin
> this
> could work for the long
> commands
> EOF
> )
pete@gentoo ~ $ command=@(echo $command)
pete@gentoo ~ $ echo $command
@(echo I thkin this could work for the long commands)
pete@gentoo ~ $

edit: yes, it should work even without the command=@(echo $command). echo $command shows all the lines right without the @()

1 Like

Are you saying use “echo” to copy the file to /etc/profile???

1 Like

@ihasama 's cat should work.
Do you have an editor? Maybe edlin line editor?.
If so you could type it into the editor and save

1 Like

That is a great idea.
I think what it needs to attract people is a less challenging topic and more detail. Gentoo frightens people… Lets find a way of being adventurous with Mint or Debian.

4 Likes

LFS has vi and the bash-5.2# prompt, I also have links and lynx installed, but until I have the make-ca package installed both are difficult to use.
The only other viable options is mount LFS with Gentoo and use a virtual kernel. I could use ssh and login with Putty with Windows, but that would be LFS root and having to set a user and pw!!!

1 Like

That is the way to do it… vi works fine on a console screen… it was made for that

What is that package?

1 Like

I’m not tried anything with the LFS yet so I don’t know how to input anything long there. I just thought that you’re on Gentoo and using terminal emulator to chroot to LFS but after reading the LFS book, you’re going to chroot on chapter 7.
So forget my earlier reply! I’ll try to get started building the LFS soon, but at this point I don’t know how to help you with this issue.

1 Like

certificate’s
OK, so I reboot into Gentoo mount the LFS virtual terminal and copy and paste the
file form the BLFS book into vi and hit save!!!
The BLFS book uses the the " cat > /etc/profile << "EOF " command.

1 Like

Yep.
or use cat >> as suggested.

1 Like

That is the problem, the file is 87 lines, it will not fit, in the terminal, without line wrap!!!

1 Like

It doesnt all have to fit. In a console what you type just scrolls off the top, but that does not matter… it deals with one line at a time.
Horizontal wrapping never seemed to bother me when I used consoles. On the screen it wraps to the next line, but in the file it will be one line because the wrap does not generate an LF.
I dont get the problem

1 Like

OK, what you are saying is to go ahead and save the file and check with " cat /etc/profile "!!
I made this mistake, at my last attempt at LFS, my profile has to be without mistakes!!
So, am I better off, even if it takes longer to just us cat and my bash prompt or use vi?

1 Like

Not sure. ( I personally always use vi, but that is just habit)
Why not save it to a file of another name
Then check it is right
And if you are happy, copy it to .profile

I see why you are worried… messing up .profile will stymie your login!!
You can always mount the filesystem from some other Linux and edit any mistake like that.

2 Likes

I started the LFS journey. I’m now starting chapter III. All should be good at this point, this is familiar stuff at the moment :smiley:

edit: Binutils ready! Here we go!

3 Likes

@nevj
I used vi to do a manual install of the file, I am going to boot Gentoo and mount the LFS virtual terminal and check my work!! When I checked the file while in LFS, it was showing all pink!!!

2 Likes

@ihasama

OK!!! You are just on the 1st pass!!!

2 Likes

Yeah, it’s GCC now… wake me up tomorrow :grin:

2 Likes



That is the /etc/profile I just entered do I need to write over this file with a copy and paste!!!

1 Like

@nevj
Thank you Mr nevj I wrote back over that file using vi in the virtual terminal, worked like a charm!!! Maybe now I can get somewhere!!!

3 Likes

Great!

My GCC closed with error 2. Damn… I’m re running make

1 Like