[58828de] | 1 | #!/bin/bash |
---|
| 2 | ################################################################ |
---|
| 3 | ##################### SOFTWARE ##################### |
---|
| 4 | ################################################################ |
---|
| 5 | export LANGUAGE=C |
---|
| 6 | export LC_ALL=C |
---|
| 7 | export LANG=C |
---|
| 8 | |
---|
[b74df52] | 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 | |
---|
[58828de] | 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 |
---|
[c175a93] | 35 | apt-get -y --force-yes install openssh-server bittornado trickle iptraf screen schroot grub lighttpd |
---|
[58828de] | 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 |
---|
[b74df52] | 40 | apt-get -y --force-yes install hfsplus hfsprogs hfsutils nilfs-tools reiser4progs ufsutils |
---|
| 41 | |
---|
| 42 | #btrfs-tools |
---|
[58828de] | 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 | |
---|
[c175a93] | 48 | #monitor |
---|
[3687b6b] | 49 | apt-get install bwbar bmon iftop ifstat dstat hdparm sdparm blktool testdisk ssmping mii-diag |
---|
[58828de] | 50 | |
---|
| 51 | ## software postconf |
---|
[7ef8186] | 52 | apt-get -y --force-yes install drbl-chntpw chntpw ethtool lshw gawk subversion |
---|
[58828de] | 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 | |
---|
[c175a93] | 57 | |
---|
| 58 | #compatibilidad og2 |
---|
| 59 | apt-get install python-openssl python |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|
[58828de] | 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 | |
---|