java server via TTY1-7 while normal GUI session on TTY8

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ada101

java server via TTY1-7 while normal GUI session on TTY8

Post by ada101 »

Firstly, if this post is in the wrong topic, feel free to move. I found "Software & Applications" the most relevant.

I currently have a minecraft server running normally on the GUI server tty8 via a terminal emulator. I would like to be able to move the server to tty1-7 so that I can do whatever using the normal GUI tty.

The server uses Linux Mint Cinnamon with the specs being:
-Intel Core i7-2630QM Processor 6M Cache, up to 2.90 GHz
-8GB DDR3 Ram
-Cat6 Gigabit Ethernet
-750GB 5200RPM WD Blue SATA
-Intel HD3000/Nvidia 520MX
I know how to log in to a tty and start a server but I would like to do the following:
I want the computer to start up normally and default to the tty8 GUI logon screen while on the server tty I want:
-auto login to server user (username is "mcserver")
-run this shell file:

Code: Select all

#!/bin/sh
Pause()
{
 OLDCONFIG=`stty -g`
 stty -icanon -echo min 1 time 0
 dd count=1 2>/dev/null
 stty $OLDCONFIG
}
 
echo "Hit a key to start the server..."
Pause
echo "Server starting....."

sh ~/mcs/craftbukkit.sh
(^I didn't quote this from anywhere, just making it look tidy)
Thanks for any help, it is appreciated :>
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ada101

Re: java server via TTY1-7 while normal GUI session on TTY8

Post by ada101 »

I posted this same topic on Ubuntu Forums and got it solved there :) :
http://ubuntuforums.org/showthread.php? ... st12612011

The quote on the linked post has the answer :)
Locked

Return to “Software & Applications”