/l3/users/28-09-2015/NT-Ladm/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#~
12 |
#echo $[7+5]
12 |
#cat privet.sh
#!/bin/bash echo "Privet, ${1:+NoName}!" |
#i=1
|
#echo $i
1 |
#i=$[$i+1]
|
#echo $i
2 |
#top
top - 11:04:59 up 3 days, 17:42, 5 users, load average: 1,00, 1,03, 1,05 Tasks: 71 total, 2 running, 69 sleeping, 0 stopped, 0 zombie %Cpu(s): 6,0 us, 0,3 sy, 45,5 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 48,3 st KiB Mem: 507368 total, 326676 used, 180692 free, 88612 buffers KiB Swap: 0 total, 0 used, 0 free, 118356 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5748 root 39 19 20628 6384 856 R 87,3 1,3 1216:44 john 3409 root 20 0 49500 11m 1644 S 10,9 2,4 19:12.67 l3-agent 11183 root 20 0 25388 1596 1128 R 1,3 0,3 0:00.04 top 10006 root 20 0 0 0 0 S 0,3 0,0 0:00.25 kworker/0:0 ... 3443 root 20 0 21724 2348 1672 S 0,0 0,5 0:00.16 l3script 5864 user 20 0 47620 9m 1648 S 0,0 2,0 3:42.93 l3-agent 9146 root 20 0 0 0 0 S 0,0 0,0 0:01.22 kworker/0:2 9556 root 20 0 71292 3712 2900 S 0,0 0,7 0:00.36 sshd 9558 root 20 0 22092 2756 1696 S 0,0 0,5 0:00.04 bash 9603 root 20 0 71292 3616 2824 S 0,0 0,7 0:00.04 sshd 9605 ivan 20 0 71292 1872 1076 S 0,0 0,4 0:00.05 sshd 9606 ivan 20 0 22596 3196 1652 S 0,0 0,6 0:00.25 bash 9687 root 20 0 71292 3616 2824 S 0,0 0,7 0:00.03 sshd 9689 petr 20 0 71292 1868 1072 S 0,0 0,4 0:00.09 sshd |
#ps ax
PID TTY STAT TIME COMMAND 1 ? Ss 0:06 init [2] 2 ? S 0:00 [kthreadd] 3 ? S 0:00 [ksoftirqd/0] 5 ? S 0:00 [kworker/u:0] 6 ? S 0:00 [migration/0] 7 ? S 0:02 [watchdog/0] 8 ? S< 0:00 [cpuset] 9 ? S< 0:00 [khelper] 10 ? S 0:00 [kdevtmpfs] ... 10006 ? S 0:00 [kworker/0:0] 10449 pts/2 S+ 0:00 script -f -c l3script -q /root/.lilalo//31081686118063748-1443511009.script 10480 pts/2 S+ 0:00 script -f -c l3script -q /root/.lilalo//31081686118063748-1443511009.script 10481 pts/7 Ss+ 0:00 l3script 10678 ? Ss 0:00 sshd: root@pts/9 10680 pts/9 Ss 0:00 -bash 10725 pts/9 S+ 0:00 script -f -c l3script -q /root/.lilalo//3025737101297621822-1443512146.script 10756 pts/9 R+ 0:00 script -f -c l3script -q /root/.lilalo//3025737101297621822-1443512146.script 10757 pts/10 Ss 0:00 l3script 11191 pts/10 R+ 0:00 ps ax |
#ps ax | wc -l
73 |
#$[$(ps ax | wc -l)-4]
l3script: 70: команда не найдена |
#tty
/dev/pts/9 |
#who
root pts/2 2015-09-29 09:34 (192.168.16.102) ivan pts/4 2015-09-29 09:35 (192.168.16.102) petr pts/5 2015-09-29 09:36 (192.168.16.102) user pts/6 2015-09-29 09:37 (192.168.16.102) root pts/9 2015-09-29 10:35 (192.168.16.102) |
#cat
cf cf hmjhg hmjhg |
#cat &
[1] 11252 [1]+ Stopped cat |
#jobs
[1]+ Stopped cat |
#jobs -l
[1]+ 11252 Остановлено (ввод с терминала) cat |
#cd /proc/8770/fd
l3script: cd: /proc/8770/fd: Нет такого файла или каталога |
#cd /proc/11252/fd
|
#ls -l
итого 0 lrwx------ 1 root root 64 Сен 29 11:16 0 -> /dev/pts/10 lrwx------ 1 root root 64 Сен 29 11:16 1 -> /dev/pts/10 lrwx------ 1 root root 64 Сен 29 11:16 2 -> /dev/pts/10 |
#cd
|
#find / -user ivan -f
find: unknown predicate `-f' |
#find / -user ivan -type f
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 ... /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11314/task/11314/fd/5': Нет такого файла или каталога find: `/proc/11314/task/11314/fdinfo/5': Нет такого файла или каталога find: `/proc/11314/fd/5': Нет такого файла или каталога find: `/proc/11314/fdinfo/5': Нет такого файла или каталога |
#find / -user ivan -type f 2> errors
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 ... /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io |
#cat errors
find: `/proc/11322/task/11322/fd/5': Нет такого файла или каталога find: `/proc/11322/task/11322/fdinfo/5': Нет такого файла или каталога find: `/proc/11322/fd/5': Нет такого файла или каталога find: `/proc/11322/fdinfo/5': Нет такого файла или каталога |
#find / -user ivan -type f 2> errors 1> files
|
#cat files
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 ... /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io |
#find / -user ivan -type f &> all
|
#cat all
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 ... /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11362/task/11362/fd/5': Нет такого файла или каталога find: `/proc/11362/task/11362/fdinfo/5': Нет такого файла или каталога find: `/proc/11362/fd/5': Нет такого файла или каталога find: `/proc/11362/fdinfo/5': Нет такого файла или каталога |
#mail ivan
Subject: Hello gmjfdgkfjdgkdfjhlkhjfglkhj kgjgk jkgj lg . EOT |
#mail -s report ivan < all
|
#shopt
autocd off cdable_vars off cdspell off checkhash off checkjobs off checkwinsize on cmdhist on compat31 off compat32 off compat40 off ... no_empty_cmd_completion off nocaseglob off nocasematch off nullglob off progcomp on promptvars on restricted_shell off shift_verbose off sourcepath on xpg_echo off |
#set -o noclobber
|
#find / -user ivan -type f &> report
l3script: report: не могу переписать уже существующий файл |
#find / -user ivan -type f &>> report
|
#set +o noclobber
|
#find / -user ivan -type f &> report
|
#.lsatter
l3script: .lsatter: команда не найдена |
#lsatter
l3script: lsatter: команда не найдена |
#lsattr
-------------e-- ./errors -------------e-- ./file4 -------------e-- ./files -------------e-- ./all -------------e-- ./shadow -------------e-- ./file1 -------------e-- ./report -------------e-- ./file5 -------------e-- ./privet.sh -------------e-- ./file3 -------------e-- ./install -------------e-- ./file2 |
#chattr +a report
|
#lsattr
-------------e-- ./errors -------------e-- ./file4 -------------e-- ./files -------------e-- ./all -------------e-- ./shadow -------------e-- ./file1 -----a-------e-- ./report -------------e-- ./file5 -------------e-- ./privet.sh -------------e-- ./file3 -------------e-- ./install -------------e-- ./file2 |
#find / -user ivan -type f &> report
l3script: report: Операция не позволяется |
#find / -user ivan -type f &>> report
|
#cat report
/tmp/users /var/mail/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 ... /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11526/task/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/task/11526/fdinfo/5': Нет такого файла или каталога find: `/proc/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/fdinfo/5': Нет такого файла или каталога |
#date >> report
|
#cat report
/tmp/users /var/mail/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 ... /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11526/task/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/task/11526/fdinfo/5': Нет такого файла или каталога find: `/proc/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/fdinfo/5': Нет такого файла или каталога Втр Сен 29 11:31:10 EEST 2015 |
#date
Втр Сен 29 11:31:14 EEST 2015 |
#chattr -a report
|
#chattr +i report
|
#rm report
rm: удалить обычный файл «report»? |
#rm report
rm: удалить обычный файл «report»? y rm: невозможно удалить «report»: Операция не позволяется |
#ls
all errors file1 file2 file3 file4 file5 files install privet.sh report shadow |
#ls f*
file1 file2 file3 file4 file5 files |
#ls -1 f* | sort -r
files file5 file4 file3 file2 file1 |
#ls -1 f* | rm -f
|
#ls f*
file1 file2 file3 file4 file5 files |
#ls
all errors file1 file2 file3 file4 file5 files install privet.sh report shadow |
#rm -f
|
#ls
all errors file1 file2 file3 file4 file5 files install privet.sh report shadow |
#ls -1 f* | xargs rm -r
|
#ls
all errors install privet.sh report shadow |
#cat `which passwd`
D¾èÍÿÿHß1ÛèÍÿÿëÇUSHûHH?èoÍÿÿHH ítHïèîÎÿÿHïHÂ1öèÁÏÿÿHèHÍÿÿH{è?ÍÿÿH{ è6ÍÿÿH{(è-ÍÿÿHHß[]éÍÿÿSHûHì@èÎÿÿH=ÿïHP¹HÞ¿àÀ`èAÐÿÿHæ¸àÀ`1ÉH¶ú:uëf.HÀ¶ú:tÒuðÒtÆÁHHÀtù~ÀDÁù |H|$?trH\$;thH$¾ðÄ`HPl HTHLl èï! ÀtC¾ôÄ`Hßè¾ Àt2HD$ H6l HD$(H2l HD$0H.l HÄ@¸àÄ`[ÃHÄ@1À[ÃHÃfff.USHûHH ÿtBH?Hõ¾`@èøÿt-H¾`@èÿøÿtHîHßè_Ìÿÿøÿt i`b~Dz3"p IÄé©þÿÿHÄ(Lç[]A\A]A^A_é5ÞÿÿHöy ºL HÇëy éÿÿÿHy º¾Y@1ÿè~ßÿÿHÞHÇèSàÿÿH¼y Hy HèH<ÂH¦y èÑÝÿÿHy Hy é½þÿÿ¹@1 L÷è{ÀÿÿH ÀtÆL÷èûÀÿÿH ÀIÅëþÿÿ¶<-<+HLïÿPH ÀtrHHÇÿH ÀIÇÒ¿(è(ÂÿÿH ÀHª` þLL(HÇ@H HBH»tBH ÀtHPH éýÿÿE1ÿë¡Dïè@¸ @HEÈL|$LtMáL,$HUA¸`À`¾ @¿1ÀèèêÿÿH\$8Hl$@Ld$HLl$PLt$XL|$`HÄhÃD¹ @ë¥fI$¶<!t5<*t1À¹ @¸ @HEÈHU¾° @¿1Àè|êÿÿëf.¹ @ëØfUSHûH= tÆ= t;!tC=ø t0;!t+Hß1ÀHÉÿò®H÷ÙHÏèéHÅHxHÞÆ!Hëè$åÿÿHHØ[]Ã{tHÃë±H· º¾è@1ÿèöåÿÿH=g HÂHÙ¾1Àèíêÿÿ¿A[ HLÿÿLï½ÿÿéÏýÿÿ0¸éþÿÿfAWAVIöAUATUHýSHìHH Û{HH Ào¶<-D<+<HØE1Àë"DHH Òt"¶ú-$ú+@IÀH ÀuÖE1í1ÀIøçJ<ÅèªÀÿÿH ÀIÄ!I9Ýü1öIôH[HÆI9ÝuïL~ÿLL÷èQ½ÿÿHè¾ÿÿ ÀuHH@8H Àt.ÿÐ Àu(A,$éþÿÿM ÿtHEH}HCHEHCHE HC HE(HC(HE0HC0HE8HC8HE@HC@èÔÌÿÿH ÀHt$HèÃÌÿÿH ÀHt Bx*rèHPry~(BEÕì/tÄûn¦Ý£k»ã|fUaØqXĹ@¸ñ9ò2Ä÷êÓïA`ô³¢÷ÞR÷V0úÊG9ÍIëñP&; õðÿÿÿJýLñLçLLLãèã¼ÿÿI$M íLLH HÇ@ITIÿHPHK ¿Û ·h H=xc IÁMèºc@¾1ÀèùÎÿÿØéiÿÿÿUHýSHHH ÛtBH;HCH ÿH tè0ÈÿÿHH ÿtÂ1öèùËÿÿHèÉÿÿHßHl$H\HÄéjÉÿÿAVH ÒIöAUIýH=d ATIÔLD%'d UHÍSèÍÿÿH=&d èÍÿÿèÐÿÿ ÀÃt.øÿtf1ÒHîßè´Îÿÿøÿtï9Øuë1À[]A\A]AHPHITLhKüv'Hÿ8ÿt4è¡ÏÿÿH=Âc H 11 Hó{ HÇHÃffffff.AWAVAUIýATUSHóHì(H ö º¾· @HÅèÁâÿÿH=2| HÂIèHÙ¾1Àèµçÿÿ1ö¿èiæÿÿH ÀHÇèØãÿÿH ÀHÃtt¾[ @¿èAæÿÿèºË @HÁ¾¿1Àècæÿÿ¿HÞèæÿÿHßè¾àÿÿ¿è´çÿÿè@éÿÿèZº0@HÁ¾¿1Àè!æÿÿé þÿÿè7ºË @HÁ¾¿1Àèþåÿÿë®S¾/HûèâÿÿHPH ÀHEÚHØ[ÃH¿èb à HrøHqHÿÿHH ÛuÁHÇ H[]ÃHìHþ¿HâèùËÿÿ1Ò ÀuØ¿Xñÿ(Å`È¿ñÿ¨¿`qØ¿ èñßÿÿH|ÆèeÛÿÿº¾!@1ÿHÅèÑÚÿÿH=Bt HéH¾1ÀèÈßÿÿ1ÒH|$ÂÐHÄÃfffff.ATH öIüUHÕSHót.fDHH ÿtI.0__gmon_start___Jv_RegisterClassespam_startpam_strerrorpam_chauthtokpam_endlibpam_misc.so.0misc_convlibselinux.so.1_initis_selinux_enabledsecurity_getenforcecontext_user_getsecurity_compute_avmatchpathconfreeconcontext_freesetfscreateconcontext_newgetprevcon_finilibc.so.6setuidchrootfflushstrcpy] i HHH9ÂHquáLçè»ÿÿ01ÀHÄ[]A\A]A^A_ÃHØE1ÀIÅéíþÿÿHH égÿÿÿE1ÀéÓþÿÿIÇÁðÿÿÿHÇÃøÿÿÿIÇÇÿÿÿÿ1öéÿÿÿ¸ÿÿÿÿë¦fDAWIÿAVAUATUSHH ÿÌL§M ä¼L®IöM íE1äIH ÿtJIÿPIHÅH Ût1fDHH ÿtIÿPHïHÆ躽ÿÿ ÀtvH[H ÛuÕMmM íu¤M äÐIëfIÔH ÀIT$tL`H ÒID$LàuâM§IÇD$A0H1À[]A\A]A^A_ÃfI9(t?HCHSH ÀtJHPHSH ÒtIHBA0LcIÜMmM í ýþÿÿéTÿÿÿHCHSI(HCH Àu¶H ÒIu·I ë²M§éTÿÿÿffffff.L|$øH\$ÐIuH ... <`ÝÿÿIDi C \Ýÿÿ$tÝÿÿQ_@Fp<@P<@]x( ¼|@¸À@õþÿo0@Ð@ @ °$@ ß è¯`° @X¨ þÿÿo¸@ÿÿÿoðÿÿo°@Ð`Ö$@æ$@ö$@%@%@&%@6%@F%@V%@f%@v%@%@%@¦%@¶%@Æ%@Ö%@æ%@ö%@&@&@&&@6&@F&@V&@f&@v&@&@&@¦&@¶&@Æ&@Ö&@æ&@ö&@'@'@&'@6'@F'@V'@f'@v'@'@'@¦'@¶'@Æ'@Ö'@æ'@ö'@(@(@&(@6(@F(@V(@f(@v(@(@(@¦(@¶(@Æ(@Ö(@æ(@ö(@)@)@&)@6)@F)@V)@f)@v)@)@)@¦)@¶)@Æ)@Ö)@æ)@ö)@*@*@&*@6*@F*@V*@f*@v*@*@*@¦*@¶*@Æ*@Ö*@æ*@ö*@+@+@&+@6+@F+@V+@f+@v+@+@+@¦+@¶+@Æ+@Ö+@æ+@@a@d @e§@h¬@iµ@k@lÁ@nÉ@qÏ@r¡@R. >l 0 t° |
#cat /etc/passwd
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh ... list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:103::/var/spool/exim4:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin ivan:x:1001:1001::/home/ivan:/bin/bash petr:x:1002:1002::/home/petr:/bin/bash |
#nano /etc/passwd
|
#root:x:0:0:root:/root:/bin/bash
Subject: 12 lox . EOT |
#clear
|
#clear
|
#cat install
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep users
install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" install_to_users_homes() users="$@" for user in $users install_to_users_bashrc() users="$@" for user in $users install_to_users_bash_profile() users="$@" for user in $users step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#cat install | grep -n users
12:install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script 13:lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" 85:install_to_users_homes() 88: users="$@" 90: for user in $users 110:install_to_users_bashrc() 112: users="$@" 113: for user in $users 121:install_to_users_bash_profile() 123: users="$@" 124: for user in $users 178:step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users 179:step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users 180:step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#cat install | grep -c users
14 |
#cat install | grep 'users$'
for user in $users for user in $users for user in $users step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#cat install | grep '^step'
step() step "Installing dependencies" apt_get_install_deps step "Downloading l3bashrc" ${wget} ${url_l3bashrc} step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users |
#cat install | grep '^$'
|
#cat install | grep -c '^$'
31 |
#cat install | grep -v '^$'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep -cv '^$'
154 |
#cat install | grep '^[abc]'
apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" apt_get_install_deps() cd ${temp_dir} cd / |
#cat install | grep '^[^abc]'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3bashrc" ${wget} ${url_l3bashrc} step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users rm -rf ${temp_dir} show_final_message |
#cat install | grep -c '^[^abc]'
150 |
#cat install | grep '^[^abc]'
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" ... step "Downloading l3bashrc" ${wget} ${url_l3bashrc} step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users rm -rf ${temp_dir} show_final_message |
#ping -c4 192.168.10.240
PING 192.168.10.240 (192.168.10.240) 56(84) bytes of data. ^C --- 192.168.10.240 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2072ms |
#cat install | grep '^[[:alpha:]]'
hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep '^[[:apper:]]'
grep: Неверное имя класса знаков |
#cat install | grep '^[[:upper:]]'
Usage: USAGE Installation is successfully completed. Now restart your shell or relogin Your current lilalo context is ${lilalo_context}/USER If you use xgu.ru backend, your labs will be available at Use commands For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! FINAL_MESSAGE |
#cat install | grep '^[[:lower:]]'
hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep '^[[:allnum:]]'
grep: Неверное имя класса знаков |
#cat install | grep '^[[:alnum:]]'
hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep '^.[[:alpha:]]'
hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc ... step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message |
#cat install | grep '^.[f-k]'
lilalo_user=13-10-2014 lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" lilalo_rc=.l3rc lilalo_home=.lilalo wget=wget whiteC='\033[1;37m' show_usage() show_final_message() If you use xgu.ru backend, your labs will be available at Thank you gor using LiLaLo. mkdir -p ${temp_dir} show_final_message |
#cat install | grep 'xgu.ru'
url_lilalo="http://xgu.ru/lilalo" If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3/${lilalo_context} For further information see http://xgu.ru/lilalo/ (in Russian). |
#cat install | grep 'xguaru'
|
#cat install | grep 'xgu.\ru'
url_lilalo="http://xgu.ru/lilalo" If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3/${lilalo_context} For further information see http://xgu.ru/lilalo/ (in Russian). |
#cat install | grep 'ht+p'
|
#cat install | grep -E 'ht+p'
url_lilalo="http://xgu.ru/lilalo" http://xgu.ru/l3/${lilalo_context} For further information see http://xgu.ru/lilalo/ (in Russian). |
#cat install | egrep 'ht+p'
url_lilalo="http://xgu.ru/lilalo" http://xgu.ru/l3/${lilalo_context} For further information see http://xgu.ru/lilalo/ (in Russian). |
[1] 11252 [1]+ Stopped cat
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:103::/var/spool/exim4:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:102:65534::/var/run/sshd:/usr/sbin/nologin ivan:x:1001:1001::/home/ivan:/bin/bash petr:x:1002:1002::/home/petr:/bin/bash
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 /proc/9606/task/9606/fdinfo/2 /proc/9606/task/9606/fdinfo/255 /proc/9606/task/9606/ns/net /proc/9606/task/9606/ns/uts /proc/9606/task/9606/ns/ipc /proc/9606/task/9606/environ /proc/9606/task/9606/auxv /proc/9606/task/9606/status /proc/9606/task/9606/personality /proc/9606/task/9606/limits /proc/9606/task/9606/sched /proc/9606/task/9606/comm /proc/9606/task/9606/syscall /proc/9606/task/9606/cmdline /proc/9606/task/9606/stat /proc/9606/task/9606/statm /proc/9606/task/9606/maps /proc/9606/task/9606/numa_maps /proc/9606/task/9606/mem /proc/9606/task/9606/mounts /proc/9606/task/9606/mountinfo /proc/9606/task/9606/clear_refs /proc/9606/task/9606/smaps /proc/9606/task/9606/pagemap /proc/9606/task/9606/attr/current /proc/9606/task/9606/attr/prev /proc/9606/task/9606/attr/exec /proc/9606/task/9606/attr/fscreate /proc/9606/task/9606/attr/keycreate /proc/9606/task/9606/attr/sockcreate /proc/9606/task/9606/wchan /proc/9606/task/9606/stack /proc/9606/task/9606/cpuset /proc/9606/task/9606/cgroup /proc/9606/task/9606/oom_score /proc/9606/task/9606/oom_adj /proc/9606/task/9606/oom_score_adj /proc/9606/task/9606/loginuid /proc/9606/task/9606/sessionid /proc/9606/task/9606/io /proc/9606/fdinfo/0 /proc/9606/fdinfo/1 /proc/9606/fdinfo/2 /proc/9606/fdinfo/255 /proc/9606/ns/net /proc/9606/ns/uts /proc/9606/ns/ipc /proc/9606/environ /proc/9606/auxv /proc/9606/status /proc/9606/personality /proc/9606/limits /proc/9606/sched /proc/9606/autogroup /proc/9606/comm /proc/9606/syscall /proc/9606/cmdline /proc/9606/stat /proc/9606/statm /proc/9606/maps /proc/9606/numa_maps /proc/9606/mem /proc/9606/mounts /proc/9606/mountinfo /proc/9606/mountstats /proc/9606/clear_refs /proc/9606/smaps /proc/9606/pagemap /proc/9606/attr/current /proc/9606/attr/prev /proc/9606/attr/exec /proc/9606/attr/fscreate /proc/9606/attr/keycreate /proc/9606/attr/sockcreate /proc/9606/wchan /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11362/task/11362/fd/5': Нет такого файла или каталога find: `/proc/11362/task/11362/fdinfo/5': Нет такого файла или каталога find: `/proc/11362/fd/5': Нет такого файла или каталога find: `/proc/11362/fdinfo/5': Нет такого файла или каталога
cf cf hmjhg hmjhg
find: `/proc/11322/task/11322/fd/5': Нет такого файла или каталога find: `/proc/11322/task/11322/fdinfo/5': Нет такого файла или каталога find: `/proc/11322/fd/5': Нет такого файла или каталога find: `/proc/11322/fdinfo/5': Нет такого файла или каталога
/tmp/users /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 /proc/9606/task/9606/fdinfo/2 /proc/9606/task/9606/fdinfo/255 /proc/9606/task/9606/ns/net /proc/9606/task/9606/ns/uts /proc/9606/task/9606/ns/ipc /proc/9606/task/9606/environ /proc/9606/task/9606/auxv /proc/9606/task/9606/status /proc/9606/task/9606/personality /proc/9606/task/9606/limits /proc/9606/task/9606/sched /proc/9606/task/9606/comm /proc/9606/task/9606/syscall /proc/9606/task/9606/cmdline /proc/9606/task/9606/stat /proc/9606/task/9606/statm /proc/9606/task/9606/maps /proc/9606/task/9606/numa_maps /proc/9606/task/9606/mem /proc/9606/task/9606/mounts /proc/9606/task/9606/mountinfo /proc/9606/task/9606/clear_refs /proc/9606/task/9606/smaps /proc/9606/task/9606/pagemap /proc/9606/task/9606/attr/current /proc/9606/task/9606/attr/prev /proc/9606/task/9606/attr/exec /proc/9606/task/9606/attr/fscreate /proc/9606/task/9606/attr/keycreate /proc/9606/task/9606/attr/sockcreate /proc/9606/task/9606/wchan /proc/9606/task/9606/stack /proc/9606/task/9606/cpuset /proc/9606/task/9606/cgroup /proc/9606/task/9606/oom_score /proc/9606/task/9606/oom_adj /proc/9606/task/9606/oom_score_adj /proc/9606/task/9606/loginuid /proc/9606/task/9606/sessionid /proc/9606/task/9606/io /proc/9606/fdinfo/0 /proc/9606/fdinfo/1 /proc/9606/fdinfo/2 /proc/9606/fdinfo/255 /proc/9606/ns/net /proc/9606/ns/uts /proc/9606/ns/ipc /proc/9606/environ /proc/9606/auxv /proc/9606/status /proc/9606/personality /proc/9606/limits /proc/9606/sched /proc/9606/autogroup /proc/9606/comm /proc/9606/syscall /proc/9606/cmdline /proc/9606/stat /proc/9606/statm /proc/9606/maps /proc/9606/numa_maps /proc/9606/mem /proc/9606/mounts /proc/9606/mountinfo /proc/9606/mountstats /proc/9606/clear_refs /proc/9606/smaps /proc/9606/pagemap /proc/9606/attr/current /proc/9606/attr/prev /proc/9606/attr/exec /proc/9606/attr/fscreate /proc/9606/attr/keycreate /proc/9606/attr/sockcreate /proc/9606/wchan /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io
#!/bin/sh hostname=`hostname` uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f` ############################################################################### # # Set this variables before installation: lilalo_user=13-10-2014 lab=NT-LNet install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script lilalo_context="/users/${lilalo_user}/${lab}/${hostname}" # ############################################################################### lilalo_rc=.l3rc lilalo_home=.lilalo url_lilalo="http://xgu.ru/lilalo" url_l3bashrc="${url_lilalo}"/l3bashrc url_l3agent="${url_lilalo}"/l3-agent url_l3config_pm="${url_lilalo}"/l3config.pm url_l3config="${url_lilalo}"/l3-config url_l3prompt="${url_lilalo}"/l3prompt url_perl_modules=${url_lilalo}/ perl_modules="Term-VT102 Text-Iconv" apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc" wget=wget uname -a | egrep -qi '(bsd|darwin)' && wget=fetch normC='\033[0;39m' whiteC='\033[1;37m' redC='\033[0;31m' greenC='\033[0;32m' apt_get_install_deps() { return 0 if which apt-get >& /dev/null then apt-get install -y $apt_get_install_this else echo "Please install this dependencies manually:" echo $apt_get_install_this echo "Have you installed this already (y/n)?" echo y | read answer if echo $answer | grep -q ^[yY] then true else echo Please install the dependencies and rerun the script exit 1 fi fi } step() { msg="$1" shift printf "${whiteC}""$msg""...${normC}\n" # eval "$@" 2>&1 | sed 's/^/|\ \ \ /' && printf "Ok\n" || printf "Failed\n" eval "$@" 2>&1 > log 2>&1 && \ { cat log | sed 's/^/|\ \ \ /' printf "${greenC}""Ok\n""${normC}" } || \ { cat log | sed 's/^/|\ \ \ /' printf "${redC}""Failed\n""${normC}" } } get_user_home() { uname -a | egrep -qi '(freebsd|darwin)' && pw user show "$@"| awk -F: '{print $9}' || getent passwd "$@"| awk -F: '{print $6}' } install_to_users_homes() { . l3bashrc users="$@" set -x for user in $users do user_home=`get_user_home "$user"` mkdir -p ${user_home}/${lilalo_home} mkdir /etc/lilalo/ cp l3config.pm /etc/lilalo/ cp l3-agent /usr/local/bin cp l3-config /usr/local/bin ln -s `which bash` /usr/local/bin/l3script chmod 755 /usr/local/bin/l3-{agent,config} cp l3bashrc ${user_home}/${lilalo_home} cp l3prompt ${user_home}/${lilalo_home} chmod 755 ${user_home}/${lilalo_home}/l3prompt chown -R $user ${user_home}/${lilalo_home} echo l3cd=${lilalo_context}/$user > ${user_home}/${lilalo_rc} chown -R $user ${user_home}/${lilalo_rc} done set +x } install_to_users_bashrc() { users="$@" for user in $users do user_home=`get_user_home "$user"` grep -q lilalo ${user_home}/.bashrc 2> /dev/null\ || echo "[ \$0 == l3script ] && . ${user_home}/.lilalo/l3bashrc && _l3_start" >> ${user_home}/.bashrc; chown -R ${user} ${user_home}/.bashrc done } install_to_users_bash_profile() { users="$@" for user in $users do user_home=`get_user_home "$user"` grep -q l3-agent ${user_home}/.bash_profile 2> /dev/null \ || { echo >> ${user_home}/.bash_profile ; cat ${user_home}/.bash_profile | sed '1s/^/l3-agentX/' | tr X '\n' > /tmp/$$$$l3 ; mv /tmp/$$$$l3 ${user_home}/.bash_profile; chown -R ${user} ${user_home}/.bash_profile; } done } show_usage() { cat <<USAGE Usage: $0 USAGE } show_final_message() { cat <<FINAL_MESSAGE Installation is successfully completed. Now restart your shell or relogin to start script writing. Your current lilalo context is ${lilalo_context}/USER If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3/${lilalo_context} Use commands $ l3cd ${lilalo_context%/*/*}/MY-NEW-CONTEXT/${hostname}/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) FINAL_MESSAGE } temp_dir=/tmp/lilalo-install-temp-$$ mkdir -p ${temp_dir} cd ${temp_dir} step "Installing dependencies" apt_get_install_deps step "Downloading l3bashrc" ${wget} ${url_l3bashrc} step "Downloading l3prompt" ${wget} ${url_l3prompt} step "Downloading l3-agent" '${wget} ${url_l3agent}; ${wget} ${url_l3config_pm}; ${wget} ${url_l3config}' step "Downloading perl modules for l3-agent" '{ for i in ${perl_modules}; do ${wget} ${url_perl_modules}/$i.tar.gz; done; }' step "Installing perl modules for l3-agent" '{ for i in ${perl_modules}; do tar xvfz $i.tar.gz; cd $i*[^z]; perl Makefile.PL; make; make install; cd ..; done; }' step "Installing l3bashrc to users home directories" install_to_users_homes $install_l3bashrc_for_this_users step "Adding l3bashrc invocation to ~/.bashrc " install_to_users_bashrc $install_l3bashrc_for_this_users step "Adding l3-agent invocation to ~/.bash_profile " install_to_users_bash_profile $install_l3bashrc_for_this_users cd / rm -rf ${temp_dir} show_final_message
D¾èÍÿÿHß1ÛèÍÿÿëÇUSHûHH?èoÍÿÿHH ítHïèîÎÿÿHïHÂ1öèÁÏÿÿHèHÍÿÿH{è?ÍÿÿH{ è6ÍÿÿH{(è-ÍÿÿHHß[]éÍÿÿSHûHì@èÎÿÿH=ÿïHP¹HÞ¿àÀ`èAÐÿÿHæ¸àÀ`1ÉH¶ú:uëf.HÀ¶ú:tÒuðÒtÆÁHHÀtù~ÀDÁù |H|$?trH\$;thH$¾ðÄ`HPl HTHLl èï! ÀtC¾ôÄ`Hßè¾ Àt2HD$ H6l HD$(H2l HD$0H.l HÄ@¸àÄ`[ÃHÄ@1À[ÃHÃfff.USHûHH ÿtBH?Hõ¾`@èøÿt-H¾`@èÿøÿtHîHßè_Ìÿÿøÿt i`b~Dz3"p IÄé©þÿÿHÄ(Lç[]A\A]A^A_é5ÞÿÿHöy ºL HÇëy éÿÿÿHy º¾Y@1ÿè~ßÿÿHÞHÇèSàÿÿH¼y Hy HèH<ÂH¦y èÑÝÿÿHy Hy é½þÿÿ¹@1 L÷è{ÀÿÿH ÀtÆL÷èûÀÿÿH ÀIÅëþÿÿ¶<-<+HLïÿPH ÀtrHHÇÿH ÀIÇÒ¿(è(ÂÿÿH ÀHª` þLL(HÇ@H HBH»tBH ÀtHPH éýÿÿE1ÿë¡Dïè@¸ @HEÈL|$LtMáL,$HUA¸`À`¾ @¿1ÀèèêÿÿH\$8Hl$@Ld$HLl$PLt$XL|$`HÄhÃD¹ @ë¥fI$¶<!t5<*t1À¹ @¸ @HEÈHU¾° @¿1Àè|êÿÿëf.¹ @ëØfUSHûH= tÆ= t;!tC=ø t0;!t+Hß1ÀHÉÿò®H÷ÙHÏèéHÅHxHÞÆ!Hëè$åÿÿHHØ[]Ã{tHÃë±H· º¾è@1ÿèöåÿÿH=g HÂHÙ¾1Àèíêÿÿ¿A[ HLÿÿLï½ÿÿéÏýÿÿ0¸éþÿÿfAWAVIöAUATUHýSHìHH Û{HH Ào¶<-D<+<HØE1Àë"DHH Òt"¶ú-$ú+@IÀH ÀuÖE1í1ÀIøçJ<ÅèªÀÿÿH ÀIÄ!I9Ýü1öIôH[HÆI9ÝuïL~ÿLL÷èQ½ÿÿHè¾ÿÿ ÀuHH@8H Àt.ÿÐ Àu(A,$éþÿÿM ÿtHEH}HCHEHCHE HC HE(HC(HE0HC0HE8HC8HE@HC@èÔÌÿÿH ÀHt$HèÃÌÿÿH ÀHt Bx*rèHPry~(BEÕì/tÄûn¦Ý£k»ã|fUaØqXĹ@¸ñ9ò2Ä÷êÓïA`ô³¢÷ÞR÷V0úÊG9ÍIëñP&; õðÿÿÿJýLñLçLLLãèã¼ÿÿI$M íLLH HÇ@ITIÿHPHK ¿Û ·h H=xc IÁMèºc@¾1ÀèùÎÿÿØéiÿÿÿUHýSHHH ÛtBH;HCH ÿH tè0ÈÿÿHH ÿtÂ1öèùËÿÿHèÉÿÿHßHl$H\HÄéjÉÿÿAVH ÒIöAUIýH=d ATIÔLD%'d UHÍSèÍÿÿH=&d èÍÿÿèÐÿÿ ÀÃt.øÿtf1ÒHîßè´Îÿÿøÿtï9Øuë1À[]A\A]AHPHITLhKüv'Hÿ8ÿt4è¡ÏÿÿH=Âc H 11 Hó{ HÇHÃffffff.AWAVAUIýATUSHóHì(H ö º¾· @HÅèÁâÿÿH=2| HÂIèHÙ¾1Àèµçÿÿ1ö¿èiæÿÿH ÀHÇèØãÿÿH ÀHÃtt¾[ @¿èAæÿÿèºË @HÁ¾¿1Àècæÿÿ¿HÞèæÿÿHßè¾àÿÿ¿è´çÿÿè@éÿÿèZº0@HÁ¾¿1Àè!æÿÿé þÿÿè7ºË @HÁ¾¿1Àèþåÿÿë®S¾/HûèâÿÿHPH ÀHEÚHØ[ÃH¿èb à HrøHqHÿÿHH ÛuÁHÇ H[]ÃHìHþ¿HâèùËÿÿ1Ò ÀuØ¿Xñÿ(Å`È¿ñÿ¨¿`qØ¿ èñßÿÿH|ÆèeÛÿÿº¾!@1ÿHÅèÑÚÿÿH=Bt HéH¾1ÀèÈßÿÿ1ÒH|$ÂÐHÄÃfffff.ATH öIüUHÕSHót.fDHH ÿtI.0__gmon_start___Jv_RegisterClassespam_startpam_strerrorpam_chauthtokpam_endlibpam_misc.so.0misc_convlibselinux.so.1_initis_selinux_enabledsecurity_getenforcecontext_user_getsecurity_compute_avmatchpathconfreeconcontext_freesetfscreateconcontext_newgetprevcon_finilibc.so.6setuidchrootfflushstrcpy] i HHH9ÂHquáLçè»ÿÿ01ÀHÄ[]A\A]A^A_ÃHØE1ÀIÅéíþÿÿHH égÿÿÿE1ÀéÓþÿÿIÇÁðÿÿÿHÇÃøÿÿÿIÇÇÿÿÿÿ1öéÿÿÿ¸ÿÿÿÿë¦fDAWIÿAVAUATUSHH ÿÌL§M ä¼L®IöM íE1äIH ÿtJIÿPIHÅH Ût1fDHH ÿtIÿPHïHÆ躽ÿÿ ÀtvH[H ÛuÕMmM íu¤M äÐIëfIÔH ÀIT$tL`H ÒID$LàuâM§IÇD$A0H1À[]A\A]A^A_ÃfI9(t?HCHSH ÀtJHPHSH ÒtIHBA0LcIÜMmM í ýþÿÿéTÿÿÿHCHSI(HCH Àu¶H ÒIu·I ë²M§éTÿÿÿffffff.L|$øH\$ÐIuH èZÛÿÿ¾¿èKÛÿÿ¾¿è<Ûÿÿ¾¿è-Ûÿÿ¾¿èÛÿÿ¿?ètÛÿÿHÄÃAWAVAUAõATUSHì öH|ÛHÕ»E1ÿA¾@ë&HtLçè«Úÿÿ Àt!ØHÃH[H ÛuØ1ÛHØ[]A\ÃfDzg À~è Àkg u=fg uéKÍÿÿóÃfDH¿AÛÿÿÞÇè8Üÿÿ À ÑèûØÿÿÃèôØÿÿÞÇè ÿÐ ÀèH\$ 1À¹HßóH«IH ÿIèñ¼ÿÿHÚÆ¿èb½ÿÿ À²I1ÛèºÿÿIÇë#I»è÷¹ÿÿIÇLÿè4ðÿÿH$HdH3%(Ø MH$XH¬$`L¤$hL¬$pL´$xL¼$HÄÃè{¸ÿÿ1ÛÇë1Ûë@H$@MùA¸¸@¹º¾Hß1ÀE1öèë·ÿÿHßè#M ÀAÆDõLïèÛ»ÿÿH$°Æ¿èG¼ÿÿ ÀuD¿?èI»ÿÿ¾@HßD$öè¥Ìÿÿ ÀÀHÃff.H\$ØHl$àHûLd$èLl$ðLt$øHìdH%(H$1Àö0°tOH$dH3%( èH$H¬$L¤$L¬$L´$HÄÃõè)ÇÿÿH|$@HIÙH$A¸~@¹º¾1ÀèßÅÿÿH¼$@IÙA¸ @¹º¾1Àè¸ÅÿÿH|$@1Àº¾Áè@ h°`p°`x°`°`°`°`°` °`¨°`°°`¸°`À°`È°`а`ð°`ø°` ±`±`"±`#±`$ ±`%(±`&0±`'8±`(@±`tH±`)P±`*X±`+`Õ`ÈÒ0ûàþHÇHÇ HÇ(0¾HÄ(ÃHßè´ÁÿÿAÅè¼ÀÿÿE íD0IÄHÇâö¸µ@¾Ý@DïHDðèuÅÿÿH ÀHE4$®E4$HÇè%ÄÿÿºÇ¾1ÀèÁÿÿ¿èXÄÿÿH ÀIÆнH訽ÿÿ|$ÿP(L9ð ¾²`R ²`S¨²`T°²`U¸²`VÀ²`WȲ`Xв`Yز`Zà²`[è²`\ð²`]ø²`^³`³``³`a³`b ³`c(³`e0³`f8³`g@³`hH³`iP³`jX³`k`³`lh³`mp³`nx³`o³`p³`qHèHÃÿ5* ÿ%, @ÿ%* héàÿÿÿÿ%" héÐÿé HT$Ht$ H|$0¿Î@HÇD$ Ø@HÇD$(Ë@HÇD$8HÇD$ Àu`D$ IÄè,»ÿÿM ät1Ò1öLïè;¼ÿÿ Àt^LçèϸÿÿAnI迸ÿÿøÝÿèDøÝÿ íÓ1ÛýÿIÇÃé¢þÿÿfDLæÇèN¹ÿÿøÿt¢Lïè»ÿÿøÿuäLïèÔ·ÿÿ ÀuLçèh»ÿÿ À yÿÿÿLçèøºÿÿÇè¼ÿÿ À jÿÿÿLçè1¸ÿHH L÷è ÿÿÿÿ% héÿÿÿÿ%ú héÿÿÿÿ%ò hépÿÿÿÿ%ê é`ÿÿÿÿ%â h éPÿÿÿÿ%Ú h ŶÜå ût ût Ûu $ ÿP(H À \ÿÿÿL÷è,¿ÿÿAÇ$fHÅL÷Hîè¼ÄÿÿH ÀIÅt`HÁ9HÁÿþþþ÷×!úâtèÐîMîÁè÷ÂDÐHAHDÈÒHHÙHL)é)ÎI| 1ÀHÄH[]ÃH-qq º¾@@1ÿè°ÒÿÿH=!l HÂAØHé¾1Àè¤×ÿÿH=q º¾à@1ÿè|ÒÿÿH=ík HÂHÙ¾1Àès×ÿÿ¸ÿÿÿÿë@Hq º@1ÿè@ÒÿÿH=±k HÂAèHÙ¾1Àè4×ÿÿ¸ÿÿÿÿéHÿÿÿHÃfff.HHH Òt$HHH ÉtA1ö9B¸¿I PuTTYPuTTYé@ÿÿÿÿ%Ò h ½ fD9Xt èw·ÿÿøÿu¼EeI袹ÿÿIøAÜÿè/¹ÿÿÇèȺÿÿIøAÜÿèe¶ÿÿ ÀIÇubE äu]H$°Lþ¿è¶ÿÿ Àu$È%ð= twLþHßèúºÿÿ À üÿÿè éüýÿÿD01Àå@tAþu0°ëDè èÖÿÿÿH Àuñ[Ãffffff.¿¶`éfD¿¶`éfDH!d ÃHþ¿¶`鸶`Ãf.¾pT@¿¶`éQUHý¿0SHè}ÒÿÿH ÀHÃteEH}CECèàÐÿÿH À À üÿÿÆÒT »üÿÿHß1Ûèê´ÿÿéùûÿÿHïèݵÿÿHßèÕ´ÿÿIÇ1Ûé×ûÿÿÇD$@H$@éÛýÿÿ1öLÿè¸ÿÿH ÀHÅt<HÆHßèqºÿÿHï$è6´ÿÿ$édÿÿÿèùµÿÿ¹ð@º~¾À@¿Ë@è`¶ÿÿ¿ß@è&ºÿÿé,ÿÿÿSHûHìdH%(H1À¶0¨ug¨u#1ÀHdH3%( ~HÄ[ÃàûIÙA¸ @¹º¾0Hç1Àèu³ÿÿHçèͳÿÿèìÿÿ¸ë 0èÒùÿÿ Àuö0tèðëÿÿéxÿÿÿ¶0éeÿÿÿèµÿÿH\$ØH@è HB0ÃH 0ÃHëÕHFH(ë¬H\$àHl$èHûLd$ðLl$øHì8¶0¨tt&è°ÿÿÇ1ÀH\$Hl$ Ld$(Ll$0HÄ8ÃHõL¯H·HêLïèTèÿÿH ÀIÄtLHpHêLïè=èÿÿH ÀtPº¾¨@1ÿèW±ÿÿH=ÈJ HÂIØHé¾1ÀèK¶ÿÿ1Àé{ÿÿÿ@èë¯ÿÿÇ1ÀéeÿÿÿfDL9£(tgID$IT$H À|HPIT$H Òt^HB0I<$H ÿtèU¯ÿÿI|¸H ÿ ÿÿÿHDÿDéòþÿÿID$H(ëf.H ëHëSö0Hût+HòH³H¿èçÿÿH Àt(H(H[Ãèó®ÿÿÇ1À[ÃfèÛ®ÿÿÇ1À[Ãö0tHÇ(¸ÃfDH觮ÿÿÇ1ÀHÃf.ö0tgHH ]G ê¾ÈHçèF±ÿÿH9ØtQH$ÈdH3%( ÆH$ÐH¬$ØL¤$àL¬$èL´$ðHÄøÃf.¾ÿÿÿ%Ú h*é@ýÿÿÿ%Ò h+é0ýÿÿÿ%Ê h,é ýÿÿÿ% h-éýÿÿÿ%º h.éýÿÿÿ%² h/éðüÿÿÿ%ª h0éàüÿÿÿ%¢ h1éÐüÿÿÿ% h2éÀüÿÿÿ% h3é°üÿÿÿ% h4é üÿÿÿ% h5éüÿÿÿ%z h6éüÿÿÿ%r h7épüÿÿÿ%j h8é`üÿÿÿ%b h9éPüÿÿÿ%Z h:é@üÿÿÿ%R h;é0üÿÿÿ%J h<é üÿÿÿ%B h=éüÿÿÿ%: h>éüÿÿÿ%2 h?éðûÿÿÿ%* h@éàûÿÿÿ%" hAéÐûÿÿÿ% hBéÀûÿÿÿ% hCé°ûÿÿÿ% 1H Hçè#®ÿÿH ÀIÅtÆL¾$$EätfDIíI9ÝrèÚ²ÿÿI¾UHöDP uãAÆEèÁ²ÿÿHæHëfHÆL¾&EäBöD` uëHUÿL÷èÿ«ÿÿAÆD.ÿé#ÿÿÿè_ÿÿH\$èHl$ðHûLd$øHì(Iô被ÿÿHtºúÿÿÿ% hRéÀúÿÿÿ% hSé°úÿÿÿ% hTé úÿÿÿ% hUéúÿÿÿ%z hVéúÿÿÿ%r hWépúÿÿÿ%j hXé`úÿÿÿ%b hYéPúÿÿÿ%Z hZé@úÿÿÿ%R h[é0úÿÿÿ%J h\é úÿÿÿ%B h]éúÿÿÿ%: h^éúÿÿÿ%2 h_éðùÿÿÿ%* h`éàùÿÿÿ%" haéÐùÿÿÿ% hbéÀùÿÿÿ% hcé°ùÿÿÿ% ÇHßHÅè®ÿÿ1Ò;t HL9u}"tÁH9Át)fÐH\$Hl$Ld$ HÄ(Ãf.AiéPùÿÿÿ%Ú hjé@ùÿÿÿ%Ò hké0ùÿÿÿ%Ê hlé ùÿÿÿ% hméùÿÿÿ%º hnéùÿÿÿ%² hoéðøÿÿÿ%ª hpéàøÿÿÿ%¢ hqéÐøÿÿAT=¸ USûµèX* À ¨è)1ÿH- º¾B @IÄè@úÿÿH=± HÂMàHé¾1Àè4ÿÿÿ1ö¿èèýÿÿH Àt!HÇè[ûÿÿH ÀHÅt¾[ @¿èÄýÿÿë1íè1À¿èâýÿÿH ít¿HîèýÿÿHïè8øÿÿ=ñ µèv- À ¨èÉ,1ÿH-@ º¾B @IÄè~ùÿÿH=ï HÂMàHé¾1Àèrþÿÿ1ö¿è&ýÿÿH Àt!HÇèúÿÿH ÀHÅt¾[ @¿èýÿÿë¿ $²ëØH\$èHl$ðHûLd$øHì(Iôè«ÿÿHtº ÇHßHÅè÷ÿÿ1Ò;t HL9u}"tHcÈH9Át(ÐH\$Hl$Ld$ HÄ(Ãf.A $²ëØH\$èHl$ðHûLd$øHì(IôèªÿÿHtº ÇHßHÅègÿÿ1Ò;t HL9u}"tÁH9Át)fÐH\$Hl$Ld$ HÄ(Ãf.A HÄ(ÃHT$1öèD¬ÿÿ ÀxHH|$è¶ÿÿ ÀxRH|$èدÿÿ1ÀHÄ(ÃH|èv©ÿÿ ÀÆ I H|ÂxI ëDè®ÿÿ Àt¯¸ëèëÿÿ Àt¥ëæDH==I ¶7I t1ÀÒt1ÿè/ÿÿ ÀÀ¶ÀHÃfèû¨ÿÿ ÀÆ I ÂI ëËóÃfffff.Hl$ØLd$àH-1 L%p1 Ll$èLt$ðL|$øH\$ÐHì8L)åAýIöHÁýI×è;¨ÿÿH ít1Û@LúLöDïAÿÜHÃH9ërêH\Hl$Ld$Ll$ Lt$(L|$0HÄ8ÃHHÃUsage: %s [options] [LOGIN] H=% ÿpPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY Options: éDþÿÿ1ÿè -a, --all report password status on all accounts þÿÿÆæ éÿýÿÿè -d, --delete delete the password for the named account H Àj H8èI"s Hä 9Õ~zHcÂHÃHÚ B9Åä=y ta=r Î= Á9Õ¹=M Ìè÷ÿÿë -e, --expire force expire the password for the named account °=Ø Åè«=§ Ó1ÿè'úÿÿ À Vè:(ÀBfè;( Àô¿Æ è2( ÀËH=£ è.(H ÀzHÇèÍ(H ÀHÃHè=a Ht HL HC =) t -h, --help display this help message and exit H HC=% t H HC(=ñ t -k, --keep-tokens change password only if expired Hà HC0=Ñ HÇCHßè«' ÀãèÞ' ÀfDèÛ' ÀåÆ< ¿ ºð@¾¿1Àè÷ÿÿ¿HÞèO÷ÿÿHßè÷ñÿÿèòÿÿ= u3=õ t*H º¾ @1ÿèHóÿÿHÚHÆ¿1Àè÷ÿÿHÄ81À[]A\A]Ã9Õ~=Ð ¢ýÿÿ¿è1 =í= ýÿÿH º¾.@1ÿèÓòÿÿH=D HÂHÙ¾1ÀèÊ÷ÿÿ¿è°÷ÿÿèÛ @è² ¿@è¨ 1ö¿è¬÷ÿÿH À-HÇè¾[ @¿è÷ÿÿL H -i, --inactive INACTIVE set password inactive after expiration éªþÿÿLw H to INACTIVEÿDkL% èßôÿÿ À]üÿÿH|è}óÿÿ ÀujH|è?ñÿÿHÇHÅè4ôÿÿE ítHÆLçèóÿÿ ÀH|LD$¹ºHþèpöÿÿ ÀuèHÙ¾1Àè?÷ÿÿ1ö¿èóõÿÿH À:HÇèbóÿÿH ÀHÃ&¾[ @¿èÇõÿÿLÐ H öD$ ÚHïèIóÿÿH|èÿõÿÿH|HÇD»Ú @è÷òÿÿ ÀuH\1ö¿èÂôÿÿH ÀÁHÇè1òÿÿH ÀHž[ @¿èôÿÿL HÙ@¾¿1Àè¶ôÿÿ¿HîèiôÿÿHïèïÿÿ1ÿL%h H-1 º¾@@èrðÿÿH=ã HÂMá1ÀIØHé¾ècõÿÿH|H ÿýÿÿè õÿÿéýÿÿèö#fDè[ -l, --lock lock the password of the named account º¸@¾¿1ÀèÌðÿÿéùúÿÿ1ÿH^ º¾¨@èìÿÿH= HÂHÙ¾1Àèñÿÿ1ö¿èJðÿÿH ÀHÇè¹íÿÿH ÀHþ[ @¿èðÿÿè©ìÿÿºÐ@Á¾1À¿èAðÿÿHÞ¿èôïÿÿHßèêÿÿé]ùÿÿH- H¹ º¾X@1ÿèøëÿÿH=i HÂIèHÙ¾1Àèìðÿÿ¿èè-ìÿÿºÐ@Á¾¿1ÀèÅïÿÿéöøÿÿèÛ1ÿHR º¾@HÅèëÿÿH= HÂIèHÙ¾1Àèðÿÿ1ö¿è8ïÿÿH Àt`HÇè«ìÿÿH ÀHÃtP¾[ @¿èïÿÿèoº0@HÁ¾¿é¬ýÿÿL HÙ@¾¿1Àèïÿÿérúÿÿè.º0@HÁ¾¿1Àèõîÿÿéâûÿÿ1íIÑ^HâHäðPTIÇÀ |@HÇÁ0|@HÇÇÀ-@è'ìÿÿôHHtÃè -n, --mindays MIN_DAYS set minimum number of days before password è change to MIN_DAYS -q, --quiet quiet mode -r, --repository REPOSITORY change password in REPOSITORY repository -R, --root CHROOT_DIR directory to chroot into -S, --status report password status on the named account -u, --unlock unlock the password of the named account -w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS -x, --maxdays MAX_DAYS set maximum number of days before password change to MAX_DAYS %s: unlocking the password would result in a passwordless account. You should set a password with usermod -p to unlock the password of this account. %s: cannot lock %s; try again later. %s: user '%s' does not exist in %s %s: failed to prepare the new %s entry '%s' %s: failure while writing changes to %s failure while writing changes to %s%s: invalid numeric argument '%s' %s: repository %s not supported %s: Cannot determine your user name. Cannot determine the user name of the caller (UID %lu)%s is not authorized to change the password of %s%s: %s is not authorized to change the password of %s %s: You may not view or modify password information for %s. %s: can't view or modify password information for %spassword for '%s' changed by '%s'%s: password expiry information changed. %s: failed to unlock %s Cfailed to unlock %s%s: out of memory LNP%m/%d/%Y%s %s %s %lld %lld %lld %lld %s %s %s: cannot open %s cannot open %sUnknown user context/usr/share/localeshadow-Rpasswdfilesadehi:kln:qr:R:Suw:x:%s: Permission denied. %s: user '%s' does not exist Cannot change ID to root. can't setuid(0)groupalldeleteexpirehelpinactivekeep-tokensmindaysquietrepositorystatusunlockwarndaysmaxdays@.@50@h.@h.@h.@h.@h.@h.@h.@h.@h.@h.@h.@h.@h.@)0@h.@h.@0@0@h.@h.@ü/@Â/@h.@¶/@£/@h.@i/@h.@h.@]/@/@h.@h.@ð.@h.@¶.@.@%s=%senv.cwlen == (int) len -1Environment overflow L%dwlen < (int) sizeof(variable)You may not change $%s _RLD_=BASH_ENV=HOME=IFS=KRB_CONF=LD_LIBPATH=MAIL=NLSPATH=SHELL=SHLIB_PATH=LANG=LANGUAGE=LC_addenvset_envpasswd: %s passwd: password unchanged passwd: pam_start() failed, error %d passwd: password updated successfully --root%s: multiple --root options %s: invalid chroot path '%s' %s: option '%s' requires an argument %s: failed to drop privileges (%s) %s: cannot access chroot directory %s: %s %s: unable to chroot to directory %s: %s xgetpwnamxgetpwuid%s: failed to allocate memory: %s -i/usr/sbin/nscd%s: Failed to flush the nscd cache. %s: nscd did not terminate normally (signal %d) %s: nscd exited with status %d : %s: cannot execute %s: %s %s.%lu%s.lock%s: %s: %s %s: cannot get lock %s: %s r+%s-%s+commonio.c((void *)0) != eptrrealpath in lrename()%s: %s: lock file already used %s: existing lock file %s without a PID %s: existing lock file %s with an invalid PID '%s' PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY%s: lock %s already used by PID %lu Multiple entries named '%s' in %s. Please fix this with pwck or grpck. write_all %s [%s]: ÿÿy ÿÿ¨¸ ÿÿP¯ÿÿh±ÿÿÀè²ÿÿð³ÿÿ ·ÿÿ¨·ÿÿ°Ø·ÿÿÈHºÿÿHè»ÿÿH½ÿÿظ½ÿÿø¾ÿÿ0ÀÿÿPxÂÿÿ ÈÃÿÅÿÿpÅÿÿ¸Åÿÿ°(ÆÿÿÐXÇÿhÇÿ¨ÇÿÿXÈÿÿhÈÿÿxÈÿÿÈÿÿÈÿÿ¨Èÿÿ¸ÈÿÿÈÈÿÿ ØÈÿÿ( èÈÿÿ@ øÈÿÿX Éÿÿp Éÿÿ HÉÿÿ¨ XÉÿÿÀ hÉÿÿØ xÉÿÿð Éÿÿ Éÿÿ ¨Éÿÿ8 hÊÿÿh ØÊÿÿ èËÿÿÀ øËÿÿØ XÌÿÿ hÌÿÿ( xÌÿÿ@ ÌÿÿX Ìÿÿp ¨Ìÿÿ ¸Ìÿÿ ÈÌÿÿ¸ ØÌÿÿÐ èÌÿÿè øÌÿÿ Íÿÿ Íÿÿ0 (ÍÿÿH 8Íÿÿ` HÍÿÿx XÍÿÿ hÍÿÿ¨ ÍÿÿÀ (Îÿÿð 8ÑÿHÖÿÿ0ÈÖÿÿXøÚÿÿÈÜÿÿØXÞÿÿ(èãÿÿX¸äÿÿçÿÿ¨xçÿÿÀøèÿÿèXéÿÿéÿÿ((êÿÿ@Èêÿÿ hìÿÿÈøìÿÿðíÿÿîÿÿ@Èîÿÿ`ïÿÿ(ïÿÿzRx J ?;*3$"D(¬ÿÿüBTC dX HA Éÿÿ<A,ÐÿÿGJMQp F ,Ìð®ÿÿAAG W DA ,üp¯ÿÿäBAA AA BBA C(G`o (C ABA lð²ÿÿAð²ÿÿ!D|³ÿÿkBBB E(A0A8G` 8A0A(B BBK z 8A0A(B BBD Q 8D0A(B BBE L$ø´ÿÿBBB E(D0A8Gà 8A0A(B BBA <tH¶ÿÿ^BBI D(A0 (A BBG $´h·ÿÿaN i PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTI ,Ü°·ÿÿ1AAD0 AA À¸ÿÿD L,À¹ÿÿ`BBB E(A0A8DPì 8A0A(B BBA d|лÿÿOBBJ B(A0A8D`¾ 8C0A(B BBH f 8A0A(B BBA d丼ÿÿOBBJ B(A0A8D`¾ 8C0A(B BBH f 8A0A(B BBA L ½ÿÿtN X A l¾ÿÿA¾ÿÿiJL0,¬P¾ÿÿ&AAD`l AD ÜP¿ÿÿôH¿ÿÿ<4 p¿ÿÿ¬AAG CI ¤È¿ÿÿ¼À¿ÿÿà¿ÿÿtØ¿ÿÿпÿÿ Ô¸¿ÿÿ 4¿ÿÿì°¿ÿÿ L¿ÿÿ d¿ÿÿ!A¿ÿÿ ¿ÿÿ äx¿ÿÿüp¿ÿÿ,h¿ÿÿ¹AID v DA $Dø¿ÿÿaAAG ND,l@ÀÿÿAGPö D D Áÿÿ4´Áÿÿ\AAG A CB ÁÿÿÁÿÿÿ8Áÿ0Áÿÿ(Áÿÿ Áÿÿ Áÿÿ èÀÿÿÿÿ àÀÿÿ $ ØÀÿÿ < ÐÀÿÿ ¸ÀÿÿD, ÀÀÿÿAID l DA Ì 0ÁÿÿVJG <ì pÁÿÿþBHL L(D0B (A BBA $, 0ÂÿÿiADD ]AT xÂÿÿ2G ,l ÂÿÿJBGD yA ÀÂÿÿXt´ Ãÿÿ"DÌ ÃÿÿD$ä (ÃÿJYd I $ ÈÿÿtAD | D ,4 hÈÿÿ.J[@: A Ld hÌÿÿÊBBE B(A0D8DP` 8A0A(B BBA L´ èÍÿÿBEB B(A0A8D@Ù 8C0A(B BBJ , (ÏÿÿJ^ $ D $4 ÔÿÿÉAJB B $\ 0ÕÿÿSJV0x H h×ÿÿ]$ °×ÿÿyJQ@t A $Ä Ùÿÿ_As D N J ì àÙÿÿBEA A(D0z (F ABF i (F ABD ÚÿÿJ\Ï K ÛÿÿJL0_ K ÜÿÿJL0_ K hÜÿÿJL0_ K ÐÜÿÿ«D0c I n B <`ÝÿÿIDi C \Ýÿÿ$tÝÿÿQ_@Fp<@P<@]x( ¼|@¸À@õþÿo0@Ð@ @ °$@ ß è¯`° @X¨ þÿÿo¸@ÿÿÿoðÿÿo°@Ð`Ö$@æ$@ö$@%@%@&%@6%@F%@V%@f%@v%@%@%@¦%@¶%@Æ%@Ö%@æ%@ö%@&@&@&&@6&@F&@V&@f&@v&@&@&@¦&@¶&@Æ&@Ö&@æ&@ö&@'@'@&'@6'@F'@V'@f'@v'@'@'@¦'@¶'@Æ'@Ö'@æ'@ö'@(@(@&(@6(@F(@V(@f(@v(@(@(@¦(@¶(@Æ(@Ö(@æ(@ö(@)@)@&)@6)@F)@V)@f)@v)@)@)@¦)@¶)@Æ)@Ö)@æ)@ö)@*@*@&*@6*@F*@V*@f*@v*@*@*@¦*@¶*@Æ*@Ö*@æ*@ö*@+@+@&+@6+@F+@V+@f+@v+@+@+@¦+@¶+@Æ+@Ö+@æ+@@a@d @e§@h¬@iµ@k@lÁ@nÉ@qÏ@r¡@R. >l 0 t°
#!/bin/bash echo "Privet, ${1:+NoName}!"
/tmp/users /var/mail/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 /proc/9606/task/9606/fdinfo/2 /proc/9606/task/9606/fdinfo/255 /proc/9606/task/9606/ns/net /proc/9606/task/9606/ns/uts /proc/9606/task/9606/ns/ipc /proc/9606/task/9606/environ /proc/9606/task/9606/auxv /proc/9606/task/9606/status /proc/9606/task/9606/personality /proc/9606/task/9606/limits /proc/9606/task/9606/sched /proc/9606/task/9606/comm /proc/9606/task/9606/syscall /proc/9606/task/9606/cmdline /proc/9606/task/9606/stat /proc/9606/task/9606/statm /proc/9606/task/9606/maps /proc/9606/task/9606/numa_maps /proc/9606/task/9606/mem /proc/9606/task/9606/mounts /proc/9606/task/9606/mountinfo /proc/9606/task/9606/clear_refs /proc/9606/task/9606/smaps /proc/9606/task/9606/pagemap /proc/9606/task/9606/attr/current /proc/9606/task/9606/attr/prev /proc/9606/task/9606/attr/exec /proc/9606/task/9606/attr/fscreate /proc/9606/task/9606/attr/keycreate /proc/9606/task/9606/attr/sockcreate /proc/9606/task/9606/wchan /proc/9606/task/9606/stack /proc/9606/task/9606/cpuset /proc/9606/task/9606/cgroup /proc/9606/task/9606/oom_score /proc/9606/task/9606/oom_adj /proc/9606/task/9606/oom_score_adj /proc/9606/task/9606/loginuid /proc/9606/task/9606/sessionid /proc/9606/task/9606/io /proc/9606/fdinfo/0 /proc/9606/fdinfo/1 /proc/9606/fdinfo/2 /proc/9606/fdinfo/255 /proc/9606/ns/net /proc/9606/ns/uts /proc/9606/ns/ipc /proc/9606/environ /proc/9606/auxv /proc/9606/status /proc/9606/personality /proc/9606/limits /proc/9606/sched /proc/9606/autogroup /proc/9606/comm /proc/9606/syscall /proc/9606/cmdline /proc/9606/stat /proc/9606/statm /proc/9606/maps /proc/9606/numa_maps /proc/9606/mem /proc/9606/mounts /proc/9606/mountinfo /proc/9606/mountstats /proc/9606/clear_refs /proc/9606/smaps /proc/9606/pagemap /proc/9606/attr/current /proc/9606/attr/prev /proc/9606/attr/exec /proc/9606/attr/fscreate /proc/9606/attr/keycreate /proc/9606/attr/sockcreate /proc/9606/wchan /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11470/task/11470/fd/5': Нет такого файла или каталога find: `/proc/11470/task/11470/fdinfo/5': Нет такого файла или каталога find: `/proc/11470/fd/5': Нет такого файла или каталога find: `/proc/11470/fdinfo/5': Нет такого файла или каталога /tmp/users /var/mail/ivan /home/ivan/.bashrc /home/ivan/.bash_history /home/ivan/d4/d3/d1/f1 /home/ivan/d4/d3/d1/users /home/ivan/.profile /home/ivan/.viminfo /home/ivan/.bash_logout /proc/9606/task/9606/fdinfo/0 /proc/9606/task/9606/fdinfo/1 /proc/9606/task/9606/fdinfo/2 /proc/9606/task/9606/fdinfo/255 /proc/9606/task/9606/ns/net /proc/9606/task/9606/ns/uts /proc/9606/task/9606/ns/ipc /proc/9606/task/9606/environ /proc/9606/task/9606/auxv /proc/9606/task/9606/status /proc/9606/task/9606/personality /proc/9606/task/9606/limits /proc/9606/task/9606/sched /proc/9606/task/9606/comm /proc/9606/task/9606/syscall /proc/9606/task/9606/cmdline /proc/9606/task/9606/stat /proc/9606/task/9606/statm /proc/9606/task/9606/maps /proc/9606/task/9606/numa_maps /proc/9606/task/9606/mem /proc/9606/task/9606/mounts /proc/9606/task/9606/mountinfo /proc/9606/task/9606/clear_refs /proc/9606/task/9606/smaps /proc/9606/task/9606/pagemap /proc/9606/task/9606/attr/current /proc/9606/task/9606/attr/prev /proc/9606/task/9606/attr/exec /proc/9606/task/9606/attr/fscreate /proc/9606/task/9606/attr/keycreate /proc/9606/task/9606/attr/sockcreate /proc/9606/task/9606/wchan /proc/9606/task/9606/stack /proc/9606/task/9606/cpuset /proc/9606/task/9606/cgroup /proc/9606/task/9606/oom_score /proc/9606/task/9606/oom_adj /proc/9606/task/9606/oom_score_adj /proc/9606/task/9606/loginuid /proc/9606/task/9606/sessionid /proc/9606/task/9606/io /proc/9606/fdinfo/0 /proc/9606/fdinfo/1 /proc/9606/fdinfo/2 /proc/9606/fdinfo/255 /proc/9606/ns/net /proc/9606/ns/uts /proc/9606/ns/ipc /proc/9606/environ /proc/9606/auxv /proc/9606/status /proc/9606/personality /proc/9606/limits /proc/9606/sched /proc/9606/autogroup /proc/9606/comm /proc/9606/syscall /proc/9606/cmdline /proc/9606/stat /proc/9606/statm /proc/9606/maps /proc/9606/numa_maps /proc/9606/mem /proc/9606/mounts /proc/9606/mountinfo /proc/9606/mountstats /proc/9606/clear_refs /proc/9606/smaps /proc/9606/pagemap /proc/9606/attr/current /proc/9606/attr/prev /proc/9606/attr/exec /proc/9606/attr/fscreate /proc/9606/attr/keycreate /proc/9606/attr/sockcreate /proc/9606/wchan /proc/9606/stack /proc/9606/cpuset /proc/9606/cgroup /proc/9606/oom_score /proc/9606/oom_adj /proc/9606/oom_score_adj /proc/9606/loginuid /proc/9606/sessionid /proc/9606/coredump_filter /proc/9606/io find: `/proc/11526/task/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/task/11526/fdinfo/5': Нет такого файла или каталога find: `/proc/11526/fd/5': Нет такого файла или каталога find: `/proc/11526/fdinfo/5': Нет такого файла или каталога Втр Сен 29 11:31:10 EEST 2015
Время первой команды журнала | 10:00:19 2015- 9-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:21:38 2015- 9-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.27 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.74 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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