I've been reading about runlevels and startup scripts lately, and I've learnt that runlevels 2 to 5 are the same in Ubuntu, and that Ubuntu's default runlevel is 2.
What I want to do
I want to remove the script that starts Unity from runlevel 3, or actually prefix it with a "K" to kill it when I switch from runlevel 2 to 3.
Why do I want to do it
I want to experiment with runlevels and understand "init" and startup scripts and all that. After I remove Unity from starting in runlevel 3, I want to run the command telinit 3
to see what happens.
What am I facing?
The current scripts/links in /etc/rc3.d/
are as follows:
alaa@aa-UBUNTU:~$ ls -l /etc/rc3.d
total 4
lrwxrwxrwx 1 root root 32 Nov 22 12:14 K08vmware-USBArbitrator -> /etc/init.d/vmware-USBArbitrator
lrwxrwxrwx 1 root root 26 Mar 30 10:51 K25vpnagentd_init -> /etc/init.d/vpnagentd_init
-rw-r--r-- 1 root root 677 Jul 21 2012 README
lrwxrwxrwx 1 root root 16 Nov 22 12:13 S19vmware -> ../init.d/vmware
lrwxrwxrwx 1 root root 20 Oct 30 2012 S20kerneloops -> ../init.d/kerneloops
lrwxrwxrwx 1 root root 27 Oct 30 2012 S20speech-dispatcher -> ../init.d/speech-dispatcher
lrwxrwxrwx 1 root root 31 Nov 19 17:10 S20vboxautostart-service -> ../init.d/vboxautostart-service
lrwxrwxrwx 1 root root 20 Nov 7 11:52 S20virtualbox -> ../init.d/virtualbox
lrwxrwxrwx 1 root root 20 Jan 28 16:30 S31atieventsd -> ../init.d/atieventsd
lrwxrwxrwx 1 root root 15 Oct 30 2012 S50rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root 15 Oct 30 2012 S50saned -> ../init.d/saned
lrwxrwxrwx 1 root root 32 Nov 22 12:14 S50vmware-USBArbitrator -> /etc/init.d/vmware-USBArbitrator
lrwxrwxrwx 1 root root 35 Nov 22 12:14 S55vmware-workstation-server -> ../init.d/vmware-workstation-server
lrwxrwxrwx 1 root root 19 Oct 30 2012 S70dns-clean -> ../init.d/dns-clean
lrwxrwxrwx 1 root root 18 Oct 30 2012 S70pppd-dns -> ../init.d/pppd-dns
lrwxrwxrwx 1 root root 14 Mar 3 10:10 S75sudo -> ../init.d/sudo
lrwxrwxrwx 1 root root 20 Oct 31 2012 S80metasploit -> ../init.d/metasploit
lrwxrwxrwx 1 root root 26 Mar 30 10:51 S85vpnagentd_init -> /etc/init.d/vpnagentd_init
lrwxrwxrwx 1 root root 22 Oct 30 2012 S99acpi-support -> ../init.d/acpi-support
lrwxrwxrwx 1 root root 21 Oct 30 2012 S99grub-common -> ../init.d/grub-common
lrwxrwxrwx 1 root root 18 Oct 30 2012 S99ondemand -> ../init.d/ondemand
lrwxrwxrwx 1 root root 18 Oct 30 2012 S99rc.local -> ../init.d/rc.local
I do not know which one is responsible for running the Unity user interface.