Nomachine

Setting up your noMachine client -- the best way to access the Demography Lab remotely

Nomachine is an open source application tool that is used for taking the remote connections of the client machines as like VNC server. It uses “ NX” protocols for remote connections through nomachine and “ ssh” for secure shell login to client systems via text mode. Installation of Nomachine in Ubuntu is explained in this manual. NX technology (NoMachine) Proprietary: NoMachine 2003 2021 Proprietary: Yes No Oracle Secure Global Desktop Software/Sun VDI: AIP: Tarantella/Oracle Inc. 1997 2015-04, 5.2.903 Proprietary: No No Parsec: Proprietary: Parsec Cloud, Inc: 2016 2016-07, 3.5 Proprietary: Yes No Proxy Networks: Proprietary: Funk Software Inc. 1993 2020-01-29, 10.2. NoMachine is a popular remote desktop application. You can use it as the alternative of TeamViewer, which is available freely. Except for the Nomachine, the users have other choices like AnyDesk for the remote desktop, But NoMachine will provide you the better experience over any other remote desktop applications.

Below are instructions for setting up your personal computer to use the Virtual Demogrpahy Lab. For most people, the noMachine client will offer the fastest and best way of accessing the awesome array of Demography Lab services. It is easy and free to install. There are other options, however, so if this feels wrong check the Getting Started at the Demography Lab page for other possibilities.

The instructions below are mac-centric, owing to my lack of a windows machine with which to experiment. Please help improve them for windows users by sending instructions and screen shots to boe@demog.berkeley.edu. If you're a Linux user you'll be able to figure it out yourself...right?

  1. NoMachine is the fastest remote desktop software you have ever tried. In just a few clicks you can reach any computer in the world and start working on it as if it was right in front of you. The perfect travel companion, you can use it to.
  2. NoMachine enables you to access a graphical desktop of a computer over the network. Until version 3.x, NoMachine was known as NX and available under GPL. There are derivatives based on core NX libraries like FreeNX and X2Go.

Step by Step (First Time Setup)

  1. Get a userid:
    Acquire a valid Demography Lab userid/password
  2. Install the client software:
    Download and install the appropriate 'client' software You can download the no machine client software from https://www.nomachine.com/product&p=NoMachine%20Enterprise%20Client
    Choose the one that matches your operating system.
    You want the Enterprise client.Download and install accepting all of the defaults.
  3. Configure the noMachine Client:
  • Launch the noMachine client application
  • Create a 'new connection' when offered the chance
    This will launch a series of dialog screens. Mostly you'll choose the default options. exceptions in red
    • Protocol: NX
    • Host: nmx.demog.berkeley.edu ; Port: 4000; Use UDP for multimedia: yes
    • Authentication: Password
    • Proxy: Don't use a proxy
    • Save as Name: Best Demography Lab EVER
  1. Connect :
    Hit the 'Connect' button to connect for the first time
    • Enter your DemographyLab username and password -- If you don't have these then Go back to step 1
    • noMachine will then 'create a new desktop' for you..
      You can safely just click OK on the next 2 screens ultimately revealing... Your awesome new Linux Desktop (in a window on your local machine):

Nomachine.com

Mind bending truths about noMachine

Nomachine Linux

Nomachine

Your new remote Linux Desktop is a fully functioning Linux workstation running on a server in the cloud. You control it from your local machine through an application (the noMachine client) But the desktop in that window is NOT an application on your local machine. It does not, in fact, know anything about your local machine. This can be confusing because it seems like you have just launched an application --but you didn't just launch an application -- you connected to a server in the clouds.

It thus follows:

  • Files on your local machine are NOT readable/writable from applications running on the Linux Desktop.
    If you want to operate on the same files using both your personal computer and the Linux machine in the cloud, you must either Upload and download files (see Upoading?) Or share a directory using Dropbox.
  • Simply Closing the noMachine client will not (generally) cause Linux applications to stop
    This is more of a feature than a bug since long running applications don't require persistent connections -- but it also means Politeness is required: you must close applications individually or terminate your noMachine session explicitly in order to not waste resources%.

The workflow

The canonical method of using the server is :

  1. Lanch the noMachine client
  2. Select the saved connection called 'Best Demography Lab Ever' and Hit 'Connect'
    1. This will 'create a new virtual desktop'; prompt you for userid/password; and connect you to it. (After you click OK a few times)
  3. Do science
  4. Log out to 'terminate' your session
    When you have completed you work and are ready to take a nap:
    1. Close each application that you are running on the virtual Desktop
    2. Log Out of the Linux Server.

Connecting and Reconnecting Disconnecting vs Terminating a Session

Occaisionally, you will find that you are ready to take a nap before your scale model of the Universe has converged. One of the advantages of noMachine is that long running projects can continue to run while you pursue other important priorities. This is done by Disconnecting rather than Logging out (aka Terminating). When you disconnect from the Linux server, your session continues as if you were right there watching. R, Stata or whatever application you are running will just continue to tick over -- exploring whatever scientific cul-de-sac you have designated -- and wait patiently for you to reconnect.

Unless the server crashes in the mean time, you can reconnect and pickup where you left off by following the same procedure as you followed when there is no currently running session -- e.g. when you Logged out last time: Launch the noMachine client app; select the saved connection; hit connect.

How to DisconnectThough typically, you will want to be a good doobie and Log out when you are finished doing science for the day, to keep your session active in your absence you'll want to disconnect:

  • Find and click on the noMachine icon (generally) in the upper right corner of the screen
    Alternate keyboard shortcut: Ctrl+Alt+0 (zero not Oh)
  • Select 'Display':
  • Select 'Disconnect':

What could possibly go wrong ? (Troubleshooting)

  • Did you enter your Demography Lab userid/password? Your laptop probably knows you as 'Firstname Lastname' or your middle school nickname but the Demography Lab knows you as the userid/password that you specified on your confidential data form. If you are not sure about your userid and password try logging in using ssh. If that works then you'll know that your userid and password are valid.
  • The NoMachine client connects to the server on port 4000. This is the default setting so if you changed it, change it back to 4000.
    Unfortunately, the CalVisitor WiFi setup (and no doubt others in the wide world) promises only to allow connections on ports 80 and 443. So if you are having trouble connecting on CalVisitor, then it's worth the effort to get your AirBears2 working.
    • If you cannot or will not get AirBears2 to work, then you can use the SSH protocol in place of the standard NX protocol (Edit the saved connection or create a new connection if that suits you) see that *should* cause the Port to show 22 instead of 4000.
      It would be wise to make sure the ssh is working from your machine. Ssh not working, would indicate other sorts of network problems. See ssh
  • Might your firewall be overly paranoid? Try disabling the firewall for a minute to see if that clears up the problem.