Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jul 17, 2004 10:46 pm 
Offline
Junior Member

Joined: Mon Feb 23, 2004 8:14 pm
Posts: 22
Website: http://www.craigweb.net
Location: Aiken,SC USA
How to setup your Linode with CentOS
by Craig Spurrier of Craigweb

Based off of How To Set Up Your Server on Linode by schof and neorder.

CentOS is a distro based off of Red Hat Linux Enterprise Server.
Step One
Create a directory to work in, then switch to it.

Code:
mkdir work
cd work


Step two
Install APT, the Debian package tools. Yes, you can you yum or any of the other packaging tools, I however learned to use APT first so that is what this guide uses.

Code:
wget ftp://ftp.pbone.net/mirror/dag.wieers.com/packages/apt/apt-0.5.15cnc6-3.1.el3.dag.i386.rpm 
rpm -Uvh apt*


Step Three
Update the sources file
Run
Code:
 apt-get update 


Step Four
Upgrade to the lastest version of any installed programs.
Run
Code:
 apt-get upgrade 


Step Five
Update your hostname

Code:
 echo yourdomainnamehere >/etc/hostname  

Code:
 /bin/hostname -F /etc/hostname 


Step Six
Install Net-SSLeay the Perl module that allows secure access to webmin.

Code:
wget ftp://ftp.freshrpms.net/pub/dag/packages/perl-Net-SSLeay/perl-Net-SSLeay-1.23-0.dag.rhel3.i386.rpm
rpm -Uvh perl*


Step Seven
Test your install
Code:
perl -e 'use Net::SSLeay'

No output means success.

Step Eight
Install Webmin
Code:
wget http://aleron.dl.sourceforge.net/sourceforge/webadmin/webmin-1.180-1.noarch.rpm
rpm -Uvh webmin*


Step Nine
On your local computer point your web browser to https://yourdomain.com:10000 login as root.

Step Ten
Click Servers --> Apache and follow the prompts
Click Start Apache (at the top)

Step Eleven
On your local computer point your web browser to http://yourdomain.com you should see a test page if you do your website is now working.

Step Twelve
Set Apache to start on boot.
Click on System --> Bootup and Shutdown. Put a chek by httpd and click start select on boot.

Step Thirteen
Set up E-mail, Virtualmin, Ftp, Etc.
Enjoy your new server!

If any one needs help please reply.


Last edited by CSpurrier on Sun Mar 06, 2005 12:24 pm, edited 8 times in total.

Top
   
 Post subject:
PostPosted: Sat Jul 17, 2004 10:48 pm 
Offline
Junior Member

Joined: Mon Feb 23, 2004 8:14 pm
Posts: 22
Website: http://www.craigweb.net
Location: Aiken,SC USA
Advanced:
You can also run these steps as two big ones just copy and paste.
Code:
mkdir work
cd work
wget ftp://ftp.freshrpms.net/pub/dag/packages/apt/apt-0.5.15cnc6-3.1.el3.dag.i386.rpm
rpm -Uvh apt*
apt-get update
apt-get upgrade


Code:
 
echo yourdomainnamehere >/etc/hostname 
 /bin/hostname -F /etc/hostname
wget ftp://ftp.freshrpms.net/pub/dag/packages/perl-Net-SSLeay/perl-Net-SSLeay-1.23-0.dag.rhel3.i386.rpm
rpm -Uvh perl*
perl -e 'use Net::SSLeay'
wget http://aleron.dl.sourceforge.net/sourceforge/webadmin/webmin-1.150-1.noarch.rpm
rpm -Uvh webmin*


On your local computer point your web browser to https://yourdomain.com:10000 login as root.

Click Servers --> Apache and follow the prompts
Click Start Apache (at the top)

On your local computer point your web browser to http://yourdomain.com you should see a test page if you do your website is now working.

Set Apache to start on boot.
Click on System --> Bootup and Shutdown. Put a chek by httpd and click start select on boot.

