| /l3/users/07-09-2009/nt-fbsdadm/fbsd5.net.nt/root :1 :2 :3 :4 |
|
|
#ls -l /tmp/
total 126 drwxrwxrwt 2 root wheel 512 Sep 8 14:12 .ICE-unix -r--r--r-- 1 root wheel 11 Sep 7 05:31 .X0-lock drwxrwxrwt 2 root wheel 512 Sep 10 12:24 .X11-unix drwxrwxrwt 2 root wheel 512 Sep 7 05:31 .XIM-unix -rw------- 1 root wheel 167 Sep 7 10:15 .Xauth7iu3l8 -rw------- 1 root wheel 49 Jul 24 16:10 .Xauth7nmoqG -rw------- 1 user wheel 49 Jul 24 16:03 .Xauth8A9uGq -rw------- 1 root wheel 49 Jul 24 15:54 .XauthCuihBu -rw------- 1 user wheel 49 Jul 24 16:12 .XauthEWHAR4 ... drwxr-xr-x 2 root wheel 512 Mar 28 2008 lilalo-install-temp-1212 drwxr-xr-x 2 root wheel 512 Mar 28 2008 lilalo-install-temp-1241 drwxr-xr-x 2 root wheel 512 Sep 10 15:00 noexit -rw-r--r-- 1 root wheel 10058 Sep 11 15:08 pstree-2.32.tar.gz -rw-r--r-- 1 user wheel 1308 Sep 10 14:50 pw -rw-r--r-- 1 user wheel 799 Sep 10 12:17 pw-useradd_help -rw-r--r-- 1 user wheel 34 Sep 9 14:23 test -rw-r--r-- 1 user wheel 28 Sep 9 14:43 test2 -rw-r--r-- 1 root wheel 0 Sep 10 15:26 vova11111 -rw-r--r-- 1 user wheel 0 Sep 8 15:14 ~bad~name~ |
|
#ls -l /tmp/pstree-2.32.tar.gz
-rw-r--r-- 1 root wheel 10058 Sep 11 15:08 /tmp/pstree-2.32.tar.gz |
|
#lynx http://freshmeat.net
|
|
#cd
|
|
#lynx http://freshmeat.net
|
|
#ls -l
total 1860 -rw------- 1 root wheel 467 Sep 7 10:16 .ICEauthority drwx------ 2 root wheel 512 Jul 24 16:12 .Trash -rw------- 1 root wheel 0 Sep 7 10:15 .Xauthority -rw------- 1 root wheel 11146 Sep 11 14:32 .bash_history -rw-r--r-- 1 root wheel 19 Jul 24 19:40 .bash_profile -rw-r--r-- 1 root wheel 38 Jul 24 19:40 .bashrc drwx------ 3 root wheel 512 Jul 24 16:10 .config -rw-r--r-- 2 root wheel 801 Jan 16 2008 .cshrc drwx------ 4 root wheel 512 Sep 7 10:15 .gconf ... drwxr-xr-x 2 root wheel 512 Jul 24 16:11 Desktop -rw-r--r-- 1 root wheel 15189 Sep 11 15:11 cowsay-3.03.tar.gz -rw-r--r-- 1 root wheel 0 Sep 10 15:02 files drwxr-xr-x 2 root wheel 512 Sep 10 15:30 filesvova -rw-r--r-- 1 root wheel 5160 Mar 28 2008 install -rw-r--r-- 1 root wheel 1714374 Sep 7 11:35 lynx-2.8.7d7.tbz -rw------- 1 root wheel 54239 Jul 24 19:01 mbox -rw-r--r-- 1 root wheel 0 Jul 24 16:12 nautilus-debug-log.txt -rwxr-xr-x 1 root wheel 727 Sep 7 05:30 prepare-freebsd.sh drwxr-xr-x 2 root wheel 512 Sep 10 15:05 tmp |
|
#ls -l cowsay-3.03.tar.gz
-rw-r--r-- 1 root wheel 15189 Sep 11 15:11 cowsay-3.03.tar.gz |
|
#date
Fri Sep 11 15:12:12 EEST 2009 |
|
#tar xvzf cowsay-3.03.tar.gz
x cowsay-3.03/ChangeLog x cowsay-3.03/INSTALL x cowsay-3.03/LICENSE x cowsay-3.03/MANIFEST x cowsay-3.03/README x cowsay-3.03/Wrap.pm.diff x cowsay-3.03/install.sh x cowsay-3.03/pgp_public_key.txt x cowsay-3.03/cowsay x cowsay-3.03/cowsay.1 ... x cowsay-3.03/cows/surgery.cow x cowsay-3.03/cows/telebears.cow x cowsay-3.03/cows/three-eyes.cow x cowsay-3.03/cows/turkey.cow x cowsay-3.03/cows/turtle.cow x cowsay-3.03/cows/tux.cow x cowsay-3.03/cows/udder.cow x cowsay-3.03/cows/vader-koala.cow x cowsay-3.03/cows/www.cow x cowsay-3.03/cows/vader.cow |
|
#cd cowsay-3.03
|
|
#ls
ChangeLog MANIFEST cows install.sh INSTALL README cowsay pgp_public_key.txt LICENSE Wrap.pm.diff cowsay.1 |
|
#vim README
|
|
# 3 ===========
|
|
# 3 =================
55
56 echo Now I need an installation prefix. I will use /usr/local unless
57 printf "you give me a better idea here: "
58 if [ -n "$backdoor" ]; then
59 prefix=$backdoor
60 printf "%s (specified on command line)\n" $prefix
61 else
62 read prefix
63 fi
64
65 PREFIX=${prefix:-/usr/local}
66
67 echo Okay, time to install this puppy.
68
69 echo s,%BANGPERL%,!$usethisperl,\; > install.pl
70 echo s,%PREFIX%,$PREFIX,\; >> install.pl
71 set -x
72 mkdir -p $PREFIX/bin || (mkdir $PREFIX; mkdir $PREFIX/bin)
73 $usethisperl -p install.pl cowsay > $PREFIX/bin/cowsay
|
|
#ls
ChangeLog MANIFEST cows install.sh INSTALL README cowsay pgp_public_key.txt LICENSE Wrap.pm.diff cowsay.1 |
|
#chmod +x ./install.sh
|
|
#./install.sh
=================== cowsay Installation =================== Searching for useful perl executables... Found perl in /usr/bin/perl Found perl in /usr/bin/perl5 Found perl in /usr/local/bin/perl Found perl in /usr/local/bin/perl5 Found perl in /usr/local/bin/perl5.8.8 Found perl in /usr/X11R6/bin/perl ... x cows/turkey.cow x cows/turtle.cow x cows/tux.cow x cows/udder.cow x cows/vader-koala.cow x cows/www.cow x cows/vader.cow + set +x Okay, let us see if the install actually worked. Installation complete! Enjoy the cows! |
|
#co
co colldef comcontrol compgen composeglyphs conscontrol cowsay col colrm comm compile_et compress continue cowthink colcrt column command complete config corrupt_mpeg2 |
|
#cows
cows cowsay |
|
#cowsay
test
______
< test >
------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
|
|
#pstree
bash: pstree: command not found |
|
#lynx http://freshmeat.net
|
|
#cd
|
|
#ls -l pstree-2.32.tar.gz
-rw-r--r-- 1 root wheel 10058 Sep 11 15:14 pstree-2.32.tar.gz |
|
#tar xvzf pstree-2.32.tar.gz
x README x pstree.c |
|
#vim README
|
|
|