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 03-13-2015, 11:33 PM   #1
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Rep: Reputation: Disabled
Bashrc error and wrong keyboard layout by accident?


Hello all!

I have made it through the LFS book and have made a bootable system and have installed lynx and all kinds of other cool stuff, it is working great and I am ecstatic!

I am having two small issues that are more of a annoyance than a real issue but,

1. Whenever I login as root, or any user account I'm met with:
"bash: /etc/bashrc.: No such file or directory"
The . after bashrc I'm sure is a typo I put in somewhere but I can't find where it calls for the wrong file?

2. Everything on the keyboard works great except a capital E. It just wont work I can't type it, lowercase works great though. I can't even copy and paste a capital E into the chroot, it doesn't think a capital E exists. Which is really inconvenient when I'm trying to type EOF

bashrc: http://pastebin.com/Hu6ApuQ7
initrc: http://pastebin.com/NpJ1L09n
etc/profile: http://pastebin.com/jGctcmuY

Last edited by RaynoVox; 03-15-2015 at 03:38 PM.
 
Old 03-14-2015, 12:05 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Welcome to LQ!

Have a nice time.

Read LQ FAQ's and Rules.
 
Old 03-14-2015, 12:14 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
"bash: /etc/bashrc.: No such file or directory"
Check your bash initialization scripts to check for this error. Namely /etc/profile, /etc/profile.d/*, ~/.bash_profile, ~/.bash_profile, ~/.bash_login.

Quote:
2. Everything on the keyboard works great except a capital E. It just wont work I can't type it, lowercase works great though. I can't even copy and paste a capital E into the chroot, it doesn't think a capital E exists. Which is really inconvenient when I'm trying to type EOF
Have you confirmed that it's not keyboard hardware problem. If it is a software problem then can you check if it functions in grub boot menu or another distro/OS.

Last edited by veerain; 03-15-2015 at 12:24 AM.
 
Old 03-14-2015, 01:03 AM   #4
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
veerain, thank you for your reply!

I found the /etc/bashrc references in those files you listed and fixed it, thank you!


I have been building the LFS under Linux Mint, and the capital E works great here, I am on that system now.

If I copy from Mint to the chroot "cCdDeEfF" it will literally strip out the capital E and become "cCdDefF" even in the chroot, as well as when I am actually booted into the LFS system.
 
Old 03-14-2015, 04:53 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
How do you copy? Are using GUI to build LFS or using VT(console)?
 
Old 03-14-2015, 12:08 PM   #6
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yes I currently am on the Linux Mint GUI and it was built under the GUI and using LXterminal where you can paste directly.
 
Old 03-14-2015, 01:08 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Does otherwise it copies correctly from web browser to lxterminal?

Can you elaborate more.
 
Old 03-14-2015, 03:13 PM   #8
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yes, and I wanted to thank you for replying and working with me.

When I CHROOT into my new system from Linux mint with:
Code:
export LFS=/mnt/lfs

sudo mount -v -t ext4 /dev/sda3 $LFS
sudo /sbin/swapon -v /dev/sda4

sudo mount -vt proc proc $LFS/proc
sudo mount -vt sysfs sysfs $LFS/sys

sudo chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login

mount -nvt tmpfs none /dev
/sbin/udevstart
mkdir -v /dev/pts
mkdir -v /dev/shm
mount -vt devpts -o gid=4,mode=620 none /dev/pts
mount -vt tmpfs none /dev/shm

cd /sources
In the LXterminal window the new LFS system is logged in as root.
Using a middle mouse click I can paste anything Linux Mint has copied and paste it into the LFS CHROOT terminal.
If I copy and paste "eeEee" it will paste in the LFS window as "eeee" it will strip out the capital E. If I attempt to type a capital E in the terminal nothing will happen and nothing appears, same with caps lock. But every other character, lowercase and uppercase and symbols work wonderful.
As you can see in the screenshot of the LXterminal window no capital E appears. Typed nor pasted.

But it is not just Linux Mint and the LXterminal, completely shutting down and rebooting into the LFS with grub still no E is allowed to be typed. So CHROOTing nor booting into the LFS system allow E's.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-03-14 16:10:03.jpg
Views:	13
Size:	39.8 KB
ID:	17783  
 
Old 03-14-2015, 03:44 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Are you using UTF-8?
 
Old 03-14-2015, 04:07 PM   #10
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hey ReaperX7, thanks for your reply!

Yes, I have tried en_US.utf8 as well as en_us.iso188591 and nothing.

However I did find out that I can make a capital E inside Nano and Lynx just not the CLI.

Last edited by RaynoVox; 03-14-2015 at 04:08 PM.
 
Old 03-15-2015, 12:26 AM   #11
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
If it's a keyboard hardware problem then copy in lxterminal should happen. If it's software problem then typing E should print.

Can you try chroot to LFS in Linux VT (console) and see what happens.

Find out what keyboard layout Mint uses looking at startup scripts.
 
Old 03-15-2015, 03:38 PM   #12
RaynoVox
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Ive checked the bashrc and inputrc scripts to see if there are any aliases and I can't find anything even remotely like alias for E.

Mint is set to en_US.UTF-8.

bashrc: http://pastebin.com/Hu6ApuQ7
initrc: http://pastebin.com/NpJ1L09n
etc/profile: http://pastebin.com/jGctcmuY
 
  


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
[SOLVED] Wrong keyboard layout antarctidaonline Linux - Newbie 4 09-14-2014 05:56 AM
Wrong Keyboard layout ukuleleray Linux - Newbie 6 08-17-2014 06:51 AM
Wrong keyboard layout spiky0011 Linux From Scratch 1 05-11-2011 01:09 AM
Keyboard layout config error 1 key wrong flebber Linux - General 4 12-10-2006 11:46 PM
keyboard layout is wrong quarry_06 Debian 5 12-14-2005 02:37 PM

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

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