Reply
New Contributor
masterix
Posts: 1
0

Problems at startup on Mandriva

Hello!

I installed Hamachi on Mandriva and made it starting up with the system:

 

 cp /home/[MyUserName]/software/hamachi-0.9.9.9-20-lnx/hamachi /etc/init.d/

 

 # chmod +x /etc/init.d/hamachi

 

 # chkconfig --add hamachi

 

When the system starts up I can see that Hamachi is connected but I can't connect to my addres in fact (I do it from another Windows machine) and this address is not pingable though the address is marked with green star. From Mandriva I can't connect to the Windows machine as well. When I try to perform:

 # hamachi start

I receive an info that hamachi is already stated. When I try to perform:

# hamachi list

or

# hamachi login 

I receive info: Hamachi does not seem to be running. Have you run "hamachi start"?

 

Where is the problem? Firewalls are turned off on both machines. I'd be very gratefull if someone could help me with this issue.

 

 

 

Below is a full /home/[MyUserName]/software/hamachi-0.9.9.9-20-lnx/hamachi file (MyUserName I replaced with my real user name off course)

 

 

#!/bin/sh
# Hamachi startup script
# Original contributor post found at http://forums.hamachi.cc/viewtopic.php?t=3421
### BEGIN INIT INFO
# Provides: VPN Connection
# Default-Start: 3 4 5
# Short-Description: Starts the hamachi VPN daemon
# Description: Hamachi VPN zero-configuration client/server.
### END INIT INFO


hamachi_start() {
echo "Starting hamachi..."
/sbin/tuncfg
/usr/bin/hamachi -c /home/[YourUserName]/.hamachi start
/bin/chmod 760 /var/run/tuncfg.sock
/bin/chgrp [YourUserName] /var/run/tuncfg.sock
}

hamachi_stop() {
echo "Stopping hamachi..."
killall tuncfg
/usr/bin/hamachi -c /home/[YourUserName]/.hamachi stop
}

hamachi_restart() {
hamachi_stop
sleep 1
hamachi_start
}

case "$1" in
'start')
hamachi_start
;;
'stop')
hamachi_stop
;;
'restart')
hamachi_restart
;;
*)
hamachi_start
esac
New Contributor
TH14DB10
Posts: 4
0

Re: Problems at startup on Mandriva

Have you tried hamachi login / list etc as root?

 

This is the init script I use on CentOS 5

 

#!/bin/bash # # hamachi Startup script for the Hamachi # # chkconfig: - 91 35 # description: Starts and stops the Haachi Service # # Version 1.20 Jono Woodhouse 18 August 2006 # Copyright (c) 2006 CapeSoft Software (Pty) Ltd # Use a own Risk # Permission is granted to use this script # # install with: # chkconfig --add hamachi # chkconfig --level 345 hamachi on # chkconfig --list hamachi # # RETVAL=0 # start() { tuncfg hamachi -c /root/.hamachi start hamachi -c /root/.hamachi login } stop() { hamachi -c /root/.hamachi logout hamachi -c /root/.hamachi stop } install() { chkconfig --add hamachi chkconfig --level 345 hamachi on chkconfig --list hamachi } status() { hamachi -c /root/.hamachi get-nicks sleep 3 hamachi -c /root/.hamachi list } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status ;; install) install ;; restart) stop start ;; *) echo $"Usage: $prog {start|stop|restart|status|install}" exit 1 esac exit $RETVAL