/l3/users/devi/xen-for-zen/xen1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1087 errors:0 dropped:0 overruns:0 frame:0 TX packets:1374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:189981 (185.5 KiB) TX bytes:492516 (480.9 KiB) Base address:0xd800 Memory:cffe0000-d0000000 eth1 Link encap:Ethernet HWaddr 00:04:75:81:CA:61 ... TX packets:997 errors:0 dropped:263 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:936 (936.0 b) TX bytes:75875 (74.0 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:1032723 errors:0 dropped:0 overruns:0 frame:0 TX packets:4285 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:60678740 (57.8 MiB) TX bytes:137120 (133.9 KiB) |
#brctl show
bridge name bridge id STP enabled interfaces xenbr0 8000.feffffffffff no vif0.1 peth1 vif7.0 |
#xm list
Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1756 1 r----- 19145.7 ltsp0 7 256 1 -b---- 5.3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1093 errors:0 dropped:0 overruns:0 frame:0 TX packets:1382 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:190365 (185.9 KiB) TX bytes:496028 (484.4 KiB) Base address:0xd800 Memory:cffe0000-d0000000 eth1 Link encap:Ethernet HWaddr 00:04:75:81:CA:61 ... TX packets:1463 errors:0 dropped:263 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1436 (1.4 KiB) TX bytes:108223 (105.6 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:1033160 errors:0 dropped:0 overruns:0 frame:0 TX packets:4287 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:60702920 (57.8 MiB) TX bytes:137184 (133.9 KiB) |
#xm list
Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1756 1 r----- 19154.2 ltsp0 7 256 1 -b---- 5.4 |
#xm destroy ltsp0
|
#xm list
Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1756 1 r----- 19155.7 |
#mount /dev/NAS1/ltsp0 /mnt
|
#vi /mnt/etc/network/interfaces
4,5c4 < auto lo < #eth0 --- > auto lo eth0 11c10 < address 10.0.35.7 --- > address 10.0.35.8 |
#xm create -c ltsp0
![]() Using config file "/etc/xen/ltsp0". Error: Device 769 (vbd) could not be connected. Device /dev/NAS1/ltsp0 is mounted in the privileged domain, and so cannot be mounted by a guest. |
#umount /mnt
|
#xm create -c ltsp0
Need to get 6323kB of archives. After unpacking 27.3MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://10.0.35.6 etch/main perl-modules 5.8.8-7 [2310kB] Get:2 http://10.0.35.6 etch/main perl 5.8.8-7 [3575kB] Get:3 http://10.0.35.6 etch/main libcompress-zlib-perl 1.42-2 [56.2kB] Get:4 http://10.0.35.6 etch/main libio-zlib-perl 1.04-1 [13.3kB] Get:5 http://10.0.35.6 etch/main libarchive-tar-perl 1.30-2 [52.4kB] Get:6 http://10.0.35.6 etch/main libextutils-cbuilder-perl 0.18-1 [24.7kB] Get:7 http://10.0.35.6 etch/main libextutils-parsexs-perl 2.15-2 [29.1kB] Get:8 http://10.0.35.6 etch/main libyaml-perl 0.62-1 [82.4kB] |
#dpkg -S /usr/include/iconv.h
libc6-dev: /usr/include/iconv.h |
#xm console ltsp0
# @(#) $Id: Makefile.PL,v 1.6 2004/07/17 22:16:55 mxp Exp $ use ExtUtils::MakeMaker; use Config; my %config; my $ok; ############################################################################### # Read settings from the commandline # We must delete the options we're handling ourselves to keep # MakeMaker from processing them, but the rest should be preserved so # that we get the default MakeMaker behavior. ... $i++; $Config{ldflags}, $libs; # print "Compiler: $compile\n";############################################# # Check for iconv. open LINKTEST, '>', "$file.c" or die "Can't create test file"; if ($config{LIBS} or $config{INC}) print LINKTEST $prog; print "Your settings:\n", close LINKTEST; $config{LIBS}, "\n", " INC: ", $config{INC}, "\n"; } |
#vi ~/.l3rc
|
#pkill -1 l3-agent
|
#vi /etc/host
![]() |
#vi /etc/hostname
|
#vi /etc/hosts
![]() |
#vi /etc/resolv.conf
|
#whoami
root |
#hostname ltsp0.unix.nt
|
#exit
exit Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: root Last login: Sat Jan 20 19:10:20 2007 on tty1 Linux xen1.unix.nt 2.6.18-3-xen-686 #1 SMP Mon Dec 4 20:48:20 UTC 2006 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. |
#passwd root
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:10.0.35.8 Bcast:10.0.35.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8442 errors:0 dropped:0 overruns:0 frame:0 TX packets:2202 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:23684533 (22.5 MiB) TX bytes:162833 (159.0 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 b) TX bytes:268 (268.0 b) |
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=161 ms --- ya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 161.507/161.507/161.507/0.000 ms |
#apt-get install ltsp0
![]() Reading package lists... Done Building dependency tree... Done E: Couldn't find package ltsp0 |
#apt-get install ltsp
![]() Reading package lists... Done Building dependency tree... Done E: Couldn't find package ltsp |
#apt-cache search ltsp-server
ltsp-server - Basic LTSP server environment ltsp-server-standalone - Complete LTSP server environment |
#apt-get install tftpd-hpa
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: tftpd-hpa 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 32.5kB of archives. After unpacking 152kB of additional disk space will be used. Get:1 http://10.0.35.6 etch/main tftpd-hpa 0.43-1 [32.5kB] Fetched 32.5kB in 0s (62.1kB/s) Preconfiguring packages ... Selecting previously deselected package tftpd-hpa. (Reading database ... 11746 files and directories currently installed.) Unpacking tftpd-hpa (from .../tftpd-hpa_0.43-1_i386.deb) ... Setting up tftpd-hpa (0.43-1) ... tftpd-hpa disabled in /etc/default/tftpd-hpa |
#vi /etc/inetd.conf
|
#apt-get install vim-full
Setting up libice6 (1.0.1-2) ... Setting up libsm6 (1.0.1-3) ... Setting up libxt6 (1.0.2-2) ... Setting up libgpmg1 (1.19.6-24) ... Setting up mime-support (3.39-1) ... Setting up python2.4-minimal (2.4.4-1) ... Linking and byte-compiling packages for runtime python2.4... Setting up python2.4 (2.4.4-1) ... Setting up python-minimal (2.4.4-2) ... Setting up python (2.4.4-2) ... ... Setting up tcl8.4 (8.4.12-1.1) ... Setting up vim-gui-common (7.0-122+1) ... Setting up vim-runtime (7.0-122+1) ... Setting up libbonobo2-common (2.14.0-3) ... Setting up libbonobo2-0 (2.14.0-3) ... Setting up libgnomevfs2-0 (2.14.2-4) ... Setting up libgnome2-0 (2.16.0-2) ... Setting up libbonoboui2-0 (2.14.0-5) ... Setting up libgnomeui-0 (2.14.1-2) ... Setting up vim-full (7.0-122+1) ... |
#vi /etc/inetd.conf
|
#grep tftp /etc/services
tftp 69/udp |
#ls /var/lib/tftpboot/
|
#ls -ld /var/lib/tftpboot/
drwxr-xr-x 2 root root 4096 Oct 28 11:44 /var/lib/tftpboot/ |
#apt-cache search dhcp server
avahi-autoipd - Avahi IPv4LL network address configuration daemon bootp - server for the bootp protocol with DHCP support dhcp - DHCP server for automatic IP address assignment dhcp-helper - A DHCP relay agent dhcp-relay - DHCP Relay dhcp3-dev - API for accessing and modifying the DHCP server and client state dhcp3-relay - DHCP Relay dhcp3-server - DHCP server for automatic IP address assignment dhcpdump - Parse DHCP packets from tcpdump dhcping - DHCP Daemon Ping Program ... netdiscover - active/passive address scanner using arp requests network-manager - network management framework daemon network-manager-gnome - network management framework (GNOME frontend) pump - BOOTP and DHCP client for automatic IP configuration pxe - free PX daemon resolvconf - nameserver information handler totd - Small DNS proxy that supports IPv6/IPv4 record translation udhcpd - very small DHCP server wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration zcip - gets an IP addr by partially implementing IETF zeroconf protocols |
#apt-cache search dhcp server | less
|
#apt-get install dhcp\
![]() > |
#apt-get install dhcp
Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: dhcp 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 110kB of archives. After unpacking 307kB of additional disk space will be used. Get:1 http://10.0.35.6 etch/main dhcp 2.0pl5-19.5 [110kB] Fetched 110kB in 0s (110kB/s) Selecting previously deselected package dhcp. ... Please note that if you are installing the DHCP server for the first time you need to configure it first. Please stop (/etc/init.d/dhcp stop) the DHCP server daemon, edit /etc/dhcpd.conf to suit your needs and particular configuration, and restart the DHCP server daemon (/etc/init.d/dhcp start). You also need to edit /etc/default/dhcp to specify the interfaces dhcpd should listen to. By default it listens to eth0. NOTE: dhcpd's messages are being sent to syslog. Look there for diagnostics messages. Starting DHCP server: dhcpd failed to start - check syslog for diagnostics. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:10.0.35.8 Bcast:10.0.35.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14835 errors:0 dropped:0 overruns:0 frame:0 TX packets:4482 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:63484936 (60.5 MiB) TX bytes:343878 (335.8 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 b) TX bytes:268 (268.0 b) |
#vi /etc/default/dhcp
|
#vim /etc/dhcp
![]() |
#vim /etc/dhcpd.conf
|
#mv /etc/dhcpd.conf{}
![]() |
#exit
Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 |
#xm console ltsp0
Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 |
#mv /etc/dhcp
![]() dhcp3/ dhcpd.conf |
#mv /etc/dhcpd.conf{,.orig}
|
#xm console ltsp0
Debian GNU/Linux 4.0 ltsp0.unix.nt tty1 ltsp0.unix.nt login: root Password: Last login: Sat Jan 20 19:12:50 2007 on tty1 Linux xen1.unix.nt 2.6.18-3-xen-686 #1 SMP Mon Dec 4 20:48:20 UTC 2006 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. |
#vim /etc/dhcpd.conf
![]() |
#/etc/init.d/dhcp restart
Stopping DHCP server: dhcp. Starting DHCP server: dhcpd failed to start - check syslog for diagnostics. |
#tail /var/log/daemon.log
Jan 20 18:25:18 xen1 init: Switching to runlevel: 0 Jan 20 19:28:10 xen1 dhcpd: No subnet declaration for eth0 (10.0.35.8). Jan 20 19:28:10 xen1 dhcpd: Please write a subnet declaration in your dhcpd.conf file for the Jan 20 19:28:10 xen1 dhcpd: network segment to which interface eth0 is attached. Jan 20 19:28:10 xen1 dhcpd: exiting. Jan 20 20:11:36 xen1 dhcpd: No subnet declaration for eth0 (10.0.35.8). Jan 20 20:11:36 xen1 dhcpd: Please write a subnet declaration in your dhcpd.conf file for the Jan 20 20:11:36 xen1 dhcpd: network segment to which interface eth0 is attached. Jan 20 20:11:36 xen1 dhcpd: exiting. |
#vim /etc/dhcpd.conf
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:10.0.35.8 Bcast:10.0.35.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24023 errors:0 dropped:0 overruns:0 frame:0 TX packets:4565 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:64129185 (61.1 MiB) TX bytes:360172 (351.7 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 b) TX bytes:268 (268.0 b) |
#vim /etc/network/interfaces
|
#ifconfig eth0 192.168.15.244
|
#ifconfig eth0:0 10.0.35.8
|
#route add default 10.0.35.1
![]() SIOCADDRT: No such device |
#route add default gw 10.0.35.1
|
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=124 ms --- ya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 124.417/124.417/124.417/0.000 ms |
#/etc/init.d/dhcp restart
Stopping DHCP server: dhcp. Starting DHCP server: dhcpd. |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/hda1 9.9G 626M 8.8G 7% / tmpfs 129M 0 129M 0% /lib/init/rw udev 10M 20K 10M 1% /dev |
#apt-get install ltsp-server
![]() Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: debconf-utils debootstrap esound-clients gettext-base iproute libatm1 libedit2 libevent1 libgssapi2 libkrb53 libnfsidmap2 librpcsecgss3 lsb-release nfs-common nfs-kernel-server openssh-client portmap Suggested packages: krb5-doc krb5-user dhcp3-server sdm audiooss ssh-askpass xbase-clients Recommended packages: iproute-doc lsb openssh-server ssh nbd-server ... Get:6 http://10.0.35.6 etch/main portmap 5-25 [34.8kB] Get:7 http://10.0.35.6 etch/main libgssapi2 0.10-4 [20.8kB] Get:8 http://10.0.35.6 etch/main nfs-common 1:1.0.10-4 [126kB] Get:9 http://10.0.35.6 etch/main libedit2 2.9.cvs.20050518-2.2 [55.4kB] Get:10 http://10.0.35.6 etch/main openssh-client 1:4.3p2-8 [616kB] Err http://10.0.35.6 etch/main debconf-utils 1.5.11 Bad header line Err http://10.0.35.6 etch/main esound-clients 0.2.36-3 Bad header line 68% [Waiting for headers] |
#apt-get update
![]() 0% [Waiting for headers] |
#cat /etc/apt/sources.list
deb http://10.0.35.6:9999/debian etch main |
#ping 10.0.35.6
PING 10.0.35.6 (10.0.35.6) 56(84) bytes of data. 64 bytes from 10.0.35.6: icmp_seq=1 ttl=64 time=0.520 ms --- 10.0.35.6 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.520/0.520/0.520/0.000 ms |
#apt-get update
![]() 0% [Waiting for headers] |
#ping 10.0.35.6
PING 10.0.35.6 (10.0.35.6) 56(84) bytes of data. 64 bytes from 10.0.35.6: icmp_seq=1 ttl=64 time=0.692 ms --- 10.0.35.6 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.692/0.692/0.692/0.000 ms |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 |
#apt-get update
![]() |
#vim /etc/resolv.conf
|
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=123 ms --- ya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 123.272/123.272/123.272/0.000 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:192.168.15.244 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25981 errors:0 dropped:0 overruns:0 frame:0 TX packets:4915 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:65720550 (62.6 MiB) TX bytes:401278 (391.8 KiB) eth0:0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:10.0.35.8 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 b) TX bytes:268 (268.0 b) |
#ifconfig eth0 192.168.115.
![]() 192.168.115.: Unknown host ifconfig: `--help' gives usage information. |
#ifconfig eth0 192.168.115.100
|
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=119 ms --- ya.ru ping statistics --- 2 packets transmitted, 1 received, 50% packet loss, time 1012ms rtt min/avg/max/mdev = 119.410/119.410/119.410/0.000 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:192.168.115.100 Bcast:192.168.115.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:26148 errors:0 dropped:0 overruns:0 frame:0 TX packets:4941 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:65732990 (62.6 MiB) TX bytes:406599 (397.0 KiB) eth0:0 Link encap:Ethernet HWaddr 00:16:3E:00:CC:01 inet addr:10.0.35.8 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:268 (268.0 b) TX bytes:268 (268.0 b) |
#apt-get update
|
#df -j
![]() df: invalid option -- j Try `df --help' for more information. |
#df -h
Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 2.5G 15G 15% / udev 10M 56K 10M 1% /dev devshm 944M 0 944M 0% /dev/shm |
#/etc/init.d/apt-proxy restart
Stopping apt-proxy. Starting apt-proxy. |
#apt-get update
Get:1 http://10.0.35.6 etch Release.gpg [378B] Hit http://10.0.35.6 etch Release Get:2 http://10.0.35.6 etch/main Packages/DiffIndex [2038B] Fetched 2416B in 2s (893B/s) Reading package lists... Done |
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=121 ms --- ya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 121.868/121.868/121.868/0.000 ms |
#xm list
![]() Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1756 1 r----- 19404.8 ltsp0 9 256 1 -b---- 75.1 |
#apt-get install ltsp-server
Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: debconf-utils debootstrap esound-clients gettext-base iproute libatm1 libedit2 libevent1 libgssapi2 libkrb53 libnfsidmap2 librpcsecgss3 lsb-release nfs-common nfs-kernel-server openssh-client portmap Suggested packages: krb5-doc krb5-user dhcp3-server sdm audiooss ssh-askpass xbase-clients Recommended packages: iproute-doc lsb openssh-server ssh nbd-server ... Starting NFS common utilities: statd idmapd. Exporting directories for NFS kernel daemon.... Starting NFS kernel daemon: nfsd mountd. Setting up debootstrap (0.3.3.1) ... Setting up lsb-release (3.1-22) ... Setting up ltsp-server (0.99debian9) ... NOTE: you will probably want to add to /etc/exports: /opt/ltsp *(ro,no_root_squash,async) and then run: invoke-rc.d nfs-kernel-server reload |
#xm console ltsp0
![]() Err http://10.0.35.6 etch Release.gpg Could not connect to 10.0.35.6:9999 (10.0.35.6). - connect (111 Connection refused) Failed to fetch http://10.0.35.6:9999/debian/dists/etch/Release.gpg Could not connect to 10.0.35.6:9999 (10.0.35.6). - connect (111 Connection refused) Reading package lists... Done E: Some index files failed to download, they have been ignored, or old ones used instead. |
#cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync) hostname2(ro,sync) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt) # /srv/nfs4/homes gss/krb5i(rw,sync) # |
#ltsp-build-client
![]() NOTE: adding default dist and components to security mirror: http://security.debian.org/ etch/updates main I: Retrieving Release E: Interrupt caught ... exiting error: LTSP client installation ended abnormally |
#ltsp-build-client
![]() Traceback (most recent call last): File "/usr/bin/lsb_release", line 20, in ? from optparse import OptionParser File "/usr/lib/python2.4/optparse.py", line 73, in ? from gettext import gettext as _ File "/usr/lib/python2.4/gettext.py", line 49, in ? import locale, copy, os, re, struct, sys File "/usr/lib/python2.4/copy.py", line 65, in ? import inspect File "/usr/lib/python2.4/inspect.py", line 31, in ? ... File "/usr/lib/python2.4/sre_parse.py", line 628, in _parse p = _parse_sub(source, state) File "/usr/lib/python2.4/sre_parse.py", line 308, in _parse_sub itemsappend(_parse(source, state)) File "/usr/lib/python2.4/sre_parse.py", line 507, in _parse if not item or (_len(item) == 1 and item[0][0] == AT): File "/usr/lib/python2.4/sre_parse.py", line 130, in __getitem__ def __getitem__(self, index): KeyboardInterrupt error: LTSP client installation ended abnormally |
#ltsp-build-client --help
LTSP Build Client usage: ltsp-build-client <options> Regular options: --dist Set the distribution to be used for install --extra-help Display help for all available commandline options --help Display this help message --mirror Set the mirror location |
#ltsp-build-client --mirror http://10.0.35.6:9999/
![]() NOTE: adding default dist and components to security mirror: http://security.debian.org/ etch/updates main I: Retrieving Release E: Failed getting release file http://10.0.35.6:9999/dists/etch/Release error: LTSP client installation ended abnormally |
#ltsp-build-client --mirror http://10.0.35.6:9999/debian
python-numeric-tutorial python2.4-doc mesa-utils kudzu detect xfs xserver gsynaptics ksynaptics qsynaptics xfonts-cyrillic pdksh Recommended packages: libft-perl gcc c-compiler bzip2 libatk1.0-data dbus esound-clients fam libglib2.0-data libgnomevfs2-extra hicolor-icon-theme libgtk2.0-bin xml-core lsb perl-doc mtools debconf-utils read-edid The following NEW packages will be installed: binutils busybox cpp cpp-4.1 defoma discover1 discover1-data dpkg-dev esound esound-common file fontconfig fontconfig-config gconf2 gconf2-common gnome-keyring gnome-mime-data gtk2-engines hwinfo initramfs-tools ... Get:89 http://10.0.35.6 etch/main libbonoboui2-0 2.14.0-5 [215kB] Get:90 http://10.0.35.6 etch/main gnome-keyring 0.6.0-3 [139kB] Get:91 http://10.0.35.6 etch/main libgnome-keyring0 0.6.0-3 [30.8kB] Get:92 http://10.0.35.6 etch/main libgnomeui-common 2.14.1-2 [720kB] Get:93 http://10.0.35.6 etch/main libgnomeui-0 2.14.1-2 [369kB] Get:94 http://10.0.35.6 etch/main python-pyorbit 2.0.1-5 [85.3kB] Get:95 http://10.0.35.6 etch/main python-gnome2 2.12.4-6 [217kB] Get:96 http://10.0.35.6 etch/main python-glade2 2.8.6-8 [21.1kB] Get:97 http://10.0.35.6 etch/main gtk2-engines 1:2.8.2-1 [351kB] Get:98 http://10.0.35.6 etch/main libfontenc1 1:1.0.2-2 [13.1kB] |
#ls /opt/ltsp/
i386 |
#ls /opt/ltsp/i386/
bin dev home lib mnt proc sbin sys usr boot etc initrd media opt root srv tmp var |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:B2:4F:EC inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fec/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2949 errors:0 dropped:0 overruns:0 frame:0 TX packets:3951 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:337733 (329.8 KiB) TX bytes:1516444 (1.4 MiB) Base address:0xd800 Memory:cffe0000-d0000000 eth1 Link encap:Ethernet HWaddr 00:04:75:81:CA:61 ... TX packets:203100 errors:0 dropped:255 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1125971 (1.0 MiB) TX bytes:223852055 (213.4 MiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:1211186 errors:0 dropped:0 overruns:0 frame:0 TX packets:5144 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:70691868 (67.4 MiB) TX bytes:164608 (160.7 KiB) |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.339 ms --- 192.168.16.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.339/0.339/0.339/0.000 ms |
#cd /usr/src/
|
#ls
linux-2.4.34 linux-2.4.34.tar.gz |
#ping mail.ru
![]() |
deb http://10.0.35.6:9999/debian etch main
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync) hostname2(ro,sync) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt) # /srv/nfs4/homes gss/krb5i(rw,sync) #
Время первой команды журнала | 20:40:54 2007- 1-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:00:09 2007- 1-21 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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