From fc97c870b8a068dd48624b710da4d271206dc158 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 20 Oct 2011 16:14:35 -0500 Subject: when VNC is started, display the ip for installs. --- .../post_process/locale.py | 23 ++++++++++++++++++++++ .../rootoverlay/root/startx | 5 +++++ .../post_process/locale.py | 23 ++++++++++++++++++++++ .../rootoverlay/root/startx | 5 +++++ .../post_process/locale.py | 23 ++++++++++++++++++++++ .../rootoverlay/root/startx | 5 +++++ 6 files changed, 84 insertions(+) create mode 100644 build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/post_process/locale.py create mode 100644 build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/post_process/locale.py create mode 100644 build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py diff --git a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/post_process/locale.py b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/post_process/locale.py new file mode 100644 index 0000000..70cfcbd --- /dev/null +++ b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/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/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/root/startx b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/root/startx index 9274703..579614d 100755 --- a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/root/startx +++ b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/root/startx @@ -25,4 +25,9 @@ then rm /root/.vnc/xstartup ln -s /root/LinHES-install.sh /root/.vnc/xstartup vncserver + echo "The VNC server password is: mythvantage" + 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/larch8/larch0/profiles/linhes-local-mirror-testing-i686/post_process/locale.py b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/post_process/locale.py new file mode 100644 index 0000000..70cfcbd --- /dev/null +++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/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/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/root/startx b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/root/startx index 9274703..579614d 100755 --- a/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/root/startx +++ b/build_tools/larch8/larch0/profiles/linhes-local-mirror-testing-i686/rootoverlay/root/startx @@ -25,4 +25,9 @@ then rm /root/.vnc/xstartup ln -s /root/LinHES-install.sh /root/.vnc/xstartup vncserver + echo "The VNC server password is: mythvantage" + 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/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/post_process/locale.py new file mode 100644 index 0000000..70cfcbd --- /dev/null +++ b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/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/larch8/larch0/profiles/linhes-remote-testing-i686/rootoverlay/root/startx b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/rootoverlay/root/startx index 9274703..579614d 100755 --- a/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/rootoverlay/root/startx +++ b/build_tools/larch8/larch0/profiles/linhes-remote-testing-i686/rootoverlay/root/startx @@ -25,4 +25,9 @@ then rm /root/.vnc/xstartup ln -s /root/LinHES-install.sh /root/.vnc/xstartup vncserver + echo "The VNC server password is: mythvantage" + echo "Please connect to one of these ip's" + echo "-------------------------------------------" + ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1 + echo "-------------------------------------------" fi -- cgit v0.12