如何在Fedora18中使用图形界面
之前要停止在fedora中停止x window的问题的答案都是这样的
vi /etc/inittab Find out entry that read as follows: id:5:initdefault: Set the default runlevel to 3 (text mode) id:3:initdefault:Save and close the filereboot
然而,当我打开inittab文件的时候,我看到的是:
inittab is no longer used when using systemd. ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target systemd uses 'targets' instead of runlevels. By default, there are two main targets: multi-user.target: analogous to runlevel 3 graphical.target: analogous to runlevel 5
To set a default target, run:
ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
这时怎么办呢?
实际上fedora从14之后就开始用systemd代替inittab了,这里与之前的runlevel 3相对应的就是一个软符号链接,这时我们要做的就是删除原来默认的符号链接,建立新符号链接。
# cd /etc/systemd/systemsystem # rm ./default.targetsystem #
system # ln -sf /lib/systemd/system/multi-user.target ./default.target