Skip to content
Snippets Groups Projects
Commit 5ff683e7 authored by ANTO SAGAYA JUSTIN R's avatar ANTO SAGAYA JUSTIN R :speech_balloon:
Browse files

Update Domain

parent c87ffc51
No related branches found
No related tags found
No related merge requests found
Domain Full Setup:
1. Download first any webpage zip file use this site ( codepen )
2. Create ( htdocs ) -> folder and past the Download webpade and (unzip)
3. Copy webpade disk folder path ( cd htdocs/webpade-folder/disk ) and pwd (print working directory)
4. Copy that working directory path.
5. Create folder call htconfig. Create file call domain name.conf example ( animation.conf ).
6. Past that working directory path ( Document Root and Directory).
7. Set server name call ServerName animation.selfmade.cool
( ServerAlias www.animation.selfmade.lol responsive.selfmade.ninja ) multiple ServerName.
Start domain apache server cmd:
sudo a2ensite animation.selfmade.cool
Apache server restart cmd:
sudo service apache2 restart.
Check any syntax error cmd:
apachectl configtest
=> syntax ok
Any python packages installing to environment error: Any python packages installing to environment error:
sudo aptget install colour --break-system-packages sudo aptget install colour --break-system-packages
vs code remote ssh connecting error on raspberry pi:
sudo rm -r .vscode* ( This command remove vs code server file on RPI.)
This is linux cmd:
rm -f ~/ .ssh/known_hosts ( warning remot host identification has changed delete old known_hosts.)
Create a Venv File: Create a Venv File:
python -m venv iotcloud python -m venv iotcloud
Activate This Venv File: Activate This Venv File:
source iotcloud/bin/activate source iotcloud/bin/activate
Git command meaning: Git command details:
1. git push origin master ( pushes the local master branch to the remote repository. ) 1. git push origin master/main ( pushes the master branch. )
2. git push origin main ( git push to main branch. ) 2. git remote -v ( View in your Current remote repositories URL.)
3. git remote -v ( your record of remote repositories.) 3. git status ( view git current status.)
WireGuard Private key command info:
sudo chmod go= /etc/wireguard/private.key
info: The sudo chmod go=... command removes any permissions
on the file for users and groups other than the root user to
ensure that only it can access the private key.
sudo cat /etc/wireguard/private.key | wg pubkey | sudo tee /etc/wireguard/public.key
This command consists of three individual commands that
are chained together using the | (pipe) operator:
1.sudo cat /etc/wireguard/private.key: this command reads the private key
file and outputs it to the standard output stream.
2.wg pubkey: the second command takes the output from the first command as
its standard input and processes it to generate a public key.
3.sudo tee /etc/wireguard/public.key: the final command takes the output
of the public key generation command and redirects it into the file named /etc/wireguard/public.key.
vs code remote ssh connecting error on raspberry pi:
sudo rm -r .vscode* ( This command remove vs code server to RPI.)
This is linux cmd:
rm -f ~/ .ssh/known_hosts ( warning remot host identification has changed delete old known_hosts.)
Linex System PC Full Information Command: Linex System PC Full Information Command:
/proc/cpuinfo /proc/cpuinfo
...@@ -47,11 +46,6 @@ python strip function: ...@@ -47,11 +46,6 @@ python strip function:
1. your code or any input valu for example cpuinfo and whoami any tab space to your code error. 1. your code or any input valu for example cpuinfo and whoami any tab space to your code error.
2. use strip to illuminate the extra spaces. 2. use strip to illuminate the extra spaces.
Flask redirect package:
This is a basic illustration of redirection in Flask.
You can redirect to any route within your Flask application using the redirect() function.
combined with url_for() to specify the route's endpoint.
vs code shortcuts: vs code shortcuts:
Alt+up arow = move line. Alt+up arow = move line.
ctl+shift+enter = empty line for befor line. ctl+shift+enter = empty line for befor line.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment