DirtySnipe Posted December 13, 2012 Share Posted December 13, 2012 Im a complete nubin when it comes to linux and I thought id throw myself in at the deep end. I have installed java onto the system and that seems to be running fine. i only have ssh access to it and also access via the plesk panel for the website side. My question are these:- Where do I save my files to on this system ??? lots of folder like home /usr and so on... Also is there a web based server manager script out there that I can publish to the webserver which is also installed on it? I did try installing it into a restricted folder with the webserver but was running into permission problems when the plugins started creating there config folders. It would keep turning them into read only and stoped me from editing them. My goal is to run a tekkit server and it auto start the mc server on a reboot. I have also seen on tuts that it should not be run under root so i have created an account. Link to comment Share on other sites More sharing options...
Silent Posted December 13, 2012 Share Posted December 13, 2012 Log to the user and install the server to the users /home directory AS the user, or else it wont have permissions. Use cron to start tekkit at boot, using something along the lines of @reboot screen /home/start.sh Note, something like that, I don't think that's 100% correct Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 13, 2012 Author Share Posted December 13, 2012 i have saved the files under that users home folder. ran chmod to allow the launch.sh file to be executed. I tried to run it via that user but get the following error -bash: ./launch.sh: /bin/sh^M: bad interpreter: No such file or directory Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 13, 2012 Author Share Posted December 13, 2012 the launch.sh consists of the following #!/bin/sh java -Xmx3G -Xms2G -jar Tekkit.jar nogui Link to comment Share on other sites More sharing options...
Silent Posted December 13, 2012 Share Posted December 13, 2012 You should be launching it as such First cd into the dir then screen ./launch.sh Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 13, 2012 Author Share Posted December 13, 2012 cannot launch screen ./launch.sh no such file I was in the users home folder and in the directory where the files are. I can see the launch file aswell Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 13, 2012 Author Share Posted December 13, 2012 uploaded a new launch.sh file and ran again now getting this error minecraft@ns310343:~/server$ screen ./launch.sh 00:20:39 [sEVERE] ... 6 more 00:20:39 [sEVERE] Caused by: java.io.FileNotFoundException: /home/minecraft/server/config/mod_MinecraftForge.cfg (Permission denied) 00:20:39 [sEVERE] at java.io.FileOutputStream.open(Native Method) 00:20:39 [sEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:212) 00:20:39 [sEVERE] at java.io.FileOutputStream.<init>(FileOutputStream.java:165) 00:20:39 [sEVERE] at java.io.FileWriter.<init>(FileWriter.java:90) 00:20:39 [sEVERE] at cpw.mods.fml.common.modloader.ModLoaderModContainer.configureMod(ModLoaderModContainer.java:263) 00:20:39 [sEVERE] ... 7 more 00:20:39 [sEVERE] Unexpected exception cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException: java.io.FileNotFoundException: /home/minecraft/server/config/mod_MinecraftForge.cfg (Permission denied) at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:114) at cpw.mods.fml.common.Loader.preModInit(Loader.java:235) at cpw.mods.fml.common.Loader.loadMods(Loader.java:607) at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:134) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: cpw.mods.fml.common.LoaderException: java.io.FileNotFoundException: /home/minecraft/server/config/mod_MinecraftForge.cfg (Permission denied) at cpw.mods.fml.common.modloader.ModLoaderModContainer.configureMod(ModLoaderModContainer.java:272) at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:106) ... 6 more Caused by: java.io.FileNotFoundException: /home/minecraft/server/config/mod_MinecraftForge.cfg (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at java.io.FileOutputStream.<init>(FileOutputStream.java:165) at java.io.FileWriter.<init>(FileWriter.java:90) at cpw.mods.fml.common.modloader.ModLoaderModContainer.configureMod(ModLoaderModContainer.java:263) ... 7 more > Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 13, 2012 Author Share Posted December 13, 2012 changed owner of files to user and reran screen. Server now starting. Next thing is how can i get it to autostart if server rebooted? Link to comment Share on other sites More sharing options...
Silent Posted December 14, 2012 Share Posted December 14, 2012 I covered that with my first post Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 14, 2012 Author Share Posted December 14, 2012 Use cron to start tekkit at boot, using something along the lines of @reboot screen /home/start.sh Note, something like that, I don't think that's 100% correct I could do with something that is 100% correct not a not sure. Link to comment Share on other sites More sharing options...
DirtySnipe Posted December 14, 2012 Author Share Posted December 14, 2012 does anyone know of any webbased server management script i could use for this tekkit server? like php / mysql?? Link to comment Share on other sites More sharing options...
Growster Posted December 14, 2012 Share Posted December 14, 2012 http://multicraft.org Link to comment Share on other sites More sharing options...
Silent Posted December 15, 2012 Share Posted December 15, 2012 McMyAdmin is a nice web management program. And seriously do some googling yourself I'm not going to give you all of the answers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now