diff options
Diffstat (limited to 'linhes/linhes-system/lh_system_start.sh')
-rwxr-xr-x | linhes/linhes-system/lh_system_start.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh index e3243a5..f6be2d7 100755 --- a/linhes/linhes-system/lh_system_start.sh +++ b/linhes/linhes-system/lh_system_start.sh @@ -24,9 +24,10 @@ function applyUIsettings(){ } function x11vnc_setup(){ - msg "Set x11vnc Password" "Open Konsole run x11vnc -storepasswd" + konsole -e /bin/bash -i -c "echo 'Create VNC password.' && x11vnc --storepasswd" + mkdir ~/.vnc touch ~/.vnc/x11vnc.log - /usr/bin/systemctl enable --now x11vnc.service + sudo /usr/bin/systemctl enable --now x11vnc.service } function bashrc_setup(){ @@ -39,8 +40,9 @@ function bashrc_setup(){ } function nanorc_setup(){ - mkdir ~/.config/nano - echo -e 'set tabsize 4\nset tabstospaces\ninclude "/usr/share/nano/*.nanrc"' >> ~/.config/nano/nanorc + sudo sed -i 's/# set tabsize.*/set tabsize 4/' /etc/nanorc + sudo sed -i 's/# set tabstospaces.*/set tabstospaces/' /etc/nanorc + sudo sed -i 's/# include "\/usr\/share\/nano\/*.nanorc/include "\/usr\/share\/nano\/*.nanorc"/' /etc/nanorc } function storage_scan(){ @@ -51,7 +53,7 @@ function storage_scan(){ function install_lh_apps(){ #install programs that are not needed on the iso - sudo pacman -Syyy firefox glances mythtv ncdu x11vnc + sudo pacman -Syyy -noconfirm firefox glances mythtv ncdu x11vnc } function first_configure(){ @@ -59,6 +61,7 @@ function first_configure(){ #apply settings for all system types applyUIsettings msg "New install of LinHES. Starting setup." + install_lh_apps nanorc_setup bashrc_setup x11vnc_setup @@ -69,6 +72,7 @@ function first_configure(){ #nice -n 19 mythfilldatabase --quiet & msg "Guide data is being loaded." "Until this completes some shows will appear as unknown in the program guide." else + msg "Frontend Only" #Frontend_only cmds fi touch ~/.config/lh_configured @@ -80,5 +84,4 @@ function first_configure(){ #-------MAIN------- first_configure /usr/bin/enableIRWake.sh & -xset -dpms s off storage_scan |