About start system without X in Fedora 15
R. G. Newbury
newbury at mandamus.org
Tue May 17 17:20:59 UTC 2011
On 05/17/2011 11:13 AM, "Manuel Trujillo
(TooManySecrets)"<toomany at toomany.net> wrote:
> Before systemd, you could start a system without the X putting a "3"
> at end of kernel line in grub. How I can make the same in Fedora 15? I
> tried the same but not work (I think it is for the new systemd start
> system).
A quick and easy to remember method: Add the following to your
/etc/inittab file, and make it executable. Then run 'inittab 3'. It
suddenly strikes me that you may be able to do this, by merely
're-starting' X. I'm not near my F15 box ATM so I am not sure. But a
reboot works. After doing whatever, 'inittab 5' and re-start.
# REVISED INITTAB
# To set the default systemd target
# run as an executable with a level parameter
# eg: inittab 3
# this defaults to non-graphical for anything other than 5
# ..possibly dangerous with a 0 or 1, or even 6!
export LEVEL=$1
echo ""
echo " Setting RUNLEVEL to " $LEVEL
echo ""
if [ $LEVEL = "5" ];
then
rm -vf /etc/systemd/system/default.target
ln -s /lib/systemd/system/graphical.target
/etc/systemd/system/default.target
echo " Default target set to graphical.";
else
rm -vf /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target
/etc/systemd/system/default.target
echo " Default target set to multi-user.";
fi
--
R. Geoffrey Newbury
More information about the users
mailing list