Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
"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.
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.
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.
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:
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!
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
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.