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

Questions about applications and software
Forum rules
Before you post please read this

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

Postby ada101 on Thu Apr 18, 2013 11:23 am

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 :>
ada101
Level 1
Level 1
 
Posts: 8
Joined: Mon Feb 04, 2013 5:30 am

Linux Mint is funded by ads and donations.
 

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

Postby ada101 on Sun Apr 21, 2013 1:04 am

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 :)
ada101
Level 1
Level 1
 
Posts: 8
Joined: Mon Feb 04, 2013 5:30 am


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 18 guests