Commit 5a82707c authored by Jondy Zhao's avatar Jondy Zhao

Fix error filename in the inno setup script

Update user guide document as the new configure steps
parent 005becea
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
<listitem><para>Command Console</para></listitem> <listitem><para>Command Console</para></listitem>
<listitem><para>User Guide</para></listitem> <listitem><para>User Guide</para></listitem>
</itemizedlist> </itemizedlist>
<note><para>On Windows Vista or Windows 7, you need to run as administrator when launching the cygwin shell to allow the registry changes required in some of the steps below. You can configure cygwin to always launch with admin privileges if you wish.</para></note>
</para> </para>
<section id="sec_configure_slapos"><title>Configure SlapOS</title> <section id="sec_configure_slapos"><title>Configure SlapOS</title>
<para>It used to generate all the configure files required by slapos slave node, you can run it anytime when you need change the configure of your slapos slave node.</para> <para>It used to generate all the configure files required by slapos slave node, you can run it anytime when you need change the configure of your slapos slave node.</para>
...@@ -76,12 +75,15 @@ More information refer to <ulink url="http://community.slapos.org/wiki/osoe-Lect ...@@ -76,12 +75,15 @@ More information refer to <ulink url="http://community.slapos.org/wiki/osoe-Lect
</programlisting> </programlisting>
The configure script will guide you to configure slapos slave node, first, a super account "slaproot" will be created, you need type the password for this account The configure script will guide you to configure slapos slave node, first, a super account "slaproot" will be created, you need type the password for this account
<programlisting> <programlisting>
*** Info: Please enter a password for new user slaproot. Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
</programlisting> </programlisting>
Then the configure script will ask you whether start cron service: Remember this password, it may be required when you run slapos configure again.
<programlisting> <programlisting>
Do you want to start the cron daemon as a service now? (yes/no) yes
</programlisting> </programlisting>
Next configure script need certificate and key information: Next the configure script need certificate and key information:
<itemizedlist> <itemizedlist>
<listitem><para>Type computer certificate filename, if it's stored in the default path as above, type Enter directly</para></listitem> <listitem><para>Type computer certificate filename, if it's stored in the default path as above, type Enter directly</para></listitem>
<listitem><para>Type computer key filename, if it's stored in the default path as above, type Enter directly</para></listitem> <listitem><para>Type computer key filename, if it's stored in the default path as above, type Enter directly</para></listitem>
...@@ -152,10 +154,9 @@ If you're in non-english environment, be sure Cygwin Terminal works well in your ...@@ -152,10 +154,9 @@ If you're in non-english environment, be sure Cygwin Terminal works well in your
<programlisting> <programlisting>
netsh interface ipv6 show interface netsh interface ipv6 show interface
</programlisting> </programlisting>
Check localize connection name show correctly. If not, you need set your locale and charset Check localize connection name show correctly. If not, maybe you need set environment variable "LANG" as the following command:
<programlisting> <programlisting>
echo "Locale=C" >> ~/.bashrc echo "LANG=C.$(ipwin codepage)" >> ~/.bashrc
echo "Charset=$(ipwin codepage)" >> ~/.bashrc
tail ~/.bashrc tail ~/.bashrc
</programlisting> </programlisting>
Then restart your command terminal. Then restart your command terminal.
...@@ -218,6 +219,7 @@ Charset=${DEFAULT_SYSTEM_CHARSET} ...@@ -218,6 +219,7 @@ Charset=${DEFAULT_SYSTEM_CHARSET}
EOF EOF
</programlisting> </programlisting>
Then restart cygwin command box. Then restart cygwin command box.
<note><para>On Windows Vista or Windows 7, you need to run as administrator when launching the cygwin shell to allow the system configuration changes required in some of the steps below. You can configure cygwin to always launch with admin privileges if you wish.</para></note>
</para> </para>
</section> </section>
......
...@@ -75,6 +75,12 @@ rm -rf /etc/opt/slapos/ && echo OK. ...@@ -75,6 +75,12 @@ rm -rf /etc/opt/slapos/ && echo OK.
echo Removing ~/.slapos echo Removing ~/.slapos
rm -rf ~/.slapos && echo OK. rm -rf ~/.slapos && echo OK.
#
# Remove crontab
#
echo Removing /var/cron/tabs/slaproot
rm -rf /var/cron/tabs/slaproot && echo OK.
# #
# Remove slapos-configure from windows startup item # Remove slapos-configure from windows startup item
# #
......
...@@ -46,7 +46,7 @@ Source: "opt\git\slapos.package\windows\scripts\usermod"; DestDir: "{app}\cygwin ...@@ -46,7 +46,7 @@ Source: "opt\git\slapos.package\windows\scripts\usermod"; DestDir: "{app}\cygwin
Source: "opt\git\slapos.package\windows\scripts\groupadd"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\groupadd"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\brctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\brctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\tunctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\tunctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\slapos_cron_config"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\slapos-cron-config"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\ipwin\ipwin\ipwin.exe"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\ipwin\ipwin\ipwin.exe"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
......
...@@ -540,16 +540,20 @@ MAILTO="" ...@@ -540,16 +540,20 @@ MAILTO=""
# Run "Check/add IPs and so on" once per hour # Run "Check/add IPs and so on" once per hour
0 * * * * /opt/slapos/bin/slapos node format >> /opt/slapos/log/slapos-node-format.log 2>&1 0 * * * * /opt/slapos/bin/slapos node format >> /opt/slapos/log/slapos-node-format.log 2>&1
EOF EOF
echo Change owner of $slapos_crontab_file to $cron_user
chown $cron_user $slapos_crontab_file
echo Change mode of $slapos_crontab_file to 644
chmod 644 $slapos_crontab_file
else
ls -l $slapos_crontab_file
fi fi
echo Change owner of $slapos_crontab_file to $cron_user
chown $cron_user $slapos_crontab_file
echo Change mode of $slapos_crontab_file to 644
chmod 644 $slapos_crontab_file
ls -l $slapos_crontab_file
echo echo
echo echo Begin of crontab of $slapos_admin:
echo ------------------------------------------------------------
cat $slapos_crontab_file || csih_error "No crob tab found." cat $slapos_crontab_file || csih_error "No crob tab found."
echo ------------------------------------------------------------
echo End of crontab of $slapos_admin.
echo echo
echo Configure section cron OK. echo Configure section cron OK.
echo echo
......
...@@ -41,7 +41,7 @@ Source: "opt\git\slapos.package\windows\scripts\usermod"; DestDir: "{app}\cygwin ...@@ -41,7 +41,7 @@ Source: "opt\git\slapos.package\windows\scripts\usermod"; DestDir: "{app}\cygwin
Source: "opt\git\slapos.package\windows\scripts\groupadd"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\groupadd"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\brctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\brctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\tunctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\tunctl"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\scripts\slapos_cron_config"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\scripts\slapos-cron-config"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
Source: "opt\git\slapos.package\windows\ipwin\ipwin\ipwin.exe"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec; Source: "opt\git\slapos.package\windows\ipwin\ipwin\ipwin.exe"; DestDir: "{app}\cygwin\bin"; Permissions: everyone-readexec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment