Jump to content

Welcome, Guest!

Sign in to follow this  
letdarri

run transmission at the boot

Recommended Posts

Hi all,

What should I do to start a program (like transmission) to boot directly without connecting the monitor and keyboard?

I already deleted the login, but I can not find which file to insert a command or script to automatically start the programm at startup the card.

 

 

Thank

Share this post


Link to post
Share on other sites

I have installed transmission-daemon on my RPI and it autostart on the boot without edit any file.

 

Try "sudo service transmission-daemon start" to know if it's running.

 

Excuse my english. ;D

 

Enviado desde mi GT-I9100 usando Tapatalk 2

Share this post


Link to post
Share on other sites
I have installed transmission-daemon on my RPI and it autostart on the boot without edit any file.

 

Try "sudo service transmission-daemon start" to know if it's running.

 

Excuse my english. ;D

 

 

 

 

Enviado desde mi GT-I9100 usando Tapatalk 2

 

 

But just need to install transmission-daemon and no script or another command in some boot files?

Share this post


Link to post
Share on other sites

Hello letdarri.

 

After a Google search I found editing the rc.local file will auto start programs. This one is located at /etc/rc.local

You will need to know where your program has been installed and here are a few examples:

 

TightVNCServer : /usr/bin/sudo -u pi vncserver

VPN Server : /usr/sbin/pppd

 

Hope this helps.

Share this post


Link to post
Share on other sites
Hello letdarri.

 

After a Google search I found editing the rc.local file will auto start programs. This one is located at /etc/rc.local

You will need to know where your program has been installed and here are a few examples:

 

TightVNCServer : /usr/bin/sudo -u pi vncserver

VPN Server : /usr/sbin/pppd

 

Hope this helps.

 

Hello Mr Mark,

The rc.local file by default is:

 

#!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

 

# Print the IP address

_IP=$(hostname -I) || true

if [ "$_IP" ]; then

printf "My IP address is %s\n" "$_IP"

fi

 

exit 0

 

 

 

 

 

where do I enter the command to launch my program?

Share this post


Link to post
Share on other sites

Insert it before the "exit 0" line. After this and it won't work.

So, my file looks like:

 

#!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

 

# Print the IP address

_IP=$(hostname -I) || true

if [ "$_IP" ]; then

printf "My IP address is %s\n" "$_IP"

fi

 

# Start TightVNC Server

/usr/bin/sudo -u pi vncserver

 

# Start VPN Server

/usr/sbin/pppd

 

exit 0

The lines starting with hash ("#") are comments only and make it easier for me when I come back at a later date.

The line of code under it point to the executable (is that what you Linux guys call it? I'm from a Windows background.) and runs the application. Sorry if the terminology is wrong but hopefully this helps.

 

Mark

 

PS: I know nothing of the cron scheduling but I can see where it would be handy.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer

×
×
  • Create New...