LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2013, 08:36 AM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
[SOLVED] Ubuntu Or CentOS For A Home Server?


I have been using CentOS as a home server OS for a while now, I like it a lot, it is very secure and I've learned how to use the root command to get things done, etc. The problem with CentOS though is that their packages are very old/outdated (considered stable for some reason) and I often run into problems setting up some progrmas such as Samba. The good thing though is that it has the iptables firewall and SELinux, which I see as extra security. Another good thing I like is that you need root permission to mount other hard drives (I have one as a backup so that has to be safe). Ubuntu however doesn't have any of these, so is it a lot less secure? I understand I can install a firewall into Ubuntu, I would like to install the same one that CentOS uses if that's possible, however I've tried installing SELinux before...it disabled my Internet.

So what should I do? Id like to switch, but is Ubuntu less secure than because it doesn't have those 2 things CentOS does? Some distros have SElinux and some don't, how secure is it?

Last edited by Altiris; 05-28-2013 at 05:36 PM.
 
Old 05-27-2013, 08:47 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Altiris View Post
The problem with CentOS though is that their packages are very old/outdated (considered stable for some reason) and I often run into problems setting up some progrmas such as Samba.
No, it shouldnt be like this.

What is your CentOS version?

Once you are connected to internet, you must be secure.

I would suggest you to use CentOS because it was born to be a server.

For security, take a look at this too.
http://www.cyberciti.biz/tips/linux-security.html
 
Old 05-27-2013, 09:17 AM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Alright so there's one vote to stay on CentOS because of security. I have CentOS 6.4, what do you mean by it shouldn't be like this? All packages from CentOS are always old.
 
Old 05-27-2013, 09:33 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
New software has bugs! Sometimes a LOT of bugs. Old software is generally considered more stable as there has been time for bugs to surface and be fixed. This is why you'll find that for CentOS the majority of updates are for newly found security holes rather than bug fixes.

If your server is "public facing" and connected to the internet then consider a stable distribution like CentOS, which has been pointed out, is designed as a server O/S.

If you want newer packaged with CentOS then look at the "remi" repositories, Remi will have certain newer packages available (MySQL and PHP for example).

So my vote would be CentOS.
 
Old 05-27-2013, 10:02 AM   #5
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by Altiris View Post
their packages are very old/outdated (considered stable for some reason)
You have to understand that old/outdated and stable are two different things. Outdated is something nobody is using or is just out of time. Stable is something which is just stable and definitely not out of time.

The fact of the matter is, packages which are considered outdated/stable/new, all depend on what type of role they play – for server or desktop.

Those who use servers aren’t looking for cutting-edge version of any package, but instead they are looking for tried and tested / stable version of packages, because the whole company's fate depend on them, especially if the company is heavily depended on IT infrastructure. Furthermore, enterprise Linux are commercially supported and its the responsibility of service provider to provide Long Time Support (also called Life-cycle) for applications which are the ones enterprise customers demand and have to be supported by provider.

The case of apps for desktop users is of different issue.

However, if the users of server still want to install latest applications, then they are free to install.

In your case, as you are using CentOS – community based server, if you want to install latest applications, just install extra repositories like epel, rpmforge, atrpms etc.

For extra repositories: Available Repositories for CentOS
Search for package (latest): Linux Packages Search

Last edited by Madhu Desai; 05-27-2013 at 12:25 PM.
 
Old 05-27-2013, 10:30 AM   #6
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Sounds like you are trying to use your CentOS server as a desktop as well. You dont need the latest web browser, or the latest media player, or the latest Graphical interface in a server.
You only need the services require to function as server and usually you manage the server remotly from your laptop or phone or whatever other device.

Servers usually run headless (no monitor nor keyboard attached)
And like it has been mentioned above in other posts. New software usually hasnt been tested enought to be deployed in a server and it can compromise your data.

A distro that is constantly updating, like Arch, or Gentoo and others out there are not well suited for server. I know this statement will bring lots of disagreement here, my vote goes for CentOS too.

