Skip to content

Instantly share code, notes, and snippets.

@LetsCreatProjects
LetsCreatProjects / gist:0dc71ced6c2496b1241297f1b2d344a9
Created April 5, 2024 21:50
Docker Hello world : create image of NodeJS web server with Docker, on Linux Ubuntu
Installation on Linux Ubuntu:
install docker with those commands:
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt install docker.io
- systemctl start docker
- systemctl enable docker
- docker --version
@LetsCreatProjects
LetsCreatProjects / gist:2d2c1118d50ffb90cb5d4c501f217f57
Created April 5, 2024 21:30
Solved ! Error: Using a SSH password instead of a key is not possible. Ubuntu. Linux. Ansible
msg Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this
You are getting this error because when we do SSH in the remote system it will ask yes or no.
But Ansible doesn't have the capability to ask this in run time.
So you need to disable host_key_checking in your ansible.conf file as shown below:
sudo nano /etc/ansible/ansible.cfg
[defaults]
inventory = /etc/ansible/hosts
bash: ./{file}: Premission denied SOLVED!
1.insert command: chmod +x {name of the file to run}
@LetsCreatProjects
LetsCreatProjects / gist:55d0d84e91753d659424dc288014e919
Created April 5, 2024 21:11
Forgot password in linux VirtualBox SOLVED!
Forgot password in linux. VirtualBox. SOLVED!
1. restart.
2. press left shift
3. chose second option + Enter
4. chose second option again + Enter
5. choose root
6. Enter
7. input:
mount -rw -o remount /
@LetsCreatProjects
LetsCreatProjects / gist:a44b1aec8a0b5c5b98f405b6fa97c138
Created April 5, 2024 20:38
Ubuntu > Warning : DEPRECATION section in apt key8 for details. Fixed!
sudo apt install unity-lens-applications
sudo apt install unity-lens-music
sudo apt install unity-lens-video
sudo apt install unity-lens-files
sudo apt install unity-lens-photos
Create external var outside .yml file. Ansibel
1.create dir "ansibleExternVar"
sudo mkdir /etc/ansible/roles/ansibleExternVar
2. enter dir
cd /etc/ansible/roles/ansibleExternVar
2. Create 2 file
sudo nano hello_ansble_varsV4.yml
sudo nano varsV4