Linux 版 (精华区)

发信人: netiscpu (说不如做), 信区: Unix
标  题: [M] Netscape Communicator 的配置问题
发信站: 紫 丁 香 (Tue May 26 18:37:54 1998), 转信


        本文摘自Linux-Admin Mailling-List

[问题] netscape communicator

Speakin' of netscape,
 Anyone knows how to specify some kind of setup for netscape, so it will
be used as default for users who use NS for the first time.
The problem is that here we ought to use some proxy server, plus i advice
users to turn off autoloading images. 

I tried to edit by hand ../app-defaults/Nestcape file, but it is about
250K size, and looks like not for handy editing. Is there way i could play
with it? 


Thanks In advance

[回答1]

Fire-up NS;
 
--> Edit --> Preferences

On Mon, 25 May 1998, CyberPsychotic wrote:

> Speakin' of netscape,
>  Anyone knows how to specify some kind of setup for netscape, so it will
> be used as default for users who use NS for the first time.
> The problem is that here we ought to use some proxy server, plus i advice
> users to turn off autoloading images. 

--> Advanced  <- to turn off autoloading images

--> Proxies   <- for proxies setting

> I tried to edit by hand ../app-defaults/Nestcape file, but it is about
> 250K size, and looks like not for handy editing. Is there way i could play
> with it? 

No, no ... this is bad for the fingers :-)

Hope this helps.

Danny :)

[回答2]

Wrong file. That only controls X-related things.

Anything that can be set from the GUI is stored in
~/.netscape/preferences.js. Set up Netscape for one user account, then
take a copy of the ~/.netscape directory to use when setting up user
accounts (on Slackware, copy it to /etc/skel).

-- 
Glynn Clements <glynn@sensei.co.uk>

[回答3]


> Fire-up NS;
>  
> --> Edit --> Preferences
[snip] 
> > 
> --> Advanced  <- to turn off autoloading images

[snip]

> --> Proxies   <- for proxies setting

[snip]

> No, no ... this is bad for the fingers :-)

> Hope this helps.



 Yeah.. I know all this.:) but how would i make this as default
configuration for ALL newcomming users,:) So i wouldn't have to explain
everyone how things should be done. (some even hardly understand the idea
of proxy server,:) so that's a real pain :)). 

[回答4]

yes. I was thinkin' of this. (or copy this directory to existing user's
homedirs. If they haven't used netscape yet). But here, i guess some
script should be involved to modify User Indetity settings. I just was
wondering if there's kind of admin-tools are avaliable for NS. I know
there's user profile manager for Windoze platform. hmm..Alas, perhaps i
will go the way you mentioned, i guess. Thanks for the hint.



Best Regards
 Fyodor

[回答6]

Dirty job.

If you want proxy to work, you can setup proxy with automatic
proxy configuration.

You have to put this Perl script into cgi-bin directory of your http
server and give the URL address to netscape in automatic proxy field.


  #!/usr/bin/perl
  print<<endprint
  Content-type: application/x-ns-proxy-autoconfig

  function FindProxyForURL(url, host) 
  {
    if (isPlainHostName(host)||dnsDomainIs(host ,".sedona.ro"))
      return "DIRECT";
    else
      return "PROXY 193.226.98.1:1080; DIRECT";
  }
  endprint
  ;


You can setup different proxy machines separated with a semicolon.
If one failed, NS tries the next one.

Regards,
Marcel

PS: If you want more help, write me.


 ---------------------------------------------------------------
| Marcel Barbulescu                      Email:  mbarb@sedona.ro
 -------------------                       URL: http://sedona.ro
  Network Administrator and Software Developer
  Sedona Software Ltd., Phone: +40-56-214805, Fax: +40-56-214845

[回答7]

Yep. Looking at my preferences.js, I also note that it's full of
`/home/glynn/....' strings.

I would suggest taking the preferences.js file, and replacing the user
identity and home directory with unique strings, e.g. %HOME%,
%FULLNAME%, %LOGNAME%, etc, and modifying `adduser' (or whatever) to
run the files that it installs through a sed script to substitute the
appropriate values.

-- 
Glynn Clements <glynn@sensei.co.uk>

[完]

--

                              Enjoy Linux!
                          -----It's FREE!-----

※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:5.345毫秒