Keep all the latest packages in your laptop and leave your server alone.

Good luck to you.

Last edited by TroN-0074; 05-27-2013 at 12:51 PM.
 
Old 05-27-2013, 12:01 PM   #7
Soapm
Member
 
Registered: Dec 2012
Posts: 182

Rep: Reputation: Disabled
I agree with TroN-0074, what do you use the server for? Is it headless? Unless you were installing Samba 4 I can't imagine what problems you had getting it to work. Even an old version of Samba does sharing of drives and printers. Now if you use the server also as a desktop then I can see wanting the latest, greatest (sort of) but as a server, old and stable makes for an "out of sight out of mind" box that seldom if ever needs attention.
 
Old 05-27-2013, 12:36 PM   #8
mzf
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
Just stay on CentOS. I had until last week a Ubuntu 13.04 Server and wasn`t that awesome as I thought. I encounter few bugs and I don`t recommend it. Get a newer version of CentOS as I do and get rid of Ubuntu.
 
Old 05-27-2013, 01:38 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Altiris View Post
All packages from CentOS are always old.
It's a general misconception to try and deduce RHEL SW freshness from solely looking at version numbers. RHEL backports fixes and that's what matters.
 
Old 05-27-2013, 06:18 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I was going to post the same as unSpawn; you can't just rely on the major version nums; read abut backports as he recommends.

Last edited by chrism01; 05-28-2013 at 12:15 AM.
 
Old 05-28-2013, 12:02 AM   #11
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Altiris View Post
what do you mean by it shouldn't be like this?
I mean you are facing problem while installing samba because of old packages of centOS, this quote can't be digested.
Have you searched proper before installing samba on your centOS.
If you would read the link
http://wiki.centos.org/HowTos/SetUpSamba
It clearly says in it's first line
Code:
Samba is somewhat tricky to setup on CentOS due to both the firewall (iptables) and SELinux protection.
and in last line
Code:
Now why know this? Its because you have to know which ports to open and which ports to NOT open for SAMBA otherwise you're not going to get it to work in CentOS.
If you are willing to change your server, nobody can stop you but if you are looking for true and beneficial advice, just stick to centOS.
CentOS is born to be a server.
 
Old 05-28-2013, 12:16 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Samba on Centos HOWTO http://www.server-world.info/en/note...ntOS_6&p=samba
 
Old 05-28-2013, 05:36 PM   #13
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
To the guy who said I am trying to use CentOS as a desktop...why would I? Its a pain to install certain programs and Id rather use Debian or Ubuntu for desktop OS, I understand that CentOS is mainly for servers. Samba works on CentOS and I can connect to it and Ive learned how to set permissions for the folders you want to share with SELinux, it wasnt tricky at all to setup. The problem is I want to to have my server running samba to automatically show up in the Network section of my Windows 7 PC and in order to do that I set it as a WINS Server and make it a master (ive done this) but then I also need to enable nmb or something which whenever I try starting I get "nmb is dead but pid file exists" I have tried deleting the pid file but I get the same error. I heard that Samba4 fixes a lot of these issues and that CentOS has Samba4 in their repositories however when I tried installing it the yum package manager said I have some program that depends on Samba 3.9.9 (I am currently trying to discover which program). So then I heard that ubuntu had Samba4 also and I was wondering if I should make the switch. Ill stay with CentOS. Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open CentOS sever samba home shares from Ubuntu or Linux Mint desktops netsense Linux - Server 4 11-11-2012 05:59 PM
/home folder not exporting from Sever A (Ubuntu 11.04) to Server B(Ubuntu 12.04) Aholton Linux - Server 1 06-28-2012 10:07 PM
Ubuntu Server Vs. Ubuntu Desktop for home file server rhodes50 Ubuntu 28 12-19-2010 08:22 AM
been researching for a home server - Amahi , Ubunut or CentOS linux_sj Linux - Newbie 1 04-05-2010 01:00 PM
Running CentOS at home and RHEL on the server JeffCT24 Red Hat 5 01-19-2008 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration