Education applications/Ramus: различия между версиями
Нет описания правки |
Нет описания правки |
||
Строка 12: | Строка 12: | ||
rm -r -f /opt/ramus | rm -r -f /opt/ramus | ||
rm -f /usr/share/applications/ramus.desktop | rm -f /usr/share/applications/ramus.desktop | ||
mkdir /tmp/ramus-install | mkdir /tmp/ramus-install | ||
cd /tmp/ramus-install | cd /tmp/ramus-install | ||
apt-get install git java-11-openjdk | apt-get install -y git java-11-openjdk | ||
git clone https://github.com/Vitaliy-Yakovchuk/ramus.git | git clone https://github.com/Vitaliy-Yakovchuk/ramus.git | ||
cp -r ramus /opt | |||
cp -r | |||
touch /usr/share/applications/ramus.desktop | touch /usr/share/applications/ramus.desktop | ||
echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop | echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop | ||
Строка 30: | Строка 26: | ||
echo "Name=Ramus" >> /usr/share/applications/ramus.desktop | echo "Name=Ramus" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Comment= | echo "Comment=Основанный на Java инструмент моделирования IDEF0 и DFD" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop | echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Exec= | echo "Exec=/opt/ramus/gradlew runLocal" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Icon=/opt/ramus/ | echo "Icon=/opt/ramus/gui-framework-common/src/main/resources/com/ramussoft/gui/application.png" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Terminal=false" >> /usr/share/applications/ramus.desktop | echo "Terminal=false" >> /usr/share/applications/ramus.desktop | ||
echo " " >> /usr/share/applications/ramus.desktop | echo " " >> /usr/share/applications/ramus.desktop | ||
echo "Categories= | echo "Categories=Education;" >> /usr/share/applications/ramus.desktop | ||
chmod +x /usr/share/applications/ramus.desktop | |||
chmod -R 777 /opt/ramus | |||
cd | cd | ||
rm -r -f /tmp/ramus-install | rm -r -f /tmp/ramus-install | ||
Строка 68: | Строка 65: | ||
rm -r -f /opt/ramus | rm -r -f /opt/ramus | ||
rm -f /usr/share/applications/ramus.desktop | rm -f /usr/share/applications/ramus.desktop | ||
rm /usr/ | rm /usr/share/applications/ramus.desktop | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Версия от 19:36, 7 сентября 2023
Установка
1. Для установки создайте файл ramus-install.sh с содержимым указанным ниже:
ramus-install.sh |
---|
rm -r -f /tmp/ramus-install
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
mkdir /tmp/ramus-install
cd /tmp/ramus-install
apt-get install -y git java-11-openjdk
git clone https://github.com/Vitaliy-Yakovchuk/ramus.git
cp -r ramus /opt
touch /usr/share/applications/ramus.desktop
echo "[Desktop Entry]" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Type=Application" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Version=1.0" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Name=Ramus" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Comment=Основанный на Java инструмент моделирования IDEF0 и DFD" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Path=/opt/ramus/" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Exec=/opt/ramus/gradlew runLocal" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Icon=/opt/ramus/gui-framework-common/src/main/resources/com/ramussoft/gui/application.png" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Terminal=false" >> /usr/share/applications/ramus.desktop
echo " " >> /usr/share/applications/ramus.desktop
echo "Categories=Education;" >> /usr/share/applications/ramus.desktop
chmod +x /usr/share/applications/ramus.desktop
chmod -R 777 /opt/ramus
cd
rm -r -f /tmp/ramus-install
|
2. повысьте права
su -
3.сделайте скрипт исполняемым
chmod +x ./ramus-install.sh
4.выполните скрипт
./ramus-install.sh
Удаление
1. Для удаления создайте файл ramus-remove.sh с содержимым указанным ниже:
ramus-remove.sh |
---|
rm -r -f /tmp/ramus-install
rm -r -f /opt/ramus
rm -f /usr/share/applications/ramus.desktop
rm /usr/share/applications/ramus.desktop
|
2. повысьте права
su -
3.сделайте скрипт исполняемым
chmod +x ./ramus-remove.sh
4.выполните скрипт
./ramus-remove.sh