LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-14-2013, 06:40 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
Minecraft server won't work on CentOS 6


I'm running Centos on an old PC, I am trying to get a vanilla minecraft server running and I am able to launch it and have it working/running but when I try connecting to it it doesn't work. I think this has something to do with CentOS because I did the same steps on Ubuntu and it worked.

Things I have tried
Set up internal static IP
Port forwarded and did one to one nat
Disabled the firewall (not SElinux)

I still can't get it working, anyone willing to help?
 
Old 03-15-2013, 09:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"it doesn't work" really is of no use at all. Is it running? is it listening on a port? If you want help you need to provide useful information for us to work on.
 
Old 03-15-2013, 09:47 AM   #3
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
You don't offer enough information to offer much help. CentOS is not the best choice for something like this because it uses and older, trusted kernel which doesn't have all the latest bells and whistles. Most of the tutorials I've seen concern Ubuntu. Do you have Java installed correctly? Is SElinux configuration interfering with it? You have to know what's NOT working to figure out how to make it work.
 
Old 03-25-2013, 08:15 PM   #4
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Alright so to answer your questions,

1. Yes I have Java installed (the actual java from Oracle, not the JDK one)
2. The Minecraft server launches up and runs in the command/terminal however I can't connect to it. I believe something in CentOS is blocking communications, I suspect its SELinux since I added the port required for minecraft (25565) on the CentOS firewall.


(OFF TOPIC)
3. I have found, with trying Debain, and Linux Mint XFCE that CentOS is the best option for me. The reason to this is because CentOS is the only Linux distro I have found to actually get vsftpd3.0.2 installed on and working with the settings I need, while all of the distros did have vsftpd in their repository they had an older version which does not support a certain command I need to lock users in their home directory,(same as CentOS) yes I tried downloading the newer version but for some strange reason the .deb didnt work in Debain (required an older version of some lib package) but it worked in LinuxMint however I ended up needing to install SELinux to enable ftp_home_dir which when I installed SELinux on Mint it completely disabled my internet....so to sum it all up CentOS has been a good OS to me. I may try Debain possibly once more because of how it comes installed with so many more programs than CentOS but I find the .rpm packages on CentOS work better than the .deb packages. The .deb packages leave me one after another searching for a dependency.
 
Old 05-07-2013, 01:53 PM   #5
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
I've bumped this because I haven't had a solution yet. To see if its SElinux is there a way to disable SELinux and how?
 
Old 05-07-2013, 02:53 PM   #6
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
The Minecraft server launches up and runs in the command/terminal however I can't connect to it. (..) I believe something in CentOS is blocking communications, I suspect its SELinux since I added the port required for minecraft (25565) on the CentOS firewall.
Attach plain text "/tmp/output.txt" file from running:
Code:
 ( curl -v http://localhost:25565 2>&1; iptables-save 2>&1; ( grep -i java /var/log/audit/audit.log | audit2allow ) ) > /tmp/output.txt
 
Old 05-07-2013, 03:50 PM   #7
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Original Poster
Rep: Reputation: Disabled
Hold on, I don't really understand what you want me to do. Do you want me to make a plain text folder called output.txt in tmp directory and then run that code in terminal? Thanks either way!
 
Old 05-07-2013, 04:55 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Altiris View Post
I've bumped this because I haven't had a solution yet. To see if its SElinux is there a way to disable SELinux and how?
A simple Google search for "centos disable selinux" returns 174,000 matches, the top ten of which all tell you how to do it:
http://wiki.centos.org/HowTos/SELinu...5d3e495d13d348

Last edited by suicidaleggroll; 05-07-2013 at 04:57 PM.
 
Old 05-08-2013, 01:13 AM   #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
Hold on, I don't really understand what you want me to do. Do you want me to make a plain text folder called output.txt in tmp directory and then run that code in terminal? Thanks either way!
The code can be run, as root, from a terminal. The ">" symbol ensures all output gets written to the file. The file should not exist BTW.


Quote:
Originally Posted by suicidaleggroll View Post
A simple Google search for "centos disable selinux" returns 174,000 matches, the top ten of which all tell you how to do it
With all due respect but is disabling something without any indication the right / most efficient approach?
 
Old 05-08-2013, 08:31 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by unSpawn View Post
With all due respect but is disabling something without any indication the right / most efficient approach?
He wouldn't want to permanently disable it, but it's the most efficient way to see if it's SELinux or something else that's causing the problem. If disabling it fixes the problem, then he would want to re-enable it and work on adding an exception so they can work together. If disabling it doesn't fix the problem, then he needs to look elsewhere. It's all about reducing the number of potential failure points until the cause of the problem is found, then properly fixing the problem and re-enabling everything that was disabled during the hunt. Since in my experience SELinux has been the cause of about 99% of my network failures when setting up a new service, I think it's a good place to start.

Last edited by suicidaleggroll; 05-08-2013 at 08:39 AM.
 
Old 05-08-2013, 01:32 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I agree it's about reduction but IMHO the most efficient way to see if it's actually SELinux would be looking at the log file for the simple reasons 0) it doesn't require changing anything plus 1) it's what log files are for ;-p
 
  


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
My PS2 trackman won't work with CentOS 6.3 aletta Linux - Hardware 1 07-31-2012 04:52 PM
[SOLVED] Help me open a port for my Minecraft server Lumify Linux - Newbie 8 07-29-2012 01:52 PM
[SOLVED] Rewriting a script for running a minecraft server on Ubuntu Server cowboys1919 Linux - Server 7 07-11-2012 10:36 AM
LXer: Minecraft Server on Ubuntu LXer Syndicated Linux News 0 06-11-2011 09:20 AM
[SOLVED] 1337 Minecraft Server enorbet Slackware 4 03-20-2011 05:45 PM

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

All times are GMT -5. The time now is 01:57 PM.

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