aaron9615
Posts: 2
Joined: Sat Feb 02, 2013 10:11 pm

rdesktop startup script

Sat Feb 02, 2013 10:20 pm

First off let me begin by saying I am new to Linux. Currently I have rdesktop working with the raspberry PI, but what I would like to do is build at startup script to launch rdesktop upon boot. How can this be done?

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: rdesktop startup script

Sun Feb 03, 2013 3:16 am

How do you run it now? Post your command.

Edit /home/pi/.bashrc ("nano /home/pi/.bashrc") and place your command in there (at the end)

Code: Select all

# # rdesktop section
# # All commands here will be run at login
#
# 
rdesktop <arguments>

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: rdesktop startup script

Sun Feb 03, 2013 3:18 am

Take care when learning Linux (and many other OSes) that there is a huge difference between running something at boot, and running something at login.

My instructions will launch your app at login (which could easily be minutes/hours/days/weeks after boot).

To launch something at boot, you would use /etc/rc.local but that is not suitable for running your rdesktop scenario.

aaron9615
Posts: 2
Joined: Sat Feb 02, 2013 10:11 pm

Re: rdesktop startup script

Sun Feb 03, 2013 3:11 pm

Currently I just run it through CLI, but I want to automate the process. I just looked for /home/pi/.bashrc and .bashrc does to exist. Do I need to create it?

Pr0xyWash0r
Posts: 1
Joined: Sun Mar 17, 2013 2:09 pm

Re: rdesktop startup script

Sun Mar 17, 2013 4:13 pm

tonyhughes wrote:How do you run it now? Post your command.

Edit /home/pi/.bashrc ("nano /home/pi/.bashrc") and place your command in there (at the end)

Code: Select all

# # rdesktop section
# # All commands here will be run at login
#
# 
rdesktop <arguments>
this subject interests me too, doing what you said does indeed load it after login, but it seems i need it to load after "startx". When i run it as you said it runs from the console and gives me "Error: Failed to open display".

Return to “Debian”