Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
projects:livenet:server [2018/03/13 00:10] – nicola | projects:livenet:server [2018/03/13 00:23] – [BUILD IMAGE CLIENT] nicola | ||
---|---|---|---|
Line 132: | Line 132: | ||
chmod +x ${R}/ | chmod +x ${R}/ | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | DISTR=bionic | ||
+ | |||
+ | cat > / | ||
+ | ############################################################# | ||
+ | ################### | ||
+ | ############################################################# | ||
+ | ###### Ubuntu Main Repos | ||
+ | deb http:// | ||
+ | ###### Ubuntu Update Repos | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | deb http:// | ||
+ | ###### Ubuntu Partner Repo | ||
+ | deb http:// | ||
+ | QWE | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | apt update apt -y upgrade | ||
+ | apt -y install initramfs-tools | ||
+ | </ | ||
+ | |||
+ | ==== install livenet client package ==== | ||
+ | < | ||
+ | git clone https:// | ||
+ | mv .git / | ||
+ | git status | ||
+ | find / -maxdepth 1 > .gitignore | ||
+ | |||
+ | </ | ||
+ | inside git directory | ||
+ | < | ||
+ | rsync -avb usr/ /usr/ | ||
+ | apt-get -y install linux-generic | ||
+ | </ | ||
+ | |||
+ | ==== etc/ | ||
+ | < | ||
+ | #!/bin/sh -e | ||
+ | # initramfs hook for livenet | ||
+ | #set -x | ||
+ | PREREQ="" | ||
+ | |||
+ | # Output pre-requisites | ||
+ | prereqs() | ||
+ | { | ||
+ | echo " | ||
+ | } | ||
+ | |||
+ | case " | ||
+ | prereqs) | ||
+ | | ||
+ | exit 0 | ||
+ | ;; | ||
+ | esac | ||
+ | |||
+ | . / | ||
+ | |||
+ | rm ${DESTDIR}/ | ||
+ | copy_exec /bin/cpio /bin | ||
+ | |||
+ | mkdir -p ${DESTDIR}/ | ||
+ | cp / | ||
+ | [ -f / | ||
+ | cp / | ||
+ | |||
+ | manual_add_modules aufs | ||
+ | manual_add_modules overlayfs | ||
+ | auto_add_modules net | ||
+ | auto_add_modules nfsv4 | ||
+ | |||
+ | # pulizia di firmware non necessario e pesante | ||
+ | set +e | ||
+ | rm -f ${DESTDIR}/ | ||
+ | set -e | ||
+ | |||
+ | ### qui sotto andrebbe commentato in produzione ### | ||
+ | |||
+ | # tastiera italiana in initram | ||
+ | # attivata da do_debug_shell (loadkeys / | ||
+ | #cp -au / | ||
+ | |||
+ | # nfs4 | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #cp -au / | ||
+ | |||
+ | #cat > ${DESTDIR}/ | ||
+ | # | ||
+ | #EOF | ||
+ | #cat > ${DESTDIR}/ | ||
+ | # | ||
+ | #EOF | ||
+ | |||
+ | # debug purpose ################ | ||
+ | # ricordati di mettere FRAMEBUFFER=n in / | ||
+ | #copy_exec / | ||
+ | #copy_exec /sbin/lsmod /bin | ||
+ | #copy_exec / | ||
+ | ################################# | ||
+ | |||
+ | # wireless ##################### | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec / | ||
+ | #copy_exec /sbin/iwspy | ||
+ | #copy_exec / | ||
+ | #cp -au / | ||
+ | ################################# | ||
+ | </ | ||
+ | |||
===== DHCP ===== | ===== DHCP ===== | ||
==== Abilitare dhcpd su specifica scheda ==== | ==== Abilitare dhcpd su specifica scheda ==== |