cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Creating an app build environment using a proxy

Creating an app build environment using a proxy

mas5mfd
Member

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

4 REPLIES 4

CodeShepherd
Community Moderator
Community Moderator

@mas5mfd 

There is a new video comming up how to use the new (from 1.14 on) ctrlX WORKS function to automatically set up a development environment based on QUEMU.

ctrlX WORKS instalation buildenvironment.png

ctrlX WORKS app build environments.png

mas5mfd
Member

Hi,

this is very good news. However, there seem to be no way of configuring the use of the proxy from inside the Bosch network. Therefore, most update and install operations on the virtual machine are failing, and direct internet connection appears to be suppressed too.

Is there a workaround?

Sergio

CodeShepherd
Community Moderator
Community Moderator

Like mentioned in the documentation of the SDK we are using Px.exe as a tool to have a proxy in company networks. This is working quite smooth for most of the cases.

nickH
Community Moderator
Community Moderator

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
    nickH_0-1657002801048.png

     

  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 boschrexroth@127.0.0.1" (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. 
    2022-07-05_08h46_48.png
    nickH_1-1657003912030.png

     

 

 

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

 

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist