Generate an SSH Key for Ansible  [draft]

Generating and Using an SSH Key for Secure Server Access To generate a strong SSH key, run the following command: ssh-keygen -t ed25519 -C "ansible" You will be prompted to choose a folder and name for the SSH key: Generating public/private ed25519 key pair. Enter file in which to save the key (/home/marcin/.ssh/id_ed25519): /home/marcin/.ssh/ansible/ansible Next, copy the SSH key to the server(s) you want to access. However, before you do so, you must first log in to the server(s) using your name and password:...

July 14, 2022 · Marcin M

Mount Windows Shares Folder Permanently  [draft]

This document describes how to mount CIFS shares permanently. The shares might be hosted on a Windows computer/server, or on a Linux/UNIX server running Samba. ...

July 12, 2022 · Marcin M

Can't Access Oracle Cloud Always Free Compute Http Port 80

Can’t access Oracle Cloud Always Free Compute http port configure ingress route for port 80 curl localhost should bring back webpage in text format, however fails over internet. sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT sudo netfilter-persistent save test your web page over internet

June 25, 2022 · Marcin M

Install NGINX on Debian Ubuntu

To get started with NGINX Open Source or NGINX Plus, you first need to install it on a system and learn some basics. Installing on Debian/Ubuntu Create a file named /etc/apt/sources.list.d/nginx.list that contains the following contents: sudo nano /etc/apt/sources.list.d/nginx.list content of nginx.list deb http://nginx.org/packages/mainline/OS/ CODENAME nginx deb-src http://nginx.org/packages/mainline/OS/ CODENAME nginx check you system OS and CODENAME lsb_release -a the file nginx.list should be look like below # comment deb http://nginx.org/packages/mainline/ubuntu/ focal nginx deb-src http://nginx....

June 25, 2022 · Marcin M

Proxmox Cloud Ubuntu Template Creation

Cloud-Init Support Preparing Cloud-Init Templates The first step is to prepare your VM. You can use any VM. Simply install the Cloud-Init packages inside the VM that you want to prepare. On Debian/Ubuntu-based systems this is as simple as: apt-get install cloud-init Already many distributions provide ready-to-use Cloud-Init images (provided as .qcow2 files), so alternatively you can simply download and import such images. For the following example, we will use the cloud image provided by Ubuntu at https://cloud-images....

June 24, 2022 · Marcin M