{"id":1343,"date":"2024-11-08T07:35:10","date_gmt":"2024-11-08T07:35:10","guid":{"rendered":"https:\/\/www.woojin.help\/?p=1343"},"modified":"2024-12-16T14:22:50","modified_gmt":"2024-12-16T14:22:50","slug":"post-update-setup-guide-for-atest-attersee-project","status":"publish","type":"post","link":"https:\/\/www.woojin.help\/ko\/post-update-setup-guide-for-atest-attersee-project\/","title":{"rendered":"ATest(Attersee Project)\uc5d0 \ub300\ud55c \uc5c5\ub370\uc774\ud2b8 \ud6c4 \uc124\uc815 \uac00\uc774\ub4dc"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><\/div>\n<p class=\"wp-block-paragraph\">\uc774 \uac00\uc774\ub4dc\uc5d0\uc11c\ub294 \uc790\ub3d9 \ud14c\uc2a4\ud2b8 \ubaa9\uc801\uc73c\ub85c \uc774\ubbf8\uc9c0 \uc5c5\ub370\uc774\ud2b8 \ud6c4 Linux \ud658\uacbd\uc744 \uc124\uc815\ud558\ub294 \ub370 \ud544\uc694\ud55c \ub2e8\uacc4\ub97c \uc124\uba85\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Table of Contents<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Network Settings for ETH1<\/li>\n\n\n\n<li>Screen Rotation Configuration<\/li>\n\n\n\n<li>PLC IP Configuration<\/li>\n\n\n\n<li>DEV PC IP Verification<\/li>\n\n\n\n<li>Disable wjStartup.service<\/li>\n\n\n\n<li>Install Java<\/li>\n\n\n\n<li>Download Selenium Server<\/li>\n\n\n\n<li>Edit wjStartUp.sh<\/li>\n\n\n\n<li>Download ChromeDriver<\/li>\n\n\n\n<li>Enable SSH on Linux<\/li>\n\n\n\n<li>Install VNC Server<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">1. Network Settings for ETH1<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configure the network settings for <code>ETH1<\/code> as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>IP Address<\/strong>: <code>xx.x.x.xxx<\/code> (Set a specific IP)<\/li>\n\n\n\n<li><strong>Gateway<\/strong>: <code>10.1.1.1<\/code><\/li>\n\n\n\n<li><strong>DNS Nameservers<\/strong>: <code>8.8.8.8<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure these settings are correctly applied in the <strong>Network Settings<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Screen Rotation Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adjust the screen orientation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <code>Start -&gt; Preferences -&gt; Touch Screen Settings<\/code>.<\/li>\n\n\n\n<li>Set <code>eDP-1<\/code> to <strong>90\u00b0<\/strong> rotation.<\/li>\n\n\n\n<li>\ub538\uae4d \ud558\ub294 \uc18c\ub9ac <code>Apply<\/code>, then <code>Save<\/code>, and select <code>System-wide<\/code> to apply changes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. PLC IP Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the Visu settings, configure the IP address for the <strong>PLC<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <code>Visu Settings -&gt; IP_ARwin<\/code>.<\/li>\n\n\n\n<li>Set the required IP address for PLC communication.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. DEV PC IP Verification<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check the IP of the <strong>DEV PC<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This IP will be required for Selenium setup. Make sure to note it down.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. Disable wjStartup.service<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To prevent the visual interface from auto-starting, disable the <code>wjStartup.service<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>systemctl --user stop wjStartup.service\nsystemctl --user disable wjStartup.service<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. Install Java<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Update the package list and install Java Runtime Environment (JRE) and Java Development Kit (JDK):<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>sudo apt update\nsudo apt install default-jre\nsudo apt install default-jdk\njava -version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7. Download Selenium Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download the Selenium server (suggested on a separate PC, then transfer via USB if needed):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download link for Selenium Server: <a href=\"https:\/\/www.selenium.dev\/downloads\/\">https:\/\/www.selenium.dev\/downloads\/<\/a><\/li>\n\n\n\n<li>Copy the downloaded file to Linux: <code>\/woojin\/ATest<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">8. Edit wjStartUp.sh<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the <code>wjStartUp.sh<\/code> file in <code>\/woojin<\/code> to allow Selenium to start with Linux:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the file <code>\/woojin\/wjStartUp.sh<\/code>.<\/li>\n\n\n\n<li>Add the following lines to start the Selenium server:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code># Start selenium-server\njava -jar \/woojin\/ATest\/selenium-server-4.23.0.jar node --hub http:\/\/&lt;IP.Dev.PC&gt;:4444<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>&lt;IP.Dev.PC&gt;<\/code> with the actual IP address of the DEV PC.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9. Download ChromeDriver<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To enable Selenium to control Chromium:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ensure that <code>chromium --version<\/code> on Linux matches <code>chromedriver --version<\/code>.<\/li>\n\n\n\n<li>Download the ChromeDriver (it may be easier to download on another PC and transfer via USB):\n<ul class=\"wp-block-list\">\n<li>ChromeDriver Download Link: <a href=\"https:\/\/googlechromelabs.github.io\/chrome-for-testing\/\">https:\/\/googlechromelabs.github.io\/chrome-for-testing\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Place it in Linux at <code>\/woojin\/ATest<\/code> and run the following commands:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>unzip \/woojin\/ATest\/chromedriver-linux64.zip\ncd chromedriver-linux64\nsudo mv chromedriver \/usr\/local\/bin\/\nsudo chmod +x \/usr\/local\/bin\/chromedriver\nchromedriver --version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">10. Enable SSH on Linux<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enable SSH for remote access:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>sudo apt update\nsudo apt install openssh-server\nsudo systemctl enable ssh\nsudo systemctl start ssh\nsudo systemctl status ssh\nsudo ufw allow ssh\nsudo ufw enable<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To connect from the Dev PC:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>ssh woojin@&lt;IPVisuPC&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>&lt;IPVisuPC&gt;<\/code> with the Linux PC\u2019s IP.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">11. Install VNC Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To enable remote graphical access via VNC:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Update packages and install <code>x11vnc<\/code>:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>sudo apt update\nsudo apt install x11vnc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To start the VNC server manually:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>x11vnc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To stop the VNC server manually:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>pkill x11vnc<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">End of Guide<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps to complete the post-update setup of the Linux environment for automated testing on the Attersee project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>This guide outlines the steps required to set up the Linux environment after an image update for automated testing purposes. [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1343","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":4,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":1510,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1343\/revisions\/1510"}],"wp:attachment":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}