Linux.com

Author Message
Joined: Apr 27, 2008
Posts: 3
Other Topics
Posted Apr 27, 2008 at 7:27:10 PM
Subject: Simple, one-line command on startup?
Hello all; I have recently installed Debian Linux on a home PC as a server, and I must say I am enjoying it thus far! I have installed VNC on it, and I know how to use it, but I need for it to run on startup so that I can access it from a location without keyboard, mouse, video, etc. I have tried many complex tutorials, and I doubt it can be so hard: How can I make it so that a single command runs on the OS startup (user logon)? I have it now so that it automatically logs my user in and I would like it so that "vnc4server :1" is typed into the terminal every time the computer logs on. Thank you in advance! Infinitus
Back to top Profile Email Website
Infinitus
Joined Apr 27, 2008
Posts: 3

Other Topics
Posted: Apr 27, 2008 9:16:03 PM
Subject: Simple, one-line command on startup?
Wow, it would be quite sad if nobody can figure out how to execute a simple command on logon... ._. It seems to be this way now...
Back to top Profile Email Website
ahaau
Joined Apr 27, 2008
Posts: 16

Other Topics
Posted: Apr 28, 2008 2:11:12 AM
Subject: Simple, one-line command on startup?
we probably understand it better, if you tell us what you know? shows command lines, outputs. if you want to access to desktop on a remote box, vnc if you want to run applications from a remote box, try ssh XForward [quote=Infinitus]Hello all; I have recently installed Debian Linux on a home PC as a server, and I must say I am enjoying it thus far! I have installed VNC on it, and I know how to use it, but I need for it to run on startup so that I can access it from a location without keyboard, mouse, video, etc. I have tried many complex tutorials, and I doubt it can be so hard: How can I make it so that a single command runs on the OS startup (user logon)? I have it now so that it automatically logs my user in and I would like it so that "vnc4server :1" is typed into the terminal every time the computer logs on. Thank you in advance! Infinitus[/quote]
Back to top Profile Email Website
Infinitus
Joined Apr 27, 2008
Posts: 3

Other Topics
Posted: Apr 28, 2008 2:46:30 AM
Subject: Simple, one-line command on startup?
I have a remote box that already has everything set up. All I need to do when I turn it on is to open up Terminal and start the VNC service by typing "vnc4server :1" However, that would be impossible when the machine would be remote and quite pointless, no? ;P So, therefore, I need to know how to simply have a script or other way to start "vnc4server :1" into Terminal on boot up or logon. Thanks! Infinitus
Back to top Profile Email Website
netcat
Joined Mar 26, 2008
Posts: 24

Other Topics
Posted: Apr 28, 2008 6:53:17 AM
Subject: Simple, one-line command on startup?
Well... at startup using vnc can be painful if you have to manually invoke the remote vncserver everytime you need to log. The best possible solution I see here is using XDMCP for remote logins at startup. XDMCP is inbuilt in all the popular distros . try the link before for more info http://www.faqs.org/docs/Linux-HOWTO/XDMCP-HOWTO.html
Back to top Profile Email Website
Shashank Sharma
Joined Jan 01, 1970
Posts: 1657
Location:New Delhi, India

Other Topics
Posted: Apr 29, 2008 1:56:02 PM
Subject: Simple, one-line command on startup?
[quote=Infinitus]Wow, it would be quite sad if nobody can figure out how to execute a simple command on logon... ._. It seems to be this way now...[/quote] Infinitus, first and foremost, be polite. The comment above does not guarantee speedier response. These might be of some help: http://www.visoracle.com/download/debian/localboot.html http://www.debian-resources.org/node/10

Coauthor of Beginning Fedora: From Novice to Professional published by Apress.

Please follow the Forum Guidelines

Back to top Profile Email Website Yahoo!
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya