If you use Ubuntu, you might not have noticed that wondershaper no longer works. I share a connection with my brothers, so I use wondershaper and noticed right off. Turns out, they haven’t updated wondershaper in the Ubuntu repos in YEARS. It’s woefully out of date. If you use Ubuntu 17.10, you need to install wondershaper from github. Once you have the current wondershaper, you won’t have a problem.
My older brother remarked that if it doesn’t have a GUI, he isn’t going to use it. My younger brother remarked that using zenity, a GUI for wondershaper would be a snap to create… so I did. The following script can be run from a launcher on the desktop. It asks you to select a network adapter, asks you to set the download rate, asks you to select the upload rate, asks for your password, and then runs wondershaper. No fuss, no muss!
#! /bin/bash
# Graphical front-end for Wondershaper using zenity
ADAPTERS=$(ls /sys/class/net)
ADAPTER=$(zenity –list –text=”Select adapter” –column=”adapter” $ADAPTERS)
DOWNLOAD=$(zenity –scale –min-value=0 –max-value=10000 –step=100 –value=1000 –text=”Download rate in kbps”)
UPLOAD=$(zenity –scale –min-value=0 –max-value=10000 –step=100 –value=100 –text=”Upload rate in kbps”)
echo ‘wondershaper -a ‘$ADAPTER’ -d ‘$DOWNLOAD’ -u ‘$UPLOAD
zenity –password –title=”Enter password” | sudo -S wondershaper -a $ADAPTER -d $DOWNLOAD -u $UPLOAD