Search The Hostwinds Guides Knowledge Base

Create a sudo user (CentOS 7)

…a session, you’ll be prompted for the password to complete the command. If you followed this guide and the password was entered correctly, you should now see the directory listing for the root user. Having and using a sudo user is an excellent security practice, as it ensures that you can still enjoy the benefits of having the root user’s privileges without some of the risks associated with using the root account all of the time.   Related Articles Create A Sudo User (Ubuntu) Changing File Ownership and Permissions in Linux Common Commands (CentOS 7) Getting Started With CentOS 7… […]

Read More…

Common Linux Commands

Linux is an open source operating system that has been available since the mid 1990’s and powers multiple devices from home appliances to smartphones. Linux is comprised of various different distributions such as Ubuntu, CentOS and Linux Mint. Each distro has it’s own take on the desktop and overall user environment for home PC use, however when utilizing Linux for a server you’ll primarily utilize the terminal or shell interface. Like all operating systems Linux has a plethora of different commands that can be utilized from within the shell or terminal interface. In this article we will list off some… […]

Read More…

How to Install Virtualmin (CentOS 7)

…distros:   CentOS/RHEL/Scientific Linux 7 on x86_64 CentOS/RHEL/Scientific Linux 5 and 6 on i386 or x86_64 Debian 6, 7, and 8 on i386 or amd64 Ubuntu 12.04 LTS, 14.04 LTS, and 16.04 LTS on i386 or amd64 (non-LTS releases are not supported)   The following steps can be utilized to install Virtualmin in a CentOS 7 (RHEL 7) environment.   Ensure your server is up to date   yum update -y     Install perl for the Virtualmin script to execute correctly   yum install perl -y     Download the Virtualmin installer script using wget   wget http://software.virtualmin.com/gpl/scripts/install.sh  … […]

Read More…

Installing WordPress using Softaculous

…that it assigns unless you’re comfortable with databases and have already set one up that you want to use Don’t use admin for your username to login for security reasons Generate a strong admin password and store this in a safe place Enable the installation of the Limit Login Attempts plugin By default, your installation of WordPress will upgrade automatically You may also choose to auto upgrade themes and features, although this is not enabled by default in the Advanced Options area   Helpful Related Articles   Installing WordPress On Centos-WebPanel Installing WordPress On Ubuntu 16.04 CPanel And WHM Overview… […]

Read More…

Setting Up The Hostwinds VPN On Linux

…can configure your Hostwinds VPN on Linux by performing the following steps:   Download and install the network-manager-openvpn-gnome (or its equivalent if you’re using something other than Network Manager) using a package manager (Debian, Ubuntu, etc) Unzip the TBLK file somewhere Go to your notification area Click the Network Manager icon Choose VPN Connections > Configure VPN In the window that comes up, click Import on the right Select the Hostwinds-VPN.ovpn from where you unzipped the TBLK file Input your login credentials that were emailed to you – You can also choose whether to connect automatically and whether the VPN… […]

Read More…

How To Install MongoDB on Linux

…on Debian Login to your server via SSH. After you have successfully logged in, like the above steps for CentOS, you’ll want to add the repository to the package manager. To do this, it’ll require an additional step. Start by running this command here: sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 The package manager that we will be using to install MongoDB, apt , requires that packages are signed with GPG keys. That command imports the MongoDB public GPG key for us to use. Now you’ll want to add the repository for MongoDB to the package manager. This will usually… […]

Read More…

Managing IPTables Rules

…commands:   Note: IPTables should be pre-installed on CentOS 6.   Ubuntu   apt-get install iptables-persistent   CentOS 7   systemctl stop firewalld systemctl mask firewalld yum install iptables-services systemctl enable iptables systemctl start iptables   IPTables will now be installed on your system. Let’s take a look at how to use IPTables.   How do I use IPTables? This section will cover some basic IPTables specific commands and uses, such as how to list your current ruleset and blocking an IP address from establishing a connection.   List Rules by Specification To list the currently active ruleset by specification… […]

Read More…

Best Security Practices For A Linux Server

How Can I Secure My Linux Server? A number of measures can be taken to secure your server in the best way possible to mitigate malicious issues. Below you’ll find some of the best practices to apply when securing your Linux servers.   Changing The SSH Port How To Change Your SSH Port Create A Second User That Is Not Root Creating A User From The Command Line Or Shell (Please See Steps Below) How To Create A New User (CentOS 7) How To Create A New User (Ubuntu) Restrict Access To The Root User(s), Either Through IP Address Or… […]

Read More…

How to Change Your Hostname In Linux

…9 and Ubuntu 16.04 and Later Step One: Log into your server via SSH as a user with sudo permissions Step Two: Enter the command as follows, replacing HOSTNAME with the hostname you are wanting to set for the system   sudo hostnamectl set-hostname HOSTNAME   Step Three: If you have any services that rely on the hostname, you may need to restart them for them to see the change. Alternatively, you can simply reboot the server to enact the change as well   Replace newhostnamehere with the new hostname you would like to start using   If using another… […]

Read More…