This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This will remove Apache | |
sudo service apache2 stop | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin | |
sudo apt remove apache2.* | |
sudo apt-get autoremove | |
whereis apache2 | |
sudo rm -rf /etc/apache2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt update -y | |
apt-get upgrade -y | |
apt update -y | |
apt install build-essential checkinstall | |
apt install ubuntu-restricted-extras | |
apt install software-properties-common | |
apt install apt-show-versions | |
apt upgrade -o APT::Get::Show-Upgraded=true | |
apt-show-versions | grep upgradeable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To check | |
nano --version | |
# To edit any file.txt | |
nano file.txt | |
# Find any word using nano | |
ctrl+w | |
# To save and exit from nano |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/sh | |
sudo -i | |
groupadd mastodon | |
useradd -d /home/mastodon -s `which bash` -g mastodon -m mastodon | |
echo "mastodon ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
passwd mastodon | |
usermod -aG sudo mastodon | |
su - mastodon | |
sudo apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Process: | |
# Install Stable Ruby From Source | |
# Install Ruby from the Ubuntu Repository | |
# Installing Ruby with RVM | |
# Install Ruby Using rbenv | |
# Install Ruby From Source: |