***version***
is a placeholder for versions in the format of 1.0.0
or 2.24.231
.
***version_long***
is a placeholder for versions in the format of v1.0.0
or v2.24.231
. It refers to the tag for the release that contains the .sh
file download.
Using curl
curl -s https://raw.githubusercontent.com/d3vop-llc/auto-secure-linux/refs/heads/main/asl.sh | bash
Using wget
wget -qO- https://raw.githubusercontent.com/d3vop-llc/auto-secure-linux/refs/heads/main/asl.sh | bash
Using curl
curl -s https://github.com/d3vop-llc/auto-secure-linux/releases/download/***version_long***/auto-secure-linux_***version***.sh | bash
Using wget
wget -qO- https://github.com/d3vop-llc/auto-secure-linux/releases/download/***version_long***/auto-secure-linux_***version***.sh | bash
Using GIT
git clone https://github.com/d3vop-llc/auto-secure-linux.git
cd auto-secure-linux
sudo mv asl.sh /usr/local/bin/
chmod +x /usr/local/bin/asl.sh
cd ..
rm -rf ./auto-secure-linux
sudo ln -s /usr/local/bin/asl.sh /usr/local/bin/asl
And then run it by typing
asl
If that doesn't work, try using
/usr/local/bin/asl.sh
Or
Go to binaries section of releases, and download the auto-secure-linux_***version***.sh
file
Example error:
./asl.sh: line 2: $'\r': command not found
./asl.sh: line 5: $'\r': command not found
./asl.sh: line 6: syntax error near unexpected token `$'{\r''
'/asl.sh: line 6: `update_script_from_github() {
Run:
sudo apt update && sudo apt install dos2unix -y
dos2unix asl.sh
If that doesn't work, use:
sed -i 's/\r$//' asl.sh