이 가이드에서는 자동 테스트 목적으로 이미지 업데이트 후 Linux 환경을 설정하는 데 필요한 단계를 설명합니다.
Table of Contents
- Network Settings for ETH1
- Screen Rotation Configuration
- PLC IP Configuration
- DEV PC IP Verification
- Disable wjStartup.service
- Install Java
- Download Selenium Server
- Edit wjStartUp.sh
- Download ChromeDriver
- Enable SSH on Linux
- 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-1to 90° rotation. - 딸깍 하는 소리
Apply, thenSave, and selectSystem-wideto 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):
- Download link for Selenium Server: https://www.selenium.dev/downloads/
- Copy the downloaded file to Linux:
/woojin/ATest
8. Edit wjStartUp.sh
Edit the wjStartUp.sh file in /woojin to allow Selenium to start with Linux:
- Open the file
/woojin/wjStartUp.sh. - 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:
- Ensure that
chromium --versionon Linux matcheschromedriver --version. - Download the ChromeDriver (it may be easier to download on another PC and transfer via USB):
- ChromeDriver Download Link: https://googlechromelabs.github.io/chrome-for-testing/
- Place it in Linux at
/woojin/ATestand 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:
- 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.