aMule Forum
English => aMule Help => Topic started by: ozyboy 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
-
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
-
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.
-
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
-
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
-
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
-
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
-
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 &
-
It0d be great if you added it into wiki at http://wiki.amule.org ;-)
Good work!
-
http://www.amule.org/wiki/index.php?title=How_to_launch_aMule_at_Linux_boot
Take it a look at keep up the good work!
-
Tnx Jacobo221 for adding it to the wiki,
I will check it...