The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Anyway to save session in Gnome ?

    Discussion in 'Linux Compatibility and Software' started by wearetheborg, Jul 2, 2008.

  1. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    I'm using Suse SLED 10 SP2. I upgraded to SP2 recently. Earlier, whenever I was logging out, it would ask me if I wanted to save my session. Now after SP2 , it does not do that.
    So, how do I save my session ?

    I like to have around 15-20 bash shells open, so its a pain having to reopen them each time.
     
  2. blackbird

    blackbird Notebook Deity

    Reputations:
    584
    Messages:
    1,546
    Likes Received:
    0
    Trophy Points:
    55
    System >> Preferences >> Sessions

    Go to Session Options tab
     
  3. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    :eek: :eek: :eek:

    What are you doing with 15-20 bash shells open at the same time? Two is usually enough for me. And I use those pretty heavily. You know about pushd and popd, right?
     
  4. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    Sounds like you need to use Screen. You run all your terminals inside of one terminal, in which you run Screen. You can 'detach' the Screen session and log out. Later, you can log in (even remotely, using SSH) and reattach the Screen session, and everything will be there waiting for you. If you run an interactive program like irssi or rtorrent in Screen and detach the session, it will continue to run in the background. As long as your computer doesn't turn off, those shells will remain available.
     
  5. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105

    I've heard of pushd/popd, never used them.
    Here is what I do with my bash shells :D
    1. top
    2. ./firefox (so I can see error messages and kill by CTRL-C periodically if RAM gets too high)
    3 ./opera (to kill if it hangs)
    4. ./azureus (yeah I could just do an "&")
    5. Logged in as root (to unmount directories or do root stuff)
    6. SSH'd into remote work computer
    7-13. In different directories that are subdirectories of a paper I'm writing, so I can access each directory quickly.
    14. tmp directory
    15./thunderbird
    16./kaffeine

    In addition, I like to keep around 5 more shells open just so I always have shell immediately available.

    srunni, thanks for the "screen" program, seems nifty, but I dont see how it would solve my problem. The "Gnome Terminal" already opens up bash shell in tabs.
     
  6. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    As I said, if you detach your Screen session and log out, when you log back in, all you have to do is reattach Screen and all the terminals will still be there. You don't have to reopen them every time, which is what you said you wanted to avoid in the initial post.
     
  7. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Aah yes, sorry. I forgot to mention I log out only to shut down or reboot. :)
     
  8. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    Random question: CRT+C kills a program?
     
  9. srunni

    srunni Notebook Deity

    Reputations:
    96
    Messages:
    854
    Likes Received:
    0
    Trophy Points:
    30
    Oh, OK. Yeah, Screen only works as long as the computer is on. You might be able to find a way to startup GNOME terminals on login somehow. I know that in KDE you can place scripts to run on login in ~/.kde/Autostart, but I don't know how it works in GNOME. The GNOME developers probably thought it would have been too confusing for their users and decided not to include support for running commands on login ;)

    Yeah, or
    Code:
    killall [process name]
    or
    Code:
    kill [pid]
    if you didn't start the process from a terminal.
     
  10. Gintoki

    Gintoki Notebook Prophet

    Reputations:
    2,886
    Messages:
    6,566
    Likes Received:
    0
    Trophy Points:
    205
    I've been using xkill all this time, thanks for the tip. :)
     
  11. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    There was no option to save a session, except "automatically save session".
    I hope this works.