[Reserved] using Solaris preliminary settings

zhaozj2021-02-16  112

1. Configure root user ssh landing

# vi / etc / ssh / sshd_config listenaddress 192.168.0.9 permitRootLogin YES Save Exit; Clear System Tips #> / etc / motd

2. Cancel a few TIMEOUT that affects system startup

# vi / etc / bootrc set boot_timeout 0 Save an exit; # vi /boot/solaris/bootenv.rc setprop auto-boot-timeout 0 Save exit; # vi /boot/solaris/strap.rc options timeout = 0 ^ m Save Exit ;

3. Cancel automatic shutdown

# vi /etc/power.conf # AutoShutdown 30 9:00 9:00 Default Save Exit;

4. Set the user's environment variable

Modify root user shell (Not recommended) # vi / etc / passwd root: x: 0: 1: Super-user: /: / usr / bin / bash save exit;

Establish root users' environment variable # vi /.bashrc ps1 = '[/ u @ / h / w] / $' PATH = $ PATH: / BIN: / SBIN: / USR / BIN: / USR / UCB: / USR / Sbin: / etc: / usr / local / bin: / usr / ccs / bin: / usr / sfw / bin manpath = $ manpath: / usr / man: / usr / local / man: / OPT / SFW / MAN LD_LIBRARY_PATH = / USR / LIB: / USR / DT / LIB: / USR / OpenWIN / LIB: / USR / SFW / LIB: / USR / LOCAL / LIB: / USR / LOCAL / SSL / LIB CC = GCC EXPORT PS1 PATH MANPATH LD_LIBRARY_PATH CCUMASK 022 TMOUT = 1800 Save Exit

Establish a profile file # vi .bash_profile if [-f ~ / .bashrc]; then. ~ / .Bashrc fi save exit

5. Install common software package

GCC Tools: # gzip -d libiconv-1.8-sol9-intel-local.gz # gzip -d GCC-3.3.2-Sol9-Intel-local.gz # pkgadd -d libiconv-1.8-sol9-intel-local # pkgadd -D GCC-3.3.2-Sol9-Intel-local

Make Tools: # gzip -d Make-3.80-Sol9-Intel-local.gz # gzip -d Automake-1.7.2-Sol9-Intel-local.gz # pkgadd -d Make-3.80-Sol9-Intel-local # pkgadd -D Automake-1.7.2-Sol9-Intel-local

Mozilla: # pkgrm sunwnsb sunwnsm sunwnspsm sunwnsxp # gzip -d mozilla-i386-pc-solaris2.8-1.6.pkg.tar.gz # tar -vxf mozilla-i386-pc-solaris2.8-1.6.pkg.tar # CD mozilla-1.6-x86 # pkgadd -d MOZmozilla.pkg # gzip -d flash_player_6_solaris_intel.tar.gz # tar vxf flash_player_6_solaris_intel.tar # cd install_flash_player_6_solaris # cp * /usr/local/lib/mozilla-1.6/plugins # cd / usr / Local / lib / mozilla-1.6 / plugins # ln -s /usr/j2se/jre/plugin/i386/ns610/libjavaplugin_oji.so # / usr / local / bin / mozilla6. Prevent stack overflow

# cp / etc / system /etc/system.backup # vi / etc / system in the final, plus two lines: set noexec_user_stack = 1 set noexec_user_stack_log = 1

转载请注明原文地址:https://www.9cbs.com/read-10751.html

New Post(0)