Skip to content

Instantly share code, notes, and snippets.

@linuxkeepup
Created February 5, 2023 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxkeepup/e6c0636be1bb8c47ae2a16c0e566f1a2 to your computer and use it in GitHub Desktop.
Save linuxkeepup/e6c0636be1bb8c47ae2a16c0e566f1a2 to your computer and use it in GitHub Desktop.
Attendize Install Ubuntu
sudo -i
apt update -y
apt upgrade -y
apt autoremove
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
add-apt-repository ppa:nilarimogard/webupd8
apt update
apt install launchpad-getkeys
launchpad-getkeys
add-apt-repository ppa:git-core/ppa
apt update
apt install git
git config --global user.name "username"
git config --global user.email mail@email.com
apt upgrade -y
apt -f install
apt autoremove
apt -y autoclean
apt -y clean
apt update
#### Set directory permissions ####
chmod +x /var/www/html
chmod +x /var/www/html/public/
chown -R www-data storage/app
chown -R www-data storage/framework
chown -R www-data storage/logs
chown -R www-data storage/cache
chown -R www-data bootstrap/cache
chown -R www-data .env
chmod -R a+w storage/app
chmod -R a+w storage/framework
chmod -R a+w storage/logs
chmod -R a+w storage/cache
chmod -R a+w bootstrap/cache
chmod -R a+w .env
chown -R www-data storage/{app,framework,logs,cache} bootstrap/cache .env
chmod -R a+w storage/{app,framework,logs,cache} bootstrap/cache .env
chmod -R /var/www/html/
Then save and exit the file by pressing on your keyboard:
Ctrl + S
Ctrl + X
nginx -t
systemctl restart nginx
systemctl reload nginx
@linuxkeepup
Copy link
Author

image

@linuxkeepup
Copy link
Author

image

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