Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. INITTAB
  2.  
  3. #
  4. # /etc/inittab
  5. #
  6.  
  7. # Runlevels:
  8. # 0 Halt
  9. # 1(S) Single-user
  10. # 2 Not used
  11. # 3 Multi-user
  12. # 4 Not used
  13. # 5 X11
  14. # 6 Reboot
  15.  
  16. ## Only one of the following two lines can be uncommented!
  17. # Boot to console
  18. #id:3:initdefault:
  19. # Boot to X11
  20. id:5:initdefault:
  21.  
  22. rc::sysinit:/etc/rc.sysinit
  23. rs:S1:wait:/etc/rc.single
  24. rm:2345:wait:/etc/rc.multi
  25. rh:06:wait:/etc/rc.shutdown
  26. su:S:wait:/sbin/sulogin -p
  27.  
  28. # -8 options fixes umlauts problem on login
  29. c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
  30. c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
  31. c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
  32. #c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
  33. #c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
  34. #c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
  35.  
  36. ca::ctrlaltdel:/sbin/shutdown -t3 -r now
  37.  
  38. # Example lines for starting a login manager
  39. #x:5:respawn:/usr/bin/slim >& /dev/null
  40. c4:5:respawn:/sbin/agetty -n -l /etc/autostartx 38400 tty4 linux
  41. # End of file
  42.  
  43.  
  44.  
  45.  
  46. AUTOSTARTX
  47.  
  48. #!/bin/sh
  49. #Runs an X session for the user defined here:
  50. user="robin"
  51.  
  52. echo 'Starting X session for '"$USER"
  53. login -f "${user}" STARTX=1
  54.  
  55.  
  56.  
  57. ls -l autostartx
  58. -rw-r--r-- 1 root root 138 Feb 17 14:00 /etc/autostartx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement