Setting up ubuntu with webmin/virtualmin/usermin/ installed by install.sh

9 posts / 0 new
Last post
#1 Thu, 04/15/2010 - 06:15
AllanIT

Setting up ubuntu with webmin/virtualmin/usermin/ installed by install.sh

The purpose of this is to assist me to write a basic how to, to install ubuntu with webmin/virtualmin/usermin/ installed by install.sh.

Basic assumptions. All assumptions below are fake but useful as this example.

The server will be named “server1”

I have 2 domains registered and hosted elsewhere, which are to be moved to “server1” as soon as possible.

Company.com.au Mycustomer.com.au

I have a static external IP Address 230.154.xxx.xxx My internal IP Address is 192.100.100.100

Steps to Install ubuntu

  1. Insert your Ubuntu install CD into your system and boot it.
  2. Select the language for the install prosess.
  3. Then select Install Ubuntu Server
  4. Choose your language for the operating system after it is installed.
  5. Then select your location and region and territory (2 or 3 screens)
  6. Then select your keyboard layout (several ways to select the keyboard layout follow the best foe you. 2 to 8 screens)

Q1: When I install ubuntu and it reaches the question “Please enter the hostname for this system.” I enter “server1” (of course without the quotes) is that correct?

  1. Then enter the hostname. “server1” (of course without the quotes)
  2. Then you have to partition your hard drive (chose the method from the options that best suite you. Many screens).
  3. Create a user account EG: Administrator (don't use the user name admin as it is a reserved name on Ubuntu 9.10):
  4. Next create a user name for the new account, EG: Administrator (yes same as the account name)
  5. Enter a password for the user name you just created
  6. Reenter the password you just entered
  7. Next choose weather or not you want your home directory encrypted. I chose no.
  8. Next configure the package manager. a. Leave the proxy line empty unless you're using a proxy server to connect to the Internet:
  9. Next updates will be done through virtualmin/webmin so select “no automatic updates”

Q2: When the ubuintu installer reaches the question “choose software to install” do I choose any of the software listed? Q: If yes which ones.

  1. Select the software you want
  2. Installation runs until complete

Q3: After the base system of ubuntu is installed, are there any configuration changes that should be made before installing and running install.sh?

Thanks Allan

Thu, 04/15/2010 - 09:50
andreychek

Howdy,

Q1: When I install ubuntu and it reaches the question “Please enter the hostname for this system.” I enter “server1” (of course without the quotes) is that correct?

It can work doing it as you mention, just using "server1".

However, life tends to be simpler if, rather than that, you use a full FQDN for the hostname -- and enter that full FQDN for that hostname question when prompted by the Virtualmin installer later on. That is, it's simpler to use "server1.mydomain.tld" rather than just "server1".

Q2: When the ubuintu installer reaches the question “choose software to install” do I choose any of the software listed? Q: If yes which ones.

Well, I don't recall what software it offers at that question... that said, it's the job of the Virtualmin installer to pull in any dependencies.

So, after your done with the installation, you should have Apache, Postfix, SpamAssassin, ClamAV, MySQL, and lots of other goodies.

Q3: After the base system of ubuntu is installed, are there any configuration changes that should be made before installing and running install.sh?

Nope! Once you do the base install, you should be good to go. Well, I typically do an "apt-get update && apt-get upgrade" beforehand, but that's more out of habit than necessity.

I hope that helps!

-Eric

Thu, 04/15/2010 - 12:54
AllanIT

Hi Eric Thanks for the answers they are really helpful.

I just want to clarify Q1 a bit further, does the FQDN for the hostname have to be a registered domain. So if I had registered “company.com.au” would I make the hostname “server1.company.com.au” or it does not matter and literally “server1.mydomain.tld” works fine.

Also lets say I am going to make a virtual server called “company.com.au” (because of cause I am going to host my own website). If I made the hostname “server1.company.com.au” could there be repercussions?

Put another way should I use a FQDN for the hostname, that is not going to be used as a virtual server?

I may be over thinking this a bit but I’m sure I’m not the only one.

Thanks Allan

Thu, 04/15/2010 - 14:22
ronald
ronald's picture

I have server01.mycompany.com for a FQDN and have a virtual server mycompany.com
so this is possible yes.
Also it does need to be resolveable, thus you need to use a registered domain name to point to your server.
A lot of things will not work if you don't.

btw ubuntu 9.04 is not supported, the ubuntu 10.04 LTS will be supported.

Sun, 04/18/2010 - 01:39 (Reply to #4)
AllanIT

Hi ronald
When you say

Also it does need to be resolveable, thus you need to use a registered domain name to point to your server.

Does it have to be resolvable from the internet or only on the server or both. Also what needs to be resolvable server01.mycompany.com or mycompany.com or both and where from?

Thanks
Allan

Sun, 04/18/2010 - 05:24 (Reply to #5)
ronald
ronald's picture

the FQDN needs to be resolvable over the internet if you want mail and such to work,. server01.mycompany.com

the easiest to do this is to register 2 nameservers for that domain at the registrar, run BIND on the box and control the zonefile on your server.

Thu, 04/22/2010 - 11:42 (Reply to #6)
AllanIT

Hi ronald

Thanks that has been helpful

Allan

Sat, 04/17/2010 - 01:21
AllanIT

Hi Eric
I have just done an install of unumtu 8.04 and install.sh on a box for testing purposes and to assist me with the tutorial I am writing. It all seemed to work, it ran with out any errors. However in a previous response to a question you said

However, life tends to be simpler if, rather than that, you use a full FQDN for the hostname -- and enter that full FQDN for that hostname question when prompted by the Virtualmin installer later on. That is, it's simpler to use "server1.mydomain.tld" rather than just "server1".

Specifically when you say

and enter that full FQDN for that hostname question when prompted by the Virtualmin installer later on.

The Virtualmin installer ran without any questions, it gave me no prompts and then declared the installation was successful. Do you mean that there should have been a/some questions while insatll.sh was running or that I should setup the first virtual server with the FQDN mentioned above.

Mon, 04/19/2010 - 09:23
andreychek

Howdy,

There was a point at which the installer would ask for your hostname/FQDN. It's quite possible it's determining this automatically now.

I'd look in /etc/hosts and in /etc/postfix/main.cf on the mydestination line, and make sure your FQDN appears there. If so, it sounds like the installer has been modified to do all that automatically :-)

-Eric

Topic locked