Minnesota Web Developer | A little something about everything...

Minnesota Web Developer

A little something about everything...

Installing webmin on CentOS6.3 using the CentOS-6.3-x86_64-minimal.iso image

Run the following commands:

# cat > /etc/yum.repos.d/webmin.repo << EOF
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF

Now run

# rpm --import http://www.webmin.com/jcameron-key.asc

Check for updates prior to installing webmin

# yum update

Install webmin

# yum install webmin

Now open port 10000 to access webmin, to open for all IP's for example

# iptables -I INPUT -p tcp --dport 10000 -j ACCEPT

# service iptables save

Be sure to lock down the webmin & port 10000 to spacific IP's for best security and to configure SSL as per comments below you will need to install SSL then enable it from the webmin GUI

# yum install perl-Net-SSLeay

Step by Step static network setup for CentOS 7.x on Microsoft Hyper-V Server using Linux Integration Services Version 4.0.11

Create new VHD with a standard Network Adapter

Download CentOS-7-x86_64-Minimal-1503-01.iso (insert disk & install)

Download lis4-0-11.iso (insert disk)

mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic4011
umount /mnt/cdrom
cd /opt/linux_ic4011/RHEL71
./install.sh

Once the install is done, reboot the VPS

Update your network settings via vi

vi /etc/sysconfig/network-scripts/ifcfg-eth0

use "i" to insert text, (esc) to exit and ":wq" to write your changes.

It should look something like this:

DEVICE="eth0"
BOOTPROTO=none
ONBOOT="yes"
TYPE="Ethernet"
HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)
IPADDR=(YOUR SERVER IP)
GATEWAY=(YOUR DEFAULT GATEWAY)
DNS1=(PRIMARY DNS SERVER IP)
DNS2=(SECONDARY DNS SERVER IP)
Networking=yes


If your system is still not online for static IP do this:

 ifconfig eth0 (IP) netmask (MASK) up

 service network restart

Step by Step install of CentOS 6.3 on Microsoft Hyper-V Server with Linux Integration Services Version 3.4

Create new VHD w/ Legacy Network Adapter for CentOS 6.3

Download CentOS 6.3-minimal.iso (insert disk & install)

Download LinuxICv34.iso (insert disk)

 mkdir -p /mnt/cdrom
 mount /dev/cdrom /mnt/cdrom
 cp -rp /mnt/cdrom /opt/linux_ic
 umount /mnt/cdrom
 cd /opt/linux_ic/RHEL63
 ./install.sh

Once the install is done, shutdown the VPS, note the mac address and then remove the legacy adapter.

Add a standard network adapter with static mac previously noted. apply and restart the VPS

Update your network settings via vi

 vi /etc/sysconfig/network-scripts/ifcfg-eth0

use "i" to insert text, (esc) to exit and ":wq" to write your changes.

It should look something like this:

 DEVICE="eth0"

 BOOTPROTO=none

 ONBOOT="yes"

 TYPE="Ethernet"

 HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)

 IPADDR=(YOUR SERVER IP)

 GATEWAY=(YOUR DEFAULT GATEWAY)

 DNS1=(PRIMARY DNS SERVER IP)

 DNS2=(SECONDARY DNS SERVER IP)

 Networking=yes

If your system is still not online for static IP do this:

 ifconfig eth0 (IP) netmask (MASK) up

 service network restart

Connecting to a Windows 2012 Server VPN

How to connect to a windows server 2012 VPN server instance, step by step:

  • Open Network and sharing center
    • Select "Set up a new connection or network" > "Connect to a workplace" > Next > "Use my internet connection"
    • Enter the IP address or FQDN of the server you will be connecting to as well as any description you would like to give it then select don't connect now just set it up so I can connect later.
    • After you've setup the connection select change adapter settings from the network and sharing center.
    • Right click your new connection >Properties
      • Under PPP settings you may want to enable software compression for better performance (may cause issues in certain configurations)
      • Under Security
        • Select the type of VPN, generally PPTP or L2TP if you have a certificate setup.
        • Data encryption can be changed to maximum in most cases
        • Verify that only MS-Chap v2 is checked.
    • (Optional) If you would like to continue to use your internet access but have remote access to the VPN server for files, RDP, Programs, etc... you can uncheck under networking > IPv4(or IPV6 in some cases) > properties >  Advanced > "use default gateway on remote network". Unchecking this will force your local PC to use your local internet access as a gateway.