Creation of new virtual desktop session with command line only

Forum / NoMachine for Linux / Creation of new virtual desktop session with command line only

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38924
    nomachine_sg
    Participant

    Hi,

    I’d like to create a new virtual desktop from a crontab, meaning with only command line and no wizard GUI.

    Trying to use the following command on Centos 7 and nxplayer 7:

    /usr/NX/bin/nxplayer --session mysession.nxs --new-session

    But this command is opening a wizard GUI and cannot be automatized.

    Is there some options to set into mysession.nxs to run nxplayer in headless mode? Or in server.cfg / node.cfg ?

    Thanks,

    Jean-Paul

    #38954
    Britgirl
    Participant

    Hi, take a look at this article in our knowledge base 🙂

    How to start the session by passing options to the client from command line
    https://kb.nomachine.com/AR02P00963

    #38980
    nomachine_sg
    Participant

    Hi @britgirl,

    Working fine!

     

    With the following config in player.cfg:

    <option key="Show address retrieving tutorial" value="false" />

    <option key="Show connection wizard tutorial" value="false" />

    <option key="Show opening menu panel tutorial" value="false" />

    <option key="Show menu panel tutorial" value="false" />

    <option key="Show video toolbar tutorial" value="false" />

    The session can start from a headless machine with this command:
    xvfb-run /usr/NX/bin/nxplayer --session test.nxs

    Thanks a lot for your help,

    Jean-Paul

     

    #38988
    Britgirl
    Participant

    Great Jean-Paul, thanks for letting us know!

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

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