aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: How to launch aMule at Linux boot  (Read 4517 times)

ozyboy

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
How to launch aMule at Linux boot
« on: March 24, 2004, 03:12:55 PM »

Hello,

I'm running amule under Mandrake 10.0 and i would like to launch amule at each linux boot

I know that i must put a file into /etc/init.d ........ but i don't know what file to copy

Can anybody help me ?

Thks

Ozyboy
Logged

Master

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 93
RE: How to launch aMule at Linux boot
« Reply #1 on: March 24, 2004, 03:56:38 PM »

I think amule runs under X. This means that you can not run amule at Linux boot, but as soon you run the WM. For that you need to put an entry in .Xsession. Although this never worked for me :D I am using KDE and I created a link and I put it in autostart foder. If you use Gnome, I believe there is something similar you can do
Logged

Frankk

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • http://frankk.no-ip.com
RE: How to launch aMule at Linux boot
« Reply #2 on: March 24, 2004, 04:28:28 PM »

Quote
Originally posted by ozyboy
Hello,

I'm running amule under Mandrake 10.0 and i would like to launch amule at each linux boot

I know that i must put a file into /etc/init.d ........ but i don't know what file to copy

Can anybody help me ?

Thks

Ozyboy

If you run kdm you can set it to automatically log in a user withount prompting you for login/password. So you can put amule in your .xinitrc and it will be launched at boot.

I dont know (never tryed) if there is a more simple solution.
Logged

torte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: How to launch aMule at Linux boot
« Reply #3 on: March 25, 2004, 07:49:21 AM »

If anybody is interested i could give some good advice on installing a vncserver that starts on boot and even loads amule. Also making the amule vnc server secure to be shared to other people.
I've got some configuration files I'm willing to post as long as you are willing to read.

What is VNC ? - VNC is a program that let's you view the desktop of your computer from a remote location. (With linux they are setup virtually - you can have many of them)

Steps in short:
1. Install aMule
2. Install any flavour of vnc
3. Get and install a VNC init-script that is configurable with for wich users to load a server (coming soon) and link the init-script to the runlevels in which the server should be started
4. Create a user amule (or whatever)
5. Make a configuration file with the users to be loaded a vnc server for
6. Login as amule
7. Use vncpass to create a pw for the vncserver for this user
8. edit the /home/amule/.vnc/xstartup to start amule directly or a keepalivescript (I've done mine with php as I'M no bash scripting expert)
i'll give the latter ones to you soon
9. decide whether to run a window manager or not (if not you can share it to other people having not to bother with them accessing your system but the amule)

This will give you a xdesktop independent amule so you can log off and on  on your local machine. In my configuration the amule can be seen using vncviewer hostname:2 - enter the pass and you are in.

BTW VNC can do other nifty things as well - remote login as any user and loading a xdesktop

Stay tuned
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: How to launch aMule at Linux boot
« Reply #4 on: March 25, 2004, 12:25:02 PM »

hi torte, if you like we could add your howto to our website (i'll need only that you write  step by step instructions)

thanky

d0lby

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 23
Re: How to launch aMule at Linux boot
« Reply #5 on: May 02, 2004, 04:39:42 AM »

Quote
Originally posted by torte
If anybody is interested i could give some good advice on installing a vncserver that starts on boot and even loads amule. Also making the amule vnc server secure to be shared to other people.
I've got some configuration files I'm willing to post as long as you are willing to read.

I'm really interested in this!
Please post a follow up! :D
Logged

niooi

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Exactly what I am planning to do
« Reply #6 on: May 25, 2004, 02:32:28 PM »

Hi

I have not touched linux for years now and I just installed a fresh copy of Debian Sarge.  I am not a linux guru and my goal is to set up a gateway with my old computer on my speedtouch modem.

Because my computer is so old (PII 233Mhz with 256Mb) I want to control it remotely using VNC. My question: could you provide us your tutorial please that would be greatly appreciated.

thanks

niooi
« Last Edit: May 25, 2004, 02:34:48 PM by niooi »
Logged

Frankk

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • http://frankk.no-ip.com
Re: How to launch aMule at Linux boot
« Reply #7 on: July 13, 2004, 01:55:53 PM »

I got this working with very simple configuration:

I added the rc.vnc script to /etc/rc.d

Modify user according to the user running amule.
The "rm /tmp/.X11-unix/X1" is there in case the server crashes or ur mother/wife removes the power plug cleaning the room...

--------Start of rc.vnc--------
#!/bin/sh
#
# Startup/Stop script for vncserver.
#

case "$1" in

'start')
   rm /tmp/.X11-unix/X1
   /bin/su - user -c "PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin /usr/bin/vncserver :1"  
   ;;

'stop')
   /bin/su - user -c "PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin /usr/bin/vncserver -kill :1"
   ;;

*)
   echo "Usage: /etc/init.d/rc.vnc { start | stop }"
   ;;

esac
--------End of rc.vnc--------


I modified the following files:

In "/etc/rc.d/rc.local" added:

# Start VNC server
if [ -x /etc/rc.d/rc.vnc ]; then
  . /etc/rc.d/rc.vnc start
fi


In "/etc/rc.d/rc.6" added:

# Shut down the VNC server
if [ -x /etc/rc.d/rc.vnc ]; then
  /etc/rc.d/rc.vnc stop
fi


In "~/.vnc/xstartup" (in home dir of the user specified above) added (change with your preferred startup script):

amule &
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: How to launch aMule at Linux boot
« Reply #8 on: July 13, 2004, 02:20:53 PM »

It0d be great if you added it into wiki at http://wiki.amule.org ;-)
Good work!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: How to launch aMule at Linux boot
« Reply #9 on: July 14, 2004, 09:10:35 AM »

Logged

Frankk

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • http://frankk.no-ip.com
Re: How to launch aMule at Linux boot
« Reply #10 on: July 14, 2004, 10:22:25 AM »

Tnx Jacobo221 for adding it to the wiki,
I will check it...
Logged