Bashrc error and wrong keyboard layout by accident?
Linux From ScratchThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.