Debian:必须 pkill -9 twm 然后使用 twm 登录

Debian:必须 pkill -9 twm 然后使用 twm 登录

我正在尝试我的 Debian 系统(当我用 tty 登录时,它显示 wheezy/sid),并以某种方式破坏了它。

当我启动时,出现一个带有手表光标的黑屏。它保持这样,但如果我按通常的键,比如 Ctrl-Alt-F6,我就会得到 tty。在这里,在下面列出的过程中,我发现

pkill -9 twm

将立即将我从 tty 带到 GUI 视图(以前的黑屏),那里有熟悉的登录屏幕。无法进行正常登录,但使用 twm 可以。 (可能我搞砸了 Gnome。 aptitude 说不能做任何事情:由于错误太多而中止。)

对于我来说,twm 一点也不令人不快,所以我的问题是,你知道如何摆脱最初的 pkill 吗?

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 18:16 ?        00:00:01 init [2]         
root         2     0  0 18:16 ?        00:00:00 [kthreadd]
root         3     2  0 18:16 ?        00:00:00 [ksoftirqd/0]
root         4     2  0 18:16 ?        00:00:00 [kworker/0:0]
root         5     2  0 18:16 ?        00:00:00 [kworker/u:0]
root         6     2  0 18:16 ?        00:00:00 [migration/0]
root         7     2  0 18:16 ?        00:00:00 [watchdog/0]
root         8     2  0 18:16 ?        00:00:00 [cpuset]
root         9     2  0 18:16 ?        00:00:00 [khelper]
root        10     2  0 18:16 ?        00:00:00 [kdevtmpfs]
root        11     2  0 18:16 ?        00:00:00 [netns]
root        12     2  0 18:16 ?        00:00:00 [sync_supers]
root        13     2  0 18:16 ?        00:00:00 [bdi-default]
root        14     2  0 18:16 ?        00:00:00 [kintegrityd]
root        15     2  0 18:16 ?        00:00:00 [kblockd]
root        16     2  0 18:16 ?        00:00:00 [kworker/0:1]
root        17     2  0 18:16 ?        00:00:00 [khungtaskd]
root        18     2  0 18:16 ?        00:00:00 [kswapd0]
root        19     2  0 18:16 ?        00:00:00 [ksmd]
root        20     2  0 18:16 ?        00:00:00 [khugepaged]
root        21     2  0 18:16 ?        00:00:00 [fsnotify_mark]
root        22     2  0 18:16 ?        00:00:00 [crypto]
root       114     2  0 18:16 ?        00:00:00 [khubd]
root       129     2  0 18:16 ?        00:00:00 [ata_sff]
root       131     2  0 18:16 ?        00:00:00 [scsi_eh_0]
root       132     2  0 18:16 ?        00:00:00 [scsi_eh_1]
root       133     2  1 18:16 ?        00:00:04 [kworker/u:1]
root       134     2  0 18:16 ?        00:00:00 [kworker/u:2]
root       144     2  0 18:16 ?        00:00:00 [kworker/0:2]
root       147     2  0 18:16 ?        00:00:00 [kworker/0:3]
root       174     2  0 18:16 ?        00:00:00 [kjournald]
root       259     1  0 18:16 ?        00:00:00 udevd --daemon
root       409     2  0 18:16 ?        00:00:00 [kpsmoused]
root       442     2  0 18:16 ?        00:00:00 [hd-audio0]
root      1106     2  0 18:16 ?        00:00:00 [flush-8:0]
root      1118     1  0 18:16 ?        00:00:00 dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
daemon    1342     1  0 18:16 ?        00:00:00 /sbin/portmap
root      1421     1  0 18:17 ?        00:00:00 /usr/sbin/rsyslogd -c5
101       1455     1  0 18:17 ?        00:00:00 /usr/bin/dbus-daemon --system
root      1479     1  0 18:17 ?        00:00:00 /usr/sbin/acpid
root      1512     1  0 18:17 ?        00:00:00 /usr/sbin/gdm3
root      1535  1512  0 18:17 ?        00:00:00 /usr/lib/gdm3/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
root      1537  1535  0 18:17 tty7     00:00:00 /usr/bin/Xorg :0 -br -verbose -novtswitch -auth /var/run/gdm3/auth-for-Debian-gdm-TSeI8C/database -nolisten tcp vt7
root      1541     1  0 18:17 ?        00:00:00 /usr/sbin/acpi_fakekeyd
root      1614     1  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
daemon    1642     1  0 18:17 ?        00:00:00 /usr/sbin/atd
avahi     1670     1  0 18:17 ?        00:00:00 avahi-daemon: running [VLAN-3434.local]
avahi     1671  1670  0 18:17 ?        00:00:00 avahi-daemon: chroot helper
www-data  1691  1614  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1692  1614  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1693  1614  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1694  1614  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  1695  1614  0 18:17 ?        00:00:00 /usr/sbin/apache2 -k start
root      1728     1  0 18:17 ?        00:00:00 /usr/sbin/bluetoothd
root      1778  1535  0 18:17 ?        00:00:00 /usr/lib/gdm3/gdm-session-worker
root      1788     1  0 18:17 ?        00:00:00 /usr/lib/accountsservice/accounts-daemon
root      1789     1  0 18:17 ?        00:00:00 /usr/sbin/console-kit-daemon --no-daemon
root      1877     1  0 18:17 ?        00:00:00 /usr/sbin/cron
root      1911     1  0 18:17 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug
root      1922   259  0 18:17 ?        00:00:00 udevd --daemon
root      1923   259  0 18:17 ?        00:00:00 udevd --daemon
root      1927     2  0 18:17 ?        00:00:00 [kauditd]
root      1934     1  0 18:17 ?        00:00:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
incal     1937  1778  0 18:17 ?        00:00:00 twm
colord    1942     1  0 18:17 ?        00:00:00 /usr/lib/i386-linux-gnu/colord/colord
colord    1970     1  0 18:17 ?        00:00:00 /usr/lib/i386-linux-gnu/colord/colord-sane
root      2002     1  0 18:17 ?        00:00:00 /usr/sbin/kerneloops
incal     2045  1937  0 18:17 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session twm
incal     2048     1  0 18:17 ?        00:00:00 /usr/bin/dbus-launch --exit-with-session twm
incal     2109     1  0 18:17 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      2129     1  0 18:17 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql     2443  2129  0 18:17 ?        00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --pid-file=/run/mysqld/mysqld.pid --socket=/run/mysqld/mysqld.sock --port=3306
root      2444  2129  0 18:17 ?        00:00:00 logger -t mysqld -p daemon.error
102       2812     1  0 18:17 ?        00:00:00 /usr/sbin/exim4 -bd -q30m
root      2938     1  0 18:17 ?        00:00:00 /usr/sbin/sshd
root      3016     1  0 18:17 ?        00:00:00 /usr/sbin/minissdpd -i 0.0.0.0
root      3032     1  0 18:17 tty1     00:00:00 /sbin/getty 38400 tty1
root      3033     1  0 18:17 tty2     00:00:00 /sbin/getty 38400 tty2
root      3034     1  0 18:17 tty3     00:00:00 /sbin/getty 38400 tty3
root      3035     1  0 18:17 tty4     00:00:00 /sbin/getty 38400 tty4
root      3036     1  0 18:17 tty5     00:00:00 /bin/login --      
root      3037     1  0 18:17 tty6     00:00:00 /sbin/getty 38400 tty6
incal     3066  3036  0 18:19 tty5     00:00:00 -bash
incal     3133  3066  0 18:20 tty5     00:00:00 ps -Af

答案1

碰巧,我是 twm 的习惯用户。我的想法是你的 .twmrc 文件,或者可能是 .xinitrc 文件,被搞乱了。我会从终端执行此操作:

cd ~
mv .twmrc orig.twmrc
mv .xinitrc orig.xinitrc

然后尝试启动X11。如果您不使用 twm,并且 X11 作为某种故障保护而依靠 twm,我会重命名所有您想要使用的 X11 启动文件。有些东西处于无限循环中。

答案2

  1. 转到/etc/rc2.d/
  2. 将S19gmd3中的S替换为K(重命名文件)
  3. 重启
  4. 登录
  5. 输入xinit
  6. 类型 twm

相关内容