![]() |
Startup Script
I'm looking for a way to setup my n770 so that once it starts up, it automatically uses rdesktop to connect to a server. Preferrably it'd type in the IP, username, and password for me, but even just starting that program would be great.
Is there a script I could write that would allow me to do this? Thanks, Brett |
Re: Startup Script
first thing is to determine if the rdestop binary file takes command like parameters. if it does, figure out what ones have to be specified, their appropriate values, and attempt to launch the session you desire, from the command line.
if that works, you could put the start up script in place. i dont know if there is a user accessible startup option, which would make things easier. if that doesnt exist, read up on startup scripts and /etc/init.d and /etc/rc2.d filesystems |
Re: Startup Script
So the first thing I have to do is find the rdesktop binary file in my n770's file system. Keep in mind i'm very new to linux in general.
I navigate through xterm, and open the "/etc/" folder. Thats where a lot of the applications seem to be, but I don't see an "rdesktop" folder or anything that may contain it. Might be easier with a gui file manager but i can't get to the main filesystem through the stock one. Thanks for the help. Brett |
Re: Startup Script
Quote:
If you can run the command "rdesktop" then that is the executable. You can then run "rdesktop --help" to get the available command-line options. |
Re: Startup Script
The easiest way to find a binary file is to use the command which
Code:
root@Nokia-N800-26 # which rdesktop http://www.linuxcommand.org/man_pages/rdesktop1.html Something like the following should work: Code:
rdesktop -u username -p password windowsServerName |
Re: Startup Script
When I run 'rdesktop', i get the following error:
Quote:
Any idea why? |
Re: Startup Script
try rdesktop --help.
it may require certain parameters which the GUI specifies, when calling the app. |
Re: Startup Script
Same error when i do:
rdesktop --help Tried uninstalling / reinstalling - still have the problem. |
Re: Startup Script
since i dont have it installed, i am guessing here. try this one out...
sudo rdesktop or sudo gainroot rdesktop it may be that the user has sudo access to the app, and as plain old "user" in xterm, you arent using the sudo access. |
Re: Startup Script
Yep, when I got the error I was root. Any other ideas?
I'm surprised i'm the only one with this problem, I don't see it anywhere else. Brett |
All times are GMT. The time now is 10:54. |
vBulletin® Version 3.8.8