mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2025-06-20 17:47:55 +02:00
install pinta from source for jammy, migrate postman,qbittorrent,remmina
This commit is contained in:
parent
035013b207
commit
c40d134ed0
@ -126,14 +126,14 @@ multiImages:
|
||||
- src/ubuntu/install/slack/**
|
||||
- name: pinta
|
||||
singleapp: true
|
||||
base: core-ubuntu-focal
|
||||
base: core-ubuntu-jammy
|
||||
dockerfile: dockerfile-kasm-pinta
|
||||
changeFiles:
|
||||
- dockerfile-kasm-pinta
|
||||
- src/ubuntu/install/pinta/**
|
||||
- name: qbittorrent
|
||||
singleapp: true
|
||||
base: core-ubuntu-focal
|
||||
base: core-ubuntu-jammy
|
||||
dockerfile: dockerfile-kasm-qbittorrent
|
||||
changeFiles:
|
||||
- dockerfile-kasm-qbittorrent
|
||||
@ -155,7 +155,7 @@ multiImages:
|
||||
- src/ubuntu/install/cleanup/**
|
||||
- name: remmina
|
||||
singleapp: true
|
||||
base: core-ubuntu-focal
|
||||
base: core-ubuntu-jammy
|
||||
dockerfile: dockerfile-kasm-remmina
|
||||
changeFiles:
|
||||
- dockerfile-kasm-remmina
|
||||
@ -792,7 +792,7 @@ singleImages:
|
||||
- src/ubuntu/install/cleanup/**
|
||||
- name: postman
|
||||
singleapp: true
|
||||
base: core-ubuntu-focal
|
||||
base: core-ubuntu-jammy
|
||||
dockerfile: dockerfile-kasm-postman
|
||||
changeFiles:
|
||||
- dockerfile-kasm-postman
|
||||
|
@ -1,5 +1,5 @@
|
||||
ARG BASE_TAG="develop"
|
||||
ARG BASE_IMAGE="core-ubuntu-focal"
|
||||
ARG BASE_IMAGE="core-ubuntu-jammy"
|
||||
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||
USER root
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
ARG BASE_TAG="develop"
|
||||
ARG BASE_IMAGE="core-ubuntu-focal"
|
||||
ARG BASE_IMAGE="core-ubuntu-jammy"
|
||||
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||
USER root
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
ARG BASE_TAG="develop"
|
||||
ARG BASE_IMAGE="core-ubuntu-focal"
|
||||
ARG BASE_IMAGE="core-ubuntu-jammy"
|
||||
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||
USER root
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
ARG BASE_TAG="develop"
|
||||
ARG BASE_IMAGE="core-ubuntu-focal"
|
||||
ARG BASE_IMAGE="core-ubuntu-jammy"
|
||||
FROM kasmweb/$BASE_IMAGE:$BASE_TAG
|
||||
USER root
|
||||
|
||||
|
@ -2,12 +2,45 @@
|
||||
set -ex
|
||||
|
||||
# Install Pinta
|
||||
# For Jammy, build pinta from source because standard package is buggy
|
||||
if grep -q Jammy /etc/os-release; then
|
||||
# install requirements for building pinta from source
|
||||
apt update -y
|
||||
apt-get install -y dotnet-sdk-8.0
|
||||
apt-get install -y libgtk-3-dev
|
||||
apt install -y autotools-dev autoconf-archive gettext intltool libadwaita-1-dev
|
||||
# download and install pinta 2.1.2 source
|
||||
wget -q https://github.com/PintaProject/Pinta/releases/download/2.1.2/pinta-2.1.2.tar.gz -O /tmp/pinta-2.1.2.tar.gz
|
||||
tar -xvzf /tmp/pinta-2.1.2.tar.gz -C /tmp/
|
||||
cd /tmp/pinta-2.1.2
|
||||
./configure --prefix=/usr/local
|
||||
make install
|
||||
|
||||
# cleanup
|
||||
rm -rf /tmp/pinta-2.1.2.tar.gz /tmp/pinta-2.1.2
|
||||
|
||||
# create desktop file
|
||||
cat >/usr/share/applications/pinta.desktop <<EOL
|
||||
[Desktop Entry]
|
||||
Name=Pinta
|
||||
Comment=Simple Drawing/Editing Program
|
||||
Exec=/usr/local/bin/pinta
|
||||
Icon=/usr/local/share/icons/hicolor/96x96/apps/pinta.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Graphics;2DGraphics;RasterGraphics;
|
||||
EOL
|
||||
chmod +x /usr/share/applications/pinta.desktop
|
||||
cp /usr/share/applications/pinta.desktop $HOME/Desktop/
|
||||
|
||||
else
|
||||
apt-get update
|
||||
apt-get install -y pinta
|
||||
|
||||
# Default settings and desktop icon
|
||||
cp /usr/share/applications/pinta.desktop $HOME/Desktop/
|
||||
chmod +x $HOME/Desktop/pinta.desktop
|
||||
fi
|
||||
|
||||
# Cleanup for app layer
|
||||
chown -R 1000:0 $HOME
|
||||
|
Loading…
x
Reference in New Issue
Block a user