1 | #!/bin/bash |
---|
2 | ################################################################ |
---|
3 | ##################### SOFTWARE ##################### |
---|
4 | ################################################################ |
---|
5 | export LANGUAGE=C |
---|
6 | export LC_ALL=C |
---|
7 | export LANG=C |
---|
8 | |
---|
9 | export OSDISTRIB=$(lsb_release -i | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null |
---|
10 | #OSCODENAME=$(lsb_release -c | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null |
---|
11 | export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}') |
---|
12 | export OSRELEASE=$(uname -a | awk '{print $3}') |
---|
13 | uname -a | grep x86_64 > /dev/null && export OSARCH=amd64 || export OSARCH=i386 |
---|
14 | export OSHTTP="http://es.archive.ubuntu.com/ubuntu/" |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | dpkg-divert --local --rename --add /sbin/initctl |
---|
19 | ln -s /bin/true /sbin/initctl |
---|
20 | |
---|
21 | apt-get clean |
---|
22 | apt-get -y update |
---|
23 | |
---|
24 | |
---|
25 | # software system |
---|
26 | apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} linux-image-$RELEASE wget dialog man-db htop fbset gdebi-core busybox-static |
---|
27 | |
---|
28 | apt-get -y --force-yes install console-data locales |
---|
29 | |
---|
30 | # sofware networking |
---|
31 | apt-get -y --force-yes install netpipes nfs-common sshfs smbfs smbclient davfs2 unionfs-fuse open-iscsi nmap tcpdump arping dnsutils |
---|
32 | |
---|
33 | apt-get clean |
---|
34 | # software services |
---|
35 | apt-get -y --force-yes install openssh-server bittornado trickle iptraf screen schroot grub lighttpd |
---|
36 | |
---|
37 | # software disk and filesystem |
---|
38 | apt-get -y --force-yes install drbl-ntfsprogs ntfsprogs parted ntfs-3g dosfstools |
---|
39 | apt-get -y --force-yes install dmraid dmsetup lvm2 e2fsprogs jfsutils reiserfsprogs xfsprogs unionfs-fuse mhddfs squashfs-tools |
---|
40 | apt-get -y --force-yes install hfsplus hfsprogs hfsutils nilfs-tools reiser4progs ufsutils |
---|
41 | |
---|
42 | #btrfs-tools |
---|
43 | |
---|
44 | # software cloning |
---|
45 | apt-get -y --force-yes install drbl-partimage fsarchiver pv kexec-tools |
---|
46 | apt-get -y --force-yes install mbuffer |
---|
47 | |
---|
48 | #monitor |
---|
49 | apt-get install bwbar bmon iftop ifstat dstat hdparm sdparm blktool testdisk ssmping mii-diag |
---|
50 | |
---|
51 | ## software postconf |
---|
52 | apt-get -y --force-yes install drbl-chntpw chntpw ethtool lshw gawk subversion |
---|
53 | |
---|
54 | # software compressor |
---|
55 | apt-get -y --force-yes install lzma zip unzip gzip lzop drbl-lzop pigz pbzip2 lbzip2 rzip p7zip-full unzip |
---|
56 | |
---|
57 | |
---|
58 | #compatibilidad og2 |
---|
59 | apt-get install python-openssl python |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | apt-get -y --force-yes remove busybox |
---|
64 | apt-get -y --force-yes install busybox-static bash-static |
---|
65 | apt-get clean |
---|
66 | #apt-get -y --force-yes xorg-dev xorg lxde roxterm |
---|
67 | # |
---|
68 | #################################################################### |
---|
69 | ###################### Reconfigurando paquetes ###################### |
---|
70 | ################################################################### |
---|
71 | |
---|
72 | |
---|
73 | #dpkg-reconfigure console-data |
---|
74 | #dpkg-reconfigure console-setup |
---|
75 | #dpkg-reconfigure locales |
---|
76 | apt-get clean |
---|
77 | ##TODO################# Borrar algunos binarios del mkinitramfs |
---|
78 | |
---|
79 | |
---|