User Tools

Site Tools


manuals:vps:console

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
manuals:vps:console [2016/12/12 16:28] – Rewording Aithermanuals:vps:console [2022/01/26 09:54] – Remove info about outdated distributions Aither
Line 12: Line 12:
  
 The console is persistent. That means that you can use it to follow the process of turning the VPS The console is persistent. That means that you can use it to follow the process of turning the VPS
-off and on. Disconnecting from the console does not log the user off unless an unintentional logoff+off and on. Disconnecting from the console does not log the user off unless an intentional logoff
 takes place before disconnecting. takes place before disconnecting.
  
Line 64: Line 64:
 EOF EOF
 </code> </code>
- 
-===== Enabling Remote Console ===== 
- 
-Current distro templates mostly have this console preset. 
-In older templates, it’s necessary to enable it manually. 
- 
-==== Debian ==== 
-Add the following line to the ''/etc/inittab'' file: 
- 
-<code>1:2345:respawn:/sbin/getty 38400 tty0</code> 
- 
-==== El (Scientific Linux, CentOS) ==== 
-Add the following lines to the ''/etc/init/tty.conf'' file: 
- 
-<code> 
-stop on runlevel [S016] 
- 
-respawn 
-instance $TTY 
-exec /sbin/mingetty $TTY 
-</code> 
- 
-Then open ''/etc/init/start-ttys.conf'' and add: 
- 
-<code> 
-start on stopped rc RUNLEVEL=[2345] 
- 
-env ACTIVE_CONSOLES=/dev/tty[0-6] 
-env X_TTY=/dev/tty1 
-task 
-script 
-        . /etc/sysconfig/init 
-        for tty in $(echo $ACTIVE_CONSOLES) ; do 
-                [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue 
-                initctl start tty TTY=$tty 
-        done 
-end script 
-</code> 
- 
-==== Gentoo ==== 
- 
-Add the following line to the ''/etc/inittab'' file: 
- 
-<code> 
-# vpsFree remote console 
-c0:2345:respawn:/sbin/agetty --noreset 38400 tty0 
-</code> 
- 
-The console should work after a restart. 
- 
-==== Ubuntu ==== 
-//This is not necessary for the current Ubuntu template.// 
- 
-Open the file ''/etc/init/tty0.conf'' and add: 
- 
-<code> 
-start on stopped rc or RUNLEVEL=[2345] 
-stop on runlevel [!2345] 
-respawn 
-exec /sbin/getty -L 38400 tty0 vt102 
-</code> 
- 
-Run the service using ''sudo start tty0''. It will start automatically after 
-a restart. 
- 
-===== If It Isn’t Working ===== 
-If the console isn’t working, isn’t displaying every character or doesn’t allow login, 
-you probably have several instances of getty running and a race condition occurs. 
-This problem can be solved by turning off the extra getty in ''/etc/inittab''. 
manuals/vps/console.txt · Last modified: 2023/12/12 15:37 by aither