diff --git a/create venv file/create venv file.txt b/create venv file/create venv file.txt index 8f4e114d686350f1e7e22a1e47b1a1520a209c65..bd7a7892aadfb8b491f8b2af80cc48ea64912b49 100644 --- a/create venv file/create venv file.txt +++ b/create venv file/create venv file.txt @@ -1,44 +1,43 @@ +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: 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: python -m venv iotcloud Activate This Venv File: source iotcloud/bin/activate -Git command meaning: - 1. git push origin master ( pushes the local master branch to the remote repository. ) - 2. git push origin main ( git push to main branch. ) - 3. git remote -v ( your record of remote repositories.) - -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.) - +Git command details: + 1. git push origin master/main ( pushes the master branch. ) + 2. git remote -v ( View in your Current remote repositories URL.) + 3. git status ( view git current status.) Linex System PC Full Information Command: /proc/cpuinfo @@ -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. 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: Alt+up arow = move line. ctl+shift+enter = empty line for befor line.