Skip to content

Instantly share code, notes, and snippets.

@vovimayhem
Last active November 20, 2023 22:33
Show Gist options
  • Save vovimayhem/1a905d1b1db488c50f02 to your computer and use it in GitHub Desktop.
Save vovimayhem/1a905d1b1db488c50f02 to your computer and use it in GitHub Desktop.
Install on Linux Mint the latest version of JMeter that has the redirects behavior correct (2.9)
# Download the jmeter gzipped tarball to a temporary folder:
wget -O /tmp/jmeter.tgz http://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.9.tgz
# Extract to /usr/share
sudo tar -xzvf /tmp/jmeter.tgz -C /usr/share
# Edit the provided JMeter start script, changing the string '`dirname "$0"`' for '/usr/share/jmeter/bin':
sudo sed -i 's/`dirname "\$0"`/\/usr\/share\/apache-jmeter-2.9\/bin/g' /usr/share/apache-jmeter-2.9/bin/jmeter
# Generate the following symlinks:
sudo rm -rf /usr/bin/jmeter*
sudo ln -s /usr/share/apache-jmeter-2.9/bin/jmeter /usr/bin/jmeter
sudo ln -s /usr/share/apache-jmeter-2.9/bin/jmeter-server /usr/bin/jmeter-server
# Add JMeter to the menu (Linux Mint Only)
sudo wget -O /usr/share/applications/jmeter.desktop "https://gist.github.com/vovimayhem/1a905d1b1db488c50f02/raw/5b72954ad22d982b593f72e4cd97856f2816d597/jmeter.desktop"
[Desktop Entry]
Name=JMeter
Comment=Load testing application
Exec=jmeter
Icon=/usr/share/pixmaps/jmeter.jpg
Terminal=false
Type=Application
Categories=Development;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment