[Newbie] Linux Server Building

Status
Not open for further replies.

Earl Denamarca

New Member
3
2018
0
0
Hi,

I am beginner to Linux, I know some basic commands. I want to build a Linux Server but I don't know what type of server(eg. DNS Server, Email Server or Web Server) should I build first since I'm a beginner. Any suggestions would be appreciated.
 
6 comments
Well, you can install CentOs 7 with any control panel, since control panel comes with all the packages, ready to use DNS, email, FTP or web server. Moreover, if you have a good budget, you can install cpanel. Later on, you may decide your purpose to use the server.
Hope it helps, Earl :)
 
Well, you can install CentOs 7 with any control panel, since control panel comes with all the packages, ready to use DNS, email, FTP or web server. Moreover, if you have a good budget, you can install cpanel. Later on, you may decide your purpose to use the server.
Hope it helps, Earl :)

Thank you very much!!! This helps a lot
 
You should check out VestaCP, It's free and It will install all of the things you need/want with a single command.

You can also use the Installation script below, which we are using for our customers. It will work with Ubuntu/Debian and will install everything, Update your system and conveniently post the login credentials to your start screen.

If you need any help, please do not hesitate to contact us, We'll be more than happy to assist with anything you need.

Happy Hacking,
Guardoo.com

Code:
#!/bin/bash

# ==============================================================================
# The MIT License (MIT)
#
# Copyright (c) 2017-2018 Guardoo LTD (United Kingdom)
# Email: contact@guardoo.com
# GitHub: https://github.com/guardoo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# ==============================================================================

set -Eeuo pipefail


# Update and Upgrade APT
apt-get -y update
apt-get -y upgrade


# Generate password for the Vesta Control Panel admin user
VESTA_PASS=$(tr </dev/urandom -dc _A-Z-a-z-0-9 | head -c32) || true

# Install Vesta Control Panel
function install_vestacp() {
	apt-get -y install software-properties-common
	apt-add-repository universe

	curl -O http://vestacp.com/pub/vst-install.sh
	bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi no \
		--vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no \
		--exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous no \
		--mysql yes --postgresql no --hostname "$(hostname -I | cut -f1 -d' ')" \
		--email admin@example.com --password "${VESTA_PASS}" <<CMD_EOF
y
CMD_EOF
}

# Add a message to login motd, with credentials script created
function setup_motd() {
	local MOTD_FILE='/etc/update-motd.d/99-credentials'
	cat >"${MOTD_FILE}" <<CMD_EOF
#!/bin/bash
echo 'Vesta Control Panel Login Credentials'
echo 'You can login at https://$(hostname -I | cut -f1 -d" "):8083/'
echo 'Use username/password: admin/${VESTA_PASS}'
CMD_EOF
	chmod +x "${MOTD_FILE}"
}

# Install cURL
apt-get install -y curl


install_vestacp;
setup_motd;
 
Status
Not open for further replies.
Back
Top