From fa21100477dc5174551059764b2bd2cc21824488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pleva=C4=8D?= Date: Fri, 12 Feb 2021 13:12:46 +0000 Subject: [PATCH] add .desktop file for install --- airootfs/root/Desktop/install.desktop | 8 ++ airootfs/root/{Desktop => }/install | 0 airootfs/to_install/etc/skel/.bashrc | 99 ++++++++++++++++++ .../xfce-perchannel-xml/xfce4-panel.xml | 2 +- .../to_install/etc/skel/Documents/.gitkeep | 0 .../to_install/etc/skel/Downloads/.gitkeep | 0 airootfs/to_install/etc/skel/Music/.gitkeep | 0 .../to_install/etc/skel/Pictures/.gitkeep | 0 airootfs/to_install/etc/skel/Videos/.gitkeep | 0 airootfs/to_install/usr/local/bin/emuhere | 13 +++ airootfs/to_install/usr/saturnarch/logo.png | Bin 0 -> 2691 bytes profiledef.sh | 3 +- 12 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 airootfs/root/Desktop/install.desktop rename airootfs/root/{Desktop => }/install (100%) create mode 100644 airootfs/to_install/etc/skel/.bashrc create mode 100644 airootfs/to_install/etc/skel/Documents/.gitkeep create mode 100644 airootfs/to_install/etc/skel/Downloads/.gitkeep create mode 100644 airootfs/to_install/etc/skel/Music/.gitkeep create mode 100644 airootfs/to_install/etc/skel/Pictures/.gitkeep create mode 100644 airootfs/to_install/etc/skel/Videos/.gitkeep create mode 100755 airootfs/to_install/usr/local/bin/emuhere create mode 100644 airootfs/to_install/usr/saturnarch/logo.png diff --git a/airootfs/root/Desktop/install.desktop b/airootfs/root/Desktop/install.desktop new file mode 100644 index 0000000..1c3c1ba --- /dev/null +++ b/airootfs/root/Desktop/install.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=install +Comment=start install of system +Exec=xfce4-terminal --maximize --execute /root/install +Icon=/usr/saturnarch/logo.png +Terminal=False \ No newline at end of file diff --git a/airootfs/root/Desktop/install b/airootfs/root/install similarity index 100% rename from airootfs/root/Desktop/install rename to airootfs/root/install diff --git a/airootfs/to_install/etc/skel/.bashrc b/airootfs/to_install/etc/skel/.bashrc new file mode 100644 index 0000000..9c972ac --- /dev/null +++ b/airootfs/to_install/etc/skel/.bashrc @@ -0,0 +1,99 @@ +# /etc/bash.bashrc +# +# https://wiki.archlinux.org/index.php/Color_Bash_Prompt +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + +EDITOR=nano; export EDITOR + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. + +# If not running interactively, don't do anything! +[[ $- != *i* ]] && return + +# Bash won't get SIGWINCH if another process is in the foreground. +# Enable checkwinsize so that bash will check the terminal size when +# it regains control. +# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) +shopt -s checkwinsize + +# Enable history appending instead of overwriting. +shopt -s histappend + +case ${TERM} in + xterm*|rxvt*|Eterm|aterm|kterm|gnome*) + PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' + + ;; + screen*) + PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' + ;; +esac + + +# fortune is a simple program that displays a pseudorandom message +# from a database of quotations at logon and/or logout. +# If you wish to use it, please install "fortune-mod" from the +# official repositories, then uncomment the following line: + +#[[ "$PS1" ]] && /usr/bin/fortune + +# Set colorful PS1 only on colorful terminals. +# dircolors --print-database uses its own built-in database +# instead of using /etc/DIR_COLORS. Try to use the external file +# first to take advantage of user additions. Use internal bash +# globbing instead of external grep binary. + +# sanitize TERM: +safe_term=${TERM//[^[:alnum:]]/?} +match_lhs="" + +[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" +[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ + && match_lhs=$(dircolors --print-database) + + + # we have colors :-) + + # Enable colors for ls, etc. Prefer ~/.dir_colors + if type -P dircolors >/dev/null ; then + if [[ -f ~/.dir_colors ]] ; then + eval $(dircolors -b ~/.dir_colors) + elif [[ -f /etc/DIR_COLORS ]] ; then + eval $(dircolors -b /etc/DIR_COLORS) + fi + fi + + #PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \w \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]:(\[\033[01;34m\] \")\\$\[\033[00m\] " + PS1="\[\e[0;37m\][ \[\e[0;32m\]\u\[\e[0;37m\]@\[\e[0;31m\]\h \[\e[0;36m\]\W \[\e[0;37m\]] \[\e[0;37m\]$ \[\e[0m\]" + + # Use this other PS1 string if you want \W for root and \w for all other users: + # PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h\[\033[01;34m\] \W'; else echo '\[\033[01;32m\]\u@\h\[\033[01;34m\] \w'; fi) \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]:(\[\033[01;34m\] \")\\$\[\033[00m\] " + + alias ls="ls --color=auto" + alias dir="dir --color=auto" + alias grep="grep --color=auto" + alias dmesg='dmesg --color' + alias ip='ip -color=auto' + alias diff='diff --color=auto' + +PS2="> " +PS3="> " +PS4="+ " + +# Try to keep environment pollution down, EPA loves us :-) +unset safe_term match_lhs + +# Try to enable the auto-completion (type: "pacman -S bash-completion" to install it). +[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +# Try to enable the "Command not found" hook ("pacman -S pkgfile" to install it). +# See also: https://wiki.archlinux.org/index.php/Bash#The_.22command_not_found.22_hook +[ -r /usr/share/doc/pkgfile/command-not-found.bash ] && . /usr/share/doc/pkgfile/command-not-found.bash diff --git a/airootfs/to_install/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/airootfs/to_install/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml index 934a43f..0cbce18 100644 --- a/airootfs/to_install/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +++ b/airootfs/to_install/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml @@ -62,7 +62,7 @@ - + diff --git a/airootfs/to_install/etc/skel/Documents/.gitkeep b/airootfs/to_install/etc/skel/Documents/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/airootfs/to_install/etc/skel/Downloads/.gitkeep b/airootfs/to_install/etc/skel/Downloads/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/airootfs/to_install/etc/skel/Music/.gitkeep b/airootfs/to_install/etc/skel/Music/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/airootfs/to_install/etc/skel/Pictures/.gitkeep b/airootfs/to_install/etc/skel/Pictures/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/airootfs/to_install/etc/skel/Videos/.gitkeep b/airootfs/to_install/etc/skel/Videos/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/airootfs/to_install/usr/local/bin/emuhere b/airootfs/to_install/usr/local/bin/emuhere new file mode 100755 index 0000000..f26d3db --- /dev/null +++ b/airootfs/to_install/usr/local/bin/emuhere @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ -z "$1" ] +then + echo + echo "No Docker Image supplied. Using archlinux" + echo + image='archlinux' +else + image=$1 +fi + +docker run -it -v "$(pwd):/mnt" -w '/mnt' $image diff --git a/airootfs/to_install/usr/saturnarch/logo.png b/airootfs/to_install/usr/saturnarch/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..4e905cc80a11de71acf39bc722a8812c0b54f5b0 GIT binary patch literal 2691 zcmZ`*c{me}8{g)dW|5p_QCZ2Hp+lWq!K zIAB#~c0e@_U-*|uhHY~J#+>)%i%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q3| zqR5}-=qbXgKxZr!SaC3Kb~A}>9PkpJhub zy!Pdm^O87Hb^lx)coc=aS=!w*y6A;P@&zdOrcsL_0S_{XI?r2Pl_yW@#F7B{g=aRO zTxSd^V~c*jtc~ld7*$;zqAsOZluc)tf8H#Xn0Y3(-Sw%6o(ZAi*k7;Ti#+|Rz@K8B z8{#*fqpY4*jpH>*`fum_SZ{iM`4nM+)_dUl#jOi`v!eLlivptpxiGp(bjt<478@4P o(qr&K5cc1+{eMPZ=I#Qd+pnGsyAdO{_lp2977plgGY|Uz02iVI%m4rY literal 0 HcmV?d00001 diff --git a/profiledef.sh b/profiledef.sh index f038bcd..ee7c651 100644 --- a/profiledef.sh +++ b/profiledef.sh @@ -15,5 +15,6 @@ file_permissions=( ["/etc/shadow"]="0:0:400" ["/usr/local/bin/apt"]="1:1:1" ["/usr/local/bin/emuhere"]="1:1:1" - ["/root/Desktop/install"]="1:1:1" + ["/root/Desktop/install.desktop"]="1:1:1" + ["/root/install"]="1:1:1" )