#!/bin/sh
hostname=`hostname`
1 #!/bin/shrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
2
3 hostname=`hostname`########################################################
4 uname -a | egrep -qi '(freebsd|darwin)' || hostname=`hostname -f`
5 t this variables before installation:
6 ###############################################################################
7 #o_user=13-10-2014
8 # Set this variables before installation:
9 all_l3bashrc_for_this_users=${users:-"root user"} # users who will use l3agent and l3script
10 lilalo_user=13-10-2014ilalo_user}/${lab}/${hostname}"
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 lo_home=.lilalo
18 lilalo="http://xgu.ru/lilalo"
19 lilalo_rc=.l3rc_lilalo}"/l3bashrc
20 lilalo_home=.lilalolo}"/l3-agent
21 url_lilalo="http://xgu.ru/lilalo"fig.pm
22 url_l3bashrc="${url_lilalo}"/l3bashrc
23 url_l3agent="${url_lilalo}"/l3-agentall_this
24 url_l3config_pm="${url_lilalo}"/l3config.pmmanually:"
echo $apt_get_install_this
25 url_l3config="${url_lilalo}"/l3-configady (y/n)?"
echo y | read answer
26 url_l3prompt="${url_lilalo}"/l3prompt
then
27 url_perl_modules=${url_lilalo}/module-build-perl libc6-dev gcc"
else
28 perl_modules="Term-VT102 Text-Iconv"ndencies and rerun the script
exit 1
29 =wg fi
30 apt_get_install_this="perl make libmodule-build-perl libc6-dev gcc"
31 number
32 wget=wget;39m'
33 uname -a | egrep -qi '(bsd|darwin)' && wget=fetch
34 ='\033[0;31m'
35 normC='\033[0;39m'
36 whiteC='\033[1;37m'
37 redC='\033[0;31m')
38 greenC='\033[0;32m'
39 return 0
40 apt_get_install_deps()ev/null
41 {hen
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
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
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
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
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
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
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 }