BinaryGuru

Hacking digital systems

Category Archives: Ubuntu Server

Webmin 1.710 on Ubuntu Server 14.04 64-bit running on Amazon EC2


Webmin LogoThis tutorial shows how to install the latest version of Webmin in Ubuntu Linux from its official repository.

As you may know, Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

To get started, login your remote server and follow the steps below:

Amazon EC2 AMI usedUbuntu Trusty Logo

Ubuntu Server 14.04 LTS 64-bit (HVM), EBS General Purpose (SSD) Volume Type. Support available from Canonical (http://www.ubuntu.com/cloud/services). – ami-9eaa1cf6

https://console.aws.amazon.com/ec2/home?region=us-east-1#launchAmi=ami-9eaa1cf6


  1. Update sources:
    # sudo apt-get update
  2. Install new kernel to support quotas:
    # sudo apt-get install linux-image-extra-virtual↵
    # sudo reboot↵

    ⇒ When asked, choose to install the package maintainers version (top option)

  3. Upgrade rest of packages and reboot:
    # sudo apt-get dist-upgrade↵
    # sudo reboot↵
  4. Load and install kernel modules:
    # sudo depmod -a↵
    # sudo modprobe quota_v1↵
    # sudo modprobe quota_v2↵
  5. Enable new kernel modules to load on boot and reboot:
    # sudo echo quota_v1 >> /etc/modules↵
    # sudo echo quota_v2 >> /etc/modules↵
    # sudo reboot↵
  6. Install quota:
    # sudo apt-get install quota↵
  7. Please see official documentation for configuration and usage of quota:
    # man fstab↵
    # man quotacheck↵
    # man quota↵
    # man quotaon↵
  8. Add inbound rule to the security group assigned to your EC2 instance:
    Type: Custom TCP Rule
    Protocol: TCP
    Port Range: 10000
    Source: 0.0.0.0/0

    ⇒ I highly recommend you set the source to your IP. This will block access to unauthorized users.
    ⇒ Official documentation for Amazon EC2 Security Groups:

    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html

  9. Login to Webmin over HTTPS using your EC2 Public DNS or Elastic IP:
    https://ec2-54-1-1-1.compute-1.amazonaws.com:10000/
    https://54.1.1.1:10000/

If you need help using Webmin, please refer to the Webmin Wiki hosted at:
http://docs.virtualmin.com/Webmin/Main_Page

Advertisements