Skip to content

Instantly share code, notes, and snippets.

@henriquemoody
Created August 15, 2012 19:22
Show Gist options
  • Save henriquemoody/3362789 to your computer and use it in GitHub Desktop.
Save henriquemoody/3362789 to your computer and use it in GitHub Desktop.
Install ArgoUML on linux
#!/bin/sh
if [ "root" != "$(whoami)" ]; then
echo "You must run this command as root" 1>&2
exit 1
fi
set -x
# Download and extract
if [ ! -z "${1}" ]; then
VERSION="${1}"
else
VERSION="0.34"
fi
TARBALL="/usr/src/ArgoUML-${VERSION}.tar.gz"
if [ ! -f "${TARBALL}" ]; then
curl -L "http://argouml-downloads.tigris.org/nonav/argouml-${VERSION}/ArgoUML-${VERSION}.tar.gz" -o "${TARBALL}"
fi
tar -xzf "${TARBALL}" -C /usr/src
# Move and create a valid symlink
mv "/usr/src/argouml-${VERSION}" "/usr/local/argouml-${VERSION}"
ln -s "/usr/local/argouml-${VERSION}/argouml.sh" "/usr/local/bin/argouml"
# Desktop shortcut
SHORTCUT="[Desktop Entry]
Name=ArgoUML ${VERSION}
Exec=/usr/local/argouml-${VERSION}/argouml.sh
Icon=/usr/local/argouml-${VERSION}/icon/ArgoIcon128x128.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Java;Development;UML"
echo "${SHORTCUT}" > "/usr/share/applications/argouml-${VERSION}.desktop"
set +x
echo "Finish!"
exit 0
@andersonFaro9
Copy link

Valew!

@FirstDagger
Copy link

Worked very nice on Linux Mint 17 XFCE, thank you.

@lucas1
Copy link

lucas1 commented Jan 28, 2015

Thanks 😄

@alexbaron
Copy link

thanks 👌

@mwangipeter
Copy link

Thanks

@takede-nappster
Copy link

is cool

@tandavala
Copy link

Muito bom!

@JonMadVal
Copy link

Like a charm in Fedora23

@mrcretu
Copy link

mrcretu commented Feb 28, 2018

Very nice! Thank you. It worked perfectly on Linux 17.10!

@gustavofq
Copy link

Anda excelente! gracias. (ubuntu 16.04)

@oh-bala
Copy link

oh-bala commented Aug 10, 2018

Nice! Thank you for sharing. It worked on ubuntu 18.04.

@korbe-diallo
Copy link

it works perfectly on debian 9. Thanks.

@chancelier147
Copy link

Cool ! Thanks ! It worked on ubuntu 18.04.

@mhthabib
Copy link

mhthabib commented Oct 5, 2019

Thanks You

@hamidgasmi
Copy link

Thanks 👍

@RobbyGold
Copy link

how do I use this code? terminal?

@augustinewafula
Copy link

augustinewafula commented Aug 12, 2020

@RobbyGold run: bash ArgoUML.sh

@NithishKumar0201
Copy link

Can anyone please explain how to use/run this ubuntu 18? I am beginner and i have no idea how to run this..?

@hamidgasmi
Copy link

hamidgasmi commented Sep 7, 2020

@NithishKumar0201:

  • Download the file above (or copy and past it in a file and store it as ArgoUML.sh)
  • Open a terminal, open the folder where you stored the file and run: sudo bash ArgoUML.sh

@VinothiniBalakrishnan
Copy link

VinothiniBalakrishnan commented Oct 22, 2020

@NithishKumar0201:

  • Download the file above (or copy and past it in a file and store it as ArgoUML.sh)
  • Open a terminal, open the folder where you stored the file and run: sudo bash ArgoUML.sh

Hi @hamidgasmi, I followed the instruction. seen the below but the application not launching when run ArgoUML.sh in terminal

Screenshot from 2020-10-22 16-22-33
Please let me know what I am missing.

@pendyala
Copy link

pendyala commented Dec 5, 2020

Here is the updated script. The argoUml download URL has changed

#!/bin/sh
if [ "root" != "$(whoami)" ]; then
    echo "You must run this command as root" 1>&2
    exit 1
fi

set -x

# Download and extract
if [ ! -z "${1}" ]; then
    VERSION="${1}"
else
    VERSION="0.35.1"
fi

TARBALL="/usr/src/ArgoUML-${VERSION}.tar.gz"
if [ ! -f "${TARBALL}" ]; then
    curl -L "https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_$( echo ${VERSION} | tr '.' '_' )/ArgoUML-${VERSION}.tar.gz" -o "${TARBALL}"
