Post-Update Setup Guide for ATest (Attersee Project)

This guide outlines the steps required to set up the Linux environment after an image update for automated testing purposes.

Table of Contents

  1. Network Settings for ETH1
  2. Screen Rotation Configuration
  3. PLC IP Configuration
  4. DEV PC IP Verification
  5. Disable wjStartup.service
  6. Install Java
  7. Download Selenium Server
  8. Edit wjStartUp.sh
  9. Download ChromeDriver
  10. Enable SSH on Linux
  11. Install VNC Server

1. Network Settings for ETH1

Configure the network settings for ETH1 as follows:

  • IP Address: xx.x.x.xxx (Set a specific IP)
  • Gateway: 10.1.1.1
  • DNS Nameservers: 8.8.8.8

Ensure these settings are correctly applied in the Network Settings.

2. Screen Rotation Configuration

Adjust the screen orientation:

  • Navigate to Start -> Preferences -> Touch Screen Settings.
  • Set eDP-1 to 90° rotation.
  • Click Apply, then Save, and select System-wide to apply changes.

3. PLC IP Configuration

In the Visu settings, configure the IP address for the PLC:

  • Go to Visu Settings -> IP_ARwin.
  • Set the required IP address for PLC communication.

4. DEV PC IP Verification

Check the IP of the DEV PC:

  • This IP will be required for Selenium setup. Make sure to note it down.

5. Disable wjStartup.service

To prevent the visual interface from auto-starting, disable the wjStartup.service:

systemctl --user stop wjStartup.service
systemctl --user disable wjStartup.service

6. Install Java

Update the package list and install Java Runtime Environment (JRE) and Java Development Kit (JDK):

sudo apt update
sudo apt install default-jre
sudo apt install default-jdk
java -version

7. Download Selenium Server

Download the Selenium server (suggested on a separate PC, then transfer via USB if needed):

8. Edit wjStartUp.sh

Edit the wjStartUp.sh file in /woojin to allow Selenium to start with Linux:

  1. Open the file /woojin/wjStartUp.sh.
  2. Add the following lines to start the Selenium server:
# Start selenium-server
java -jar /woojin/ATest/selenium-server-4.23.0.jar node --hub http://<IP.Dev.PC>:4444

Replace <IP.Dev.PC> with the actual IP address of the DEV PC.

9. Download ChromeDriver

To enable Selenium to control Chromium:

  1. Ensure that chromium --version on Linux matches chromedriver --version.
  2. Download the ChromeDriver (it may be easier to download on another PC and transfer via USB):
  3. Place it in Linux at /woojin/ATest and run the following commands:
unzip /woojin/ATest/chromedriver-linux64.zip
cd chromedriver-linux64
sudo mv chromedriver /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
chromedriver --version

10. Enable SSH on Linux

Enable SSH for remote access:

sudo apt update
sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl status ssh
sudo ufw allow ssh
sudo ufw enable

To connect from the Dev PC:

ssh woojin@<IPVisuPC>

Replace <IPVisuPC> with the Linux PC’s IP.

11. Install VNC Server

To enable remote graphical access via VNC:

  1. Update packages and install x11vnc:
sudo apt update
sudo apt install x11vnc

To start the VNC server manually:

x11vnc

To stop the VNC server manually:

pkill x11vnc

End of Guide

Follow these steps to complete the post-update setup of the Linux environment for automated testing on the Attersee project.

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Scroll to Top
0
Would love your thoughts, please comment.x
()
x