Linux 15.009 Themen, 106.826 Beiträge

[linux - shell] Die Grafikkarte deaktivieren

n0name / 2 Antworten / Flachansicht Nickles

Hallo,
ein freund sucht grad eine möglichkeit wie unter linux jegliche ausgaben über die grafikkarte deaktiviert werden.

Es soll also kein Bild mehr an einen Monitor weiter geleitet werden können

Gibt es da eine möglichkeit ?

mfg

bei Antwort benachrichtigen
KarstenW n0name „[linux - shell] Die Grafikkarte deaktivieren“
Optionen

Der XServer muß deaktiviert werden. Der XSERVER wird automatisch mit gdm, kdm oder xdm gestartet. Du mußt nur im entsprechenden Runlevel den Start dieser
Programme verhindern, in dem du den Link auf das Shellscripte löscht, die dieses Programm startet.

Normalerweise kann man Linux auch ohne Grafiktreiber (XServer) installieren, zumindest mein Debian kann für den Serverbereich auch ohne XServer installiert werden.

Runlevel 2: (ohne Grafikmodus)

dir -l /etc/rc2.d/

insgesamt 4
lrwxr-xr-x 1 root root 13 2005-10-27 15:02 K01gdm -> ../init.d/gdm
lrwxr-xr-x 1 root root 13 2005-10-15 15:55 K01kdm -> ../init.d/kdm
lrwxr-xr-x 1 root root 25 2006-03-01 13:48 K12sl-modem-daemon -> ../init.d/sl-modem-daemon
lrwxrwxrwx 1 root root 15 2006-01-08 12:21 K19hplip -> ../init.d/hplip
lrwxrwxrwx 1 root root 22 2006-02-25 16:12 K20amule-daemon -> ../init.d/amule-daemon
lrwxr-xr-x 1 root root 16 2005-11-26 14:58 K20dbus-1 -> ../init.d/dbus-1
lrwxrwxrwx 1 root root 15 2005-10-15 11:14 K20exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root 13 2006-03-01 11:05 K20gpm -> ../init.d/gpm
lrwxrwxrwx 1 root root 15 2005-10-15 11:15 K20inetd -> ../init.d/inetd
lrwxrwxrwx 1 root root 13 2005-10-15 11:15 K20lpd -> ../init.d/lpd
lrwxr-xr-x 1 root root 15 2005-11-26 14:59 K20rsync -> ../init.d/rsync
lrwxr-xr-x 1 root root 13 2005-10-18 10:21 K20xfs -> ../init.d/xfs
lrwxr-xr-x 1 root root 16 2005-10-20 14:54 K20xprint -> ../init.d/xprint
lrwxr-xr-x 1 root root 17 2005-11-27 10:14 K81portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root 13 2005-10-15 11:15 K86ppp -> ../init.d/ppp
-rw-r--r-- 1 root root 556 2006-03-27 15:42 README
lrwxrwxrwx 1 root root 16 2005-10-15 11:14 S07hdparm -> ../init.d/hdparm
lrwxrwxrwx 1 root root 18 2005-10-15 12:28 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 15 2005-10-15 12:28 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root 15 2005-10-15 11:25 S15bind9 -> ../init.d/bind9
lrwxr-xr-x 1 root root 16 2005-10-15 14:38 S20cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root 17 2005-10-15 12:25 S20makedev -> ../init.d/makedev
lrwxr-xr-x 1 root root 27 2005-10-16 10:21 S20nfs-kernel-server -> ../init.d/nfs-kernel-server
lrwxrwxrwx 1 root root 13 2005-10-15 10:49 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 20 2005-10-15 10:49 S21nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root 17 2005-10-15 11:19 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 13 2005-10-15 12:28 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 2005-10-15 12:26 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root 19 2005-10-15 12:25 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 23 2005-10-15 12:25 S99stop-bootlogd -> ../init.d/stop-bootlogd


Runlevel 3 (mit Grafikmodus):

dir -l /etc/rc3.d/

insgesamt 4
lrwxr-xr-x 1 root root 13 2005-10-27 15:00 K01kdm -> ../init.d/kdm
lrwxr-xr-x 1 root root 25 2006-03-01 13:48 K12sl-modem-daemon -> ../init.d/sl-modem-daemon
lrwxrwxrwx 1 root root 15 2006-01-08 12:21 K19hplip -> ../init.d/hplip
lrwxr-xr-x 1 root root 22 2006-04-06 16:14 K20amule-daemon -> ../init.d/amule-daemon
lrwxr-xr-x 1 root root 20 2006-04-06 16:14 K20bittorrent -> ../init.d/bittorrent
lrwxr-xr-x 1 root root 16 2005-11-26 14:58 K20dbus-1 -> ../init.d/dbus-1
lrwxrwxrwx 1 root root 15 2005-10-15 11:14 K20exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root 13 2006-03-01 11:05 K20gpm -> ../init.d/gpm
lrwxrwxrwx 1 root root 15 2005-10-15 11:15 K20inetd -> ../init.d/inetd
lrwxrwxrwx 1 root root 13 2005-10-15 11:15 K20lpd -> ../init.d/lpd
lrwxr-xr-x 1 root root 15 2005-11-26 14:59 K20rsync -> ../init.d/rsync
lrwxr-xr-x 1 root root 13 2005-10-18 10:21 K20xfs -> ../init.d/xfs
lrwxr-xr-x 1 root root 16 2005-10-20 14:54 K20xprint -> ../init.d/xprint
lrwxr-xr-x 1 root root 17 2005-11-27 10:14 K81portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root 13 2005-10-15 11:15 K86ppp -> ../init.d/ppp
-rw-r--r-- 1 root root 556 2006-03-27 15:42 README
lrwxrwxrwx 1 root root 16 2005-10-15 11:14 S07hdparm -> ../init.d/hdparm
lrwxrwxrwx 1 root root 18 2005-10-15 12:28 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 15 2005-10-15 12:28 S11klogd -> ../init.d/klogd
lrwxr-xr-x 1 root root 15 2006-04-01 17:16 S15bind9 -> ../init.d/bind9
lrwxr-xr-x 1 root root 16 2005-10-15 14:38 S20cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root 17 2005-10-15 12:25 S20makedev -> ../init.d/makedev
lrwxr-xr-x 1 root root 27 2005-10-16 10:21 S20nfs-kernel-server -> ../init.d/nfs-kernel-server
lrwxrwxrwx 1 root root 13 2005-10-15 10:49 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 20 2005-10-15 10:49 S21nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root 17 2005-10-15 11:19 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 13 2005-10-15 12:28 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 2005-10-15 12:26 S89cron -> ../init.d/cron
lrwxr-xr-x 1 root root 13 2005-10-27 15:02 S99gdm -> ../init.d/gdm lrwxrwxrwx 1 root root 19 2005-10-15 12:25 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 23 2005-10-15 12:25 S99stop-bootlogd -> ../init.d/stop-bootlogd


Init übergibt dem aufgerufenen Shellscript den "start" -parameter , wenn der Link mit "S" anfängt. Beginnt der Link mit K , übergibt init dem Shellscript den "stop" -Parameter.
Im Shellscript wird dann mittels einer switch-case - Routine dieser Parameter ausgewertet.
Du mußt mal ein wenig Shellprogrammierung lernen, um den Startvorgang mit diesen Runlevels von AT Unix System V zu verstehen.

Du kannst auch den XServer beenden, in dem du das Shellscript selbst mit dem Stop- Paramerter aufrufst.
Beispiel:

Bei mir wird der XServer mit gdm gestartet:

Durch den Befehl "/etc/init.d/gdm stop" wird der XServer wieder beendet.


Oder meist du das Deaktivieren von XForwarding ?



[Diese Nachricht wurde nachträglich bearbeitet.]

Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen