Blog
About
  • How to Enable Login With Password on Linux

    Feb 18, 2020

    Let’s update the Password Authentication parameter in the ssh service config file: 1vim /etc/ssh/sshd_config Hey, what? You can't even find the sshd service? Install it then: 1sudo apt update 2sudo apt install openssh-server In the /etc/ssh/sshd_config file, uncomment this line: 1#PasswordAuthentication yes Boom! Done. …

    Read More
  • How to Configure Virtual Hosts on Centos 7 Apache Server

    Dec 20, 2019

    Prerequisites for a vhost setup: 1chown -R apache:apache /path_to/site_root Set the permission of the root directory to 755, you may already know. 🙂 Well, let’s create a vhost config file before you edit it. 1cd /etc/httpd/conf.d 2vim domain_name.conf Now, grab this content to your config file: 1<VirtualHost …

    Read More
  • How to Fix OpenVPN Socket Bind Failure

    Dec 6, 2019

    I recently came up with this error on one of my OpenVPN servers. "OpenVPN - Socket bind failed on local address [AF_INET] IP:#portnum: Cannot assign requested address" Let me share how I did fix it. First off, check this openvpn’s default init script : [email protected] 1sudo grep After …

    Read More
  • How to Auto-Login to a Linux Server Using Public Key

    Nov 19, 2019

    This is a manual version of ssh-copy-id command. Let’s say that we are logging in to server named B from a local machine named A. First off, generate authentication key pair without passphrase on the local machine A: 1ssh-keygen -t rsa Now you got a public key of your local machine, of which path is: 1cd ~/.ssh 2cat …

    Read More
  • How to Login Using PPK File With SSH

    Nov 19, 2019

    In some situations, you are given only a ppk file for access to a cloud server. You know, however, it's for Putty on windows, not for OpenSSH client which might be the most familiar to you.🤔 I am gonna introduce a method to convert a ppk file into a pem file so that you can login to the linux server with ssh command …

    Read More
  • How to Install OpenVPN Server on Any Distro of Linux

    Nov 17, 2019

    Thanks to Stan's great work, it became so delightful to run your own secure and stable private VPN server. It's never been so easy. 👍 Download the installation script like this: 1wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh Change file permission to executable like this: …

    Read More
  • How to Install Webmin on Centos7

    Nov 3, 2019

    Webmin Login Screen First off, access to the server via ssh with root. Install dependencies with this command: 1yum -y install wget perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect perl-Data-Dumper unzip Create a repo file like this: 1nano /etc/yum.repos.d/webmin.repo 1[Webmin] 2name=Webmin Distribution …

    Read More

Crazy Optimist

Crazy Optimist, Software Engineer
Read More

Featured Posts

  • How to Make a Swap Space Using a Swap File in Linux
  • How to Setup a Nginx Reverse Proxy With Let's Encrypt for Microservices

Recent Posts

  • Git Cheatsheet - 2021
  • Podman Basic Notes

Categories

DEVOPS 22 SERVER 7 LINUX 4 DOCKER 3 GOLANG 2 API 1 CICD 1 KUBERNETES 1 NODEJS 1 PODMAN 1

Copyright © 2021 CRAZY OPTIMIST. All Rights Reserved