⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup.html

📁 一门小巧得编程语言
💻 HTML
📖 第 1 页 / 共 2 页
字号:
	<P><FONT SIZE="2" FACE="arial, helvetica">Network settings are stored in the %user.r file, and can be modified	with any text editor. The network setting appear in a line the begins with set-net. For example:</FONT></P>	<PRE><B>    set-net [luke@rebol.com mail none none]</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">The line can be modify to provide your startup network configuration.	See the </FONT><A HREF="http://www.rebol.com/developer.html"><I><FONT SIZE="2" FACE="arial, helvetica">REBOL/View	User's Guide</FONT></I></A><FONT SIZE="2" FACE="arial, helvetica"> for more information.</FONT></BLOCKQUOTE><P><HR ALIGN="CENTER"><A NAME="section-5"></A></P><H2><FONT SIZE="4" FACE="arial, helvetica">5. Proxy Setup</FONT></H2><BLOCKQUOTE>	<P><FONT SIZE="2" FACE="arial, helvetica">Some organizations use a firewall system or proxy server to access the	Internet. To operate with these systems, you will need to provide additional network information.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">To change proxy settings click on proxy setup in the preference panel.	You will then be prompted for the name of your proxy host. This is the computer or firewall that operates as a	proxy. You will also need to supply the port number used by that system for proxy requests. Typically, this is	port 1080 for SOCKS proxy servers, but it can vary depending on the setup. If you don't know, look at the Web browser	settings or ask your network administrator.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">The following proxy protocols are supported:</FONT></P>	<PRE><B>    socks   - use the latest SOCKS version (5)    socks4  - use socks4 proxy    generic - use generic CERN proxy    none    - use no proxy</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">See the </FONT><A HREF="http://www.rebol.com/developer.html"><I><FONT	SIZE="2" FACE="arial, helvetica">REBOL/View User's Guide</FONT></I></A><FONT SIZE="2" FACE="arial, helvetica">	for more information.</FONT></P></BLOCKQUOTE><P><HR ALIGN="CENTER"><A NAME="section-6"></A></P><H2><FONT SIZE="4" FACE="arial, helvetica">6. System Specific Issues</FONT></H2><BLOCKQUOTE>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL is system independent. A script produced on a Windows NT system	can be run without modification on a Macintosh, Amiga, Solaris SPARC, Linux, Windows CE, and other supported platforms.	However, REBOL does integrate with operating systems in different ways. They are described below.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">6.1. Amiga</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">Use Amiga's Tool Types to set the REBOL icon to the REBOL executable	file. The REBOL console interface now maps shift-left to the home key and shift-right to the end key.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">6.2. BeOS</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL for BeOS is run from a terminal window rather than a console. To	open a terminal, click on the Be menu, then choose the Applications sub-menu, and select Terminal. Type the path	to the REBOL executable program and press ENTER.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">Default permissions include read and write permissions for the user and	for the user's group, and read permissions for all others.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">6.3. UNIX/Linux</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL uses the TERMCAP entry provided by UNIX-based systems. If some	of your function keys are not operating properly, you will need to setup your computer's TERMCAP entry.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">Default permissions include read and write permissions for the user and	for the user's group, and read permissions for all others.</FONT></P></BLOCKQUOTE><P><HR ALIGN="CENTER"><A NAME="section-7"></A></P><H2><FONT SIZE="4" FACE="arial, helvetica">7. Running REBOL</FONT></H2><BLOCKQUOTE>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL can be run from Icons or from a shell command line.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">7.1. Running from Icons</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">In Windows REBOL can be started by clicking on the REBOL program icon,	an associated .r file icon, or a shortcut icon. In AmigaOS REBOL can be started by double-clicking on the REBOL	tool icon or the project icon of a REBOL script.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">7.2. Running from a Shell</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL can be started from the command line with a variety of arguments.	To view the options available for any REBOL version, type</FONT></P>	<PRE><B>    usage</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">at the REBOL prompt.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">The format of argument fields on the command line is:</FONT></P>	<PRE><B>    REBOL options script args</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">All of the arguments are optional and any combination is permitted.</FONT></P>	<PRE><B>    Options -- one or more of the program options as listed below.     Script -- a script file to evaluate.     Args -- arguments passed to the script. </B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">Typically, you will provide REBOL with the name of the script file that	you want to evaluate. For instance:</FONT></P>	<PRE><B>    REBOL script.r</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">To run this script with an option, such as with security turned off:</FONT></P>	<PRE><B>    REBOL -s script.r</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">The dash (-) is used for a single-character option (shorthand). A double	dash is used for a full-word options. This is standard practice on many operating systems.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">For instance, to obtain usage information about REBOL, type:</FONT></P>	<PRE><B>    REBOL -?    REBOL --help</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">To run the program without opening a separate window:</FONT></P>	<PRE><B>    REBOL -w    REBOL --nowindow</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">To use REBOL scripts with CGI, you can write a command line that changes	multiple options at the same time:</FONT></P>	<PRE><B>    REBOL -cs cgi-script.r</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">This will run in CGI mode with security turned off. This is required	for various web servers that restrict the number of arguments allowed on the command line (such as the Apache server	on Linux).</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">You may use &quot;--&quot; to signal the end of command line switches.	All remaining items on the command line will be passed to REBOL as an argument.</FONT></P>	<PRE><B>    REBOL -- this is an argument</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">In this case it is assumed that you have a default script specified in	your user.r file.</FONT></P>	<H3><FONT SIZE="3" FACE="arial, helvetica">7.3. Quitting REBOL</FONT></H3>	<P><FONT SIZE="2" FACE="arial, helvetica">You can quit REBOL at any time by typing:</FONT></P>	<PRE><B>    quit</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">This can be done within any part of a script:</FONT></P>	<PRE><B>    if now/time &gt; 12:00 [quit]</B></PRE></BLOCKQUOTE><P><HR ALIGN="CENTER"><A NAME="section-8"></A></P><H2><FONT SIZE="4" FACE="arial, helvetica">8. REBOL Scripts</FONT></H2><BLOCKQUOTE>	<P><FONT SIZE="2" FACE="arial, helvetica">REBOL scripts are written as text files, allowing you to create and modify	them with any text editor. The normal suffix for REBOL scripts is .r, but any suffix is permitted.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">Every script begins with the word REBOL followed by a header that provides	information about the script. The header has many uses, including identification, documentation, archiving, revision	tracking, and script requirements.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">Here is an example script with a typical header:</FONT></P>	<PRE><B>    REBOL [        Title:   &quot;Example Script&quot;        Date:    24-mar-2001        File:    %include.r        Version: 1.2.3        Author:  &quot;Luke Lakeswimmer&quot;        Purpose: {            Just show the folks how it's done.        }    ]    print read http://www.rebol.com</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">See the </FONT><A HREF="http://www.rebol.com/developer.html"><I><FONT	SIZE="2" FACE="arial, helvetica">REBOL/View User's Guide</FONT></I></A><FONT SIZE="2" FACE="arial, helvetica">	for complete details.</FONT></P>	<P></BLOCKQUOTE><P><HR ALIGN="CENTER"><A NAME="section-9"></A></P><H2><FONT SIZE="4" FACE="arial, helvetica">9. Security</FONT></H2><BLOCKQUOTE>	<P><FONT SIZE="2" FACE="arial, helvetica">By default, security is set to only allow scripts to modify or deleting	files or directories in your installation sandbox (all the directories at and below your installation directory).</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">For scripts that you trust, you can run REBOL with a variety of security	settings that control file and network security, including file and directory sandboxes.</FONT></P>	<P>	<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="80%">		<TR>			<TD WIDTH="100%" BGCOLOR="black"><B><FONT COLOR="white" FACE="Arial, Helvetica"> Security Warning</FONT></B></TD>		</TR>		<TR>			<TD WIDTH="100%">				<P><FONT SIZE="2" FACE="arial, helvetica">Only you, the user, can approve changes to security.</FONT></P>				<P><FONT SIZE="2" FACE="arial, helvetica">When running REBOL, if you receive a security warning, </FONT><B><I><FONT				SIZE="2" FACE="arial, helvetica">do not</FONT></I></B><FONT SIZE="2" FACE="arial, helvetica"> approve a change				of security or allow file operations if you do not trust the script. Inspect the script first before running it				or obtain the script from a well trusted source.</FONT>			</TD>		</TR>	</TABLE></P>	<P><FONT SIZE="2" FACE="arial, helvetica">To disable security for your own scripts, you can run REBOL with security	disabled. For instance, if you use an editor or development environment to interactively develop scripts, run REBOL	with a command line such as:</FONT></P>	<PRE><B>    REBOL -s script.r</B></PRE>	<P><FONT SIZE="2" FACE="arial, helvetica">When working this way, take caution to only run scripts that you have	written or scripts that you trust completely.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica">See the </FONT><A HREF="http://www.rebol.com/developer.html"><I><FONT	SIZE="2" FACE="arial, helvetica">REBOL/View User's Guide</FONT></I></A><FONT SIZE="2" FACE="arial, helvetica">	for complete details.</FONT></P>	<P><FONT SIZE="2" FACE="arial, helvetica"><BR>	<BR>	</FONT></BLOCKQUOTE><P><FONT SIZE="1" FACE="arial, helvetica">Copyright REBOL Technologies. All Rights Reserved.<BR>REBOL and the REBOL logo are trademarks of REBOL Technologies.<BR></FONT></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -