Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
0c35d583
Commit
0c35d583
authored
Feb 06, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All is provided by SlapOS.
parent
8cd43f94
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
149 deletions
+0
-149
scripts/beremiz_install.sh
scripts/beremiz_install.sh
+0
-84
scripts/open62541_install.sh
scripts/open62541_install.sh
+0
-65
No files found.
scripts/beremiz_install.sh
deleted
100755 → 0
View file @
8cd43f94
#!/bin/bash
# =================================================
#
# Beremiz installation in Ubuntu 20.04
#
# =================================================
# run as root
if
[[
$EUID
-ne
0
]]
;
then
echo
'run this script as sudo !'
1>&2
exit
1
fi
echo
"OSTYPE:"
if
[[
"
$OSTYPE
"
==
"linux-gnu"
*
]]
;
then
ls
-al
/etc/
*
-release
cat
/etc/arch-release
# Ubuntu
if
[
-f
/etc/os-release
]
;
then
.
/etc/os-release
OS_NAME
=
$NAME
OS_VER_ID
=
$VERSION_ID
echo
"System OS_NAME:
$OS_NAME
"
else
echo
"tested release files do not exist -> happens with older or unsupported OS versions"
exit
2
fi
echo
"Found OS information:
$OS_NAME
, version:
$OS_VER_ID
"
if
[[
"
$OS_NAME
"
==
*
"Ubuntu"
*
]]
;
then
echo
"Ubuntu"
export
DEBIAN_FRONTEND
=
noninteractive
# Update system
# install required packages
apt
-yq
update
apt
-yq
install
python-wxgtk3.0 python-lxml python-is-python2 python-numpy build-essential python-dev-is-python2 mercurial autoconf bison flex python2 virtualenv python-lxml python-numpy libgtk-3-dev libgl1-mesa-dev libglu1-mesa-dev
pip2
install
pyro twisted nevow autobahn lxml opcua
zeroconf
==
0.19.1
# Path preparation
LOCAL_HOME_DIR
=
/home/
${
SUDO_USER
:-
$(
whoami
)
}
/
echo
"
$LOCAL_HOME_DIR
"
# Build Beremiz
echo
"Building Beremiz."
cd
$LOCAL_HOME_DIR
/
mkdir
-p
Beremiz
cd
Beremiz/
hg clone https://hg.beremiz.org/beremiz
# Build Matiec
echo
"Building Matiec."
cd
$LOCAL_HOME_DIR
/Beremiz/
hg clone https://hg.beremiz.org/matiec
cd
matiec/
autoreconf
-i
./configure
make
-j
pwd
# Build Modbus
echo
"Building Modbus."
cd
$LOCAL_HOME_DIR
/Beremiz/
hg clone https://hg.beremiz.org/Modbus/
cd
Modbus/
make
echo
"Beremiz is installed."
echo
"Run
$
python2 ~/Beremiz/beremiz/Beremiz.py to open Beremiz"
else
echo
"Distro is not supported."
exit
3
fi
else
echo
"ERROR: OS is not supported:
$OSTYPE
"
exit
4
fi
\ No newline at end of file
scripts/open62541_install.sh
deleted
100755 → 0
View file @
8cd43f94
#!/bin/bash
# =================================================
#
# Open62541 installation in Ubuntu 20.04
#
# =================================================
# run as root
if
[[
$EUID
-ne
0
]]
;
then
echo
'run this script as sudo !'
1>&2
exit
1
fi
echo
"OSTYPE:"
if
[[
"
$OSTYPE
"
==
"linux-gnu"
*
]]
;
then
ls
-al
/etc/
*
-release
cat
/etc/arch-release
# Ubuntu
if
[
-f
/etc/os-release
]
;
then
.
/etc/os-release
OS_NAME
=
$NAME
OS_VER_ID
=
$VERSION_ID
echo
"System OS_NAME:
$OS_NAME
"
else
echo
"tested release files do not exist -> happens with older or unsupported OS versions"
exit
2
fi
echo
"Found OS information:
$OS_NAME
, version:
$OS_VER_ID
"
if
[[
"
$OS_NAME
"
==
*
"Ubuntu"
*
]]
;
then
echo
"Ubuntu"
export
DEBIAN_FRONTEND
=
noninteractive
# Path preparation
LOCAL_HOME_DIR
=
/home/
${
SUDO_USER
:-
$(
whoami
)
}
/
echo
"
$LOCAL_HOME_DIR
"
# Build and install open62541
echo
"Building and installing open62541."
cd
$LOCAL_HOME_DIR
/
git clone https://github.com/open62541/open62541.git
cd
open62541/
git submodule update
--init
--recursive
mkdir
-p
build
&&
cd
build
cmake
-DBUILD_SHARED_LIBS
=
ON
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
-DUA_NAMESPACE_ZERO
=
FULL
-DUA_ENABLE_AMALGAMATION
=
ON ..
make
-j
make
install
echo
"open62541 is installed."
echo
"Transfer open62541.c and open62541.h to your project location from the buld directory"
echo
"Ex: cp ~/open62541/build/open62541.* ~/osie/coupler/opc-ua-server/"
else
echo
"Distro is not supported."
exit
3
fi
else
echo
"ERROR: OS is not supported:
$OSTYPE
"
exit
4
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment