LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-19-2010, 05:25 AM   #1
ranko_6
Member
 
Registered: May 2009
Distribution: Slackware 13.1
Posts: 43

Rep: Reputation: 15
Exiting a shell


Have installed slackware multilib and it says that after I compile something I should exit a shell.
Quote:
Do not forget to exit from your shell (and login again) after you have finished compiling your 32bit software, to get rid of the 32bit-enforcing environmental variables!
In a way I'm lost because I don't grasp the full meaning of shell, but I did some googling and it basically says it is that command prompt looking thingy.

I'm logged in as user, running KDE, have Konsole up and running TS3 on it. I opened another tab in Konsole, went "su", then compiled what I need to compile.

Now... what is understood as exiting a shell?
1. Simply using "exit" which returns me to user and then if I go "su" again everything would be... "fine"?
2. Simply using "exit" which returns me to user in Konsole, then using "exit" again to exit that tab, then remaking a tab and everything is "fine"?
3. Exiting both tabs in Konsole, "crashing" TS3 in process and rerunning Konsole?
4. Exiting both tabs in Konsole, exiting KDE, rerunning KDE
5. Exiting both tabs in Konsole, exiting KDE, using "exit" one more time to log out of the user and then relog?
 
Old 06-19-2010, 05:41 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,026
Blog Entries: 52

Rep: Reputation: Disabled
Exit as root, exit as user, then you'll be back to a 64-bit compiling environment.
 
Old 06-19-2010, 05:46 AM   #3
ranko_6
Member
 
Registered: May 2009
Distribution: Slackware 13.1
Posts: 43

Original Poster
Rep: Reputation: 15
Guess that means option number 2 which involves closing that one tab and leaving Konsole still running with one user logged in (where I'm running TS)?
 
Old 06-19-2010, 05:52 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,026
Blog Entries: 52

Rep: Reputation: Disabled
Mmm, not sure how that would affect compiling anything. Whether you would still be in 32 or 64-bit mode. Whether you would have to exit Konsole altogether or not.
 
Old 06-19-2010, 05:54 AM   #5
ranko_6
Member
 
Registered: May 2009
Distribution: Slackware 13.1
Posts: 43

Original Poster
Rep: Reputation: 15
:P me ether, that's why I'm asking. But they did said that I'm supposed to exit the shell so guess there is a reason behind that one too
 
Old 06-19-2010, 05:55 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,101

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by ranko_6 View Post
In a way I'm lost because I don't grasp the full meaning of shell, but I did some googling and it basically says it is that command prompt looking thingy.
a shell in short is the program that provides the interface for the operating system, even gnome/kde are shells,

Quote:
Originally Posted by ranko_6 View Post
I'm logged in as user, running KDE, have Konsole up and running TS3 on it. I opened another tab in Konsole, went "su", then compiled what I need to compile.
technically you shouldnt compile as root rather switch to root once you are done compiling to run make install

Quote:
Do not forget to exit from your shell (and login again) after you have finished compiling your 32bit software, to get rid of the 32bit-enforcing environmental variables!
probably a good idea, but then again closing the terminal window will do the same as typing exit at the prompt, if the environment variables are local to that window otherwise logging out of might be necessary to return you to a full 64bit environment (though simply setting the variables back to default would work too its easier just to type exit then it is to set variables)
 
1 members found this post helpful.
Old 06-19-2010, 05:58 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,026
Blog Entries: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
technically you shouldnt compile as root rather switch to root once you are done compiling to run make install)
Yeah, I should have mentioned that.
 
Old 06-19-2010, 06:02 AM   #8
ranko_6
Member
 
Registered: May 2009
Distribution: Slackware 13.1
Posts: 43

Original Poster
Rep: Reputation: 15
Unfortunately technically I'm not sure what I'm doing except running slackBuild script. Was doing them in user mode but read somewhere that I'm supposed to run them as root so I switched to that Thanks for info.
 
Old 06-19-2010, 06:19 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,026
Blog Entries: 52

Rep: Reputation: Disabled
Oh yeah, run SlackBuilds as root. That multilib readme concerns compiling from source, not SlackBuilds.
 
1 members found this post helpful.
  


Reply

Tags
exit, shell


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Exiting BASH function without exiting sourced environment SwingingSimian Programming 10 08-12-2009 12:59 AM
Why is DC++ exiting after a while? Kristoffer G Mandriva 24 09-26-2007 01:34 PM
Exiting the Shell script with Error MEssage sumitarun Programming 5 04-14-2005 01:10 AM
shell script q's (io, error exiting ) dave bean Programming 6 02-17-2005 01:24 AM
Exiting X KarmaKill Fedora 1 06-24-2004 02:46 PM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration