NoMachine host not appearing connections list after installing cloned image

Forums / NoMachine for Linux / NoMachine host not appearing connections list after installing cloned image

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11504
    Avataralteredstate
    Participant

    Hello everyone,

    I recently installed NoMachine Linux 5.1.26 (free version) on a PC running Xubuntu 14.04.4 LTS kernel: 3.13.0-87-generic.  The hostname and username for that machine were both: 437 and after the NoMachine installation was finished I then made a clone image of that machine using Clonezilla.  I then proceeded to clone that image on another PC but this time I changed the username and hostname to: 438 (changed IP as well).  NoMachine appears to be working okay on 438 and I can create a “New Connection” and connect to it that way but when I use my NoMachine client on a third machine and “Browse Connections” I only see 437.  Do I need to change some hostname files specific to the NoMachine installation in order for 438 to appear under “Browse Connections” or is it something else?

    #11515
    Avatarkroy
    Contributor

    For every installation there should be another UUID: you’ve cloned the machine with an already installed NoMachine with known UUID, thats why the machine isn’t visible. You can fix this by changing UUID by hand:

    – edit uuid, and change value inside (sudo vim /usr/NX/etc/uuid)
    – edit nodes.db and enter already changed UUID (sudo vim /usr/NX/etc/nodes.db)
    – restart nxserver (sudo /usr/NX/bin/nxserver --restart)

    #11541
    Avataralteredstate
    Participant

    Thank you very much as this seems to have worked perfectly!  Do you see any problem in using: uuidgen to generate entirely new uuid’s and adding them to these two files?  I would like to use uuidgen in a script to automate task.

    #11547
    Avatarkroy
    Contributor

    Yes you can, but we would prefer to use commands as root:

    NX_SYSTEM=”/usr/NX” LD_LIBRARY_PATH=”/usr/NX/lib:$LD_LIBRARY_PATH” /usr/NX/bin/nxkeygen -u > /usr/NX/etc/uuid

    sed  -i “s/\(^.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*,.*\),.*,/\1,$(cat /usr/NX/etc/uuid),/” /usr/NX/etc/nodes.db

    /usr/NX/bin/nxserver –restart

    #11635
    Avataralteredstate
    Participant

    Thank you Kroy for the information!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic was marked as solved, you can't post.