SOLARIS的初步设置
作者 佚名技术
来源 操作系统
浏览
发布时间 2012-06-28
1.配置root用户SSH登陆 # vi /etc/ssh/sshd_config ListenAddress 192.168.0.10 PermitRootLogin yes # > /etc/motd # vi /etc/default/init LANG=zh 2.取消几个影响系统启动的TIMEOUT # vi /etc/bootrc set boot_timeout 0 # vi /boot/solaris/bootenv.rc setprop auto-boot-timeout 0 setprop boottimeout \''0\'' # vi /boot/solaris/strap.rc Options timeout=0 3.取消自动关机 # vi /etc/power.conf #autoshutdown 30 9:00 9:00 default 4.设置用户的环境变量 # vi /etc/passwd root:x:0:1:Super-User:/:/usr/bin/bash # vi /.bashrc PS1=\''[\\u@\\H \\W]\\$\'' PATH=$PATH:/bin:/sbin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/local/bin:/usr/local/sbin:/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 CC export EDITOR=vim umask 022 TMOUT=1800 # vi .bash_profile if [ -f ~/.bashrc ]; then . ~/.bashrc fi 5.安装常用软件包 TOP工具: # gzip -d top-3.5beta12.5-sol9-intel-local.gz # pkgadd -d top-3.5beta12.5-sol9-intel-local VIM工具: # gzip -d ncurses-5.3-sol9-intel-local.gz # pkgadd -d ncurses-5.3-sol9-intel-local # gzip -d vim-6.2-sol9-intel-local.gz # pkgadd -d vim-6.2-sol9-intel-local # mv /bin/vi /bin/vi.bak # ln -s /usr/local/bin/vim /bin/vi # cp /usr/local/share/vim/vim62/vimrc_example.vim /.vimrc # vi /.vimrc 把其中的: set backup \" keep a backup file 修改为: set nobackup \" keep a backup file # vi /etc/hosts 加一条记录: 192.168.0.15 win2k GCC工具: # 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工具: # 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/mozilla OTHERS: # pkgadd -d expat-1.95.5-sol9-intel-local # pkgadd -d gdbm-1.8.3-sol9-intel-local # pkgadd -d openssl-0.9.7d-sol9-intel-local # pkgadd -d libgcc-3.3-sol9-intel-local # pkgadd -d libpcap-0.8.1-sol9-intel-local # pkgadd -d tcp_wrappers-7.6-sol9-intel-local # pkgadd -d tcpdump-3.8.1-sol9-intel-local # pkgadd -d zlib-1.2.1-sol9-intel-local # pkgadd -d lsof-4.68-sol9-intel-local 6.安装APACHE-2.0.49 # pkgrm SUNWapchd SUNWapchr SUNWapchu # gzip -d apache-2.0.49-sol9-intel-local.gz # pkgadd -d apache-2.0.49-sol9-intel-local # cp /us |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于SOLARIS的初步设置的所有评论