diff options
Diffstat (limited to 'build_tools/archiso-19/mythvantage/backup_copy/airootfs')
25 files changed, 542 insertions, 0 deletions
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname new file mode 100644 index 0000000..a616f6e --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname @@ -0,0 +1 @@ +apheleia diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf new file mode 100644 index 0000000..01ec548 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf @@ -0,0 +1 @@ +LANG=en_US.UTF-8 diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su new file mode 100644 index 0000000..a291042 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth sufficient pam_rootok.so +auth sufficient pam_wheel.so trust use_uid +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel new file mode 100644 index 0000000..8c45359 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel @@ -0,0 +1 @@ +%wheel ALL=(ALL) NOPASSWD: ALL diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service new file mode 100644 index 0000000..1e4d771 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service @@ -0,0 +1,10 @@ +[Unit] +Description=Choose mirror from the kernel command line +ConditionKernelCommandLine=mirror + +[Service] +Type=oneshot +ExecStart=/etc/systemd/scripts/choose-mirror + +[Install] +WantedBy=multi-user.target diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount new file mode 100644 index 0000000..4eab551 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount @@ -0,0 +1,8 @@ +[Unit] +Description=Temporary /etc/pacman.d/gnupg directory + +[Mount] +What=tmpfs +Where=/etc/pacman.d/gnupg +Type=tmpfs +Options=mode=0755 diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf new file mode 100644 index 0000000..14e0dae --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf @@ -0,0 +1,4 @@ +[Service] +Type=idle +ExecStart= +ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service new file mode 100644 index 0000000..c517e39 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service @@ -0,0 +1,9 @@ +[Unit] +Description=Start LinHES installer at display + +[Service] +Type=oneshot +ExecStart=/root/linhes_install/startx +ExecStop=bash /root/linhres_install/all_stop.sh +RemainAfterExit=yes + diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service new file mode 100644 index 0000000..23b8144 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service @@ -0,0 +1,15 @@ +[Unit] +Description=Initializes Pacman keyring +Wants=haveged.service +After=haveged.service +Requires=etc-pacman.d-gnupg.mount +After=etc-pacman.d-gnupg.mount + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/pacman-key --init +ExecStart=/usr/bin/pacman-key --populate archlinux + +[Install] +WantedBy=multi-user.target diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules new file mode 100644 index 0000000..1c4053c --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service" diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh new file mode 100755 index 0000000..bff09dc --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +script_cmdline () +{ + local param + for param in $(< /proc/cmdline); do + case "${param}" in + script=*) echo "${param#*=}" ; return 0 ;; + esac + done +} + +automated_script () +{ + local script rt + script="$(script_cmdline)" + if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then + if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then + wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null + rt=$? + else + cp "${script}" /tmp/startup_script + rt=$? + fi + if [[ ${rt} -eq 0 ]]; then + chmod +x /tmp/startup_script + /tmp/startup_script + fi + fi +} + +if [[ $(tty) == "/dev/tty1" ]]; then + #automated_script + touch /tmp/I_raN + /root/startx +fi diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile new file mode 100644 index 0000000..e78dd98 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile @@ -0,0 +1,7 @@ +#!/bin/bash +if [[ $(tty) == "/dev/tty1" ]]; then + #automated_script + /root/linhes_install/pre_install.sh +fi + + diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst new file mode 100755 index 0000000..0ecc2a7 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst @@ -0,0 +1,60 @@ +# Config file for GRUB - The GNU GRand Unified Bootloader +# /boot/grub/menu.lst + +# DEVICE NAME CONVERSIONS +# +# Linux Grub +# ------------------------- +# /dev/fd0 (fd0) +# /dev/hda (hd0) +# /dev/hdb2 (hd1,1) +# /dev/hda3 (hd0,2) +# + +# FRAMEBUFFER RESOLUTION SETTINGS +# +-------------------------------------------------+ +# | 640x480 800x600 1024x768 1280x1024 +# ----+-------------------------------------------- +# 256 | 0x301=769 0x303=771 0x305=773 0x307=775 +# 32K | 0x310=784 0x313=787 0x316=790 0x319=793 +# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794 +# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795 +# +-------------------------------------------------+ + +# general configuration: +timeout 5 +default 0 +#color light-blue/black light-cyan/blue + +# boot sections follow +# each is implicitly numbered from 0 in the order of appearance below +# +# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line. +# +#-* +hiddenmenu + +# (0) normal +title LinHes +root (hd0,0) +kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M console=tty1 +initrd /boot/kernel26.img + +# (1) bootsplash +title LinHes-splashy +root (hd0,0) +kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M quiet vga=0x314 splash=silent,theme:linhes console=tty1 +initrd /boot/kernel26.img + +# (2) noautologin +title LinHES-nologin +root (hd0,0) +kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x314 splash=silent,theme:linhes console=tty1 nox +initrd /boot/kernel26.img + + +# (3) normal +title LinHes-init +root (hd0,0) +kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1 +initrd /boot/kernel26.img diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf new file mode 100755 index 0000000..43a275f --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf @@ -0,0 +1,71 @@ +# +# /etc/rc.conf - Main Configuration for Arch Linux +# + +# +# ----------------------------------------------------------------------- +# LOCALIZATION +# ----------------------------------------------------------------------- +# +# LOCALE: available languages can be listed with the 'locale -a' command +# HARDWARECLOCK: set to "UTC" or "localtime" +# TIMEZONE: timezones are found in /usr/share/zoneinfo +# KEYMAP: keymaps are found in /usr/share/kbd/keymaps +# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US) +# CONSOLEMAP: found in /usr/share/kbd/consoletrans +# USECOLOR: use ANSI color sequences in startup messages +# +LOCALE="en_US.utf-8" +HARDWARECLOCK="UTC" +TIMEZONE="US/Central" +KEYMAP="us" +CONSOLEFONT= +CONSOLEMAP= +USECOLOR="yes" + +# +# ----------------------------------------------------------------------- +# HARDWARE +# ----------------------------------------------------------------------- +# +# Scan hardware and load required modules at bootup +MOD_AUTOLOAD="yes" +if [ -f /etc/systemconfig ] +then + . /etc/systemconfig +fi + +if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ] +then + ALSABLACKLIST="!soundcore" +else + if [ x$Audiotype = xOSS ] + then + ALSABLACKLIST="!soundcore" + else + ALSABLACKLIST="" + fi +fi + +# Module Blacklist - modules in this list will never be loaded by udev +MOD_BLACKLIST_=($ALSABLACKLIST !snd-pcsp !nouveau) +# +# Modules to load at boot-up (in this order) +# - prefix a module with a ! to blacklist it +# +MODULES=($MOD_BLACKLIST_) +# Scan for LVM volume groups at startup, required if you use LVM +USELVM="no" + +# +# ----------------------------------------------------------------------- +# NETWORKING +# ----------------------------------------------------------------------- +# +HOSTNAME=`cat /etc/hostname` + +#The following is only used on the install. After the first boot everything is set from /etc/net. + +#DAEMONS=(syslog-ng network netfs crond) +DAEMONS=(fbsplash !syslog-ng !hotplug !pcmcia !network !mysqld dbus avahi-daemon) +# End of file diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh new file mode 100755 index 0000000..2e6b1d4 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh @@ -0,0 +1,41 @@ +#!/bin/bash +#This script is run after data is copied, but before configuration. + +. /usr/MythVantage/bin/mv_config.py + +PD="/root/.post_process" +pacman -S --force --noconfirm runit-scripts + +HDIR=`dirname $MYTHHOME` +mkdir -p $HDIR +useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv + + + +chown -R mythtv.mythtv $MYTHHOME + +#creating /myth for live cd +mkdir -p $DATAMOUNT +create_media_dirs.sh $DATAMOUNT +chown -R mythtv.mythtv $DATAMOUNT/media + + + +python2 /root/.post_process/locale.py +echo "generating locales" +/usr/sbin/locale-gen + +rm -f /etc/issue +ln -s /etc/LinHES-release /etc/issue + +#remove files +#rm -f /root/LinHES-install.sh +#rm -f /root/startx +rm -f /root/.directory +rm -rf /root/linhes_install +rm -f /etc/systemd/system/linhes-install.service + +#cp -rvpf /.post_process/home/mythtv /home/ +#cp -rvpf /.post_process/home/mythtv/.fluxbox /root +#cp -vpf /.post_process/nouveau.conf /etc/modprobe.d/nouveau.conf +mv $PD $PD.old diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py new file mode 100644 index 0000000..70cfcbd --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py @@ -0,0 +1,23 @@ +def genlocale(): + #logging.info("Generating locales") + locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"] + #locale_list=['UTF-8', 'en_US ISO-8859-1'] + + localefile="/etc/locale.gen" + f = open(localefile) + lines = f.readlines() + f.close() + + f = open(localefile,'w') + + for line in lines: + outline = line + for locale in locale_list: + #print locale, line + if locale in line: + outline = line.replace('#','') + f.write(outline) + + f.close + +genlocale() diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh new file mode 100755 index 0000000..0845424 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e -u + +sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen +locale-gen + +ln -sf /usr/share/zoneinfo/UTC /etc/localtime + +#usermod -s /usr/bin/zsh root +#cp -aT /etc/skel/ /root/ +chmod 700 /root + + +chmod 750 /etc/sudoers.d +chmod 440 /etc/sudoers.d/g_wheel + +systemctl set-default multi-user.target + +#LinHES +#add symlink + +if [ -e /etc/udev/rules.d/80-net-name-slot.rules ] +then + rm -f /etc/udev/rules.d/80-net-name-slot.rules +fi + +ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules + +#remove tmp mount as tmpfs +systemctl mask tmp.mount +systemctl mask dhcpcd.service +systemctl mask dhcpcd\@.service + + diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh new file mode 100755 index 0000000..2b0cdb2 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh @@ -0,0 +1,49 @@ +#!/bin/bash +#redirect stderr to stdout, then rediret stdout to file +. /etc/profile +exec 2>&1 +exec > /tmp/mythvantage_install.log +#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2 +#keylaunch & +#/usr/bin/tilda & +#/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents & +export MALLOC_CHECK_=0 + +WM="e16 -P /usr/share/wm_data/e16_config_dir/" +$WM & +pid=$! + +xset s off +xset -dpms +xhost + +xdotool mousemove 0 0 + +cp -f /etc/keylaunchrc /root/.keylaunchrc +/usr/bin/keylaunch & + + +CMDLINE=$(cat /proc/cmdline) +echo $CMDLINE |grep -q nfsroot +NFSROOT=$? +echo $CMDLINE |grep -q clean_upgrade +if [ $? = 0 ] +then + export CLEAN_UPGRADE=YES +else + export CLEAN_UPGRADE=NO +fi + +#show the readme +MythVantage -r + +if [ x$NFSROOT = x1 ] +then + unbuffer MythVantage -L & +else + NETBOOT=YES MythVantage & +fi + + +wait $pid + + diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh new file mode 100644 index 0000000..6d86635 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh @@ -0,0 +1,5 @@ +#!/bin/bash +killall -9 X +killall -9 xinit +killall -9 e16 +killall -9 MythVantage diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh new file mode 100755 index 0000000..83224b7 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh @@ -0,0 +1,120 @@ +#!/bin/bash +# +# /etc/rc.local: Local multi-user startup script. +# +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/profile +. ${MV_ROOT}/bin/install_functions.sh +umount /tmp +clear + + +ln -s /var-lib-pacman/sync /var/lib/pacman/sync + +function mysql_check { + mysql -e "show databases;" 2>/dev/null >/dev/null + return $? +} + +function mythconverg_check { + mysql mythconverg -e "describe settings;" 2>/dev/null >/dev/null + return $? +} + +function install_db { + pacman --noconfirm -R mythdb-initial 2>/dev/null > /dev/null + pacman -S --noconfirm mythdb-initial 2>/dev/null > /dev/null +} + + +#set bootdev.txt for shutdown eject in archiso_shutdown +mount|grep bootmnt|cut -f1 -d" " > /run/initramfs/bootdev.txt +cp -f /usr/bin/eject /run/initramfs/usr/bin/eject + +#check to see if mysql is running +stat_busy "Checking Mysql" +ATTEMPT=0 +mysql_check && printhl " Installing the initial database" &&install_db +mythconverg_check +status=$? +while [ ! $status = 0 ] +do + #/etc/rc.d/mysqld start + systemctl start mysqld.service + mysqlstatus=$? + if [ $mysqlstatus = 0 ] + then + mysql_check && install_db + mythconverg_check + status=$? + else + ((ATTEMPT=ATTEMPT+1)) + systemctl stop mysqld.service + #/etc/rc.d/mysqld stop + sleep 2 + fi + if [ $ATTEMPT = 20 ] + then + printhl " Could not start mysql or install mythconverg within 20 attempts" + printhl " Aborting install" + exit 20 + fi +done +stat_done + +#check network parms +stat_busy "Checking network" +init_network +stat_done + +stat_busy "Probing network" +request_dhcp & +stat_done + +#save some cmdline options +stat_busy "Parsing command line" +parse_cmdline_2_db +bootsplash_setup +stat_done + +#search for remote +stat_busy "Checking for remote" +init_remote +stat_done +printhl "Finished" + +#creating /myth for live cd +. /usr/MythVantage/bin/mv_config.py +HDIR=`dirname $MYTHHOME` +mkdir -p $HDIR +useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv +chown -R mythtv.mythtv $MYTHHOME +#creating mountpoint for live cd +mkdir -p $DATAMOUNT +create_media_dirs.sh $DATAMOUNT +chown -R mythtv.mythtv $DATAMOUNT/media + + + +printhl "Finished" +systemctl start dbus +systemctl start avahi-daemon + +echo $CMDLINE | grep -qi NoX +if [ $? = 0 ] +then + echo "" + printhl "No auto X option found" + # /usr/bin/chvt 2 +else + #/root/linhes_install/startx & + systemctl start linhes-install +fi + +# Set up automatically logged in user +if [ -f /.livesys/autologin ]; then + cp /.livesys/autologin /tmp/newuser +fi + + diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx new file mode 100755 index 0000000..6503bf7 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx @@ -0,0 +1,35 @@ +#!/bin/bash +. /etc/profile + +export USER=root +export HOME=/root + +CMDLINE=$(cat /proc/cmdline) +TEMPVAR=${CMDLINE#*ip=} +IP=${TEMPVAR%% *} +echo $CMDLINE |grep -q vnc +USEVNC=$? + +if [ x$USEVNC = x1 ] +then + RUNP=1 $MV_ROOT/bin/xconfig.sh 2>/dev/null + startx /root/linhes_install/LinHES-install.sh -- -logverbose 6 -allowMouseOpenFail 2>/tmp/x.log +else + #VNC + pacman -S --force --noconfirm tigervnc + systemctl start dbus + cp -f $TEMPLATES/vnc.service /etc/avahi/services/ + systemctl start avahi-daemon + cd /root + mkdir .vnc + echo 54321 |vncpasswd -f > /root/.vnc/passwd + chmod 500 /root/.vnc/passwd + rm -f /root/.vnc/xstartup 2>/dev/null + ln -s /root/linhes_install/LinHES-install.sh /root/.vnc/xstartup + vncserver + echo "The VNC server password is: 54321" + echo "Please connect to one of these ip's" + echo "-------------------------------------------" + ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1 + echo "-------------------------------------------" +fi diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin new file mode 100755 index 0000000..c124f9e --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin @@ -0,0 +1,2 @@ +#!/bin/bash +/bin/login -f root diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh new file mode 100644 index 0000000..e6222e4 --- /dev/null +++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/MythVantage/bin/mv_install.py --rootdisk=sda --rootfs=ext3 --rootsize=5000 --datafs=ext3 --datasize=50 --datadisk=sda --swapsize=2 -c full_install |