LinuxQuestions.org
Visit Jeremy's Blog.
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-2013, 10:10 AM   #1
aashayshah
Member
 
Registered: Sep 2012
Location: India
Distribution: Linux Mint 13 (Maya)
Posts: 53

Rep: Reputation: 1
Need help for bash. Difference between login and non login shell


I am installing XORG-7.7 . I defined variables like XORG_PREFIX and XORG_CONFIG and also the script file /etc/profile.d/xorg.sh , but every time i reboot my computer i have to set the variables again .

Can anyone explain me how do i chroot and install XORG ? How do i login user as ? non login or login ?

What is the basic difference ?
 
Old 03-13-2013, 08:15 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
If you are installing X while in a chroot environment in another system, then I would not expect those environment variables to survive a reboot. And the scripts in /etc/profile.d are called by /etc/profile when the system boots, which it is not doing if you are chroot-ing into it. That's my best guess at what is happening. It all sounds normal to me.

I recommend that you not build X in chroot. Instead, take a few minutes to install Lynx (a text browser that can be used to read the BLFS book), GPM (mouse daemon that lets you highlight, copy, paste the LFS book), and Wget (to download packages via the scripts in the X steps). Then reboot the system for real and work in the native environment. It's what the LFS book (in chapter 9) and most everyone around here recommends.

Last edited by stoat; 03-13-2013 at 08:16 PM.
 
1 members found this post helpful.
  


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
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 08:30 AM
[SOLVED] Difference between a login terminal & non-login termiinal Soji Antony Linux - Newbie 6 06-26-2011 09:07 AM
root won't use bash as login shell moob8 Linux - Software 9 10-28-2008 10:15 PM
login directly to bash shell openart Linux - Newbie 5 10-27-2004 08:05 AM
How to login to bash shell inarin Linux - Newbie 1 10-07-2003 02:45 PM

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

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