How to use dedicated server & error (can't type)

Discussion in 'Systems Administration' started by Kompye, Nov 25, 2019.

  1. Hello! I just got my first dedicated server on Ubuntu and I have no idea how to use it. I want to run a network (it has 32gb ram). If you want to tell me that I shouldn't have got a dedicated server in the first place if I don't know how to use it pls don't reply cuz ur stupid. Thanks!
     
    #1 Kompye, Nov 25, 2019
    Last edited: Nov 26, 2019
    • Funny Funny x 1
  2. foncused

    Moderator Patron

    Take some time to become familiar with the Linux command line. When you are ready to set up your network, you will need to secure your server with a firewall and learn how to configure BungeeCord.
     
  3. I had previously run a network but on a vps with a panel. I don’t really understand how Linux works. Is it just a terminal or what?
     
    #3 Kompye, Nov 25, 2019
    Last edited: Nov 25, 2019
  4. Ok I did some research and I managed to connect to the server, I moved a server via WinSCP, and now idk how to start it

    UPDATE: omg im smart I somehow managed to install java and start the server but it stops when closing putty and I don't know how to exit the server console and access other files on the dedi. Also is this run.sh good?
    Code (Text):
    java -Xmx1G -Xmx1G -jar paper-230.jar
     
    #4 Kompye, Nov 25, 2019
    Last edited: Nov 25, 2019
  5. You simply need to start the server inside of a attached Tmux/Screen to it. Tmux was my choice when I went as it was more stable but a tad bit more tricky to get going. To install it with automated "yes" for installing...
    Code (Text):
    sudo apt-get update && sudo apt-get -y install tmux
    Next you will need to create it, try doing this...
    Code (Text):
    tmux new -s name
    Where "name" is what you wanna call it.

    To "de attach" once you ran your Minecraft server command as usual
    Code (Text):
    Use CTRL + b then press d
    At this time you may leave Putty without the server shutting itself down. When you next login to your box you can execute the following to re attach
    Code (Text):
    tmux attach -t name
    Use the same name as you did to "create" it.

    More regarding Tmux can be found over at https://www.vultr.com/docs/boost-productivity-with-tmux-on-ubuntu-and-centos

    Hope this helps!
     
    • Useful Useful x 1
  6. That's great! Thank you so much. One more question as what I found on Google is a bit unclear. How can I save login info in Putty? (now I have to put in the password everytime I want to access it).
     
    #6 Kompye, Nov 25, 2019
    Last edited: Nov 25, 2019
    • Friendly Friendly x 1
  7. Awww you are always welcome. :)

    Unfortunately I do not know how to configure PuTTY to do just that. As I exclusively use Linux Mint for my home PC due to my personal needs. :(
     
    • Friendly Friendly x 1
  8. foncused

    Moderator Patron

    You should generate SSH keys, add your own user, and disable the root user and password authentication for best security practices.
     
    • Like Like x 1
  9. While I kinda agrees, this kind of setup can be overwhelming for someone who just trying to get used of using a dedicated server.

    It's perfectly okay for them to keep the defaults then gradually up the security game at their own pace. Given that they already mentioned on another thread that it wouldn't be used for production any time soon.
     
    • Like Like x 1
  10. One of my screens freezes sometimes (I can't type anything or close it using ctrl+a+d)
     
  11. I heard this frequently happens on Screen but not Tmux. That is quite odd, could you check to see if there duplicated processes using TOP if your able to? If not you may need to "forcefully" logs out and investigate what's up when logging back in.

    In any cases please try to be careful not to create too many of these screen as each is indeed another one that can be processed. So if your looking to mess with 3 servers you wouldn't want to make 8 for example.
     
  12. Don't I have to make a screen for each server in my network? Also, this is happening only to the screen of the proxy server when trying to start it. I get this error and then it freezes (but I can join the game):
    Code (Text):
    [email protected]:~/Proxy# ./start.sh
    20:39:21 [INFO] Using mbed TLS based native cipher.
    20:39:21 [INFO] Using zlib based native compressor.
    20:39:21 [INFO] Enabled BungeeCord version git:BungeeCord-Bootstrap:1.14-SNAPSHOT:9e76966:1421
    20:39:21 [INFO] Not on Windows, attempting to use enhanced EpollEventLoop
    20:39:21 [INFO] Epoll is working, utilising it!
    20:39:21 [INFO] Discovered module: ModuleSpec(name=cmd_alert, file=modules/cmd_alert.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Discovered module: ModuleSpec(name=cmd_find, file=modules/cmd_find.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Discovered module: ModuleSpec(name=cmd_list, file=modules/cmd_list.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Discovered module: ModuleSpec(name=cmd_send, file=modules/cmd_send.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Discovered module: ModuleSpec(name=cmd_server, file=modules/cmd_server.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Discovered module: ModuleSpec(name=reconnect_yaml, file=modules/reconnect_yaml.jar, provider=JenkinsModuleSource())
    20:39:21 [INFO] Loaded plugin reconnect_yaml version git:reconnect_yaml:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Loaded plugin cmd_find version git:cmd_find:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Loaded plugin cmd_server version git:cmd_server:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Loaded plugin cmd_alert version git:cmd_alert:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Loaded plugin ServerListPlus version 3.4.8 by Minecrell <https://github.com/Minecrell>
    20:39:21 [INFO] Loaded plugin cmd_send version git:cmd_send:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Loaded plugin cmd_list version git:cmd_list:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [WARNING] Forced host server pvp is not defined
    20:39:21 [INFO] Enabled plugin reconnect_yaml version git:reconnect_yaml:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Enabled plugin cmd_find version git:cmd_find:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Enabled plugin cmd_server version git:cmd_server:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Enabled plugin cmd_alert version git:cmd_alert:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] [ServerListPlus] [Core] Reloading configuration...
    20:39:21 [INFO] [ServerListPlus] [Core] Saving configuration...
    20:39:21 [WARNING] [ServerListPlus] [Core] Configuration is not enabled, nothing will be changed on the server! Please execute /slp enable to enable the configuration.
    20:39:21 [INFO] [ServerListPlus] [Core] Reloading saved player identities...
    20:39:21 [INFO] [ServerListPlus] Successfully loaded!
    20:39:21 [INFO] Enabled plugin ServerListPlus version 3.4.8 by Minecrell <https://github.com/Minecrell>
    20:39:21 [INFO] Enabled plugin cmd_send version git:cmd_send:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [INFO] Enabled plugin cmd_list version git:cmd_list:1.14-SNAPSHOT:9e76966:1421 by SpigotMC
    20:39:21 [WARNING] Could not bind to host /0.0.0.0:25565
    io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
        at io.netty.channel.unix.Errors.newIOException(Errors.java:122)
        at io.netty.channel.unix.Socket.bind(Socket.java:287)
        at io.netty.channel.epoll.AbstractEpollChannel.doBind(AbstractEpollChannel.java:686)
        at io.netty.channel.epoll.EpollServerSocketChannel.doBind(EpollServerSocketChannel.java:70)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:563)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1332)
        at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:488)
        at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:473)
        at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:984)
        at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:259)
        at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:333)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
        at java.lang.Thread.run(Thread.java:748)
    >st
     
     
  13. Yes that is correct and I understand that your able to connect to your proxy but it still erroring out in the binding process. Could you go into your server's properties and explicitly set the IP of this VPS and try starting it again?

    If you are stuck in the screen, just logs out and log back in and kill the process ID. The "top" command be used to find said PID.
     
    • Useful Useful x 1
  14. Setting the IP worked. Thanks!
     
    • Friendly Friendly x 1
  15. Ok actually it doesn't freeze anymore and I can exit the screen but I can't type. Also when pressing ctrl+c it gets me out of the console but in the same screen and everytime I first refresh the server list after starting the server I get this
    Code (Text):
    22:42:35 [INFO] Listening on /178.33.74.15:25565
    22:42:40 [INFO] [/86.120.193.44:59084] <-> InitialHandler has connected
    22:42:40 [SEVERE] Exception in thread "main"
    22:42:40 [SEVERE] java.io.IOException: Resource temporarily unavailable
    22:42:40 [SEVERE]     at java.io.FileInputStream.read0(Native Method)
    22:42:40 [SEVERE]     at java.io.FileInputStream.read(FileInputStream.java:207)
    22:42:40 [SEVERE]     at jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169)
    22:42:40 [SEVERE]     at jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137)
    22:42:40 [SEVERE]     at jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246)
    22:42:40 [SEVERE]     at jline.internal.InputStreamReader.read(InputStreamReader.java:261)
    22:42:40 [SEVERE]     at jline.internal.InputStreamReader.read(InputStreamReader.java:198)
    22:42:40 [SEVERE]     at jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145)
    22:42:40 [SEVERE]     at jline.console.ConsoleReader.readLine(ConsoleReader.java:2349)
    22:42:40 [SEVERE]     at jline.console.ConsoleReader.readLine(ConsoleReader.java:2269)
    22:42:40 [SEVERE]     at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
    22:42:40 [SEVERE]     at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
    >
     
    but only the first time
     
    #15 Kompye, Nov 25, 2019
    Last edited: Nov 25, 2019
  16. Also tried with Tmux but I still can't type.
     
  17. I glad it's particularly solved I don't know if you can technically parse to the screen/Tmux or how to type into the console. As when I did this way back I think I didn't do much of that.
     
  18. Does anyone know how to fix it?