[opensuse] BASH .bashrc su question
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state.
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too. -- Marcin Floryan http://marcin.floryan.pl/ Please consider the environment before printing this email. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jan 17, 2008 6:37 PM, Marcin Floryan <marcin.floryan@gmail.com> wrote:
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
I second that. You can suspend it and resume later on without losing the sessions so long as you don't turn off your computer. Chua -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 17 January 2008 02:37, Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" ...
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
Yes. It has many advantages. It has never been a stock item in my toolkit, but I really should become more familiar with it.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email.
Yes, sir! Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state.
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email.
Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts? -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 17 January 2008 15:34:01 David C. Rankin wrote:
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state.
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email.
Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts?
The beauty of screen is that you can open a session in a konsole window on your desktop at work, and then from home ssh to your work PC, and detatch the screen session from your work desktop and have it appear on your home konsole window. Then the next morning, you can go to a client's office and move the screen view to the konsole window on your laptop. All this without interrupting in any way the shell, or vi session, or mysql session, or whatever you had running when you created the screen session at the office. You can have multiple screen sessions open on a single konsole window, one visible at a time. You can even open a screen session on a virtual console of a machine not running X at all, and then view that session inside a KDE konsole from some arbitrary remote system (provided you can get in, say with ssh). This just scratches the surface, and I know there's lots about screen I've never even tried or know exists. Jim Cunning -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Cunning wrote:
On Thursday 17 January 2008 15:34:01 David C. Rankin wrote:
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state. I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email. Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts?
The beauty of screen is that you can open a session in a konsole window on your desktop at work, and then from home ssh to your work PC, and detatch the screen session from your work desktop and have it appear on your home konsole window. Then the next morning, you can go to a client's office and move the screen view to the konsole window on your laptop. All this without interrupting in any way the shell, or vi session, or mysql session, or whatever you had running when you created the screen session at the office.
You can have multiple screen sessions open on a single konsole window, one visible at a time. You can even open a screen session on a virtual console of a machine not running X at all, and then view that session inside a KDE konsole from some arbitrary remote system (provided you can get in, say with ssh).
This just scratches the surface, and I know there's lots about screen I've never even tried or know exists.
Jim Cunning
Jim, That is just the practical insight I needed. Thank you for the response. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@sonic.net> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive shell via su (or sudo) and then use the built-in "suspend" command to go back to the non-root shell from which it was invoked. Then you can re-enter it using the usual job-control commands. The shell will only honor a "suspend" command when it's not a login shell, so you don't have to worry about suspending a shell with no other shell "above" it to handle the suspended process state.
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
-- Marcin Floryan http://marcin.floryan.pl/
Please consider the environment before printing this email.
Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts?
Your hands never leave the keyboard's home row. This software dates back to the ASCII-terminal era, and therefore can be controlled ENTIRELY from a standard 48-key (pre-IBM PC) keyboard, so there's need for the use of cursor keys, home/end/page-up/page-down keys, let alone a mouse....and with very little memory overhead, even compared to konsole. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 17/01/2008, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Marcin Floryan wrote:
I find using screen even more comfortable. You can easily have several sessions open and switch between them and keep being logged in as root. It works well with SSH access too.
Alright, looks like I have to add a few tools to my tool box. With regard to screen, what advantages does it have over running konsole with multiple sessions? I've looked at the man page, but can't figure out what the advantage would be over multiple tabs in konsole and using shift+rt or shift+lt arrows to move between screens. Marcin, what are your thoughts?
With screen you can easily attach and detach from the session and continue it being connected remotely so it is easy to start some task in the terminal window on my machine and the continue when I am away. Screen can give you the same "tabs" though presented as a list (Ctrl+A + ") and you can name them too. Switching is easy using (Ctrl+A + n) so you can go directly from window 2 to window 5 :-) -- Marcin Floryan http://marcin.floryan.pl/ Please consider the environment before printing this email. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jan 18, 2008 5:17 PM, Marcin Floryan <marcin.floryan@gmail.com> wrote:
With screen you can easily attach and detach from the session and continue it being connected remotely so it is easy to start some task in the terminal window on my machine and the continue when I am away. Screen can give you the same "tabs" though presented as a list (Ctrl+A + ") and you can name them too. Switching is easy using (Ctrl+A + n) so you can go directly from window 2 to window 5 :-)
-- Marcin Floryan http://marcin.floryan.pl/
Another useful function of screen is it can do copy and paste. I know it isn't exceptionally useful in a GUI environment, but if you only work in runlevel 3, the copy-and-paste capability can be quite handy. -- How -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi all, Has anybody used the "encrypt your home partition" feature in 10.3 yet? If so how much of a performance hit is there? Any potential pitfalls I need to know about? Or does anybody know if there is a technical primer available? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 18/01/2008, Chee How Chua <chuacheehow@gmail.com> wrote:
On Jan 18, 2008 5:17 PM, Marcin Floryan <marcin.floryan@gmail.com> wrote:
Another useful function of screen is it can do copy and paste. I know it isn't exceptionally useful in a GUI environment, but if you only work in runlevel 3, the copy-and-paste capability can be quite handy.
Right! This is another reason I like screen and... in fact even more putty with screen. In konsole I need to use mouse to get the menu to do copy and paste (or at least I wasn't bothered to investigate any alternative solution, by default there is even no keyboard shortcut for copy). In putty I just select the bit I need with a mouse and it already is in the clipboard and right-click inserts anything you have copied before. I just can't live without it now. -- Marcin Floryan http://marcin.floryan.pl/ Please consider the environment before printing this email. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Chee How Chua wrote:
On Jan 18, 2008 5:17 PM, Marcin Floryan <marcin.floryan@gmail.com> wrote:
With screen you can easily attach and detach from the session and continue it being connected remotely so it is easy to start some task in the terminal window on my machine and the continue when I am away. Screen can give you the same "tabs" though presented as a list (Ctrl+A + ") and you can name them too. Switching is easy using (Ctrl+A + n) so you can go directly from window 2 to window 5 :-)
-- Marcin Floryan http://marcin.floryan.pl/
Another useful function of screen is it can do copy and paste. I know it isn't exceptionally useful in a GUI environment, but if you only work in runlevel 3, the copy-and-paste capability can be quite handy.
-- How
Thank you all for leading me to screen! It is an amazingly elegant way to manage multiple terminal sessions in a text console or in konsole in X. The cut and paste, an ability to turn logging on and off is great. No need to have kedit open to capture snippets to, just turn logging on and it is done automatically, switch it on or off with a keystroke. But for the 'su question' that started this thread, I would have never known screen existed. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
Chee How Chua wrote:
On Jan 18, 2008 5:17 PM, Marcin Floryan <marcin.floryan@gmail.com> wrote:
With screen you can easily attach and detach from the session and continue it being connected remotely so it is easy to start some task in the terminal window on my machine and the continue when I am away. Screen can give you the same "tabs" though presented as a list (Ctrl+A + ") and you can name them too. Switching is easy using (Ctrl+A + n) so you can go directly from window 2 to window 5 :-)
-- Marcin Floryan http://marcin.floryan.pl/
Another useful function of screen is it can do copy and paste. I know it isn't exceptionally useful in a GUI environment, but if you only work in runlevel 3, the copy-and-paste capability can be quite handy.
-- How
Thank you all for leading me to screen! It is an amazingly elegant way to manage multiple terminal sessions in a text console or in konsole in X. The cut and paste, an ability to turn logging on and off is great. No need to have kedit open to capture snippets to, just turn logging on and it is done automatically, switch it on or off with a keystroke. But for the 'su question' that started this thread, I would have never known screen existed.
5 years from now, MS will be calling it "obsolete technology". 10 years from now, MS will release their own, pathetically broken, half-***ed implementation. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Jan 21, 2008 3:26 AM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
Thank you all for leading me to screen! It is an amazingly elegant way to manage multiple terminal sessions in a text console or in konsole in X. The cut and paste, an ability to turn logging on and off is great. No need to have kedit open to capture snippets to, just turn logging on and it is done automatically, switch it on or off with a keystroke. But for the 'su question' that started this thread, I would have never known screen existed.
Woah, from the sound of it, seems like you've explored more features of screen than I have seen. Have fun using it! --- How -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Aaron Kulkis
-
Chee How Chua
-
David C. Rankin
-
Jim Cunning
-
Marcin Floryan
-
Randall R Schulz
-
Wayne and Leanne Roberts