summaryrefslogtreecommitdiffstats
path: root/client/boot-tools/clientstructure/root
diff options
context:
space:
mode:
Diffstat (limited to 'client/boot-tools/clientstructure/root')
-rwxr-xr-xclient/boot-tools/clientstructure/root/CompileSoftware.sh30
-rwxr-xr-xclient/boot-tools/clientstructure/root/ConfFS.sh24
-rwxr-xr-xclient/boot-tools/clientstructure/root/GenerateInitrd.generic.sh16
-rwxr-xr-xclient/boot-tools/clientstructure/root/InstallSoftware.sh62
-rwxr-xr-xclient/boot-tools/clientstructure/root/ReconfigureLocales.sh4
-rwxr-xr-xclient/boot-tools/clientstructure/root/generateSshKeysClient.sh23
-rwxr-xr-xclient/boot-tools/clientstructure/root/importSshKeys.sh17
-rwxr-xr-xclient/boot-tools/clientstructure/root/qemu.sh9
8 files changed, 0 insertions, 185 deletions
diff --git a/client/boot-tools/clientstructure/root/CompileSoftware.sh b/client/boot-tools/clientstructure/root/CompileSoftware.sh
deleted file mode 100755
index 1a9b854a..00000000
--- a/client/boot-tools/clientstructure/root/CompileSoftware.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-################################################################
-##################### SOFTWARE #####################
-################################################################
-export LANGUAGE=C
-export LC_ALL=C
-export LANG=C
-
-#dpkg-divert --local --rename --add /sbin/initctl
-#ln -s /bin/true /sbin/initctl
-
-apt-get -y update
-# software to compile code
-apt-get -y --force-yes install build-essential libattr* attr make m4 gettext libmhash-dev gdebi-core gawk
-
-source /opt/opengnsys/lib/engine/bin/ToolsGNU.c
-
-ctorrent install
-udpcast install
-#ntfs-3g install
-ms-sys install
-
-wget -O partclone_0.2.16_i386.deb http://downloads.sourceforge.net/project/partclone/stable/0.2.16/partclone_0.2.16_i386.deb?use_mirror=ovh
-gdebi -n partclone_0.2.16_i386.deb
-
- cd /tmp
- wget http://damien.guibouret.free.fr/savepart.zip
- unzip savepart.zip -d /sbin/
-
-
diff --git a/client/boot-tools/clientstructure/root/ConfFS.sh b/client/boot-tools/clientstructure/root/ConfFS.sh
deleted file mode 100755
index 3e0f4b5c..00000000
--- a/client/boot-tools/clientstructure/root/ConfFS.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-dpkg-divert --local --rename --add /sbin/initctl
-ln -s /bin/true /sbin/initctl
-#mv /etc/fstab /etc/fstab.original 2>/dev/null
-#mv /etc/mtab /etc/mtab.original 2>/dev/null
-
-#TODO: fichero etc/hosts
-#TODO: fichero etc/resolv.conf
-echo "ogClient" > /etc/hostname
-
-#export PASSROOT=og
-#dpkg-reconfigure passwd
-#echo "root:$PASSROOT" | chpasswd
-
-
-#for i in pts/0 pts/1 pts/2 pts/3 do
-#
-#
-#done
-#TODO: introducir mas consoluas para el acceso como root.
-echo "pts/0" >> /etc/securetty
-echo "pts/1" >> /etc/securetty
-echo "pts/2" >> /etc/securetty
-echo "pts/3" >> /etc/securetty \ No newline at end of file
diff --git a/client/boot-tools/clientstructure/root/GenerateInitrd.generic.sh b/client/boot-tools/clientstructure/root/GenerateInitrd.generic.sh
deleted file mode 100755
index eaeb475b..00000000
--- a/client/boot-tools/clientstructure/root/GenerateInitrd.generic.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-export OSDISTRIB=$(lsb_release -i | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null
-#OSCODENAME=$(lsb_release -c | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null
-export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}')
-export OSRELEASE=$(uname -a | awk '{print $3}')
-uname -a | grep x86_64 > /dev/null && export OSARCH=amd64 || export OSARCH=i386
-export OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
-
-
-
-cd /usr/lib/initramfs-tools/bin/
-rm *
-cp /bin/busybox ./
-cd /tmp/
-mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
-cp /boot/vmlinuz-$OSRELEASE /tmp \ No newline at end of file
diff --git a/client/boot-tools/clientstructure/root/InstallSoftware.sh b/client/boot-tools/clientstructure/root/InstallSoftware.sh
deleted file mode 100755
index da8d8d06..00000000
--- a/client/boot-tools/clientstructure/root/InstallSoftware.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/bash
-################################################################
-##################### SOFTWARE #####################
-################################################################
-export LANGUAGE=C
-export LC_ALL=C
-export LANG=C
-
-
-dpkg-divert --local --rename --add /sbin/initctl
-ln -s /bin/true /sbin/initctl
-
-apt-get clean
-apt-get -y update
-
-
-# software system
-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
-
-apt-get -y --force-yes install console-data locales
-
-# sofware networking
-apt-get -y --force-yes install netpipes nfs-common sshfs smbfs smbclient davfs2 unionfs-fuse open-iscsi nmap tcpdump arping dnsutils
-
-apt-get clean
-# software services
-apt-get -y --force-yes install openssh-server bittornado trickle iptraf screen schroot grub
-
-# software disk and filesystem
-apt-get -y --force-yes install drbl-ntfsprogs ntfsprogs parted ntfs-3g dosfstools
-apt-get -y --force-yes install dmraid dmsetup lvm2 e2fsprogs jfsutils reiserfsprogs xfsprogs unionfs-fuse mhddfs squashfs-tools
-apt-get -y --force-yes install btrfs-tools hfsplus hfsprogs hfsutils nilfs-tools reiser4progs ufsutils
-
-# software cloning
-apt-get -y --force-yes install drbl-partimage fsarchiver pv kexec-tools
-apt-get -y --force-yes install mbuffer
-
-
-apt-get clean
-## software postconf
-apt-get -y --force-yes install drbl-chntpw chntpw ethtool lshw gawk
-
-# software compressor
-apt-get -y --force-yes install lzma zip unzip gzip lzop drbl-lzop pigz pbzip2 lbzip2 rzip p7zip-full unzip
-
-apt-get -y --force-yes remove busybox
-apt-get -y --force-yes install busybox-static bash-static
-apt-get clean
-#apt-get -y --force-yes xorg-dev xorg lxde roxterm
-#
-####################################################################
-###################### Reconfigurando paquetes ######################
-###################################################################
-
-
-#dpkg-reconfigure console-data
-#dpkg-reconfigure console-setup
-#dpkg-reconfigure locales
-apt-get clean
-##TODO################# Borrar algunos binarios del mkinitramfs
-
-
diff --git a/client/boot-tools/clientstructure/root/ReconfigureLocales.sh b/client/boot-tools/clientstructure/root/ReconfigureLocales.sh
deleted file mode 100755
index 5480d141..00000000
--- a/client/boot-tools/clientstructure/root/ReconfigureLocales.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-dpkg-reconfigure console-data
-dpkg-reconfigure console-setup
-dpkg-reconfigure locales \ No newline at end of file
diff --git a/client/boot-tools/clientstructure/root/generateSshKeysClient.sh b/client/boot-tools/clientstructure/root/generateSshKeysClient.sh
deleted file mode 100755
index 9857ad40..00000000
--- a/client/boot-tools/clientstructure/root/generateSshKeysClient.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-echo "comprobando directorio .ssh del root"
-if [ ! -d /root/.ssh ]
-then
- echo "creando directorio .ssh 600"
- mkdir -p /root/.ssh
- chmod 700 /root/.ssh
-fi
-
-
-echo "comprobando el fichero authorized_keys .ssh del root"
-if [ ! -f /root/.ssh/authorized_keys ]
-then
- echo "creando el fichero authorized_keys"
- touch /root/.ssh/authorized_keys
- chmod 600 /root/.ssh/authorized_keys
-fi
-
-ssh-keygen -q -f /root/.ssh/id_rsa -N ""
-cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
-
-## TODO: exportamos la publica a los repos
-cp /root/.ssh/id_rsa.pub /tmp/rsa.ogclient.pub \ No newline at end of file
diff --git a/client/boot-tools/clientstructure/root/importSshKeys.sh b/client/boot-tools/clientstructure/root/importSshKeys.sh
deleted file mode 100755
index 17a797f8..00000000
--- a/client/boot-tools/clientstructure/root/importSshKeys.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-echo "comprobando directorio .ssh del root"
-if [ ! -d /root/.ssh ]
-then
- echo "creando directorio .ssh 600"
- mkdir -p /root/.ssh
- chmod 700 /root/.ssh
-fi
-echo "creando el fichero authorized_keys"
-touch /root/.ssh/authorized_keys
-chmod 600 /root/.ssh/authorized_keys
-
-echo "importando la clave publica del servidor OG"
-cat /tmp/id_rsa.pub
-
-[ -f /tmp/id_rsa.pub ] && cat /tmp/id_rsa.pub >> /root/.ssh/authorized_keys || echo "no key publica og"
- \ No newline at end of file
diff --git a/client/boot-tools/clientstructure/root/qemu.sh b/client/boot-tools/clientstructure/root/qemu.sh
deleted file mode 100755
index c5a93cd9..00000000
--- a/client/boot-tools/clientstructure/root/qemu.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#/bin/bash
-
-mount -o rw,remount /
-mount proc /proc -t proc
-export PATH=$PATH dpkg -i *.deb
-modprobe 8139too
-modprobe 8139cp
-dhclient
-/etc/init.d/ssh restart \ No newline at end of file