1- I erased everything on my old Mac book air 2010 (you can use any other Chromebook)
2- I installed ubuntu 22.04 on it (rebooted, used a portable usb disk and thereby installed Linux.)
Like etcher
3- Utilize nginx as the software to handle requests.
To host a web server; I installed nginx on the MBA terminal
(nginx, a software that holds a folder on the computer to access files (html,) for being able to be visible or found on the www)
Use sudo cd to change directories.
sudo -U postgres psql
psql -h 127.0.0.1 -d nextcloud -U nextclouduser -W
cd /etc/nginx/ chaline@chaline-MacBookAir:/etc/ngin$ ls
chaline@chaline-MacBookAir: -$ sudo nano /etc/nginx/sites-available/default
[sudo] password for chaline: chaline@chaline-MacBookAir: -$ cd /var /www/
chaline@chaline-MacBookAir:/var/www$ ls
chaline@chaline-MacBookAlr:/etc/nginx$cd sites-enabled/ challne@chaLine-MacBookAlr:/etc/nginx/sites-enabled$ ls default chaline@chaLine-MacBookAlr:/etc/nginx/sites-enableds1s-la
chaline@chaline-MacBookAir:/etc/nginx/sites-avatlable$sudo chown www-data:www-d ata /var /www/nextcloud/ -R
chaltne@chaline-MacBookAir:/etc/nginx/sttes-avatlablessudonginx-t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful chaline@chaline-MacBookAir:/etc/ngtnx/stes-available$sudosystemctlreloadngi chaline@chaline-MacBookAir:/etc/nginx/sites-available$sudoaptinstallimagemagick
- Doing this enables the IP address (mine is [http://192.168.1.207] (http://192.168.1.207)) with the software to handle the request.
- Ip a (to find the Ip address)
**= the Ip address can be found in as an 80/http on the web/internet if in the same WIFI**
sudo ufw (Super user do), Apt App Store ubuntu (found in digital ocean)
Configuring the Web Server
Configuring the Web Server
Add ‘index.php’ to the list if using PHP.
Set up the web server by copying ‘indexsite.html’ to the ‘/var/www/html’ directory using the command ‘sudo cp indexsite.html /var/www/html’.
Networking Setup:
Configure port forwarding in the Ziggo Connect Box.
4- Access to router, Open ports in router, (Access to internet) Router gateway to internet
In Ziggo connect box/ modem
Ports are gate so I specify; Open ports, close ports 80 http, 443 https IP address with your home - Port forwarding Open the gate that want to access computer in home network IP address Forward all traffic 80+430
5- Enabled firewall
- To exit press (:q)
- So, the file is now found/called in index.nginx-debian.html
Software installs on machine,
sudo certbot --nginx --dry-run
in /var/
Use Duck DNS for a static IP.
Nano duck dns install
mkdir duckdns
chaline@chaline-MacBookAir:-$ cd duckdns
chaline@chaline-MacBookAir:-$/duckdns$ nano duck.sh
chaline@chaline-MacBookAir:~$/duckdns$
sudo apt-get install openssh-server
chalinebang@MBP-von-Chaline :~ $. ssh chaline0192.168.1.207
Access the server from another computer using SSH with the command ssh chaline@192.168.1.207.
6-Change dns a record, Change aaa record, To new static Ip address, Network manager, gateway
Sudo nano /etc/Netplan/*.yaml
01-netcfg.yaml YAML
1 network:
2 version: 2
3 renderer: NetworkManager
4 ethernets:
5 wlp1sObl:
6 dhcp4: no
7 addresses: [192.168.178.14/24]
8 gateway: 192.168.178.1
9 nameservers:
10 addresses: [8.8.8.8, 8.8.4.4]
Sudo netplan apply
Sudo netplan try
7-connect website to server
chaline@chaline-MacBookAir:/var/www$ 1s
chaline@chaline-MacBookAir: /var/www$ cd nextcloud
chaline@chaline-MacBookAir:/var/www/nextcloud$ 1s
chaline@chaline-MacBookAir: /var/www/nextcloud$ cd config
chaline@chaline-MacBookAir var/www/nextcloud/config$ 1s
chaline@chaline-MacBookAir: /var/www/nextcloud/config$ nano config.php
chaline@chaline-MacBookAir:/var/www/nextcloud/config$ sudo nano config.php
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ nano nextcloud
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano nextcloud line@chaline- chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/etc/nginx/sites-available$cd/var/www/nextcloud
Sudo apt install vsftpd
chaline@chaline-MacBookAir:-$ anonomous_enable-yes
chaline@chaline-MacBookAir:-$anonomous_enable-YES
chaline@chaline-MacBookAir:-$anonvmousenable=YES
chaline@chaline-MacBookAir:-$sudomkdir-p/srv/files/ftp
chaline@chaline-MacBookAir:$ sudo usermod -d /srv/files/ftp ftp
chaline@chaline-MacBookAir:$sudosvstenctlrestartvsftpd.service
chaline@chaline-MacBookAir:$ anon_upload_enable=YES chaline@chaline-MacBookAtr:-Schroot_local_user-YES chaline@chaline-MacBookAir:-Schroot_list_enable=YES chaline@chaline-MacBookAir:-SChroot_list_file-/etc/vsftpd.chroot_list chaline@chaline-MacBookAir:~$ sudo systemctl restart vsfpd.service chaline@chaline-MacBookAir:-S ssl_enable-VES
chaline@chaline-MacBookAir:$ rsa cert file=/etc/sl/certs/ssl-cert-snakeoil.pem chaline@chaline-MacBookAir:-$rsa_private_key_file-/etc/ssl/private/ssl-cert-snakeoil.key chaline@chaline-MacBookAir:~$ sudo systemctl restart vsfpd. service chaline@chaline-MacBookAir:~$ # /etc/shells: valid login shells chaline@chaline-MacBookAir:-$/bin/csh
bash: /bin/csh: No such file or directory
chaline@chaline-MacBookAir:-$ # /etc/shells: valid login shells
chaline@chaline-MacBookair:-$ sudo ufw allow 20/tcp
chaline@chaline-MacBookAir:-$ sudo ufw allow 21/tc
chaline@chaline-MacBookAir: $ sudo mkdir /srv/ft/chaline_bang sudo1 password for chaline:
chaline@chaline-MacBookAir:$ sudo usermod -d /srv/ft/chaline haline@chaline-MacBookAir: $ sudo systemctl restart vsfpd.seri haline@chaline-MacBookAir: $ sudo nano etc/vsftpd.conf chaline@chaline-MacBookAir:-$sudo nano /etc/vsfpd.conf haline@chaline-MacBookAir:$ sudo systemctl restart vsftpd.ser
8-Connect ftp site programm
chaline@chaline-MacBookAir: $/var/www$ sudo touch ftp-site
chaline@chaline-MacBookAir: /var/www$ sudo nano ftp-site
chaline@chaline-MacBookAir:$/var/www/files$ ls
chaline@chaline-MacBookAir:/var/www/files$ sudo mkdir files I
chaline@chaline-MacBookAir:/var/www/files$ sudo apt install git
chaline@chaline-MacBookAir:var/www/files$ sudo git clone https://github.com/julcap/nginx-style-autoindex.git
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo In -s . /nginx-style-autoindex/footer.html
chaline@chaline-MacBookAir /var/www/files$ sudo In -s . /nginx-style-autoindex/header.html
chaline@chaline-MacBookAir:-$/var/www/files$ In -s ./nginx-style-autoindex/.autoindex.css
chaline@chaline-MacBookAir :~$/var/www/files$ sudo ls -lah
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo rm -rf html/
chaline@chaline-MacBookAir:~$ /var/www/files$ clear
chaline@chaline-MacBookAir:~$ /var/www/files$ ls - lah
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:~$ /var/www/files$ cd /etc/nginx/sites-available/
chaline@chaline-MacBookAir:~$ /var/www/files$ cd ../sites-enabled/
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo ln -s /etc/nginx/sites-available/ftp-site
chaline@chaline-MacBookAir:~$ /var/www/files$ ls -la
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:~$ /var/www/files$ cd sites-available/
chaline@chaline-MacBookAir:~$ /var/www/files$ nano ftp-site
chaline@chaline-MacBookAir:~$ /var/www/files$ cd /var/www/files/
chaline@chaline-MacBookAir:~$ Ls
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo touch testfile
chaline@chaline-MacBookAir:~$ Ls
chaline@chaline-MacBookAir:~$ /var/www/files$ sudo rm -rf testfile
chaline@chaline-MacBookAir:~$ Clear
chaline@chaline-MacBookAir:~$ sudo apt install vsfpd
chaline@chaline-MacBookAir:~$ sudo systemctl start vstpd
chaline@chaline-MacBookAir:~$ sudo cp /etc/vsftpd.conf /etc/vsftpd.conf_default
chaline@chaline-MacBookAir:~$ sudo useradd -m Chaline chaline@chaline-chaline@chaline-MacBookAir:~$ sudo passwd
chaline@chaline-MacBookAir:~$ sudo mkdir -p /var/stp/files
chaline@chaline-MacBookAir:~$ sudo chown sftpuser:sftpuser /var/sftp/files chaline@chaline-MacBookAir:~$ sudo chow root: root /var/sftp sudo chmod 755 /var/sftp
chaline@chaline-MacBookAir:~$ sudo nano /etc/ssh/sshd_config
chaline@chaline-MacBookAir:~$ sudo systemcti restart ssh
9-Add user and specify homedirectory
chaline@chaline-MacBookAir:~$ sudo rm -r /var/www/files/home/elizabethe okAir:~$ sudo rm
-r /var/www/files /home/evo
chaline@chaline-MacBookAir:~$ sudo systemcti restart ssh
10-configurations
/etc/nginx/sites-available/ftp-site
server {
server_name chalinebang.com www.chalinebang.com;
#root /var/www/; # Root directory
# This is my website
location / {
root /var/www/chalinebangworks/;
}
# This is for my FTP website
location /files {
autoindex on;
autoindex_exact_size on;
autoindex_format html;
root /var/www/;
add_before_body /header.html;
add_after_body /footer.html;
}
location = /header.html {
alias /var/www/header.html;
}
location = /footer.html {
alias /var/www/footer.html;
}
location = /autoindex.css {
alias /var/www/autoindex.css;
}
location = /autoindex.js {
alias /var/www/autoindex.js;
}
# Security (HTTPS)
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/chalinebang.com/fullchain.pem; # mana>
ssl_certificate_key /etc/letsencrypt/live/chalinebang.com/privkey.pem; # ma>
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.chalinebang.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = chalinebang.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name chalinebang.com www.chalinebang.com;
return 404; # managed by Certbot
}
11 How to make changes in the configuration
/var/sftp/files …
1: To change the FTP site go to /var/www/
Command: cd /var/www
2: See the files of the FTP site
command: ls
3: Open files
command: sudo nano autoindex.css (or autoindex.js, footer.html, header.html)
4: To save a file in nano:
CTRL+X, Y to save followed by ENTER (return)
5: After you’ve made a change reload nginx (optional)
command: sudo systemctl restart nginx
The most important commands to know;
Cd go home
ls, make a list
cd.. go back one step
Sudo – super user do
• sudo: super-user do, execute with root privileges.
• mv: move a file or directory.
• home/*: argument of mv command. It indicates the content of home directory. The asterisk * is a wildcard that expands to the list of files in the current directory in lexicographic order.
(Open this folder)
!! Sudo -Same command with sudo
Mkdir make directory
TAB
Sudo ufw - - help
Psql -h
nano
Ln link
Reflections- Websites are just paths, file pads - Go to your computer - Websites are file-ads - Serves you files, over the Web
Always index.html
sudo adduser --home /var/www/files/home/evo evo
sudo chmod 755 /var/www/files/home/evo
chalinebang@145-137-89-162 ~ % scp chalinewebsite.zip chaline@217.103.251.8:/home/chaline
chalinewebsite.zip
chaline@chaline-MacBookAir:/var/www$ ls
brigit files footer.html header.html nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ mkdir chalinebangworks
mkdir: cannot create directory ‘chalinebangworks’: Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo mkdir chalinebangworks
[sudo] password for chaline:
chaline@chaline-MacBookAir:/var/www$ ls
files header.html
chalinebangworks footer.html nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ cd
chaline@chaline-MacBookAir:~$ pwd
/home/chaline
chaline@chaline-MacBookAir:~$ ls
Desktop Music Templates duckdns
Documents Pictures Videos nextcloud-24.0.0.zip
Downloads Public chalinewebsite.zip snap
chaline@chaline-MacBookAir:~$ unzip chalinewebsite.zip
Archive: chalinewebsite.zip
creating: chalinewebsite/
inflating: chalinewebsite/hope.html
inflating: __MACOSX/chalinewebsite/._hope.html
inflating: chalinewebsite/moor.html
inflating: __MACOSX/chalinewebsite/._moor.html
inflating: chalinewebsite/trust2.png
...
chaline@chaline-MacBookAir:~$ ls
Desktop Music Templates chalinewebsite nextcloud-24.0.0.zip
Documents Pictures Videos chalinewebsite.zip snap
Downloads Public __MACOSX duckdns
chaline@chaline-MacBookAir:~$ rm -rf __MACOSX/
chaline@chaline-MacBookAir:~$ cd chalinewebsite/
chaline@chaline-MacBookAir:~/chalinewebsite$ ls
'Hormonal water filter copy.png' hope1.png seeing.png
'IDiot tiff copy 2.pngi.png' hormonal.html style.css
'Narcissus 3.png' idiot.html sunn.html
'Randomness is relational.png' index.html sunn.png
Seeing.html moor.html trainedbyyou.html
carlchen.gif moor.png trainedbyyou.png
decentralisation.html narcisssu2.png 'trust .png'
decentralisation.png narcissus.html trust.html
dream.html narcissus1.png trust2.png
'dream1 copy.png' narcissus2.png undeveloping.html
hope.html narcissus3.png undeveloping.png
hope.png randomness.html
chaline@chaline-MacBookAir:~/chalinewebsite$ sudo mv * /var/www/chalinebangworks/
chaline@chaline-MacBookAir:~/chalinewebsite$ ls
chaline@chaline-MacBookAir:~/chalinewebsite$ cd ..
chaline@chaline-MacBookAir:~$ rm -rf chalinewebsite
chaline@chaline-MacBookAir:~$ ls
Desktop Music Templates duckdns
Documents Pictures Videos nextcloud-24.0.0.zip
Downloads Public chalinewebsite.zip snap
chaline@chaline-MacBookAir:~$ cd /var/www/chalinebangworks/
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' hope1.png seeing.png
'IDiot tiff copy 2.pngi.png' hormonal.html style.css
'Narcissus 3.png' idiot.html sunn.html
'Randomness is relational.png' index.html sunn.png
Seeing.html moor.html trainedbyyou.html
carlchen.gif moor.png trainedbyyou.png
decentralisation.html narcisssu2.png 'trust .png'
decentralisation.png narcissus.html trust.html
dream.html narcissus1.png trust2.png
'dream1 copy.png' narcissus2.png undeveloping.html
hope.html narcissus3.png undeveloping.png
hope.png randomness.html
chaline@chaline-MacBookAir:/var/www/chalinebangworks$
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd /etc/nginx/sites-available/default
-bash: cd: /etc/nginx/sites-available/default: No such file or directory
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd /etc/nginx/sites-available
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo !!
sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ../sites-enabled/ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nginx -s reload
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ../sites-enabled/ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ certbot
The following error was encountered:
[Errno 13] Permission denied: '/var/log/letsencrypt/.certbot.lock'
Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-5k6id8z8/log or re-run Certbot with -v for more details.
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo certbot --nginx --dry-run
--dry-run currently only works with the 'certonly' or 'renew' subcommands ('run')
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-0u1rbf7_/log or re-run Certbot with -v for more details.
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: chalinebang.com
2: www.chalinebang.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Certificate not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/chalinebang.com.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Deploying certificate
Successfully deployed certificate for chalinebang.com to /etc/nginx/sites-enabled/ftp-site
Successfully deployed certificate for www.chalinebang.com to /etc/nginx/sites-enabled/ftp-site
Congratulations! You have successfully enabled HTTPS on https://chalinebang.com and https://www.chalinebang.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ../sites-enabled/ftp-site ^C
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nginx -t
nginx: [emerg] "alias" directive is duplicate, "root" directive was specified earlier in /etc/nginx/sites-enabled/ftp-site:19
nginx: configuration file /etc/nginx/nginx.conf test failed
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ cd /var/www/
chaline@chaline-MacBookAir:/var/www$ ls
brigit chalinebangworks files
chaline@chaline-MacBookAir:/var/www$ ls -la
total 20
drwxr-xr-x 5 root root 4096 mei 21 10:18 .
drwxr-xr-x 16 root root 4096 apr 18 14:45 ..
lrwxrwxrwx 1 root root 38 apr 16 12:24 .autoindex.css -> ./nginx-style-autoindex/.autoindex.css
lrwxrwxrwx 1 root root 37 apr 16 12:24 .autoindex.js -> ./nginx-style-autoindex/.autoindex.js
drwxr-x--- 5 brigit brigit 4096 apr 25 11:12 brigit
drwxr-xr-x 2 root root 4096 mei 21 09:51 chalinebangworks
drwxr-xr-x 3 sftpuser3 sftpuser3 4096 apr 25 11:21 files
chaline@chaline-MacBookAir:/var/www$ sudo su
root@chaline-MacBookAir:/var/www# cd brigit/
root@chaline-MacBookAir:/var/www/brigit# ls
brigit chaline ftp IMG_1485.JPG snap
root@chaline-MacBookAir:/var/www/brigit# cd ..
root@chaline-MacBookAir:/var/www# ls
brigit chalinebangworks files
root@chaline-MacBookAir:/var/www# mv brigit /home/chaline/
root@chaline-MacBookAir:/var/www# ls
chalinebangworks files
root@chaline-MacBookAir:/var/www# exit
exit
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files
chaline@chaline-MacBookAir:/var/www$ mkdir ftp_site
mkdir: cannot create directory ‘ftp_site’: Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo mkdir ftp_site
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files ftp_site
chaline@chaline-MacBookAir:/var/www$ git clone git clone https://github.com/julcap/nginx-style-autoindex.git
^C
chaline@chaline-MacBookAir:/var/www$ git clone https://github.com/julcap/nginx-style-autoindex.git
fatal: could not create work tree dir 'nginx-style-autoindex': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo git clone https://github.com/julcap/nginx-style-autoindex.git
Cloning into 'nginx-style-autoindex'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 66 (delta 24), reused 54 (delta 14), pack-reused 0
Receiving objects: 100% (66/66), 234.26 KiB | 3.17 MiB/s, done.
Resolving deltas: 100% (24/24), done.
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files ftp_site nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ cd nginx-style-autoindex/
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls -la
total 124
drwxr-xr-x 3 root root 4096 mei 21 10:22 .
drwxr-xr-x 6 root root 4096 mei 21 10:22 ..
-rw-r--r-- 1 root root 1371 mei 21 10:22 .autoindex.css
-rw-r--r-- 1 root root 2901 mei 21 10:22 .autoindex.js
drwxr-xr-x 8 root root 4096 mei 21 10:22 .git
-rw-r--r-- 1 root root 1860 mei 21 10:22 README.md
-rw-r--r-- 1 root root 48776 mei 21 10:22 after.png
-rw-r--r-- 1 root root 42453 mei 21 10:22 before.png
-rw-r--r-- 1 root root 38 mei 21 10:22 footer.html
-rw-r--r-- 1 root root 257 mei 21 10:22 header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo cp footer.html header.html .autoindex.css .autoindex.js ../ftp_site/
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ cd ..
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files ftp_site nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ cd ftp_site/
chaline@chaline-MacBookAir:/var/www/ftp_site$ ls
footer.html header.html
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nano
.autoindex.css .autoindex.js footer.html header.html
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nano /etc/nginx/sites-enabled/ftp-site
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nginx reload
nginx: invalid option: "reload"
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nginx relosudo systemctl restart nginx^C
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nano /etc/nginx/sites-enabled/ftp-site
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www/ftp_site$ ls
footer.html header.html
chaline@chaline-MacBookAir:/var/www/ftp_site$ sudo nano /etc/nginx/sites-enabled/ftp-site
chaline@chaline-MacBookAir:/var/www/ftp_site$ cd ..
chaline@chaline-MacBookAir:/var/www$ ls -la
total 24
drwxr-xr-x 6 root root 4096 mei 21 10:22 .
drwxr-xr-x 16 root root 4096 apr 18 14:45 ..
lrwxrwxrwx 1 root root 38 apr 16 12:24 .autoindex.css -> ./nginx-style-autoindex/.autoindex.css
lrwxrwxrwx 1 root root 37 apr 16 12:24 .autoindex.js -> ./nginx-style-autoindex/.autoindex.js
drwxr-xr-x 2 root root 4096 mei 21 09:51 chalinebangworks
drwxr-xr-x 3 sftpuser3 sftpuser3 4096 apr 25 11:21 files
drwxr-xr-x 2 root root 4096 mei 21 10:23 ftp_site
drwxr-xr-x 3 root root 4096 mei 21 10:22 nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ rm -rf f
files/ ftp_site/
chaline@chaline-MacBookAir:/var/www$ rm -rf ftp_site/
rm: cannot remove 'ftp_site/header.html': Permission denied
rm: cannot remove 'ftp_site/.autoindex.css': Permission denied
rm: cannot remove 'ftp_site/footer.html': Permission denied
rm: cannot remove 'ftp_site/.autoindex.js': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo rm -rf ftp_site/
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ ln -s ./nginx-style-autoindex/footer.html .^C
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ cd nginx-style-autoindex/
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ nano footer.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo !!
sudo nano footer.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ mv .autoindex.js autoindex.js
mv: cannot move '.autoindex.js' to 'autoindex.js': Permission denied
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo !!
sudo mv .autoindex.js autoindex.js
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png autoindex.js before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ mv .autoindex.css autoindex.css
mv: cannot move '.autoindex.css' to 'autoindex.css': Permission denied
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo !!
sudo mv .autoindex.css autoindex.css
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo nano header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ sudo !!
sudo sudo nano header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls -la
total 124
drwxr-xr-x 3 root root 4096 mei 21 10:26 .
drwxr-xr-x 5 root root 4096 mei 21 10:25 ..
drwxr-xr-x 8 root root 4096 mei 21 10:22 .git
-rw-r--r-- 1 root root 1860 mei 21 10:22 README.md
-rw-r--r-- 1 root root 48776 mei 21 10:22 after.png
-rw-r--r-- 1 root root 1371 mei 21 10:22 autoindex.css
-rw-r--r-- 1 root root 2901 mei 21 10:22 autoindex.js
-rw-r--r-- 1 root root 42453 mei 21 10:22 before.png
-rw-r--r-- 1 root root 38 mei 21 10:26 footer.html
-rw-r--r-- 1 root root 256 mei 21 10:26 header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ ls
README.md after.png autoindex.css autoindex.js before.png footer.html header.html
chaline@chaline-MacBookAir:/var/www/nginx-style-autoindex$ cd ..
chaline@chaline-MacBookAir:/var/www$ ls
chalinebangworks files nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ ls -la
total 20
drwxr-xr-x 5 root root 4096 mei 21 10:25 .
drwxr-xr-x 16 root root 4096 apr 18 14:45 ..
lrwxrwxrwx 1 root root 38 apr 16 12:24 .autoindex.css -> ./nginx-style-autoindex/.autoindex.css
lrwxrwxrwx 1 root root 37 apr 16 12:24 .autoindex.js -> ./nginx-style-autoindex/.autoindex.js
drwxr-xr-x 2 root root 4096 mei 21 09:51 chalinebangworks
drwxr-xr-x 3 sftpuser3 sftpuser3 4096 apr 25 11:21 files
drwxr-xr-x 3 root root 4096 mei 21 10:26 nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ rm -rf .autoindex.js
rm: cannot remove '.autoindex.js': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !1
sudo cd
sudo: cd: command not found
sudo: "cd" is a shell built-in command, it cannot be run directly.
sudo: the -s option may be used to run a privileged shell.
sudo: the -D option may be used to run a command in a specific directory.
chaline@chaline-MacBookAir:/var/www$ sudo rm -rf .autoindex.js
chaline@chaline-MacBookAir:/var/www$ sudo rm -rf .autoindex.css
chaline@chaline-MacBookAir:/var/www$ ln -s ./nginx-style-autoindex/footer.html .
ln: failed to create symbolic link './footer.html': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo ln -s ./nginx-style-autoindex/footer.html .
chaline@chaline-MacBookAir:/var/www$ sudo ln -s ./nginx-style-autoindex/header.html .
chaline@chaline-MacBookAir:/var/www$ ln -s ./nginx-style-autoindex/autoindex.css .
ln: failed to create symbolic link './autoindex.css': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo ln -s ./nginx-style-autoindex/autoindex.css .
chaline@chaline-MacBookAir:/var/www$ sudo ln -s ./nginx-style-autoindex/.autoindex.js .
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css chalinebangworks files footer.html header.html nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ ls -la
total 20
drwxr-xr-x 5 root root 4096 mei 21 10:27 .
drwxr-xr-x 16 root root 4096 apr 18 14:45 ..
lrwxrwxrwx 1 root root 37 mei 21 10:27 .autoindex.js -> ./nginx-style-autoindex/.autoindex.js
lrwxrwxrwx 1 root root 37 mei 21 10:27 autoindex.css -> ./nginx-style-autoindex/autoindex.css
drwxr-xr-x 2 root root 4096 mei 21 09:51 chalinebangworks
drwxr-xr-x 3 sftpuser3 sftpuser3 4096 apr 25 11:21 files
lrwxrwxrwx 1 root root 35 mei 21 10:27 footer.html -> ./nginx-style-autoindex/footer.html
lrwxrwxrwx 1 root root 35 mei 21 10:27 header.html -> ./nginx-style-autoindex/header.html
drwxr-xr-x 3 root root 4096 mei 21 10:26 nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ sudo rm -rf .autoindex.js
chaline@chaline-MacBookAir:/var/www$ sudo ln -s ./nginx-style-autoindex/autoindex.js .
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css chalinebangworks footer.html nginx-style-autoindex
autoindex.js files header.html
chaline@chaline-MacBookAir:/var/www$ sudo ln -s ./nginx-style-autoindex/header.html .^C
chaline@chaline-MacBookAir:/var/www$ sudo nano /etc/n
nanorc network/ newt/ nsswitch.conf
netconfig networkd-dispatcher/ nftables.conf
netplan/ networks nginx/
chaline@chaline-MacBookAir:/var/www$ sudo nano /etc/
Display all 241 possibilities? (y or n)
chaline@chaline-MacBookAir:/var/www$ sudo nano /etc/nginx/sites-available/ftp-site
chaline@chaline-MacBookAir:/var/www$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
chaline@chaline-MacBookAir:/var/www$ sudo nano /etc/nginx/sites-available/ftp-site
chaline@chaline-MacBookAir:/var/www$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css chalinebangworks footer.html nginx-style-autoindex
autoindex.js files header.html
chaline@chaline-MacBookAir:/var/www$ nano autoindex.css
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo nano autoindex.css
chaline@chaline-MacBookAir:/var/www$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www$ sudo nano autoindex.css
chaline@chaline-MacBookAir:/var/www$
rm -rf landingpage/
chaline@chaline-MacBookAir:/var/www/files/home$ cd /var/www/landingpage/
chaline@chaline-MacBookAir:/var/www/landingpage$ sudo mv landing.html index.html
chaline@chaline-MacBookAir:/var/www/landingpage$ ls
fonts imgs index.html landing.css
chaline@chaline-MacBookAir:/var/www/landingpage$ ll\
chaline@chaline-MacBookAir:/var/www/landingpage$ ll
total 24
drwxr-xr-x 4 root root 4096 jun 3 09:40 ./
drwxr-xr-x 6 root root 4096 mei 31 10:33 ../
drwxr-xr-x 2 root root 4096 mei 31 10:56 fonts/
drwxr-xr-x 2 root root 4096 mei 31 10:56 imgs/
-rw-r--r-- 1 root root 466 mei 31 10:56 index.html
-rw-r--r-- 1 root root 812 mei 31 10:56 landing.css
chaline@chaline-MacBookAir:/var/www/landingpage$ ls
fonts imgs index.html landing.css
chaline@chaline-MacBookAir:/var/www/landingpage$ cd ..
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css files landingfile nginx-style-autoindex
autoindex.js footer.html landingpage
chalinebangworks header.html nano.51021.save
chaline@chaline-MacBookAir:/var/www$ cd chalinebangworks/
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' hormonal.html server
'IDiot tiff copy 2.pngi.png' idiot.html style.css
'Narcissus 3.png' index.html sunn.html
'Randomness is relational.png' moor.html sunn.png
Seeing.html moor.png trainedbyyou.html
carlchen.gif narcisssu2.png trainedbyyou.png
decentralisation.html narcissus.html 'trust .png'
decentralisation.png narcissus1.png trust.html
dream.html narcissus2.png trust2.png
'dream1 copy.png' narcissus3.png undeveloping.html
hope.html randomness.html undeveloping.png
hope.png seedling
hope1.png seeing.png
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ mkdir landingpage
mkdir: cannot create directory ‘landingpage’: Permission denied
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ sudo !!
sudo mkdir landingpage
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd landingpage/
chaline@chaline-MacBookAir:/var/www/chalinebangworks/landingpage$ ls
chaline@chaline-MacBookAir:/var/www/chalinebangworks/landingpage$ touch index.html
touch: cannot touch 'index.html': Permission denied
chaline@chaline-MacBookAir:/var/www/chalinebangworks/landingpage$ sudo !!
sudo touch index.html
chaline@chaline-MacBookAir:/etc/nginx$ ls
conf.d fastcgi.conf fastcgi_params koi-utf koi-win mime.types modules-available modules-enabled nginx.conf proxy_params scgi_params sites-available sites-enabled snippets uwsgi_params win-utf
chaline@chaline-MacBookAir:/etc/nginx$ ls -la
total 80
drwxr-xr-x 8 root root 4096 jun 3 10:20 .
drwxr-xr-x 139 root root 12288 mei 31 06:34 ..
drwxr-xr-x 2 root root 4096 mei 30 2023 conf.d
-rw-r--r-- 1 root root 1125 mei 30 2023 fastcgi.conf
-rw-r--r-- 1 root root 1055 mei 30 2023 fastcgi_params
-rw-r--r-- 1 root root 2837 mei 30 2023 koi-utf
-rw-r--r-- 1 root root 2223 mei 30 2023 koi-win
-rw-r--r-- 1 root root 3957 mei 30 2023 mime.types
drwxr-xr-x 2 root root 4096 mei 30 2023 modules-available
drwxr-xr-x 2 root root 4096 feb 27 12:19 modules-enabled
-rw-r--r-- 1 root root 1447 mei 30 2023 nginx.conf
-rw-r--r-- 1 root root 180 mei 30 2023 proxy_param
-rw-r--r-- 1 root root 636 mei 30 2023 scgi_params
drwxr-xr-x 2 root root 4096 jun 3 10:30 sites-available
drwxr-xr-x 2 root root 4096 jun 3 10:33 sites-enabled
drwxr-xr-x 2 root root 4096 feb 27 12:19 snippets
-rw-r--r-- 1 root root 664 mei 30 2023 uwsgi_params
-rw-r--r-- 1 root root 3071 mei 30 2023 win-utf
chaline@chaline-MacBookAir:/etc/nginx$ cd sites-available/
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site ftp-site.backup seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano ftp-site
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls /var/www/
autoindex.css autoindex.js chalinebangworks files footer.html header.html nginx-style-autoindex
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls /var/www/
autoindex.css autoindex.js chalinebangworks files footer.html header.html nginx-style-autoindex
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ cd ch
-bash: cd: ch: No such file or directory
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ cd /var/www/chalinebangworks/
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' Seeing.html dream.html hope1.png landingpage narcissus.html randomness.html style.css trainedbyyou.png undeveloping.html
'IDiot tiff copy 2.pngi.png' carlchen.gif 'dream1 copy.png' hormonal.html moor.html narcissus1.png seedling sunn.html 'trust .png' undeveloping.png
'Narcissus 3.png' decentralisation.html hope.html idiot.html moor.png narcissus2.png seeing.png sunn.png trust.html
'Randomness is relational.png' decentralisation.png hope.png index.html narcisssu2.png narcissus3.png server trainedbyyou.html trust2.png
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ mv landingpage/ ../
mv: cannot move 'landingpage/' to '../landingpage': Permission denie
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ sudo !!
sudo mv landingpage/ ../
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd ..
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css autoindex.js chalinebangworks files footer.html header.html landingpage nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ pwd
/var/www
chaline@chaline-MacBookAir:/var/www$ sudo certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: files.chalinebang.com
2: seedling.chalinebang.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 2
Requesting a certificate for seedling.chalinebang.com
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/seedling.chalinebang.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/seedling.chalinebang.com/privkey.pem
This certificate expires on 2024-09-01.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
Deploying certificate
Successfully deployed certificate for seedling.chalinebang.com to /etc/nginx/sites-enabled/seedling
Congratulations! You have successfully enabled HTTPS on https://seedling.chalinebang.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
chaline@chaline-MacBookAir:/var/www$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www$ cd /etc/nginx/sites-available
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
ftp-site ftp-site.backup seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo cp ftp-site.backup chalinebangworks
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano chalinebangworks
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo nano chalinebangworks
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo ln -s /etc/nginx/sites-available/chalinebangworks /etc/nginx/sites-enabled/chalinebangworks
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ ls
chalinebangworks ftp-site ftp-site.backup seedling
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ sudo rm -rf ftp-site.backup
chaline@chaline-MacBookAir:/etc/nginx/sites-available$ cd
chaline@chaline-MacBookAir:~$ cd /var/www/files/home/
chaline@chaline-MacBookAir:/var/www/files/home$ ls
anne annick carlota caspar chalinebang elizabete jannar laura-lize marty mathilde nathan omid sam
chaline@chaline-MacBookAir:/var/www/files/home$ sudo rm -rf caspar
chaline@chaline-MacBookAir:/var/www/files/home$ ls
anne annick carlota chalinebang elizabete jannar laura-lize marty mathilde nathan omid sam
chaline@chaline-MacBookAir:/var/www/files/home$ cd annick
chaline@chaline-MacBookAir:/var/www/files/home/annick$ ls
'Appointment movie music .mp4' snap
chaline@chaline-MacBookAir:/var/www/files/home/annick$ sudo rm -rf snap
[sudo] password for chaline:
chaline@chaline-MacBookAir:/var/www/files/home/annick$ ls
'Appointment movie music .mp4'
chaline@chaline-MacBookAir:/var/www/files/home/annick$ ..cd
..cd: command not found
chaline@chaline-MacBookAir:/var/www/files/home/annick$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ carlota
carlota: command not found
chaline@chaline-MacBookAir:/var/www/files/home$ cd carlota
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ ls
'Cookbook for Radical Love' IMG_1484.JPG snap
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ ls
'Cookbook for Radical Love' IMG_1484.JPG
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ sudo rm -rf snap IMG_1484.JPG
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ ls
'Cookbook for Radical Love'
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ ..cd
..cd: command not found
chaline@chaline-MacBookAir:/var/www/files/home/carlota$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd chaline
-bash: cd: chaline: No such file or directory
chaline@chaline-MacBookAir:/var/www/files/home$ cd chalinebang
chaline@chaline-MacBookAir:/var/www/files/home/chalinebang$ ls
'Chaline Bang - DIGITAL GARDEN.pdf' 'DIGITAL GARDEN now.pdf' 'Screenshot 2024-05-17 at 16.50.46.png' def-gif.gif seedlingtop.gif snap
'DIGITAL GARDEN 1.pdf' 'My Movie 5.mp4' def-gif-ezgif.com-crop-2.gif diydigitalgarden.mp4 'situated server.mp4' 'zine 3.pdf'
chaline@chaline-MacBookAir:/var/www/files/home/chalinebang$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/chalinebang$ cd elizabete
-bash: cd: elizabete: No such file or directory
chaline@chaline-MacBookAir:/var/www/files/home/chalinebang$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd elizabete
chaline@chaline-MacBookAir:/var/www/files/home/elizabete$ ls
BW5.png bw1.png bw2.png bw3.png snap 'tiger face 1.png'
chaline@chaline-MacBookAir:/var/www/files/home/elizabete$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/elizabete$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd jannar
chaline@chaline-MacBookAir:/var/www/files/home/jannar$ ls
snap
chaline@chaline-MacBookAir:/var/www/files/home/jannar$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/jannar$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd ..
chaline@chaline-MacBookAir:/var/www/files$ cd /home
chaline@chaline-MacBookAir:/home$ cd
chaline@chaline-MacBookAir:~$ cd /var/www/files/home/
chaline@chaline-MacBookAir:/var/www/files/home$ cd laura-lize
chaline@chaline-MacBookAir:/var/www/files/home/laura-lize$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/laura-lize$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd marty
chaline@chaline-MacBookAir:/var/www/files/home/marty$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/marty$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd mathilde/
chaline@chaline-MacBookAir:/var/www/files/home/mathilde$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/mathilde$
chaline@chaline-MacBookAir:/var/www/files/home/mathilde$ cd ..
chaline@chaline-MacBookAir:/var/www/files/home$ cd nathan/
chaline@chaline-MacBookAir:/var/www/files/home/nathan$ sudo rm -rf snap
chaline@chaline-MacBookAir:/var/www/files/home/nathan$
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css autoindex.js chalinebangworks files footer.html header.html landingpage nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$ cd landingpage/
chaline@chaline-MacBookAir:/var/www/landingpage$ ls
fonts imgs index.html landing.css
chaline@chaline-MacBookAir:/var/www/landingpage$ cd ..
chaline@chaline-MacBookAir:/var/www$ mv landingpage/ chalinebangworks/
mv: cannot move 'landingpage/' to 'chalinebangworks/landingpage': Permission denied
chaline@chaline-MacBookAir:/var/www$ sudo !!
sudo mv landingpage/ chalinebangworks/
chaline@chaline-MacBookAir:/var/www$ ls
autoindex.css autoindex.js chalinebangworks files footer.html header.html nginx-style-autoindex
chaline@chaline-MacBookAir:/var/www$
chaline@chaline-MacBookAir:/var/www$ cd chalinebangworks/
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' Seeing.html dream.html hope1.png landingpage narcissus.html randomness.html style.css trainedbyyou.png undeveloping.html
'IDiot tiff copy 2.pngi.png' carlchen.gif 'dream1 copy.png' hormonal.html moor.html narcissus1.png seedling sunn.html 'trust .png' undeveloping.png
'Narcissus 3.png' decentralisation.html hope.html idiot.html moor.png narcissus2.png seeing.png sunn.png trust.html
'Randomness is relational.png' decentralisation.png hope.png index.html narcisssu2.png narcissus3.png server trainedbyyou.html trust2.png
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls -la
total 7528
drwxr-xr-x 5 root root 4096 jun 3 10:03 .
drwxr-xr-x 5 root root 4096 jun 3 10:03 ..
-rw-r--r-- 1 chaline chaline 667766 mrt 26 13:38 'Hormonal water filter copy.png'
-rw-r--r-- 1 chaline chaline 53179 mrt 21 13:23 'IDiot tiff copy 2.pngi.png'
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd landingpage/
chaline@chaline-MacBookAir:/var/www/chalinebangworks/landingpage$ ll
total 24
drwxr-xr-x 4 root root 4096 jun 3 09:40 ./
drwxr-xr-x 5 root root 4096 jun 3 10:03 ../
drwxr-xr-x 2 chaline chaline 4096 mei 31 10:56 fonts/
drwxr-xr-x 2 chaline chaline 4096 mei 31 10:56 imgs/
-rw-r--r-- 1 chaline chaline 466 mei 31 10:56 index.html
-rw-r--r-- 1 chaline chaline 812 mei 31 10:56 landing.css
chaline@chaline-MacBookAir:/var/www/chalinebangworks/landingpage$ cd ..
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ mkdir test
mkdir: cannot create directory ‘test’: Permission denied
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ sudo !!
sudo mkdir test
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ cd test/
chaline@chaline-MacBookAir:/var/www/chalinebangworks/test$ ls
chaline@chaline-MacBookAir:/var/www/chalinebangworks/test$ touch index.html
touch: cannot touch 'index.html': Permission denied
chaline@chaline-MacBookAir:/var/www/chalinebangworks/test$ sudo !!
sudo touch index.html
chaline@chaline-MacBookAir:/var/www/chalinebangworks/test$ sudo nano index.html
chaline@chaline-MacBookAir:/var/www/chalinebangworks/test$ cd ..
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' Seeing.html dream.html hope1.png landingpage narcissus.html randomness.html style.css trainedbyyou.html trust2.png
'IDiot tiff copy 2.pngi.png' carlchen.gif 'dream1 copy.png' hormonal.html moor.html narcissus1.png seedling sunn.html trainedbyyou.png undeveloping.html
'Narcissus 3.png' decentralisation.html hope.html idiot.html moor.png narcissus2.png seeing.png sunn.png 'trust .png' undeveloping.png
'Randomness is relational.png' decentralisation.png hope.png index.html narcisssu2.png narcissus3.png server test trust.html
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ sudo systemctl restart nginx
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' Seeing.html dream.html hope1.png landingpage narcissus.html randomness.html style.css trainedbyyou.html trust2.png
'IDiot tiff copy 2.pngi.png' carlchen.gif 'dream1 copy.png' hormonal.html moor.html narcissus1.png seedling sunn.html trainedbyyou.png undeveloping.html
'Narcissus 3.png' decentralisation.html hope.html idiot.html moor.png narcissus2.png seeing.png sunn.png 'trust .png' undeveloping.png
'Randomness is relational.png' decentralisation.png hope.png index.html narcisssu2.png narcissus3.png server test trust.html
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ sudo rm -rf test/v
chaline@chaline-MacBookAir:/var/www/chalinebangworks$ ls
'Hormonal water filter copy.png' Seeing.html dream.html hope1.png landingpage narcissus.html randomness.html style.css trainedbyyou.png undeveloping.html
'IDiot tiff copy 2.pngi.png' carlchen.gif 'dream1 copy.png' hormonal.html moor.html narcissus1.png seedling sunn.html 'trust .png' undeveloping.png
'Narcissus 3.png' decentralisation.html hope.html idiot.html moor.png narcissus2.png seeing.png sunn.png trust.html
'Randomness is relational.png' decentralisation.png hope.png
index.html narcisssu2.png narcissus3.png server trainedbyyou.html trust2.png
chaline@chaline-MacBookAir:/var/www/chalinebangworks$