Set up E-mail, Virtualmin, Ftp, Etc.


Top
   
 Post subject:
PostPosted: Sun Jul 18, 2004 4:57 pm 
Offline
Senior Newbie

Joined: Mon Jun 21, 2004 9:55 pm
Posts: 19
Website: http://kiwiinjection.com
CSpurrier wrote:
On your local computer point your web browser to https://yourdomain.com:10000 login as root.

Click Servers --> Apache and follow the prompts
Click Start Apache (at the top)

On your local computer point your web browser to http://yourdomain.com you should see a test page if you do your website is now working.

Set Apache to start on boot.
Click on System --> Bootup and Shutdown. Put a chek by httpd and click start select on boot.

Set up E-mail, Virtualmin, Ftp, Etc.


I've had some log entries recently showing someone trying port 10000 as root.

Suggestion: do this after upgrading the Debian webmin to fix the recently discovered security vulnerabilities:

http://www.debian.org/security/2004/dsa-526

Then ssh into your linode and do

/etc/init.d/webmin stop

and use update-rc.d to keep webmin from starting on boot, so no one can use webmin to connect to your linode as root from the outside.


Top
   
 Post subject:
PostPosted: Sun Jul 18, 2004 5:32 pm 
Offline
Junior Member

Joined: Mon Feb 23, 2004 8:14 pm
Posts: 22
Website: http://www.craigweb.net
Location: Aiken,SC USA
Hello,
I would recommend that you do not follow fieschko's advice, It will disable automatic loading of Webmin. I do not think Webmin is that useful without it being able to be booted on start. You will then have to start Webmin manually every-time you wish to use it.

The Security Advisory you linked to applies to Webmin 1.140 the directions above install Webmin 1.150. Make sure you remember CentOS, is Red Hat based not Debian based this issue does apply to CentOS but not Debian Security Advisorys all will. (I know you know this but I want to make sure any one reading this also knows).

Two things that can help secure Webmin.


Changing Webmin Passwords from the Command Line

Generally, once Webmin is installed all configuration of Webmin can be performed from within Webmin. However, there are a few things that can lead to being unable to log in. A common question is how to log in if you've forgotten the Webmin administrator password. If you have root access to the machine in question (i.e. you haven't also forgotten your system password), you can use the changepass.pl tool, that is found in the same directory as all of the other Webmin executable files (this is the directory in which you installed Webmin). For example, to use changepass.pl to change the root password, you could use the following command:

# ./changepass.pl /etc/webmin root newpassword


In the preceding example, the first option should be the directory where your Webmin configuration files are located. The second is the login name of the user whose password you'd like to change. The third is what you'd like the password to be changed to. Note that this script only works if you are logged in as the system root user, and can change any Webmin users password.
Changing the Webmin Port from the Command Line

Another problem after installation may be that a firewall prevents access to the Webmin port from across a WAN link (if, for example, you are remotely maintaining your Webmin server). If this is the case, you will want to consult with the firewall administrator to find out whether port 10000 can be opened, or if not, what port you can use for your Webmin installation. Changing the port on which Webmin runs after installation is also a pretty simple process. Simply edit the file miniserv.conf in the /etc directory where your Webmin configuration files were installed (this is likely one of the following: /etc/webmin, /usr/local/webmin/etc, or /opt/webmin/etc). You'll find a port directive. Change this to whatever port you need Webmin to listen on, and then restart the Webmin web server.


From http://www.swelltech.com/support/webmin ... ngpassword


Top
   
 Post subject:
PostPosted: Sat Sep 18, 2004 4:43 pm 
Offline
Junior Member

Joined: Mon Feb 23, 2004 8:14 pm
Posts: 22
Website: http://www.craigweb.net
Location: Aiken,SC USA
Updated for new version of Webmin


Top
   
 Post subject: additional steps
PostPosted: Fri Oct 01, 2004 9:13 am 
Offline
Senior Newbie

Joined: Fri Oct 01, 2004 9:01 am
Posts: 18
I would add that to save a lot of time figuring out why some things don't work to add these steps right away.

To update the CentOS to the current version which today is CentOS 3.3:

Code:
yum check-update
yum update


To fix why some things like host, nslookup and Bind named don't work on the first install of CentOS:

Code:
mv /lib/tls /lib/tls-disabled



Then you can find ready made rpms for CentOS at this URL:
http://mirror.centos.org/centos-3/


Top
   
 Post subject: question
PostPosted: Sat May 13, 2006 8:01 pm 
Offline
Newbie

Joined: Mon May 08, 2006 9:03 pm
Posts: 3
ICQ: 116786501
Website: http://mysudbury.org
WLM: addict_pda@yahoo.ca
Yahoo Messenger: addict_pda
AOL: WaernTodd
Location: Greater Sudbury, Canada
could you elaborate more on setting up the following type of servers for Centos 4

1. mailserver (smtp & pop3) dont care about imap right now


and maybe some information about how to install / update php, etc ..


Top
   
PostPosted: Tue Feb 19, 2008 3:41 pm 
Offline
Senior Newbie

Joined: Mon Feb 18, 2008 10:15 am
Posts: 13
since centos5 uses yum, not apt.


Top
   
 Post subject:
PostPosted: Sat Feb 07, 2009 3:33 am 
Offline
Newbie

Joined: Sat Feb 07, 2009 3:04 am
Posts: 3
Tip: If you plan on running a standard Virtualmin setup just run the Virtualmin install script on a fresh CentOS image. It installs everything automatically and does a very basic configuration. See http://www.webmin.com/vinstall.html for details. The steps are roughly: first boot -> ssh login as root -> run 'yum -y update' (optional) -> wget install.sh (get url from link above) -> chmod +x install.sh -> run install.sh -> hit 'y' and wait -> login to webmin and update config -> reboot and the VPS should be ready for use. It doesn't get much simpler than that with the free control panels.


Top
   
 Post subject:
PostPosted: Sat Mar 14, 2009 3:26 pm 
Offline
Newbie

Joined: Sat Mar 14, 2009 3:23 pm
Posts: 2
MegaBurn wrote:
Tip: If you plan on running a standard Virtualmin setup just run the Virtualmin install script on a fresh CentOS image. It installs everything automatically and does a very basic configuration. See http://www.webmin.com/vinstall.html for details. The steps are roughly: first boot -> ssh login as root -> run 'yum -y update' (optional) -> wget install.sh (get url from link above) -> chmod +x install.sh -> run install.sh -> hit 'y' and wait -> login to webmin and update config -> reboot and the VPS should be ready for use. It doesn't get much simpler than that with the free control panels.


Thanks for the tip. I followed it exactly and I now have Virtualmin installed on a fresh CentOS image. I updated the hostname to "lixx-xxx.members.linode.com"

However, I cannot access webmin on port 10000. I get a "network timeout." Currently, I am trying to access it via:

https://lixx-xxx.members.linode.com:10000

UPDATE: I can login to usermin via port 20000. Still can't login to webmin, though.

I would appreciate any tips.

Thanks,
parksobong


Top
   
 Post subject:
PostPosted: Sat Mar 14, 2009 6:32 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
The command 'netstat -nvltuw' will show listening servers on your machine; run it and see if anything is listening on 10000. (If lsof is installed on your system, 'lsof -Pni' will show similar information plus, very usefully, the name of the listening command. You'll need to be root to run it, though.)

If webmin is listening, you should look at your firewall settings to make sure you're not blocking connections to port 10000.


Top
   
 Post subject:
PostPosted: Sat Mar 14, 2009 7:05 pm 
Offline
Newbie

Joined: Sat Mar 14, 2009 3:23 pm
Posts: 2
Linode support helped me figure this out. It was my ISP blocking port 10000. Thanks all.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group