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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-26-2008, 04:54 AM
|
#1
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Rep:
|
how to continue to run a program after logging off ?
I am using fedora on my laptop.
I wish to run transmission client even when I am not logged in. Actually, I have a broadband connection, but when I am not on desk I log off using Ctrl+Backspace. But this makes transmission stop. I want transmission to continue even after I logout, since the system continues running.
I tried
nohup transmission-gtk &
and
( transmission-gtk &)
They didnot work ?!?
any other way? By the way, I donot want to put it in a startup script.
thanks in advance
nishith
|
|
|
11-26-2008, 05:07 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
that's not possible as the app will be connected to the X server display. so with no X session, all apps under it have to die. nohup or no nohup. you might want to spawn a seperate vnc server session to run it inside...?
|
|
|
11-26-2008, 05:20 AM
|
#3
|
Member
Registered: Jun 2007
Location: Japan
Distribution: Debian lenny, DSL, Solaris 10
Posts: 157
Rep:
|
how about using the cli version?
If you just want to log out the GUI but don't mind having a non-GUI session open, then you could use getty (press CTRL-ALT-F1, probably F7 to get back to X) login, and use the cli version of the transmission client (or some other command line torrent client).
You'd still be logged in though...
Another thing you could do is use cron or at and schedule the program (has to be command line). If you have your MTA correctly set you'd probably get an e-mail after the download is completed.
|
|
|
11-26-2008, 05:47 AM
|
#4
|
Member
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32
Rep:
|
Make a script and try to run with cron or atd
Last edited by nidhinmd; 11-26-2008 at 05:49 AM.
|
|
|
11-26-2008, 06:00 AM
|
#5
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
How would a script run a program that is GUI and with no X running?
|
|
|
11-26-2008, 06:02 AM
|
#6
|
Member
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 319
Rep:
|
Why not just lock your screen?
|
|
|
11-26-2008, 06:14 AM
|
#7
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
I guess root user is not allowed to lock the screen. I use rhel5 and it does not allow me lock the screen if I login as root.
|
|
|
11-26-2008, 06:19 AM
|
#8
|
LQ Veteran
Registered: May 2008
Posts: 7,002
|
I don't know whether fedora desktop login includes a switch user option, but that might do what you need. i.e. put you back to the login screen without terminating your session.
Failing that, as others have said, you could consider using a command line torrent program instead of transmission or if your only issue is security rather than allowing someone else to use the computer while your trasmission runs in the background you could just lock the screen.
edit: as a afterthought, if you don't want others to accidentally kill you transmission (if you choose the lock screen option), you might want to disable ctrl-alt-backspace too.
Last edited by GazL; 11-26-2008 at 06:20 AM.
|
|
|
11-26-2008, 10:36 AM
|
#9
|
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Rep:
|
As acid_kewpie already suggested the easiest thing to do is run it in a vnc server, it'll be completely independent of whether your logged in or not and you could actually connect to the vnc server and check on it remotely.
|
|
|
11-26-2008, 07:18 PM
|
#10
|
Member
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 319
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
I guess root user is not allowed to lock the screen. I use rhel5 and it does not allow me lock the screen if I login as root.
|
I wouldn't be logging in as root and running bit torrent clients. Log in as a normal user, become root, and run your program then. That way you can lock your screen.
|
|
|
11-26-2008, 09:13 PM
|
#11
|
Senior Member
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098
Rep:
|
Quote:
Originally Posted by acid_kewpie
that's not possible as the app will be connected to the X server display. so with no X session, all apps under it have to die. nohup or no nohup. you might want to spawn a seperate vnc server session to run it inside...?
|
Hey Acid_kewpie, What if he created a dummy user account the had a console set to false and use that login sort of as a way to control transmission in more of a service kind of like how httpd and mysqld and others do. I don't think it would work but that was all I could come up with.
|
|
|
11-26-2008, 11:19 PM
|
#12
|
Member
Registered: Aug 2007
Location: Cochin, Kerala, India
Posts: 32
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
How would a script run a program that is GUI and with no X running?
|
Easily run GUI programs with no X with the support of 'Xvfb'
|
|
|
11-28-2008, 02:22 PM
|
#13
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Original Poster
Rep:
|
seems like using the cli version of transmission through a script is the best option.
Quote:
Easily run GUI programs with no X with the support of 'Xvfb'
|
Shall try that out too...thanks
nishith
|
|
|
All times are GMT -5. The time now is 08:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|