fi

tar -xzf "${TARBALL}" -C /usr/src

# Move and create a valid symlink
mv "/usr/src/argouml-${VERSION}" "/usr/local/argouml-${VERSION}"
ln -s "/usr/local/argouml-${VERSION}/argouml.sh" "/usr/local/bin/argouml"

# Desktop shortcut
SHORTCUT="[Desktop Entry]
Name=ArgoUML ${VERSION}
Exec=/usr/local/argouml-${VERSION}/argouml.sh
Icon=/usr/local/argouml-${VERSION}/icon/ArgoIcon128x128.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Java;Development;UML"

echo "${SHORTCUT}" > "/usr/share/applications/argouml-${VERSION}.desktop"

set +x

echo "Finish!"
exit 0

@nutral09
Copy link

nutral09 commented Mar 3, 2021

Here is the updated script. The argoUml download URL has changed

#!/bin/sh
if [ "root" != "$(whoami)" ]; then
    echo "You must run this command as root" 1>&2
    exit 1
fi

set -x

# Download and extract
if [ ! -z "${1}" ]; then
    VERSION="${1}"
else
    VERSION="0.35.1"
fi

TARBALL="/usr/src/ArgoUML-${VERSION}.tar.gz"
if [ ! -f "${TARBALL}" ]; then
    curl -L "https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_$( echo ${VERSION} | tr '.' '_' )/ArgoUML-${VERSION}.tar.gz" -o "${TARBALL}"
fi

tar -xzf "${TARBALL}" -C /usr/src

# Move and create a valid symlink
mv "/usr/src/argouml-${VERSION}" "/usr/local/argouml-${VERSION}"
ln -s "/usr/local/argouml-${VERSION}/argouml.sh" "/usr/local/bin/argouml"

# Desktop shortcut
SHORTCUT="[Desktop Entry]
Name=ArgoUML ${VERSION}
Exec=/usr/local/argouml-${VERSION}/argouml.sh
Icon=/usr/local/argouml-${VERSION}/icon/ArgoIcon128x128.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Java;Development;UML"

echo "${SHORTCUT}" > "/usr/share/applications/argouml-${VERSION}.desktop"

set +x

echo "Finish!"
exit 0

and how can i run it

@gkrauze
Copy link

gkrauze commented May 21, 2021

Works great on ubuntu 20.04. Thanks!

@dadandw
Copy link

dadandw commented May 22, 2021

how to remove it ?? on ubuntu 21.04

@dadandw
Copy link

dadandw commented May 22, 2021

Works great on ubuntu 20.04. Thanks!

hey, how to remove it ?

@ngimdock
Copy link

work well on ubuntu 18.04 thank you for sharing

@BiaoMoussa
Copy link

Thank you!

@leandro305
Copy link

leandro305 commented Feb 19, 2022

Personal, Just use the code below:

#!/bin/sh
if [ "root" != "$(whoami)" ]; then
    echo "You must run this command as root" 1>&2
    exit 1
fi

set -x

# Download and extract
if [ ! -z "${1}" ]; then
    VERSION="${1}"
else
    VERSION="0.35.1"
fi

TARBALL="/usr/src/ArgoUML-${VERSION}.tar.gz"
if [ ! -f "${TARBALL}" ]; then
    curl -L "https://github.com/argouml-tigris-org/argouml/releases/download/VERSION_$( echo ${VERSION} | tr '.' '_' )/ArgoUML-${VERSION}.tar.gz" -o "${TARBALL}"
fi

tar -xzf "${TARBALL}" -C /usr/src

# Move and create a valid symlink
mv "/usr/src/argouml-${VERSION}" "/usr/local/argouml-${VERSION}"
ln -s "/usr/local/argouml-${VERSION}/argouml.sh" "/usr/local/bin/argouml"

# Desktop shortcut
SHORTCUT="[Desktop Entry]
Name=ArgoUML ${VERSION}
Exec=/usr/local/argouml-${VERSION}/argouml.sh
Icon=/usr/local/argouml-${VERSION}/icon/ArgoIcon128x128.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Java;Development;UML"

echo "${SHORTCUT}" > "/usr/share/applications/argouml-${VERSION}.desktop"

set +x

echo "Finish!"
exit 0

later:
(copy and paste into a file and store as ArgoUML.sh)
Open a terminal, open the folder where you stored the file and run: sudo bash ArgoUML.sh

@dnkuna
Copy link

dnkuna commented Jan 26, 2023

It's Work for ubuntu 22.04 LTS
ArgoUMLInstallation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment