Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some help for a new linux user. #126

Open
Amarog opened this issue Apr 2, 2013 · 13 comments
Open

Some help for a new linux user. #126

Amarog opened this issue Apr 2, 2013 · 13 comments

Comments

@Amarog
Copy link

Amarog commented Apr 2, 2013

Well, I've been running a minecraft server for some time on a Mac mini, using OS X. I decided last week to put together a new linux machine. That said here's my problem.

linux is somewhat new to me. I've followed some tutorials and got everything a I need to start the minecraft server, I installed java7 and then I got here.

I adjusted the config.example file to my needs and then I was looking for the next steps and that was the symlinking...

It says:
sudo ln -s ~/minecraft-init/minecraft /etc/init.d/minecraft
chmod 755 ~/minecraft-init/minecraft
sudo update-rc.d minecraft defaults

u tried that but that gives me not that much so I've changed it somewhat. (my server is located in home/user/Minecraft/Server1)
sudo ln -s home/user/Minecraft/Server1/minecraft /etc/init.d/minecraft/minecraft (<-- Got no error)
chmod 755 home/user/Minecraft/Server1/minecraft (<-- Got no error)

But then
sudo update-rc.d minecraft defaults gives this error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-rc.d: /etc/init.d/minecraft: file does not exist

but if u go and have a look in /eetc/indit.d/ the minecraft link is there (it's an orphan symlink if I'm right)

Can somebody help me out with a step by step tutorial on what I should do, type in, ...
Every help would be much appreciated!

Thanks

@jbondhus
Copy link
Contributor

jbondhus commented Apr 2, 2013

Hmm, which linux distribution are you running? For setting the locale, I would recommend doing the following (do the first one as root):

apt-get install locales && dpkg re-configure locales

also, try adding the following line to ~/.bashrc

LANG = "en_US"

@Amarog
Copy link
Author

Amarog commented Apr 2, 2013

I'm running ubuntu server 12.10 if i'm not wrong. The problem is not the local thingie, that I fixed allready. It's that i'm a bit lost in the installation of this startup file on linux. Starting with this:

sudo ln -s ~/minecraft-init/minecraft /etc/init.d/minecraft
chmod 755 ~/minecraft-init/minecraft
sudo update-rc.d minecraft defaults

should I just copy paste this or do i have to place instead of "~/minecraft-init/minecraft" the location of the "minecraft" file ?

@jbondhus
Copy link
Contributor

jbondhus commented Apr 2, 2013

You should replace ~/minecraft-init/minecraft with the location of the minecraft file (in the first and second commands). What these three commands do are link the minecraft init script to /etc/init.d/minecraft, which is located in the startup folder, and then tell the system to start the server upon start-up and stop it upon shutdown.

@Amarog
Copy link
Author

Amarog commented Apr 2, 2013

Ok, thanks for the quick help. I'll try that out!

@Amarog
Copy link
Author

Amarog commented Apr 2, 2013

Well thanks again for the help. The server is running! I was just wondering if I type screen -r minecraft I always get There is no screen to be resumed matching minecraft?

Another thing, I'm using Multiverse, So If I create a new world for instance "FUN" this will be directly generated in the map "minecraft" do I need to put him in "minecraft/worlds" to?

Greetz

@jbondhus
Copy link
Contributor

jbondhus commented Apr 2, 2013

Did you try installing screen? Run the following commands as root:

apt-get update
apt-get install screen

@Amarog
Copy link
Author

Amarog commented Apr 2, 2013

I had not but after installing it's just the same... I can start it by just entering screen (I did removed the annoying startup message) then I've got a blank screen... But I can't switch...

if i do screen -r I get this:

root@Server:/# screen -r
There are screens on:
19977.pts-0.Server (04/02/13 22:27:11) (Attached)
19557.pts-0.Server (04/02/13 22:24:00) (Attached)
There is no screen to be resumed.

@jbondhus
Copy link
Contributor

jbondhus commented Apr 2, 2013

Try screen -r 19977.pts-0.Server. If that doesn't work, try screen -r 19977. If those two commands don't work, reboot and then try it. That should fix it. Also, to stop the

@Amarog
Copy link
Author

Amarog commented Apr 3, 2013

Still no screen to resume... I did correctly install screen.

@Amarog
Copy link
Author

Amarog commented Apr 5, 2013

Another quick question, I've got a running server with maps and such. Should I put those maps in the map /worlds ? or just let them in the map "minecraft" ?

because this is said in the readme:
Move your worlds to the folder specified by WORLDSTORAGE

@jbondhus
Copy link
Contributor

jbondhus commented Apr 5, 2013

The maps should go in the folder specified by the variable
$WORLDSTORAGE. I don't understand what you mean.

DaLuke wrote:

Another quick question, I've got a running server with maps and such.
Should I put those maps in the map /worlds ? or just let them in the
map "minecraft" ?

because this is said in the readme:
Move your worlds to the folder specified by WORLDSTORAGE


Reply to this email directly or view it on GitHub
#126 (comment).

@Amarog
Copy link
Author

Amarog commented Apr 5, 2013

Ok, that was a n00b question on my behalf. Well, yesterday I did another clean install of my linux system because i f*cked up a bit to much. So today I'm doing exactly the same of what I did some day's ago but now when I hit /etc/init.d/minecraft start I get this ...

Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Rogue pidfile found!
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

(there's a minecraft.pid file in my minecraft map)

pfff I'm getting crazy over here ^^ If one thing works the other one breaks instead ^^

If I retry everything (so i delete the file's in my minecraft map and then delete the /etc/init.d/minecraft) and try to do everything over I get with the update-rc.d this error:
System start/stop links for /etc/init.d/minecraft already exist.

@Amarog
Copy link
Author

Amarog commented Apr 5, 2013

Ok, I should better go to sleep. I forgot to install java ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants