ATest(Attersee Project)에 대한 업데이트 후 설정 가이드

이 가이드에서는 자동 테스트 목적으로 이미지 업데이트 후 Linux 환경을 설정하는 데 필요한 단계를 설명합니다.

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.
  • 딸깍 하는 소리 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.

구독하다
알림
0 댓글
가장 오래된
최신 가장 많이 투표된
인라인 피드백
모든 댓글 보기
위로 스크롤
0
여러분의 생각을 들려주시면 감사하겠습니다. 댓글로 남겨주세요.엑스