Automatic login to TTY1 on Ubuntu 10.10

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Rhythmatic
A regular
A regular
Posts: 31
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Feb 22, 2011 9:32 am

Re: Automatic login to TTY1 on Ubuntu 10.10

Post by Rhythmatic »

Found a typo. Here's the correct one. I left out the "sh". Also, I'm not sure how to edit posts. :oops:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
su nathan -l -c "sh /home/nathan/main.sh"
exit 0
Rhythmatic
A regular
A regular
Posts: 31
Joined: Tue Feb 22, 2011 9:32 am

Re: Automatic login to TTY1 on Ubuntu 10.10

Post by Rhythmatic »

I can't seem to be able to connect to the server. I'm using the same java arguments as I usually do, and the command "free -m" indicates that about 650MB more than usual are being used, but it's still no use.

Thoughts?
User avatar
Edge100x
Founder
Founder
Posts: 13117
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Automatic login to TTY1 on Ubuntu 10.10

Post by Edge100x »

I really would recommend running the server in a "screen" because:

- This will allow you to send commands to it later from outside
- It won't clog up the boot process and prevent you from seeing a login prompt
- It's just so much more flexible

In any case, are you seeing the server in "top"?
Rhythmatic
A regular
A regular
Posts: 31
Joined: Tue Feb 22, 2011 9:32 am

Re: Automatic login to TTY1 on Ubuntu 10.10

Post by Rhythmatic »

I thought I WAS running it in a screen. What would you change?
User avatar
Edge100x
Founder
Founder
Posts: 13117
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Automatic login to TTY1 on Ubuntu 10.10

Post by Edge100x »

The last example line I gave included running it in "screen".
Post Reply