Updated notes, start scrpt, added image #12

Merged
maximstewart merged 1 commits from develop into master 2020-05-03 07:08:39 +00:00
6 changed files with 52 additions and 211 deletions
Showing only changes of commit f9c8195c15 - Show all commits

View File

@ -46,10 +46,10 @@ 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) Run the initial environment setup process (Only run once!)"
echo "\t2) Add PPA repos"
echo "\t3) Pull PPA repo keys"
echo "\t4) Install live ISO dependencies"
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"

View File

@ -20,7 +20,7 @@ function main() {
read -p "--> : " ANSR
done
case $ANSR in
"1" ) run_once_process;;
"1" ) update_and_upgrade;;
"2" ) ./GET_PPA_REPOSITORIES.sh;;
"3" ) ./GET_PPA_GPG_KEYS.sh;;
"4" ) get_live_iso_dependencies;;
@ -39,21 +39,31 @@ function main() {
}
function run_once_process() {
function update_and_upgrade() {
apt-get update
apt-get install --yes dbus
dbus-uuidgen > /var/lib/dbus/machine-id
dpkg-divert --local --rename --add /sbin/initctl
# Gets us add-apt-repository command
apt-get install apt-transport-https software-properties-common -y
apt-get --yes upgrade
apt-get upgrade --no-install-recommends --no-install-suggests -y
}
function get_live_iso_dependencies() {
apt-get install --yes casper lupin-casper
apt-get install --yes discover laptop-detect os-prober
apt-get install --yes linux-generic
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
# 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 \
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
echo "Do you want to install?"
echo "\t1) ubiquity-frontend-gtk"
@ -64,8 +74,10 @@ function get_live_iso_dependencies() {
read -p "--> : " ANSR
done
case $ANSR in
"1" ) apt-get install --yes ubiquity-frontend-gtk --no-install-recommends --no-install-suggests;;
"2" ) apt-get install --yes ubiquity-frontend-kde --no-install-recommends --no-install-suggests;;
"1" ) apt-get install --no-install-recommends --no-install-suggests -y \
ubiquity-frontend-gtk;;
"2" ) apt-get install --no-install-recommends --no-install-suggests -y \
ubiquity-frontend-kde;;
"0" ) return;;
esac
}
@ -75,48 +87,45 @@ function get_live_iso_dependencies() {
######################## Main Desktop ########################
function base() {
# Pushed to a meta-package deb
# apt-get install xserver-xorg xorg xinit slim synaptic aptitude apt-xapian-index \
# gufw wicd-curses pulseaudio pavucontrol file-roller p7zip-rar arj rar unrar-free \
# xcompmgr tweak lhasa unar p7zip zip terminator stjerm ttf-mscorefonts-installer \
# gparted gdebi sox udisks2 iftop htop tree hardinfo libsox-fmt-all onboard mc \
# oracle-java8-installer -y
# 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 \
# xcompmgr tweak lhasa unar p7zip zip terminator stjerm ttf-mscorefonts-installer \
# 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
#### Change bellow mate-core to other if one wants different window managers
#### Above is mostly common base system stuff
apt-get install mate-core spacefm-gtk3 --no-install-recommends ulauncher -y
apt-get remove caja mate-terminal -y
aptitude keep-all
#### Change bellow mate-core to other if one wants different window managers
#### Above is mostly common base system stuff
# apt-get install --no-install-recommends -y mate-core spacefm-gtk3 ulauncher
# apt-get remove caja mate-terminal -y
############ Themes ############
# apt-get install paper-gtk-theme paper-icon-theme \
# sable-gtk mate-icon-theme -y
# This keeps packages that were marked for removal when we still want them...
# I need to find the 'apt' version of this so as to divest from aptitude...
# aptitude keep-all
############ Themes ############
}
############ Gaming ############
function gaming() {
apt-get --no-install-recommends --no-install-suggests install \
steam-launcher playonlinux dosbox -y
# apt-get install --no-install-recommends --no-install-suggests -y \
# steam-launcher playonlinux dosbox
}
################### Multimedia-- Videos- Images- Etc ###################
function media() {
# guvcview
apt-get --no-install-recommends --no-install-suggests install blender \
bomi deadbeef gimp gimp-gap obs-studio xfce4-screenshooter x264 mirage \
xchat-gnome -y
# 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() {
# calibre
apt-get --no-install-recommends --no-install-suggests install \
filezilla qbittorrent quicksynergy synergy atom galculator bleachbit \
gtkorphan libreoffice evince -y
debs
# apt-get install --no-install-recommends --no-install-suggests -y \
# filezilla qbittorrent quicksynergy synergy atom galculator \
# bleachbit gtkorphan libreoffice evince calibre
}
################### Look at DEB dirs to install software ####################

View File

@ -1,103 +0,0 @@
# Enable Tab auto complete -- must have bash-completion package too
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# Simpler color in terminal scripts
bold=`echo -en "\e[1m"`
underline=`echo -en "\e[4m"`
dim=`echo -en "\e[2m"`
strickthrough=`echo -en "\e[9m"`
blink=`echo -en "\e[5m"`
reverse=`echo -en "\e[7m"`
hidden=`echo -en "\e[8m"`
normal=`echo -en "\e[0m"`
black=`echo -en "\e[30m"`
red=`echo -en "\e[31m"`
green=`echo -en "\e[32m"`
orange=`echo -en "\e[33m"`
blue=`echo -en "\e[34m"`
purple=`echo -en "\e[35m"`
aqua=`echo -en "\e[36m"`
gray=`echo -en "\e[37m"`
darkgray=`echo -en "\e[90m"`
lightred=`echo -en "\e[91m"`
lightgreen=`echo -en "\e[92m"`
lightyellow=`echo -en "\e[93m"`
lightblue=`echo -en "\e[94m"`
lightpurple=`echo -en "\e[95m"`
lightaqua=`echo -en "\e[96m"`
white=`echo -en "\e[97m"`
default=`echo -en "\e[39m"`
BLACK=`echo -en "\e[40m"`
RED=`echo -en "\e[41m"`
GREEN=`echo -en "\e[42m"`
ORANGE=`echo -en "\e[43m"`
BLUE=`echo -en "\e[44m"`
PURPLE=`echo -en "\e[45m"`
AQUA=`echo -en "\e[46m"`
GRAY=`echo -en "\e[47m"`
DARKGRAY=`echo -en "\e[100m"`
LIGHTRED=`echo -en "\e[101m"`
LIGHTGREEN=`echo -en "\e[102m"`
LIGHTYELLOW=`echo -en "\e[103m"`
LIGHTBLUE=`echo -en "\e[104m"`
LIGHTPURPLE=`echo -en "\e[105m"`
LIGHTAQUA=`echo -en "\e[106m"`
WHITE=`echo -en "\e[107m"`
DEFAULT=`echo -en "\e[49m"`
export LESS_TERMCAP_so=${white}${BLACK} # begin standout-mode - info box
export LESS_TERMCAP_mb=${lightred} # begin blinking
export LESS_TERMCAP_md=${lightyellow} # begin bold
export LESS_TERMCAP_us=${lightgreen} # begin underline
export LESS_TERMCAP_me=${default}${DEFAULT} # end mode
export LESS_TERMCAP_se=${default}${DEFAULT} # end standout-mode
export LESS_TERMCAP_ue=${default}${DEFAULT} # end underline
# Functions
w3mimg () {
w3m -o imgdisplay=/usr/lib/w3m/w3mimgdisplay $1
}
phpServer () {
php -S 127.0.0.1:"$1"
}
# Aliases
# frameebuffer MPLAYER
alias mplayerfb="mplayer -vo fbdev2 -zoom -x 800 -y 600"
# Python Server && PHP Server
alias pySimpleServer='python -m SimpleHTTPServer'
alias pyCgiServer='python -m CGIHTTPServer'
#clear like Windows
alias cls='clear'
# reboot / halt / poweroff / etc
alias reboot='sudo /sbin/reboot'
alias poweroff='sudo /sbin/poweroff'
alias halt='sudo /sbin/halt'
alias shutdown='sudo /sbin/shutdown'
#gdb no copyright start and use better gui look
alias gdb='gdb -tui -q'
# Gui select files wih Ctrl+G and python
select_files() {
local files="$(python -c 'import Tkinter, tkFileDialog; Tkinter.Tk().withdraw(); print(" ".join(map(lambda x: "'"'"'"+x+"'"'"'", tkFileDialog.askopenfilename(multiple=1))))')"
READLINE_LINE="${READLINE_LINE:0:READLINE_POINT}$files${READLINE_LINE:READLINE_POINT}"
READLINE_POINT=$((READLINE_POINT + ${#files}))
}
bind -x '"\C-g":select_files'
# Terminal look and feel with logo and then custom prompt line
# Week Day/Month/Day : Time -- user@group -- current dir path
export PS1="${lightyellow} _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \
( S ( o ( l ( - ( O ( S )
\_/ \_/ \_/ \_/ \_/ \_/ ${default}
${lightred}Welcome to the dark side of the moon, $USER!${default}
\[\e[32m\]\d\[\e[m\]: \[\e[36m\]\@\[\e[m\] -- \[\e[31m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\] -- \[\e[35m\]\w\[\e[m\] \\$ "

View File

@ -1,65 +0,0 @@
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Note: A ^ in a label before a character means one can use that to quickly select it.
#
# HELPFUL SOURCES
# http://www.syslinux.org/wiki/index.php?title=The_Syslinux_Project
# https://wiki.archlinux.org/index.php/Syslinux
# The wikis provides further configuration examples
# search path for the c32 support libraries (libcom32, libutil etc.)
PATH
# Need this for images as backgrounds
DEFAULT vesamenu.c32
# If 1 it'd present the boot prompt
PROMPT 0
# wait 15 seconds
TIMEOUT 150
MENU RESOLUTION 1024 768
MENU BACKGROUND splash.png
MENU TITLE Sol-OS
## Theming
MENU COLOR border 30;44 #40ffffff #a0000000 std
MENU COLOR title 1;36;44 #9033ccff #a0000000 std
MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel 37;44 #50ffffff #a0000000 std
MENU COLOR help 37;40 #c0ffffff #a0000000 std
MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07 37;40 #90ffffff #a0000000 std
MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
## Menu Options
LABEL solosLive
MENU label ^Try Sol-OS
# kernel /casper/vmlinuz.efi
# append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash ---
LABEL solosInstall
MENU label ^Install Sol-OS
# kernel /casper/vmlinuz.efi
# append file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.lz quiet splash ---
MENU SEPARATOR
LABEL hd
menu label ^Boot from first hard disk
localboot 0x80
LABEL reboot
MENU LABEL ^Reboot
COM32 reboot.c32

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB