Ok,
==============================================
There is not /etc/inittab file in Ubuntu because Ubuntu uses
/etc/event.d/rc-default file
You can fix this problem by editing /etc/event.d/rc-default file
First backup file,
Code:
sudo cp /etc/event.d/rc-default /etc/event.d/rc-default.bakup
Open vi /etc/event.d/rc-default
Code:
sudo vi /etc/event.d/rc-default
Find all lines read as - telinit 2 and replace with telinit 3
Code:
telinit 3
Reboot the system
==============================================
Every time I used either "sudo vi," "sudo gedit" or even forcing my way into "su" did not stop the OS from resetting the telinit back to 2?!?!!?
==============================================
But you can simply enter:
# init 3
if X is still running:
# ps -ef |grep X
or
# pkill X