Skip to content

Instantly share code, notes, and snippets.

@deanet
Created July 12, 2013 06:56
Show Gist options
  • Save deanet/5982456 to your computer and use it in GitHub Desktop.
Save deanet/5982456 to your computer and use it in GitHub Desktop.
log Installation airtime v.2.3.1- autodj mp3 .
deanet@cpstream:~$ uname -a
Linux cpstream 2.6.32-042stab076.5 #1 SMP Mon Mar 18 20:41:34 MSK 2013 x86_64 GNU/Linux
deanet@cpstream:~$
deanet@cpstream:~$ cat /etc/apt/sources.list
#deb http://security.debian.org squeeze/updates main contrib non-free
#deb-src http://ftp.debian.org/debian wheezy main contrib non-free
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
deb http://www.deb-multimedia.org wheezy main non-free
deb http://apt.sourcefabric.org/ wheezy main
#deb http://backports.debian.org/debian-backports squeeze-backports main
#deb http://apt.sourcefabric.org/ squeeze main
deanet@cpstream:~$
deanet@cpstream:~$ cat install-airtime.txt
1 df -h
2 df -h
3 last
4 screen
5 screen -ls
6 uptime
7 last
8 history
9 ls
10 cd UnixBench
11 ls
12 screen
13 cat /proc/cpuinfo
14 screen -r 6509.pts-0.damai
15 screen -r 6509.pts-0.damai
16 screen -r 6509.pts-0.damai
17 traceroute sg.nabawiy.com
18 vim /etc/apt/sources.list <-- 1
19 apt-get update
20 gpg --keyserver pgp.mit.edu --recv-keys 1F41B907
21 gpg --armor --export 1F41B907 | apt-key add -
22 apt-get install airtime -y
23 apt-get install airtime
24 apt-get install air-time -y
25 apt-get install airtime
26 apt-get update
27 apt-get install curl
28 vim /etc/apt/sources.list
29 apt-get update
30 gpg --keyserver pgpkeys.mit.edu --recv-key 010908312D230C5F
31 gpg -a --export 010908312D230C5F | sudo apt-key add -
32 apt-get update
33 gpg --keyserver pgp.mit.edu --recv-keys 1F41B907
34 gpg --armor --export 1F41B907 | apt-key add -
35 apt-get update
36 apt-get install sourcefabric-keyring <-- 2
37 apt-get update <-- 3
38 apt-get install airtime
39 cat /etc/apt/sources.list
40 vim /etc/apt/sources.list
41 vim /etc/apt/sources.list
42 apt-get update
43 apt-get install airtime -y
44 l
45 ls
46 ./Run
47 ls
48 ./loca
49 ls
50 chmod a+x localgen.pl
51 ./localgen.pl <-- 4
52 apt-get remove -y airtime
53 dpkg -l | grep post
54 apt-get remove postgresql
55 apt-get install airtime -y <-- 5
56 dpkg -l | grep post
57 pg_dropcluster --stop 9.1 main
58 pg_dropcluster --stop 9.1 start
59 pg_dropcluster --start 9.1 main
60 pg_dropcluster --start 9.1 main
61 pg_dropcluster --help
62 man pg_dropcluster
63 pg_createcluster --start 9.1 main
64 apt-get remove -y airtime
65 apt-get install airtime -y
66 airtime-check-system <-- 6
67 airtime-check-system
68 ifconfig -a
69 cat /etc/airtime/airtime.conf
70 ifconfig -a
71 vim /etc/hosts
72 dpkg-reconfigure airtime
73 reboot
74 ls
75 airtime-check-system
76 airtime-check-system
77 vim /etc/airtime/airtime.conf
78 cd /etc/airtime/
79 find . -exec grep -iH damai {} \;
80 vim api_client.cfg
81 /etc/init.d/apache2 status
82 vim /etc/apache2/sites-enabled/airtime-vhost
83 airtime-check-system
84 /etc/init.d/airtime-playout status
85 /etc/init.d/airtime-playout restart
86 /etc/init.d/airtime-playout stop
87 /etc/init.d/airtime-liquidsoap stop
88 /etc/init.d/airtime-media-monitor stop
89 ps aux | grep air
90 /etc/init.d/airtime-media-monitor start
91 airtime-
92 airtime-check-system
93 airtime-check-system
94 airtime-check-system
95 netstat -ntlp
96 netstat -ntlp
97 airtime-check-system
98 telnet cpstream.nabawiy.com 80
99 /etc/init.d/airtime-liquidsoap start
100 dpkg | grep liq
101 dpkg -l | grep liq
102 netstat -ntlp
103 airtime-check-system
104 cd /etc/airtime/
105 find . -exec grep -iH damai {} \;
106 find . -name "*" -exec grep -iH damai {} \;
107 cd /usr/share/airtime/
108 find . -name "*" -exec grep -iH damai {} \;
109 airtime-check-system
110 reboot
111 airtime-check-system
112 airtime-check-system
113 /etc/init.d/airtime-playout stop
114 airtime-check-system
115 airtime-check-system
116 /etc/init.d/airtime-playout start
117 /etc/init.d/airtime-liquidsoap stop
118 /etc/init.d/airtime-liquidsoap start
119 cd /etc/apache2/
120 ls
121 cd sites-enabled/
122 ls
123 ls -al
124 cat 000-default
125 ls -al
126 rm 000-default
127 cat airtime-vhost
128 /etc/init.d/apache2 restart
129 /etc/init.d/airtime-liquidsoap stop
130 /etc/init.d/airtime-liquidsoap start
131 /etc/init.d/airtime-playout stop
132 /etc/init.d/airtime-playout start
133 /etc/init.d/airtime-media-monitor stop
134 /etc/init.d/airtime-media-monitor start
135 airtime-check-system
136 airtime-check-system
137 airtime-check-system
138 airtime-check-system
139 airtime-check-system
140 adduser deanet
141 vi /etc/ssh/sshd_config
142 addgroup mimin
143 usermod -a -G mimin deanet
144 /etc/init.d/ssh restart
145 history > /home/deanet/install-airtime.txt
deanet@cpstream:~$ cat install-airtime2.txt
1 sudo /etc/init.d/fail2ban stop
2 su -
3 sudo cp -a /usr/lib/airtime2/pypo/bin/liquidsoap_scripts/ls_lib.liq ./ori_ls_lib.liq
4 cp -a /usr/lib/airtime2/pypo/bin/liquidsoap_scripts/ls_lib.liq ./ori_ls_lib.liq
5 su -
6 ls
7 sudo cp -a /usr/lib/airtime2/pypo/bin/liquidsoap_scripts/ls_lib.liq ./ori_ls_lib.liq
8 sudo cp -a /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq ./ori_ls_lib.liq
9 sudo cp -a ls_lib.liq /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq
10 top
11 sudo airtime-check-system
12 sudo /etc/init.d/airtime-liquidsoap start
13 sudo vim /usr/lib/airtime/pypo/bin/liquidsoap_scripts/generate_liquidsoap_cfg.py
14 sudo /etc/init.d/airtime-liquidsoap stop
15 sudo /etc/init.d/airtime-liquidsoap start
16 dpkg -l | grep aac
17 sudo apt-get install aacplusenc -y
18 sudo /etc/init.d/airtime-liquidsoap stop
19 sudo /etc/init.d/airtime-liquidsoap start
20 dpkg -l | grep aac
21 sudo apt-get install libaacplus-dev:amd64 -y
22 sudo /etc/init.d/airtime-liquidsoap start
23 sudo apt-get install libaacplus-ocaml -y
24 sudo /etc/init.d/airtime-liquidsoap start
25 sudo apt-get install libaacplus-ocaml-dev
26 sudo /etc/init.d/airtime-liquidsoap start
27 sudo airtime-check-system
28 history > install-airtime2.txt
deanet@cpstream:~$
#!/usr/bin/perl -w
#set-debian-locales-utf8.pl
sub exec_ok($$);
use strict;
use warnings;
if (! ( `debconf-show locales` =~ m/locales\/ default_environment_locale: en_US.UTF-8/ ) ) {
system("echo \"locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8, en_US ISO-8859-1\" | debconf-set-selections");
exec_ok($?, 'debconf-set-selections');
system("echo \"locales locales/default_environment_locale select en_US.UTF-8\" | debconf-set-selections");
exec_ok($?, 'debconf-set-selections');
if (-e '/etc/locale.gen') {
unlink('/etc/locale.gen');
}
system("dpkg-reconfigure -f noninteractive locales");
exec_ok($?, 'dpkg-reconfigure');
}
sub exec_ok($$) {
my $exitCode = shift;
my $program = shift;
if ( $exitCode != 0 ) {
die("$program exited with error code: $exitCode\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment