/l3/users/devi/vnc-server-installation/vnc0.unix.nt/root :1 :2 |
|
#ps aux | grep l3-agent
root 1070 0.0 2.1 9904 5636 ? Ss 17:44 0:00 l3-agent root 1150 0.0 0.2 3728 688 ttyp0 S+ 17:46 0:00 grep l3-agent |
#cat ~/.l3rc
l3cd=/users/devi/vnc-server-installation/vnc0.unix.nt/root |
#apt-get install vnc gdm xfonts-base
Reading package lists... Done Building dependency tree... Done Package vnc is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: xvncviewer vncserver E: Package vnc has no installation candidate |
#apt-get install vncserver gdm xfonts-base
WARNING: The following packages cannot be authenticated! x11-common libxau6 libxdmcp6 libx11-data libx11-6 libxext6 libdmx1 libxfixes3 libexpat1 libfreetype6 ucf libmagic1 file defoma ttf-dejavu fontconfig-config libfontconfig1 libxrender1 libxft2 libice6 libsm6 libxt6 vnc-common libfs6 libdrm2 libxxf86vm1 libgl1-mesa-glx libpng12-0 libxmu6 libxpm4 libxaw7 libxcursor1 libxi6 libxkbfile1 libxmuu1 libxrandr2 libxss1 libxtrap6 libxtst6 libxv1 libxxf86dga1 xbase-clients vncserver libkrb53 mime-support python2.4-minimal python2.4 python-minimal python python-central python-support libxml2 libxslt1.1 libscrollkeeper0 sgml-base xml-core sgml-data docbook-xml scrollkeeper libglib2.0-0 libidl0 liborbit2 ... Get:110 http://192.168.15.251 etch/main libgnome-keyring0 0.6.0-3 [30.8kB] Get:111 http://192.168.15.251 etch/main libgnomeui-common 2.14.1-2 [720kB] Get:112 http://192.168.15.251 etch/main libgnomeui-0 2.14.1-2 [369kB] Get:113 http://192.168.15.251 etch/main libstartup-notification0 0.8-2 [19.4kB] Get:114 http://192.168.15.251 etch/main libgnome-desktop-2 2.14.3-1 [74.6kB] Get:115 http://192.168.15.251 etch/main libnspr4-0d 1.8.0.8-1 [135kB] Get:116 http://192.168.15.251 etch/main libedataserver1.2-7 1.6.3-3 [116kB] Get:117 http://192.168.15.251 etch/main libnss3-0d 1.8.0.8-1 [695kB] Get:118 http://192.168.15.251 etch/main libcamel1.2-8 1.6.3-3 [323kB] Get:119 http://192.168.15.251 etch/main libebook1.2-5 1.6.3-3 [128kB] |
#vi /etc/inetd.conf
38a39,40 > vnc800 stream tcp nowait root /usr/bin/Xvnc Xvnc -inetd -query 127.0.0.1 -once -depth 16 -geometry 800x600 > |
#vi /etc/services
557a558 > vnc800 5951/tcp # small |
#apt-get install openssh-server
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libedit2 openssh-client Suggested packages: ssh-askpass rssh molly-guard The following NEW packages will be installed: libedit2 openssh-client openssh-server 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 892kB of archives. ... Selecting previously deselected package openssh-client. Unpacking openssh-client (from .../openssh-client_1%3a4.3p2-8_i386.deb) ... Selecting previously deselected package openssh-server. Unpacking openssh-server (from .../openssh-server_1%3a4.3p2-8_i386.deb) ... Setting up libedit2 (2.9.cvs.20050518-2.2) ... Setting up openssh-client (4.3p2-8) ... Setting up openssh-server (4.3p2-8) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd. |
#useradd -m user
|
#passwd user
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
#vi /etc/gdm/gdm.conf
1,40c1,67 < # GDM Configuration Customization file. < # < # This file is the appropriate place for specifying your customizations to the < # GDM configuration. If you run gdmsetup, it will automatically edit this < # file for you and will cause the daemon and any running GDM GUI programs to < # automatically update with the new configuration. Not all configuration < # options are supported by gdmsetup, so to modify some values it may be < # necessary to modify this file directly by hand. < # < # Older versions of GDM used the "gdm.conf" file for configuration. If your < # system has an old gdm.conf file on the system, it will be used instead of < # this file - so changes made to this file will not take effect. Consider < # migrating your configuration to this file and removing the gdm.conf file. < # < # To hand-edit this file, simply add or modify the key=value combination in < # the appropriate section in the template below. Refer to the comments in the < # /usr/share/gdm/defaults.conf file for information about each option. Also < # refer to the reference documentation. < # < # If you hand edit a GDM configuration file, you should run the following < # command to get the GDM daemon to notice the change. Any running GDM GUI < # programs will also be notified to update with the new configuration. < # < # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" < # < # e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". < # < # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and < # re-read the new configuration settings. You can also restart GDM by sending < # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes < # any user session started by GDM to exit immediately while USR1 behaves like < # gdm-safe-restart and will wait until all users log out before restarting GDM. < # < # For full reference documentation see the gnome help browser under < # GNOME|System category. You can also find the docs in HTML form on < # http://www.gnome.org/projects/gdm/ < # < # NOTE: Lines that begin with "#" are considered comments. < # < # Have fun! --- > # # GDM Configuration Customization file. > # # > # # This file is the appropriate place for specifying your customizations to the > # # GDM configuration. If you run gdmsetup, it will automatically edit this > # # file for you and will cause the daemon and any running GDM GUI programs to > # # automatically update with the new configuration. Not all configuration > # # options are supported by gdmsetup, so to modify some values it may be > # # necessary to modify this file directly by hand. > # # > # # Older versions of GDM used the "gdm.conf" file for configuration. If your > # # system has an old gdm.conf file on the system, it will be used instead of > # # this file - so changes made to this file will not take effect. Consider > # # migrating your configuration to this file and removing the gdm.conf file. > # # > # # To hand-edit this file, simply add or modify the key=value combination in > # # the appropriate section in the template below. Refer to the comments in the > # # /usr/share/gdm/defaults.conf file for information about each option. Also > # # refer to the reference documentation. > # # > # # If you hand edit a GDM configuration file, you should run the following > # # command to get the GDM daemon to notice the change. Any running GDM GUI > # # programs will also be notified to update with the new configuration. > # # > # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" > # # > # # e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". > # # > # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and > # # re-read the new configuration settings. You can also restart GDM by sending > # # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes > # # any user session started by GDM to exit immediately while USR1 behaves like > # # gdm-safe-restart and will wait until all users log out before restarting GDM. > # # > # # For full reference documentation see the gnome help browser under > # # GNOME|System category. You can also find the docs in HTML form on > # # http://www.gnome.org/projects/gdm/ > # # > # # NOTE: Lines that begin with "#" are considered comments. > # # > # # Have fun! > # > # [daemon] > # > # [security] > # > # [xdmcp] > # > # [gui] > # > # [greeter] > # > # [chooser] > # > # [debug] > # > # # Note that to disable servers defined in the defaults.conf file (such as > # # 0=Standard, you must put a line in this file that says 0=inactive, as > # # described in the Configuration section of the GDM documentation. > # # > # [servers] > # > # # Also note, that if you redefine a [server-foo] section, then GDM will > # # use the definition in this file, not the defaults.conf file. It is > # # currently not possible to disable a [server-foo] section defined > # # in the defaults.conf file. > # # > 42a70,106 > AutomaticLoginEnable=false > AutomaticLogin= > # If you are having trouble with using a single server for a long time and > # want gdm to kill/restart the server, turn this on > AlwaysRestartServer=false > Configurator=/usr/bin/gdmconfig --disable-sound --disable-crash-dialog > GnomeDefaultSession=/etc/gnome/default.session > Chooser=/usr/bin/gdmchooser --disable-sound --disable-crash-dialog > DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > DisplayInitDir=/etc/gdm/Init > Greeter=/usr/bin/gdmlogin --disable-sound --disable-crash-dialog > Group=gdm > HaltCommand=/sbin/shutdown -h now "Halted from gdm menu." > KillInitClients=true > LogDir=/var/log/gdm > PidFile=/var/run/gdm.pid > PostSessionScriptDir=/etc/gdm/PostSession/ > PreSessionScriptDir=/etc/gdm/PreSession/ > # Distributions: If you have some script that runs an X server in say > # VGA mode, allowing a login, could you please send it to me? > FailsafeXServer= > XKeepsCrashing=/etc/gdm/XKeepsCrashing > RebootCommand=/sbin/shutdown -r now "Rebooted from gdm menu." > RootPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/games > ServAuthDir=/var/lib/gdm > SessionDir=/etc/gdm/Sessions/ > SuspendCommand=/usr/bin/apm --suspend > User=gdm > UserAuthDir= > UserAuthFBDir=/tmp > UserAuthFile=.Xauthority > TimedLoginEnable=false > TimedLogin= > TimedLoginDelay=30 > StandardXServer=/usr/bin/X11/X > FlexibleXServers=5 > Xnest=/usr/bin/X11/Xnest -name Xnest -xkb 44a109,116 > AllowRoot=false > # If you want to be paranoid, turn this one off > AllowRemoteRoot=false > AllowRemoteAutoLogin=false > RelaxPermissions=0 > RetryDelay=3 > UserMaxFile=65536 > SessionMaxFile=524388 46a119,133 > # Distributions: Ship with this off. It is never a safe thing to leave > # out on the net. Alternatively you can set up /etc/hosts.allow and > # /etc/hosts.deny to only allow say local access. > Enable=true > HonorIndirect=true > MaxPending=4 > MaxPendingIndirect=4 > MaxSessions=16 > MaxWait=15 > MaxWaitIndirect=15 > DisplaysPerHost=1 > Port=177 > # Willing script, none is shipped and by default we'll send > # hostname system id > Willing=/etc/gdm/Xwilling 48a136,138 > GtkRC=/usr/share/themes/Default/gtk/gtkrc > MaxIconWidth=128 > MaxIconHeight=128 50a141,178 > TitleBar=true > ConfigAvailable=true > Browser=false > DefaultFace=/usr/share/pixmaps/nobody.png > DefaultLocale=C > # These are things excluded from the face browser, not from logging in > Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,alias,backup,games,gnats,irc,list,majordom,man,msql,postgres,proxy,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,sys,www-data,fetchmail,xpilots > Font=-*-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*-* > GlobalFaceDir=/usr/share/faces/ > Icon=/usr/share/pixmaps/gdm.xpm > LocaleFile=/etc/locale.alias > Logo=/usr/share/pixmaps/gdmDebianLogo.xpm > Quiver=true > SystemMenu=false > Welcome=Welcome to %n > Welcome[es]=Bienvenido a %n > Welcome[de]=Willkommen auf %n > Welcome[fr]=Bienvenue sur %n > Welcome[cs]=Vítejte na %n > Welcome[no]=Velkommen til %n > Welcome[nn]=Velkomen til %n > Welcome[ru]=äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ ÎÁ %n > LockPosition=false > SetPosition=false > PositionX=0 > PositionY=0 > XineramaScreen=0 > #Type can be 0=None, 1=Image, 2=Color > BackgroundType=2 > BackgroundImage= > BackgroundScaleToFit=true > BackgroundColor=#007777 > BackgroundRemoteOnlyColor=true > BackgroundProgram= > ShowGnomeChooserSession=true > ShowGnomeFailsafeSession=true > ShowXtermFailsafeSession=true > Use24Clock=false 52a181,185 > DefaultHostImg=/usr/share/pixmaps/nohost.png > HostImageDir=/usr/share/hosts/ > ScanTime=3 > Hosts= > Broadcast=true 54a188,190 > # This will enable debugging into the syslog, usually not neccessary > # and it creates a LOT of spew of random stuff to the syslog > Enable=false 56,59d191 < # Note that to disable servers defined in the defaults.conf file (such as < # 0=Standard, you must put a line in this file that says 0=inactive, as < # described in the Configuration section of the GDM documentation. < # 60a193,194 > 0=Standard vt7 > #1=Standard vt8 -dpi 100 62,66c196,199 < # Also note, that if you redefine a [server-foo] section, then GDM will < # use the definition in this file, not the defaults.conf file. It is < # currently not possible to disable a [server-foo] section defined < # in the defaults.conf file. < # --- > [server-Standard] > name=Standard server > command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp > flexible=true |
#/etc/init.d/gdm start
Starting GNOME Display Manager: gdm. |
#apt-get install inetd
Reading package lists... Done Building dependency tree... Done E: Couldn't find package inetd |
#apt-cache search inetd superserver
openbsd-inetd - The OpenBSD Internet Superserver |
#apt-cache search inetd
apt-cacher - caching proxy system for Debian package and source files atftpd - advanced TFTP server bidentd - Bisqwit's identd for NAT proxying biff - a mail notification tool cernlib-extras - miscellaneous Cernlib programs unlikely to be used by many crywrap - Simple TCP service encryption using TLS/SSL ffingerd - a secure finger daemon gidentd - RFC1413 compliant IPv4/IPv6 ident daemon gwhois - generic Whois Client / Server inetutils-inetd - Internet super server ... superd - Single-port inetd with pre-forking, suited for high-speed servers tcputils - Utilities for TCP programming in shell-scripts teapop - Powerful and flexible RFC-compliant POP3 server teapop-ldap - Powerful and flexible RFC-compliant POP3 server teapop-mysql - Powerful and flexible RFC-compliant POP3 server teapop-pgsql - Powerful and flexible RFC-compliant POP3 server tftpd - Trivial file transfer protocol server update-inetd - inetd.conf updater wipl-client-inetd - A client for wipl-daemon, run from inetd xinetd - replacement for inetd with many enhancements |
#apt-cache search inetd superserver
openbsd-inetd - The OpenBSD Internet Superserver |
#apt-get install openbsd-inetd
Reading package lists... Done Building dependency tree... Done openbsd-inetd is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#dpkg -L openbsd-inetd | grep /etc/init.d
/etc/init.d /etc/init.d/openbsd-inetd |
#/etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd. |
#grep vnc /etc/services
vnc800 5951/tcp # small |
#ps aux | grep gdm
root 4051 0.0 0.9 12648 2380 ? Ss 17:59 0:00 /usr/sbin/gdm root 4159 0.0 0.7 12648 2084 ? S 18:02 0:00 /usr/sbin/gdm root 4161 0.0 0.2 3724 688 ttyp0 S+ 18:03 0:00 grep gdm |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#ls /var/log/
auth.log debug fontconfig.log lpr.log messages user.log boot dmesg fsck mail.err news uucp.log bootstrap.log dmesg.0 gdm mail.info pycentral.log wtmp btmp dpkg.log kern.log mail.log scrollkeeper.log daemon.log faillog lastlog mail.warn syslog |
#less /var/log/gdm/\:0.log
|
#apt-get install less
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: less 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 111kB of archives. After unpacking 274kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! less Install these packages without verification [y/N]? Y Get:1 http://192.168.15.251 etch/main less 394-4 [111kB] Fetched 111kB in 0s (1308kB/s) Selecting previously deselected package less. (Reading database ... 22280 files and directories currently installed.) Unpacking less (from .../archives/less_394-4_i386.deb) ... Setting up less (394-4) ... |
#less /var/log/gdm/\:0.log
|
#ls -l /usr/bin/X
-rwsr-sr-x 1 root root 18444 2007-01-09 01:54 /usr/bin/X |
#ls /etc/X11/
app-defaults fonts xinit Xsession Xsession.options default-display-manager rgb.txt Xresources Xsession.d Xwrapper.config |
#vi /etc/gdm/gdm.conf
|
#ls /usr/bin/X11/X
/usr/bin/X11/X |
#ls -l /usr/bin/X11/X
-rwsr-sr-x 1 root root 18444 2007-01-09 01:54 /usr/bin/X11/X |
#grep X /etc/gdm/gdm.conf
DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games # Distributions: If you have some script that runs an X server in say FailsafeXServer= XKeepsCrashing=/etc/gdm/XKeepsCrashing RootPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/games UserAuthFile=.Xauthority StandardXServer=/usr/bin/X11/X FlexibleXServers=5 Xnest=/usr/bin/X11/Xnest -name Xnest -xkb Willing=/etc/gdm/Xwilling PositionX=0 XineramaScreen=0 ShowXtermFailsafeSession=true command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp |
#vi /etc/gdm/gdm.conf
|
#cp /etc/gdm/gdm.conf /etc/gdm/gdm.conf.SAVE
|
#vi /etc/gdm/gdm.conf
1,67c1,40 < # # GDM Configuration Customization file. < # # < # # This file is the appropriate place for specifying your customizations to the < # # GDM configuration. If you run gdmsetup, it will automatically edit this < # # file for you and will cause the daemon and any running GDM GUI programs to < # # automatically update with the new configuration. Not all configuration < # # options are supported by gdmsetup, so to modify some values it may be < # # necessary to modify this file directly by hand. < # # < # # Older versions of GDM used the "gdm.conf" file for configuration. If your < # # system has an old gdm.conf file on the system, it will be used instead of < # # this file - so changes made to this file will not take effect. Consider < # # migrating your configuration to this file and removing the gdm.conf file. < # # < # # To hand-edit this file, simply add or modify the key=value combination in < # # the appropriate section in the template below. Refer to the comments in the < # # /usr/share/gdm/defaults.conf file for information about each option. Also < # # refer to the reference documentation. < # # < # # If you hand edit a GDM configuration file, you should run the following < # # command to get the GDM daemon to notice the change. Any running GDM GUI < # # programs will also be notified to update with the new configuration. < # # < # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" < # # < # # e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". < # # < # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and < # # re-read the new configuration settings. You can also restart GDM by sending < # # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes < # # any user session started by GDM to exit immediately while USR1 behaves like < # # gdm-safe-restart and will wait until all users log out before restarting GDM. < # # < # # For full reference documentation see the gnome help browser under < # # GNOME|System category. You can also find the docs in HTML form on < # # http://www.gnome.org/projects/gdm/ < # # < # # NOTE: Lines that begin with "#" are considered comments. < # # < # # Have fun! < # < # [daemon] < # < # [security] < # < # [xdmcp] < # < # [gui] < # < # [greeter] < # < # [chooser] < # < # [debug] < # < # # Note that to disable servers defined in the defaults.conf file (such as < # # 0=Standard, you must put a line in this file that says 0=inactive, as < # # described in the Configuration section of the GDM documentation. < # # < # [servers] < # < # # Also note, that if you redefine a [server-foo] section, then GDM will < # # use the definition in this file, not the defaults.conf file. It is < # # currently not possible to disable a [server-foo] section defined < # # in the defaults.conf file. < # # < --- > # GDM Configuration Customization file. > # > # This file is the appropriate place for specifying your customizations to the > # GDM configuration. If you run gdmsetup, it will automatically edit this > # file for you and will cause the daemon and any running GDM GUI programs to > # automatically update with the new configuration. Not all configuration > # options are supported by gdmsetup, so to modify some values it may be > # necessary to modify this file directly by hand. > # > # Older versions of GDM used the "gdm.conf" file for configuration. If your > # system has an old gdm.conf file on the system, it will be used instead of > # this file - so changes made to this file will not take effect. Consider > # migrating your configuration to this file and removing the gdm.conf file. > # > # To hand-edit this file, simply add or modify the key=value combination in > # the appropriate section in the template below. Refer to the comments in the > # /usr/share/gdm/defaults.conf file for information about each option. Also > # refer to the reference documentation. > # > # If you hand edit a GDM configuration file, you should run the following > # command to get the GDM daemon to notice the change. Any running GDM GUI > # programs will also be notified to update with the new configuration. > # > # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" > # > # e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". > # > # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and > # re-read the new configuration settings. You can also restart GDM by sending > # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes > # any user session started by GDM to exit immediately while USR1 behaves like > # gdm-safe-restart and will wait until all users log out before restarting GDM. > # > # For full reference documentation see the gnome help browser under > # GNOME|System category. You can also find the docs in HTML form on > # http://www.gnome.org/projects/gdm/ > # > # NOTE: Lines that begin with "#" are considered comments. > # > # Have fun! 70,106d42 < AutomaticLoginEnable=false < AutomaticLogin= < # If you are having trouble with using a single server for a long time and < # want gdm to kill/restart the server, turn this on < AlwaysRestartServer=false < Configurator=/usr/bin/gdmconfig --disable-sound --disable-crash-dialog < GnomeDefaultSession=/etc/gnome/default.session < Chooser=/usr/bin/gdmchooser --disable-sound --disable-crash-dialog < DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games < DisplayInitDir=/etc/gdm/Init < Greeter=/usr/bin/gdmlogin --disable-sound --disable-crash-dialog < Group=gdm < HaltCommand=/sbin/shutdown -h now "Halted from gdm menu." < KillInitClients=true < LogDir=/var/log/gdm < PidFile=/var/run/gdm.pid < PostSessionScriptDir=/etc/gdm/PostSession/ < PreSessionScriptDir=/etc/gdm/PreSession/ < # Distributions: If you have some script that runs an X server in say < # VGA mode, allowing a login, could you please send it to me? < FailsafeXServer= < XKeepsCrashing=/etc/gdm/XKeepsCrashing < RebootCommand=/sbin/shutdown -r now "Rebooted from gdm menu." < RootPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/games < ServAuthDir=/var/lib/gdm < SessionDir=/etc/gdm/Sessions/ < SuspendCommand=/usr/bin/apm --suspend < User=gdm < UserAuthDir= < UserAuthFBDir=/tmp < UserAuthFile=.Xauthority < TimedLoginEnable=false < TimedLogin= < TimedLoginDelay=30 < StandardXServer=/usr/bin/X11/X < FlexibleXServers=5 < Xnest=/usr/bin/X11/Xnest -name Xnest -xkb 109,116d44 < AllowRoot=false < # If you want to be paranoid, turn this one off < AllowRemoteRoot=false < AllowRemoteAutoLogin=false < RelaxPermissions=0 < RetryDelay=3 < UserMaxFile=65536 < SessionMaxFile=524388 119,133d46 < # Distributions: Ship with this off. It is never a safe thing to leave < # out on the net. Alternatively you can set up /etc/hosts.allow and < # /etc/hosts.deny to only allow say local access. < Enable=true < HonorIndirect=true < MaxPending=4 < MaxPendingIndirect=4 < MaxSessions=16 < MaxWait=15 < MaxWaitIndirect=15 < DisplaysPerHost=1 < Port=177 < # Willing script, none is shipped and by default we'll send < # hostname system id < Willing=/etc/gdm/Xwilling 136,138d48 < GtkRC=/usr/share/themes/Default/gtk/gtkrc < MaxIconWidth=128 < MaxIconHeight=128 141,178d50 < TitleBar=true < ConfigAvailable=true < Browser=false < DefaultFace=/usr/share/pixmaps/nobody.png < DefaultLocale=C < # These are things excluded from the face browser, not from logging in < Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,alias,backup,games,gnats,irc,list,majordom,man,msql,postgres,proxy,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,sys,www-data,fetchmail,xpilots < Font=-*-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*-* < GlobalFaceDir=/usr/share/faces/ < Icon=/usr/share/pixmaps/gdm.xpm < LocaleFile=/etc/locale.alias < Logo=/usr/share/pixmaps/gdmDebianLogo.xpm < Quiver=true < SystemMenu=false < Welcome=Welcome to %n < Welcome[es]=Bienvenido a %n < Welcome[de]=Willkommen auf %n < Welcome[fr]=Bienvenue sur %n < Welcome[cs]=Vítejte na %n < Welcome[no]=Velkommen til %n < Welcome[nn]=Velkomen til %n < Welcome[ru]=äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ ÎÁ %n < LockPosition=false < SetPosition=false < PositionX=0 < PositionY=0 < XineramaScreen=0 < #Type can be 0=None, 1=Image, 2=Color < BackgroundType=2 < BackgroundImage= < BackgroundScaleToFit=true < BackgroundColor=#007777 < BackgroundRemoteOnlyColor=true < BackgroundProgram= < ShowGnomeChooserSession=true < ShowGnomeFailsafeSession=true < ShowXtermFailsafeSession=true < Use24Clock=false 181,185d52 < DefaultHostImg=/usr/share/pixmaps/nohost.png < HostImageDir=/usr/share/hosts/ < ScanTime=3 < Hosts= < Broadcast=true 188,190d54 < # This will enable debugging into the syslog, usually not neccessary < # and it creates a LOT of spew of random stuff to the syslog < Enable=false 191a56,59 > # Note that to disable servers defined in the defaults.conf file (such as > # 0=Standard, you must put a line in this file that says 0=inactive, as > # described in the Configuration section of the GDM documentation. > # 193,194d60 < 0=Standard vt7 < #1=Standard vt8 -dpi 100 196,199c62,67 < [server-Standard] < name=Standard server < command=/usr/bin/X11/X -deferglyphs 16 -nolisten tcp < flexible=true --- > # Also note, that if you redefine a [server-foo] section, then GDM will > # use the definition in this file, not the defaults.conf file. It is > # currently not possible to disable a [server-foo] section defined > # in the defaults.conf file. > # > |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.1 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.2 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.3 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.4 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.1 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.2 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.3 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.4 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.1 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.2 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.3 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.4 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. |
#rm /var/log/gdm/*
|
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
X: cannot stat /etc/X11/X (No such file or directory), aborting. |
#grep -r /etc/X11/X /etc/gdm
/etc/gdm/Xsession:OPTIONFILE=/etc/X11/Xsession.options /etc/gdm/Xsession:SYSRESOURCES=/etc/X11/Xresources /etc/gdm/Xsession:SYSSESSIONDIR=/etc/X11/Xsession.d /etc/gdm/Init/Default:sysmodmap=/etc/X11/Xmodmap |
#ls /etc/X11/
app-defaults fonts xinit Xsession Xsession.options default-display-manager rgb.txt Xresources Xsession.d Xwrapper.config |
#cd /etc/X11/
|
#ln -s /usr/bin/X11/X X
|
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== X: /etc/X11/X points back to X wrapper executable, aborting. ==> /var/log/gdm/:0.log.1 <== X: /etc/X11/X points back to X wrapper executable, aborting. ==> /var/log/gdm/:0.log.2 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.3 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. ==> /var/log/gdm/:0.log.4 <== X: cannot stat /etc/X11/X (No such file or directory), aborting. |
#rm X
|
#ls
app-defaults fonts xinit Xsession Xsession.options default-display-manager rgb.txt Xresources Xsession.d Xwrapper.config |
#apt-cache search xorg-server
|
#apt-cache search xorg server
libxpm-dev - X11 pixmap library (development headers) libxpm4 - X11 pixmap library libxpm4-dbg - X11 pixmap library (debug package) libxprintapputil-dev - Xprint job utility client library (development files) libxprintapputil1 - Xprint job utility client library libxprintutil-dev - Xprint printer utility client library (development files) libxprintutil1 - Xprint printer utility client library libxrandr-dev - X11 RandR extension library (development headers) libxrandr2 - X11 RandR extension library libxrandr2-dbg - X11 RandR extension library (debug package) ... xserver-xorg-video-trident - X.Org X server -- Trident display driver xserver-xorg-video-tseng - X.Org X server -- Tseng display driver xserver-xorg-video-v4l - X.Org X server -- Video 4 Linux display driver xserver-xorg-video-vesa - X.Org X server -- VESA display driver xserver-xorg-video-vga - X.Org X server -- VGA display driver xserver-xorg-video-via - X.Org X server -- VIA display driver xserver-xorg-video-vmware - X.Org X server -- VMware display driver xserver-xorg-video-voodoo - X.Org X server -- Voodoo display driver xtrans-dev - X transport library (development files) xvfb - Virtual Framebuffer 'fake' X server |
#apt-cache search xserver-xorg
xdebconfigurator - A script used with debconf to autoconfigure xserver-xorg xfree86-driver-synaptics - dummy package to upgrade to X.Org new modular packages xserver-xfree86 - transitional package for moving from XFree86 to X.Org xserver-xorg - the X.Org X server xserver-xorg-core - X.Org X server -- core server xserver-xorg-dev - X.Org X server -- development files xserver-xorg-input-acecad - X.Org X server -- AceCad input driver xserver-xorg-input-aiptek - X.Org X server -- Aiptek input driver xserver-xorg-input-all - the X.Org X server -- input driver metapackage xserver-xorg-input-calcomp - X.Org X server -- Calcomp input driver ... xserver-xorg-video-tdfx - X.Org X server -- tdfx display driver xserver-xorg-video-tga - X.Org X server -- TGA display driver xserver-xorg-video-trident - X.Org X server -- Trident display driver xserver-xorg-video-tseng - X.Org X server -- Tseng display driver xserver-xorg-video-v4l - X.Org X server -- Video 4 Linux display driver xserver-xorg-video-vesa - X.Org X server -- VESA display driver xserver-xorg-video-vga - X.Org X server -- VGA display driver xserver-xorg-video-via - X.Org X server -- VIA display driver xserver-xorg-video-vmware - X.Org X server -- VMware display driver xserver-xorg-video-voodoo - X.Org X server -- Voodoo display driver |
#apt-cache search xserver-xorg | less
|
#apt-get install xserver-xorg
│ *[ ]280x102440 ↑ │ * │ *[ ] 1280x960 ▒ │ │ *[ ] 1280x854 ▒ │ * │ [*] 1200x800 ▮ │ │ *[ ] 1152x864 ▒ │ * 152 │ *[*1024x76800 ▒ │ │ [ ] 1152x768 ▒ │ │ [ ] 1200x800 ▒ │ │ <Ok>k> │ │ │ └──────────────────────────────────────────────────────────────────────────┘ /dev/mem: mmap: Bad address |
#rm /var/log/gdm/*
|
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:15 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:23 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.1 <== ... xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.2 <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:15 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#ls -l /dev/tty*
crw-rw-rw- 1 root root 5, 0 2007-01-21 17:44 /dev/tty crw-r--r-- 1 root root 4, 0 2007-01-21 17:44 /dev/tty0 crw------- 1 root tty 4, 1 2007-01-21 18:12 /dev/tty1 crw-rw---- 1 root root 4, 10 2007-01-21 17:44 /dev/tty10 crw-rw---- 1 root root 4, 11 2007-01-21 17:44 /dev/tty11 crw-rw---- 1 root root 4, 12 2007-01-21 17:44 /dev/tty12 crw-rw---- 1 root root 4, 13 2007-01-21 17:44 /dev/tty13 crw-rw---- 1 root root 4, 14 2007-01-21 17:44 /dev/tty14 crw-rw---- 1 root root 4, 15 2007-01-21 17:44 /dev/tty15 crw-rw---- 1 root root 4, 16 2007-01-21 17:44 /dev/tty16 ... crw-rw-rw- 1 root tty 3, 6 2007-01-21 17:44 /dev/ttyp6 crw-rw-rw- 1 root tty 3, 7 2007-01-21 17:44 /dev/ttyp7 crw-rw-rw- 1 root tty 3, 8 2007-01-21 17:44 /dev/ttyp8 crw-rw-rw- 1 root tty 3, 9 2007-01-21 17:44 /dev/ttyp9 crw-rw-rw- 1 root tty 3, 10 2007-01-21 17:44 /dev/ttypa crw-rw-rw- 1 root tty 3, 11 2007-01-21 17:44 /dev/ttypb crw-rw-rw- 1 root tty 3, 12 2007-01-21 17:44 /dev/ttypc crw-rw-rw- 1 root tty 3, 13 2007-01-21 17:44 /dev/ttypd crw-rw-rw- 1 root tty 3, 14 2007-01-21 17:44 /dev/ttype crw-rw-rw- 1 root tty 3, 15 2007-01-21 17:44 /dev/ttypf |
#ls -l /dev/tty0
crw-r--r-- 1 root root 4, 0 2007-01-21 17:44 /dev/tty0 |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:23 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.1 <== ... xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.2 <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:15 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:23 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.1 <== ... xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.2 <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:15 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#ls -l /dev/tty0
crw-r--r-- 1 root root 4, 0 2007-01-21 17:44 /dev/tty0 |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:16:32 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.1 <== ... xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.3 <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:11:15 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#less /etc/gdm/gdm.conf
|
#less /etc/gdm/gdm.conf.SAVE
|
#less /etc/inetd.conf
|
#apt-cache search x11vnc
x11vnc - VNC server which uses your current X11 session |
#vncserver
You will require a password to access your desktops. Password: Password too short |
#123
bash: 123: command not found |
#vncserver
You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /root/.Xauthority New 'X' desktop is vnc0.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /root/.vnc/vnc0.unix.nt:1.log |
#ps aux | grep vnc
root 5578 1.0 3.0 19056 8076 ttyp0 S 18:22 0:00 Xrealvnc :1 -desktop X -auth /root/.Xauthority -rfbwait 120000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc -co /etc/X11/rgb root 5712 0.0 0.2 3732 708 ttyp0 R+ 18:23 0:00 grep vnc |
#top
top - 18:23:32 up 39 min, 1 user, load average: 2.16, 0.65, 0.22 Tasks: 110 total, 2 running, 108 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 6.2%sy, 0.0%ni, 0.0%id, 87.5%wa, 0.0%hi, 0.0%si, 6.2%st Mem: 262292k total, 259776k used, 2516k free, 100k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 0k total, 0k used, 0k free, 5940k cached 5710 root 16 0 20612 4856 1788 D 6.2 1.9 0:00.36 gnome_segv2 1 root 16 0 1956 140 48 S 0.0 0.1 0:00.06 init 2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 39 19 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/0 ... 7 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch 8 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenbus 13 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0 15 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 55 root 15 0 0 0 0 S 0.0 0.0 0:00.07 pdflush 56 root 15 0 0 0 0 S 0.0 0.0 0:00.05 pdflush 57 root 10 -5 0 0 0 D 0.0 0.0 0:00.49 kswapd0 58 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 626 root 10 -5 0 0 0 S 0.0 0.0 0:00.66 kjournald 860 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kmirrord |
#ps aux | grep vnc
root 5578 0.7 3.1 19240 8144 ttyp0 S 18:22 0:00 Xrealvnc :1 -desktop X -auth /root/.Xauthority -rfbwait 120000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc -co /etc/X11/rgb root 5766 0.0 0.2 3728 652 ttyp0 R+ 18:23 0:00 grep vnc |
#apt-get install fluxbox
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: menu Suggested packages: fluxconf fbpager fbdesk xfonts-artwiz The following NEW packages will be installed: fluxbox menu 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1185kB of archives. ... Fetched 1185kB in 38s (31.1kB/s) Selecting previously deselected package menu. (Reading database ... 22633 files and directories currently installed.) Unpacking menu (from .../archives/menu_2.1.33_i386.deb) ... Selecting previously deselected package fluxbox. Unpacking fluxbox (from .../fluxbox_0.9.14-1.2_i386.deb) ... Adding `diversion of /usr/bin/bsetroot to /usr/bin/bsetroot.blackbox by fluxbox' Adding `diversion of /usr/share/man/man1/bsetroot.1.gz to /usr/share/man/man1/bsetroot.blackbox.1.gz by fluxbox' Setting up menu (2.1.33) ... Setting up fluxbox (0.9.14-1.2) ... |
#vi /etc/vnc.conf
83a84,86 > $geometry= "800x600"; > $depath= "24"; > |
#su - user
user@vnc0:~$ vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/user/.Xauthority New 'X' desktop is vnc0.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/user/.vnc/vnc0.unix.nt:1.log user@vnc0:~$ pkill -u user Session terminated, killing shell...user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ ...killed. |
#bash: apt-g: command not found
|
#apt-get install xterm
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: xbitmaps Suggested packages: xfonts-cyrillic Recommended packages: xutils The following NEW packages will be installed: xbitmaps xterm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 431kB of archives. After unpacking 1483kB of additional disk space will be used. exitou want to continue [Y/n]? |
#apt-get install xterm
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: xbitmaps Suggested packages: xfonts-cyrillic Recommended packages: xutils The following NEW packages will be installed: xbitmaps xterm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 431kB of archives. After unpacking 1483kB of additional disk space will be used. Do you want to continue [Y/n]? Y |
#apt-get install -y xterm
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: xbitmaps Suggested packages: xfonts-cyrillic Recommended packages: xutils The following NEW packages will be installed: xbitmaps xterm 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 431kB of archives. After unpacking 1483kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! xbitmaps xterm E: There are problems and -y was used without --force-yes |
#apt-get install -y --force-yes xterm
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: xbitmaps Suggested packages: xfonts-cyrillic Recommended packages: xutils The following NEW packages will be installed: xbitmaps xterm ... Get:1 http://192.168.15.251 etch/main xbitmaps 1.0.1-2 [26.6kB] Get:2 http://192.168.15.251 etch/main xterm 222-1etch1 [405kB] Fetched 431kB in 0s (2344kB/s) Selecting previously deselected package xbitmaps. (Reading database ... 22930 files and directories currently installed.) Unpacking xbitmaps (from .../xbitmaps_1.0.1-2_all.deb) ... Selecting previously deselected package xterm. Unpacking xterm (from .../xterm_222-1etch1_i386.deb) ... Setting up xbitmaps (1.0.1-2) ... Setting up xterm (222-1etch1) ... |
#su - user
user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ vncserver New 'X' desktop is vnc0.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/user/.vnc/vnc0.unix.nt:1.log user@vnc0:~$ pkill -9 -u user Killed |
#passwd
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
#su - user
user@vnc0:~$ vncserver You will require a password to access your desktops. Password: Verify: New 'X' desktop is vnc0.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/user/.vnc/vnc0.unix.nt:1.log user@vnc0:~$ pkill vnc user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ exit logout |
#vi /etc/vnc.conf
84,85c84,85 < $geometry= "800x600"; < $depath= "24"; --- > $geometry= "1024x768"; > $depth= "24"; |
#su - user
user@vnc0:~$ vncserver New 'X' desktop is vnc0.unix.nt:1 Starting applications specified in /etc/X11/Xsession Log file is /home/user/.vnc/vnc0.unix.nt:1.log user@vnc0:~$ pkill vnc user@vnc0:~$ user@vnc0:~$ user@vnc0:~$ exit logout |
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
==> /var/log/gdm/:0.log <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:37:50 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.1 <== ... xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ==> /var/log/gdm/:0.log.4 <== Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:34:01 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#rm /var/log/gdm/*
|
#/etc/init.d/gdm restart
Stopping GNOME Display Manager: gdm. Starting GNOME Display Manager: gdm. |
#tail -f /var/log/gdm/*
Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 21 18:38:00 2007 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) |
#ls -l /dev/tty0
crw-r--r-- 1 root root 4, 0 2007-01-21 18:33 /dev/tty0 |
#ls -l /dev/console
crw------- 1 root root 5, 1 2007-01-21 18:34 /dev/console |
#cd /dev
|
#mv tty0 tty0SAVE
|
#ln -s console tty0
|
#rm /var/log/gdm/*
|
l3cd=/users/devi/vnc-server-installation/vnc0.unix.nt/root
Время первой команды журнала | 19:46:02 2007- 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 20:39:03 2007- 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.88 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008