Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Logmein Hamachi Plugin for v5b11+

Featured Replies

My newest plugin, a big thanks for gfjardim for compiling Hamachi in the first place!

 

This plugin is still in beta as I have not been able to get the update function working on the configuration (Hopefully Prostuff or Joe can help?)

 

This plugin installs LogMeIn Hamachi, Configures it, and gives you a nice Web Interface to manage it.

 

Please let me know what you think!

 

logmein_hamachi_screenshot.jpg

 

Download the latest Version Here:

http://dl.dropbox.com/u/8699829/logmein-hamachi-1.0.2-noarch.plg

 

Download Previous Versions:

http://dl.dropbox.com/u/8699829/logmein-hamachi-1.0.1-noarch.plg

http://dl.dropbox.com/u/8699829/logmein-hamachi-1.0.0-noarch.plg

 

Original LogMeIn Hamachi Thread: http://lime-technology.com/forum/index.php?topic=7248.0

My newest plugin, a big thanks for gfjardim for compiling Hamachi in the first place!

 

This plugin is still in beta as I have not been able to get the update function working on the configuration (Hopefully Prostuff or Joe can help?)

I have not looked at Hamachi so am not sure what config file you are talking about.

 

A little more detail might help.

Here is an example form to update the nickname.  You will also need to store the configuration values on the flash somewhere, so they can be reapplied on a reboot.

 

     <form method="post" name="/update.htm" target="progressFrame">
        <input type="hidden" name="cmd" value="/usr/bin/hamachi">
        <input type="hidden" name="arg1" value="attach">

        <td><input type="text" name="arg2" maxlength="20" value="<?  print substr($lines['9'],21);?>"></td>
        <td><input type="submit" name="act_nickname" value="update"></td>
      </form>

 

Instead of executing /usr/bin/hamachi directly you could call a script that will stored the arguments in a config file on the flash, then execute the /usr/bin/hamachi command.  Also edit your php page to read that config file on load and apply the stored values to the appropriate textbox.

  • Author

My newest plugin, a big thanks for gfjardim for compiling Hamachi in the first place!

 

This plugin is still in beta as I have not been able to get the update function working on the configuration (Hopefully Prostuff or Joe can help?)

I have not looked at Hamachi so am not sure what config file you are talking about.

 

A little more detail might help.

 

Prostuff: in order to configure Hamachi without this web interface it would need to be completed from the command line, these are the three commands needed to configure hamachi.

 

hamachi login
hamachi set-nick <nickname>
hamachi attach <LogMeIn account>

 

Here is an example form to update the nickname.  You will also need to store the configuration values on the flash somewhere, so they can be reapplied on a reboot.

 

Code:

    <form method="post" name="/update.htm" target="progressFrame">

        <input type="hidden" name="cmd" value="/usr/bin/hamachi">

        <input type="hidden" name="arg1" value="attach">

 

        <td><input type="text" name="arg2" maxlength="20" value="<?  print substr($lines['9'],21);?>"></td>

        <td><input type="submit" name="act_nickname" value="update"></td>

      </form>

 

Instead of executing /usr/bin/hamachi directly you could call a script that will stored the arguments in a config file on the flash, then execute the /usr/bin/hamachi command.  Also edit your php page to read that config file on load and apply the stored values to the appropriate textbox.

 

I tried the example you posted but it still didn't do anything but refresh the page? Can you give me an example on how to write the config variable to a file and then have it run the commands?

since I am running blind here and have never used Himachi I have no idea what is supposed to happen when those commands are run.

 

When you run

hamachi login

from the command line does anything get spit back into the console window?  And with the other 2 commands can the same be said?

  • Author

since I am running blind here and have never used Himachi I have no idea what is supposed to happen when those commands are run.

 

When you run

hamachi login

from the command line does anything get spit back into the console window?  And with the other 2 commands can the same be said?

 

It does in fact spit something back letting you know it was sucessful

 


root@Tower:/var/lib/logmein-hamachi# hamachi set-nick Tower22
Setting nickname .. ok

  • Author

Ok here is a second version of the plugin. I have stripped away alot of extra code and have it reading a config file. The only piece missing yet is writing a new config from the php form.

 

http://dl.dropbox.com/u/8699829/logmein-hamachi-1.0.1-noarch.plg

 

edit: Ok I have mirrored most of the code that LimeTech provided with the Slimserver plugin as well as SEEDrs with his APCUPSD Plugin and yet I still cannot get it to save the configuration values like it should???

<!-- Save Configuration File -->
<FILE Name="/boot/config/plugins/logmein-hamachi/apply"  Mode="0770">
<INLINE>
<![CDATA[
#!/bin/sh

write_config() {
  echo "# hamachi configuration" > /boot/config/plugins/logmein-hamachi/hamachi.cfg
  echo "ACCOUNT=\"$ACCOUNT\"" >> /boot/config/plugins/logmein-hamachi/hamachi.cfg
  echo "NICKNAME=\"$NICKNAME\"" >> /boot/config/plugins/logmein-hamachi/hamachi.cfg
}

apply_hamachi_config() {
  hamachi set-nick '$NICKNAME'
  hamachi attach '$ACCOUNT'
}
ACCOUNT=$1
NICKNAME=$2

#you need to add the following to run the functions.
write_config
apply_hamachi_config

]]>
</INLINE>
</FILE>

 

Your apply script never runs the write_config or apply_hamachi_config functions.  See my changes above. I'd suggest adding a option to enable or disable the plugin from the settings menu.

 

  • Author

<!-- Save Configuration File -->
<FILE Name="/boot/config/plugins/logmein-hamachi/apply"  Mode="0770">
<INLINE>
<![CDATA[
#!/bin/sh

write_config() {
  echo "# hamachi configuration" > /boot/config/plugins/logmein-hamachi/hamachi.cfg
  echo "ACCOUNT=\"$ACCOUNT\"" >> /boot/config/plugins/logmein-hamachi/hamachi.cfg
  echo "NICKNAME=\"$NICKNAME\"" >> /boot/config/plugins/logmein-hamachi/hamachi.cfg
}

apply_hamachi_config() {
  hamachi set-nick '$NICKNAME'
  hamachi attach '$ACCOUNT'
}
ACCOUNT=$1
NICKNAME=$2

#you need to add the following to run the functions.
write_config
apply_hamachi_config

]]>
</INLINE>
</FILE>

 

Your apply script never runs the write_config or apply_hamachi_config functions.  See my changes above. I'd suggest adding a option to enable or disable the plugin from the settings menu.

 

 

SeeDrs: Thanks for the guidance, I now have it working correctly. Hopefully everyone will give it a try and see what they think!

 

New Version: http://dl.dropbox.com/u/8699829/logmein-hamachi-1.0.2-noarch.plg

If I want to give your plugin a shot, do I need to clear out the config from the previous package?

  • 1 month later...

Hello,

 

After installed the last version, the interface show up a new module in the utils panel.

I have entered my logmein account sucessfully.

 

What should i do now to use it? I can't find the new entry in my logmein computer accounts.

 

Thank you

 

 

For starting the service and stopping it I think the command h2control must be used to maintain the id and to autologin on reboot. Remember to create the folder "/boot/custom/hamachi" manualy so the h2control can keep the config between reboots.

 

it is possible to change the plugin to use this command?

 

once connected the command h2control save must be used.

 

thanks.

  • 2 weeks later...

neokiller62,

 

You will need to telnet and login  into your server and enter the command "hamachi -l"

 

This should provide you with a list  commands.

 

Basically you need:

to create a vpn, login and join it.

 

enter - hamachi                                            ---- - this should provide you with the current settings of hamachi

 

 

hamachi create unraidvpn1 testpassword            ----- this will create a vpn called unraidvpn1 with a password of testpassword

 

NOTE: since you just created the vpn it will log you in and you wont need to join it either , since you are the owner .

 

When finished in the unraid server  enter h2control   - i believe this saves the current settings.

 

Now go to Windows:

 

Run the Hamachi Windows Client and join your new vpn - (unraidvpn1 and enter your password you should see the unraid computer)

---------------------------------------------------------------------------------------------------------

 

You could also run your hamachi Windows client and create a network (vpn),  then on the Unraid Computer, issue the commands to join  and login the existing network.

 

hamachi join xxxxxx yyyy        -----  xxxxxx is the name of the existing network  and yyy is the password

hamachi login xxxxxx yyyy        -----  xxxxxx is the name of the existing network  and yyy is the password

 

when finished in the unraid server  enter h2control   - i believe this saves the current settings.

 

Hopes this helps

Joe

 

 

  • 3 months later...

pardon me for being noob.

 

are there any simple way to update hamachi other than manually make install tgz?

 

when i type hamachi check-update, a new version is available.

 

thanks.

i noticed that everytime i restart my unraid server, hamachi.cfg file is resetted to default.

into this

 

# LogMeIn Hamachi configuration

ACCOUNT=""

NICKNAME="Tower"

 

no matter what i change, it will revert back to that. plus the client id is changing everytime it restarted. plus lmi account is detached everytime it is restarted. i dont think the configuration ui ever works.

 

what should i do to make the settings change stick without modifying plg file?

 

thanks.

  • 2 months later...

influencer  could you update this one too ?

 

thx in advance

 

 

  • 3 weeks later...

Hi all I already have Himachi running but not this GUI version, shall I update or let it be alone ..??

I know I'm on shaky ground here, but I thought I'd post anyway.

 

I had installed W-W's version of Hamachi 2 - no problem - works great, but no real webgui/unraid integration.

 

Took a look at the 1.02 version of the plugin - edited to reflect W-W's new build - sorta works.

 

There's references to an "h2control" script in this thread - but I see nothing in W-W's build or the plg.

 

From what I can see, there's no mechanism for contents of /var/lib/logmein-hamachi to be persistant between boots.

 

So... perhaps someone here can save me some digging:

 

1) did the current 1.02 plugin from this thread ever have a means of /var/lib/logmein-hamachi to be persistant?  If so, how/where?

2) where did h2control come from and where is it now?

 

These are not functional issues - VPN snaps into place via cli no problem.  Just would be nice to have all this tidy in a working plugin.

 

Thanks in advance.

no need ;)

 

https://dl.dropbox.com/u/49442039/hamachi-2.1.0.17-i486-1_W-W.txz

MD5 d4f1c8485573bbf36f486defc7d3f0f2

 

Just to be clear ...

I never used above download cause it has no gui and couldn't configure it right

i went with the original OLD version which still works ....

It would be nice though if somebody just updated the version in the original script...

since i don;t know if it needs compiling/ changing things or not .... don't i dare just change the url and MD5

 

Well, that's my problem.  I'm not smart enough to have just installed the old plugin and been content.  I needed to install the latest hamachi and now I'm trying to mash the latest plugin and the W-W hamachi build together.

 

By all accounts, the old plugin works - but I just don't see how it's maintaining anything other than account name and nickname.  The whole /var/lib/logmein-hamachi directory never gets touched by the plugin code - and that's where all the config data is kept.  There's also no means in the plugin for establishing the initial connection.  If you can't manage the VPN, or save settings, then I'm not sure what the plugin is for.

 

At a minimum, I would have thought the plugin would have collected things like network ID and password - then had the ability to do a 'hamachi login' and a 'hamachi join' with some user feedback - at least a "connected" indication.  Once connected, I would have presumed a "save" action would have copied /var/lib/logmein-hamachi to /boot/config/plugins/logmein-hamachi (and then on reboot, the directory would be cp'd back).  There's none of this in the latest plugin - so I'm pretty sure that the expectation was that the plugin is just for starting/stopping the hamachi daemon and everything else is still via the command line.

 

I don't want to sound like I'm whining about the FREE plugin for the FREE vpn service not being implemented perfectly to my liking - I'm just trying to understand exactly WHAT worked in the 1.02 plugin so that I don't scratch my head too much trying to figure out why things don't work as I would have expected in my mash-up.

Well the original plugin on the first page of this thread only needs you to save one time and after that it reconnects after every reboot

 

the first post refers to this

 

# h2control (start|stop|restart|save)

 

You have to run "# h2control save" every time you change the configuration via terminal or via Logmein web page.

 

The rest of Hamachi configuration is up to you, guys, but running "# hamachi --help" should answer many questions.

 

Here I only set the machine nickname and attached the client via terminal, using these commands:

 

hamachi login

hamachi set-nick <nickname>

hamachi attach <LogMeIn account>

 

 

The rest was done via LogMeIn web page.

 

so once you set nick / login / and have attached the client you should do a h2control save

and after that you are all set...

it works for me on 2 machines...

 

the new plugin for ww i have no clue what it is ....  i tried it but couldn't find my way around in it .. so i just went back to the old one

Ok.  So the original plugin has a script called h2control that is absent in the W-W build - that's what I thought.

 

Also (as I suspected) the original plugin does not maintain any useful persistant data - you still need to use a separate CLI script (h2control).

 

No problem.  I'll dig for h2control in the original (W-W build works just fine - I'll probably try to add some of h2control's capability to the emhttp ui and forward to original creator).

 

I'm using the latest plugin (not W-W's build), but I've got two problems:

[*]The plugin fails to install on boot unless I comment out the line for the Hamachi logo download. I get a "failed download" error, and it stops there.

[*]Upon a successful install when booting up, Hamachi is fully configured, but doesn't log in. I added this to /boot/config/go: "(sleep 10 && hamachi login) &"

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.