Creating an app build environment using a proxy

Hello,

I have ctrlX Works 1.14.1 and MS VisualStudio 16.2.5 installed and I have generated a virtual ctrlX machine simply by pushing a button. Is there a way to get the samples imported and compiled without going through the whole procedure of setting up a QEMU virtual machine from scratch as described in the SDK tutorial video?

Sergio

Best reply by nickH

Hello Sergio, 

too quickly sum up the steps for you. 

  1. Please download Px for Windows and run it on your Windows Host.
  2. Create a new App Build Environment in ctrlX WORKS with the plus symbol. And please check the box for the proxy connection, which uses the default port 3128 of Px. See also this documentation. 

     

  3. Wait until the initialization is finished and the Virtual Environment shuts down itself
  4. Start your App Build Environment again
  5. Connect via ssh by simply clicking on the ssh connection e.g.: "ssh -p 10022 [email protected]" (the password is boschrexroth)
  6. Run the install scripts in the App Build Environment to download the SDK and install further packages (snapcraft, dotnet, go, nodejs)

 

 

./install-snapcraft.sh
./install-sdk.sh

#you only need to execute these scripst if you want to use one of these languages:
./install-dotnet-sdk.sh
./install-go.sh
./install-nodejs-npm.sh​

 

  1. Install Visual Studio Code (not Visual Studio!) on your Windows Host. You can find a short description and the link to the download here.
  2. Install the extension "Remote - SSH" in Visual Studio Code. Now it is possible to create a ssh connection form Visual Studio Code to the App Build Environment. Click on the Remote Explorer in the Sidebar -> Add new [+] -> type in the SSH connection "ssh -p 1022 bos.....". Select where you want to save this and your host is added. Now you can connect to your App Build Environment. 

     

 

 

Please let me know if this short summary was helpful for you. I hope it will get easier, when our How-To video can be published. 

 

Best regards,

Nick

 

 

View original
4 replies