~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
[No Name] 0,0-1 Весь
1 #!/bin/sh
2
3 hostname=`hostname`
4 uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
5
6 ###############################################################################
7 #
8 # Set this variables before installation:
9
10 lilalo_user=13-10-2014
11 lab=NT-LNet
12 install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
13 lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
14
15 #
16 ###############################################################################
17
18
18
18
19 lilalo_rc=.l3rc
21 url_lilalo="http://xgu.ru/lilalo"
22 url_l3bashrc="${url_lilalo}"/l3bashrc
23 url_l3agent="${url_lilalo}"/l3-agent
24 url_l3config_pm="${url_lilalo}"/l3config.pm
25 url_l3config="${url_lilalo}"/l3-config
26 url_l3prompt="${url_lilalo}"/l3prompt
27 url_perl_modules=${url_lilalo}/
28 perl_modules="Term-VT102 Text-Iconv"
29
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31
32 wget=wget
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
install 1,1 Наверху
:set mouse=a
19 lilalo_rc=.l3rc
20 _home=.lilalo
~ сь
~ сь
~ сь
~ сь
~ сь
[No Name] 0,0-1 Весь
1 #!/bin/sh
2
3 hostname=`hostname`
4 uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
5
6 ###############################################################################
7 #
8 # Set this variables before installation:
10
10 lilalo_user=13-10-2014
11 lab=NT-LNet
12 install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
13 lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
14
15 #
16 ###############################################################################
17
19
19 lilalo_rc=.l3rc
20 lilalo_home=.lilalo
21 lilalo="http://xgu.ru/lilalo"
22 _l3bashrc="${url_lilalo}"/l3bashrc
23 url_l3agent="${url_lilalo}"/l3-agent
24 url_l3config_pm="${url_lilalo}"/l3config.pm
25 url_l3config="${url_lilalo}"/l3-config
26 url_l3prompt="${url_lilalo}"/l3prompt
27 url_perl_modules=${url_lilalo}/
28 perl_modules="Term-VT102 Text-Iconv"
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31
32 wget=wget
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
34
the first column). A section boundary is also a paragraph boundary.
boundary.
Also note that this does not include a '{' or '}' in the first column. When
paragraph boundary |posix|.
*section*
A section begins after a form-feed (<C-L>) in the first column and at each of
a set of section macros, specified by the pairs of characters in the
start at the nroff macros ".SH", ".NH", ".H", ".HU", ".nh" and ".sh".
useful to find the start or end of a function in a C program. Note that the
first character of the command determines the search direction and the
If your '{' or '}' are not in the first column, and you would like to use "[["
:map [[ ?{<CR>w99[{
:map ][ /}<CR>b99]}
:map [] k$][%?}<CR>
[type these literally, see |<>|]
==============================================================================
and "]]" anyway, try these mappings: >.', '!' or '?' followed by either theter 474,57 36%
:map ]] j0[[%/{<CR>ype of brace found.or '}' in the first column. This iso
stall_this="perl make libmodule-build-per *:e* *:edit*cc"
:e[dit] [++opt] [+cmd] Edit the current file. This is useful to re-edit the
current file, when it has been changed outside of Vim.
Also see |++opt| and |+cmd|. been made to the current
*:edit!*
be written.
:e[dit]! [++opt] [+cmd]
the current buffer. This is useful if you want to
Edit the current file always. Discard any changes to
redC='\033[0;31m' start all over again.
*:edit_f*
{Vi: no ++opt}
:e[dit] [++opt] [+cmd] {file}
40 apt_get_install_deps()
Edit {file}.
41 {
This fails when changes have been made to the current
42 return 0
buffer, unless 'hidden' is set or 'autowriteall' is
43 if which apt-get >& /dev/null
set and the file can be written.
44 then
Also see |++opt| and |+cmd|.
45 apt-get install -y $apt_get_install_this
46 else
47 echo "Please install this dependencies manually:"
48 echo $apt_get_install_this
49 echo "Have you installed this already (y/n)?"
50 echo y | read answer
51 if echo $answer | grep -q ^[yY]
52 then
53 true
54 else
55 echo Please install the dependencies and rerun the script
56 exit 1
57 fi
58 fi
59 }
"editing.txt" [только для чтения] 1646L, 69026C
1 #!/bin/sh
~
3 hostname=`hostname`
4 uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
5
6 ###############################################################################
7 #
8 # Set this variables before installation:
9
10 lilalo_user=13-10-2014
11 lab=NT-LNet
12 install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
13 lilalo_context="/users/${lilalo_user}/${lab}/${hostname}"
14
15 #
16 ###############################################################################
17
18
19 lilalo_rc=.l3rc
20 lilalo_home=.lilalo
21 url_lilalo="http://xgu.ru/lilalo"
22 url_l3bashrc="${url_lilalo}"/l3bashrc
23 url_l3agent="${url_lilalo}"/l3-agent
24 url_l3config_pm="${url_lilalo}"/l3config.pm
25 url_l3config="${url_lilalo}"/l3-config
26 url_l3prompt="${url_lilalo}"/l3prompt
27 url_perl_modules=${url_lilalo}/
28 perl_modules="Term-VT102 Text-Iconv"
29
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31 ###############################################################################
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
8
35 normC='\033[0;39m'
10 lilalo_user=13-10-2
37 redC='\033[0;31m'm'
12 install_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
20 lilalo_home=.lilalo
13
15 #rl_lilalo="http://xgu.ru/lilalo"
14
16 ####
18
19 lilalo_rc=.l3rcu
20 lilalo_home=.lilalo
24 url_l3config_pm="${url_lilalo}"/l
22 url_l3bashrc="${url_lilalo}"/l3bashrc
25 url_l3config="${url_lilalo}"/l3-conf
24 url_l3config_pm="${url_lilalo}"/l3config.pm
26 url_l3prompt="${url_lilalo}"/l3prompt
26 url_l3prompt="${url_lilalo}"/l3promptg
27 url_perl_modules=${url_lilalo}/
27 url_perl_modules=${url_lilalo}/
28 perl_modules
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
29
32 wget=wget
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
:q!
install 9,0-1 2%
32 wget=wget
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
34
35 normC='\033[0;39m'
36 whiteC='\033[1;37m'
37 redC='\033[0;31m'
38 greenC='\033[0;32m'
39
40 apt_get_install_deps()
41 {
42 return 0
43 if which apt-get >& /dev/null
44 then
45 apt-get install -y $apt_get_install_this
46 else
47 echo "Please install this dependencies manually:"
48 echo $apt_get_install_this
49 echo "Have you installed this already (y/n)?"
50 echo y | read answer
51 if echo $answer | grep -q ^[yY]
52 then
53 true
54 else
55 echo Please install the dependencies and rerun the script
56 exit 1
57 fi
58 fi
59 }
60
38 greenC='\033[0;32m'
39
40 apt_get_install_deps()
41 {
43 if which apt-get >& /dev/null
42 return 0
44 then
47 echo "Please install this dependencies manually:"
49 echo "Have you installed this already (y/n)?"
51 if echo $answer | grep -q ^[yY]
53 true
54 else
55 echo Please install the dependencies and rerun the script
57 fi exit 1