home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / DOC / HOWTO / MINI / CONSOLE1 < prev    next >
Encoding:
Text File  |  1996-03-17  |  3.1 KB  |  98 lines

  1. Efficiently using more than 8 consoles
  2. --------------------------------------
  3.  
  4. If you're using the text-consoles extensivly, you may wish to access
  5. more than 8 consoles and to use them without logging into every console
  6. seperatly.
  7. This is a 3-step-guide how to realize it quick and efficiently.
  8.  
  9.  
  10. (1) Create the nesassary device-files
  11.  
  12. Log in as root. Then execute the following commands
  13.  
  14.     -----8<----- cut here -----8<-----
  15.     cd /dev
  16.     ./MAKEDEV tty9
  17.     for i in  0 1 2 3 4 5 6 7 8 9
  18.     do
  19.         ./MAKEDEV tty1$i
  20.     done
  21.     -----8<----- cut here -----8<-----
  22.  
  23. ╗/dev/MAKEDEV½ is a shell-script. You can use ╗more½ (or ╗less½)
  24. to view the contents of this script to get more information about
  25. what happens.
  26.  
  27.  
  28. (2) Get rid of all login-prompts but 2
  29.  
  30. Load the file ╗/etc/inittab½ into your favorite editor and comment
  31. out all lines containing "getty" like shown below (hint: leave
  32. the rest of the file unchanged!).
  33. As you may have guessed, the char to make comments is ╗#½.
  34.  
  35.     -----8<----- cut here -----8<-----
  36.     # /sbin/getty invocations for the runlevels.
  37.     #
  38.     # The "id" field MUST be the same as the last
  39.     # characters of the device (after "tty").
  40.     #
  41.     # Format:
  42.     #  <id>:<runlevels>:<action>:<process>
  43.     1:2345:respawn:/sbin/getty 9600 tty1
  44.     2:23:respawn:/sbin/getty 9600 tty2
  45.     #3:23:respawn:/sbin/getty 9600 tty3
  46.     #4:23:respawn:/sbin/getty 9600 tty4
  47.     #5:23:respawn:/sbin/getty 9600 tty5
  48.     #6:23:respawn:/sbin/getty 9600 tty6
  49.     #7:23:respawn:/sbin/getty 9600 tty7
  50.     -----8<----- cut here -----8<-----
  51.  
  52. Re-load the above configuration-file via the command ╗/sbin/telinit q½ (as
  53. root ) and wipe out all running login-prompts with ╗killall getty½ (or
  54. whatever sort of getty you're running).
  55.  
  56. If you have your X-Session on vt8 (thats the console you change to when 
  57. you press Ctrl-Alt-F8 ), you may wish to add the option ╗vt8½ to the
  58. options for X in ╗/etc/X11/xdm/Xservers½:
  59.  
  60.     -----8<----- cut here -----8<-----
  61.     :0 local /usr/X11R6/bin/X vt8
  62.     -----8<----- cut here -----8<-----
  63.  
  64. (Leave the rest of the file unchanged.) Voila, X is still on vt8 next
  65. time you boot Linux.
  66.  
  67.  
  68. (3) Install the program ╗open½
  69.  
  70. Get the packet ╗dynamic-vt-1.1.tar.gz½ from sunsite and it's mirrors.
  71. It contains ╗open½ and a few other useful utilities.
  72.  
  73. You don't know how what "sunsite and it's mirrors" means? You don't
  74. know how to install a program? 
  75. Sorry, that's beyond the scope of this mini-howto. It really makes me
  76. sick to see every HOWTO explaining this again and again (making it long 
  77. and very boring). Ask an expert and write an ╗Software-Installation HOWTO½
  78. afterwards. Thank you.
  79.  
  80.  
  81.  
  82. You're done. Log into one console. Now, if you want to start a
  83. command-prompt (╗bash½, ╗tcsh½) on a free console just type ╗open -sl½. 
  84. No login-id, no password is required (because you have already
  85. authenticated yourself).
  86.  
  87. If the screen is still messed up, try the command ╗reset½ or reboot the
  88. computer once.
  89.  
  90. The consoles no. 13-24 can be accessed with AltGr-F1 - AltGr-F12.
  91. Programs like ╗tty½, ╗ps½ and ╗chvt½ help you to navigate through
  92. the new bunch of consoles. But: as no real login is performed, your
  93. sessions don't show up under ╗w½ or ╗finger½.
  94.  
  95.  
  96.  
  97. Winfried Trⁿmper <truemper@MI.Uni-Koeln.DE>
  98.