67 lines
1.5 KiB
Markdown
67 lines
1.5 KiB
Markdown
install with in ubuntu
|
|
`apt install nano micro nginx certbot python3-certbot-nginx btop tmux
|
|
openjdk-21-jre-headless:amd64 nodejs`
|
|
|
|
for minimum npm install do this
|
|
`apt install npm --no-install-recommends`
|
|
|
|
also install pm2
|
|
`npm install pm2@latest -g`
|
|
|
|
before doing this so `apt update` for indexing
|
|
|
|
some other through executables
|
|
broot, dua
|
|
|
|
when extracting tar.gz use this
|
|
`tar -xzvf filename.tar.gz` and when only .tar then use `-xvf` and dont use `z`.
|
|
|
|
or for destination
|
|
`tar -xzvf example.tar.gz -C /path/to/destination/`
|
|
|
|
to copy everything including root files do this
|
|
`cp -r /source/directory/* /destination/directory/` : this will copy regular files
|
|
`cp -r /source/directory/.* /destination/directory/` : this will copy dotfiles
|
|
|
|
|
|
projects
|
|
|
|
1. quiz management site : spring project
|
|
```sh
|
|
cd ~/projects/java/quiz_app
|
|
java -jar demo-0.0.1-SNAPSHOT.jar
|
|
```
|
|
2. dropzone
|
|
```sh
|
|
cd ~/projects/node/hostfile_project/main
|
|
pm2 start ecosystem.config.js --no-daemon
|
|
|
|
```
|
|
3. movie recommendation site
|
|
```sh
|
|
cd ~/projects/node/movie_back
|
|
npm start
|
|
```
|
|
|
|
4. smart-brain
|
|
```sh
|
|
cd ~/projects/node/face-extractor/smart-brain
|
|
npm start
|
|
```
|
|
|
|
5. unofficial blog
|
|
```sh
|
|
cd ~/projects/static/unofficial_blog_build
|
|
python3 -m http.server 9020
|
|
```
|
|
|
|
after this expose port 80 and 443 so these sites can be access to main host
|
|
`podman run -itd -p 80:80 -p 443:443 --name vps1 vps-image:v1 /bin/bash`
|
|
and
|
|
`podman exec -it vps1 bash`
|
|
|
|
start/reload nginx inside by
|
|
`nginx -s reload`
|
|
and
|
|
to stop and rm container name
|
|
`podman stop vps1 && podman rm vps1`
|