Blog
About
  • Setup Wireguard VPN Server on Ubuntu

    Feb 4, 2021

    This tutorial is going to show you how to set up your own WireGuard VPN server on Ubuntu. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …

    Read More
  • Setup Wireguard VPN Server on CentOS

    Feb 4, 2021

    This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …

    Read More
  • 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 Auto Start OpenVPN Client on Ubuntu Bionic

    Jan 6, 2020

    Make it as a daemon. Assuming you already have your cert-file-name.ovpn file. 🙂 OpenVPN client service name would be [email protected] Put your cert file inside /etc/openvpn directory like so: 1mv /path/to/cert-file-name.ovpn /etc/openvpn/ And then enable the service: 1sudo killall openvpn 2sudo systemctl enable …

    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

  • Setup Wireguard VPN Server on Ubuntu
  • Setup Wireguard VPN Server on CentOS

Categories

DEVOPS 22 NETWORK 10 LINUX 4 DOCKER 3 GOLANG 2 CICD 1 JAVASCRIPT 1 KUBERNETES 1 PODMAN 1

Copyright © 2021 CRAZY OPTIMIST. All Rights Reserved