Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/09/2011, à 11:46

Twi

Fluxbox lancer un sevreur au demarrage automatiquement?

Bonjour,

Sur Fluxbox, j'aimerais lancer un serveur automatiquement. J'ai configurer Minecraft serveur, je peux le lancer en ligne de commande mais je voudrais le lancer au demarrage en même temps que l'ordinateur... mais je n'arrive pas...

Voici la commande pour lancer en ligne de commande:

java -Xmx1024M -Xms1024M -jar /home/vincent/minecraft/minecraft_server.jar nogui

Et voici mon fichier Startup de fluxbox:

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/vincent/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/vincent/.fluxbox/log"
exec java -Xmx1024M -Xms1024M -jar /home/vincent/minecraft/minecraft_server.jar nogui

Il y a surement une erreur.. mais la doc sur Fluxbox > Startup ne m'aide pas ou je ne comprend pas... Comment faire?

' je ne connais pas grand chose dans ce domaine "linux" '

Merci

Hors ligne

#2 Le 09/09/2011, à 22:14

maman

Re : Fluxbox lancer un sevreur au demarrage automatiquement?

salut,
il faut que tu places ta commande avant "exec fluxbox"

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/vincent/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec java -Xmx1024M -Xms1024M -jar /home/vincent/minecraft/minecraft_server.jar nogui

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "/home/vincent/.fluxbox/log"

La source : http://fluxbox-wiki.org/index.php?title … artup_file

C'est très chouette Fluxbox. smile
@+


90% of teens today would die if Facebook was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.

Hors ligne