Browse Source

Updated text, some logic, added echo stubs

pull/13/head
Maxim Stewart 1 year ago
parent
commit
b66c6c05ef
  1. BIN
      images/pic1.png
  2. BIN
      images/pic2.png
  3. 27
      src/CONFIG_SCRIPTS.sh
  4. 18
      src/COPY_OVER_TO_CHROOT/CONFIG_SCRIPTS.sh
  5. 66
      src/COPY_OVER_TO_CHROOT/start.sh
  6. 4
      src/step_3_create_boot_structure.sh

BIN
images/pic1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
images/pic2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 53 KiB

27
src/CONFIG_SCRIPTS.sh

@ -53,39 +53,24 @@ function confirm_dialouge() {
function start_menu_mesage() {
echo "NOTE: Remember to check the CONFIG.sh and set the variables!"
echo "\nWhat do you want to run?"
echo "\t1) Do all jobs (Including cleanup before starting.)"
echo "\t2) Do debootstrap run"
echo "\t1) Do All Jobs (Including cleanup before starting.)"
echo "\t2) Debootstrap"
echo "\t3) Chroot"
echo "\t4) Create boot structure"
echo "\t5) Create the ISO"
echo "\t4) Boot Structure"
echo "\t5) ISO"
echo "\t6) Cleanup (Purges everything that was generated.)"
echo "\t0) EXIT"
}
function chroot_big_dump_mesage() {
echo "NOTE: COPY_OVER_TO_CHROOT is removed after exit from chroot env."
echo "Run (after modifying) COPY_OVER_TO_CHROOT/start.sh ..."
echo "\nRun each time you chroot:"
echo "\texport HOME=/root"
echo "\texport LC_ALL=C"
echo "\nRun once in chroot:"
echo "\tapt-get update"
echo "\tapt-get install --yes dbus"
echo "\tdbus-uuidgen > /var/lib/dbus/machine-id"
echo "\tdpkg-divert --local --rename --add /sbin/initctl"
echo "\tapt-get --yes upgrade"
echo "Note: You probably should copy to a notepad the following..."
echo "\nThere is a current (for Karmic, ..., Precise) issue with services running in a chroot:"
echo "\thttps://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430224."
echo "\nA workaround is to link /sbin/initctl to /bin/true:"
echo "\tln -s /bin/true /sbin/initctl"
echo "\nInstall packages needed for Live System (I think 'ubuntu-standard' package is optional.):"
echo "\tapt-get install --yes casper lupin-casper"
echo "\tapt-get install --yes discover laptop-detect os-prober"
echo "\nTo actually install the system you'll need one of the following or something similar..."
echo "\tapt-get install --yes linux-generic"
echo "\tapt-get install --yes ubiquity-frontend-gtk"
echo "\t\tOR"
echo "\tapt-get install --yes ubiquity-frontend-kde"
}

18
src/COPY_OVER_TO_CHROOT/CONFIG_SCRIPTS.sh

@ -47,15 +47,15 @@ function start_menu_mesage() {
echo "NOTE: Remember to check the CONFIG.sh and set the variables!"
echo "\nWhat do you want to run?"
echo "\t1) Update & Upgrade"
echo "\t2) Add PPA Repos"
echo "\t3) Pull PPA Repo Keys"
echo "\t4) Install live ISO Dependencies"
echo "\t5) Install Base System Packages"
echo "\t6) Install Gaming Apps"
echo "\t7) Install Media Apps"
echo "\t8) Install Office Apps"
echo "\t9) Install Debs"
echo "\t10) Transfer Setting"
echo "\t2) Install Core and Live ISO Dependencies"
echo "\t3) Install Base System Packages"
echo "\t4) Install Gaming Apps"
echo "\t5) Install Media Apps"
echo "\t6) Install Office Apps"
echo "\t7) Install Debs"
echo "\t8) Transfer Setting"
echo "\t9) Add PPA Repos"
echo "\t10) Add PPA Repo Keys"
echo "\t11) Cleanup (Should run before exiting chroot.)"
echo "\t0) EXIT"
}

66
src/COPY_OVER_TO_CHROOT/start.sh

@ -21,15 +21,15 @@ function main() {
done
case $ANSR in
"1" ) update_and_upgrade;;
"2" ) ./GET_PPA_REPOSITORIES.sh;;
"3" ) ./GET_PPA_GPG_KEYS.sh;;
"4" ) get_live_iso_dependencies;;
"5" ) base;;
"6" ) gaming;;
"7" ) media;;
"8" ) office;;
"9" ) debs;;
"10" ) transfer_settings;;
"2" ) install_live_iso_dependencies;;
"3" ) install_base;;
"4" ) install_gaming;;
"5" ) install_media;;
"6" ) install_office;;
"7" ) install_debs;;
"8" ) transfer_settings;;
"9" ) ./GET_PPA_REPOSITORIES.sh;;
"10" ) ./GET_PPA_GPG_KEYS.sh;;
"11" ) ./CLEANUP.sh;;
"0" ) exit;;
* ) echo "Don't know how you got here but that's a bad sign...";;
@ -45,27 +45,27 @@ function update_and_upgrade() {
}
function get_live_iso_dependencies() {
apt-get install --no-install-recommends --no-install-suggests -y \
casper lupin-casper
apt-get install --no-install-recommends --no-install-suggests -y \
discover laptop-detect os-prober
function install_live_iso_dependencies() {
# Adds ~30MB of stuff
apt-get install -y casper lupin-casper
# Adds ~25MB of stuff
apt-get install -y discover laptop-detect os-prober
# Adds ~55MB of stuff
# In keeping with ubuntu-mini-remix structure I've added this here.
# Might be a bad idea. (Actually really is a bad idea... this should be manually called through a menu op.)
# This breaks from keeping things generic enough to be used in debian. (Maybe? Could just fail an install.)
# Surprisingly doesn't add a whole lot. ~40MB of stuff...meh
apt-get install --no-install-recommends --no-install-suggests -y \
# Might be a bad idea. (Actually really is a bad idea... as this should be manually called.)
# This breaks from keeping things generic for it and debian. (Maybe? Could just fail an install.)
apt-get install -y \
ubuntu-minimal ubuntu-standard
# The generic kernel can baloon a system with just the above and ssh to 450+MB.
# Yet, we need A kernel in order to even boot into. I need to look into a kind
# of menu for the user where they could chose one from the list. But, for right
# now, we'll ignore this. User, try using the most recent kernel that is stable instead.
# apt-get install --no-install-recommends --no-install-suggests -y \
# linux-generic
# The generic kernel can baloon a system with just the above
# from ~130MB to 485+MB. (With good compression of squashfs)
# Yet, we need A kernel in order to even boot stuff.
# I need to look into a kind of menu for the user where they could chose one.
# For right now, we'll use this...
apt-get install -y linux-generic
echo "Do you want to install?"
echo "Do you want to install one of the OS installers?"
echo "\t1) ubiquity-frontend-gtk"
echo "\t2) ubiquity-frontend-kde"
echo "\t0) nethier..."
@ -86,7 +86,8 @@ function get_live_iso_dependencies() {
# -------------------------------Bellow Installs the main system------------------------ #
######################## Main Desktop ########################
function base() {
function install_base() {
echo "Install base stuff stub..."
# Pushe to a meta-package deb after selecting what if anything you want to keep...
# apt-get install -y xserver-xorg xorg xinit slim synaptic aptitude apt-xapian-index \
# gufw wicd-curses pulseaudio pavucontrol file-roller p7zip-rar arj rar unrar-free \
@ -94,7 +95,7 @@ function base() {
# gparted gdebi sox udisks2 iftop htop tree hardinfo libsox-fmt-all onboard mc \
# oracle-java8-installer apt-transport-https software-properties-common -y
apt-get autoremove --purge -y && apt-get autoclean
# apt-get autoremove --purge -y && apt-get autoclean
#### Change bellow mate-core to other if one wants different window managers
#### Above is mostly common base system stuff
@ -109,20 +110,23 @@ function base() {
}
############ Gaming ############
function gaming() {
function install_gaming() {
echo "Install gaming stuff stub..."
# apt-get install --no-install-recommends --no-install-suggests -y \
# steam-launcher playonlinux dosbox
}
################### Multimedia-- Videos- Images- Etc ###################
function media() {
function install_media() {
echo "Install media stuff stub..."
# apt-get install --no-install-recommends --no-install-suggests -y \
# blender bomi deadbeef gimp gimp-gap obs-studio xfce4-screenshooter \
# x264 mirage xchat-gnome guvcview
}
######################### Office-General Stuff #########################
function office() {
function install_office() {
echo "Install office stuff stub..."
# apt-get install --no-install-recommends --no-install-suggests -y \
# filezilla qbittorrent quicksynergy synergy atom galculator \
# bleachbit gtkorphan libreoffice evince calibre
@ -130,7 +134,7 @@ function office() {
################### Look at DEB dirs to install software ####################
function debs() {
function install_debs() {
ARCH=$(uname -m)
touch COPY_OVER_TO_CHROOT/DEBS.sh

4
src/step_3_create_boot_structure.sh

@ -8,6 +8,10 @@
function main() {
# Cleanup just incase we've ran this before.
sudo rm -rf image/casper/*
sudo rm -rf image/isolinux/*
echo "Moving ISO linux parts..."
move_iso_linux_parts;

Loading…
Cancel
Save