In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Virtualbox Oracle Solaris 10 after the completion of the initial configuration, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Initial configuration after installation is completed
After the Solaris10 operating system is installed, remote ssh login is not allowed for root users by default.
Root default shell uses sh
Modify the configuration file to allow root users to log in remotely from ssh, modify root users to log in to shell by default, and configure the command prompt PS1
1 allow root users to log in remotely
1.1 modify / etc/default/login use # to comment out the following line
CONSOLE=/dev/console
This configuration modification does not affect the ssh login of root users, but will affect the telenet service
Right-Open Terminal
Copy a configuration file for backup before modification
# cp / etc/default/login / etc/default/login.bak
# vi / etc/default/login
Find the CONSOLE=/dev/console line, I enter edit mode, add # at the beginning, and comment out.
Esc switches to command mode,: wq! Save and force exit.
1.2 modify / etc/ssh/sshd_config line 128
PermitRootLogin yes
# cp / etc/ssh/sshd_config / etc/ssh/sshd_config.bak
# vi / etc/ssh/sshd_config
In command mode, press 128g cursor to navigate to line 128
Move the cursor over the no n letter, press x to delete, press a to start inserting yes at one position behind the cursor
Esc exits to command mode. Wq saves and exits
Restart the ssh service
# svcadm restart ssh
1.3 use SecureCRT to connect after the restart is completed
2 Modification and setting of solaris10 default shell
This step is in progress in SecureCRT.
2.1 display the current shell type
# echo $SHELL
2.2 switching shell
# bash
2.3 permanently modify the default shell of root users
Modify / etc/passwd file
Change root:x:0:0:Super-User:/:/sbin/sh to root:x:0:0:Super-User:/:/usr/bin/bash
Copy and backup before modification
Bash-3.00# cp / etc/passwd / etc/passwd.bak
Bash-3.00# vi / etc/passwd
2.4 modify the user's default command prompt to display the user name, hostname, and current path
Edit / etc/profile and add export PS1=' [\ u@\ h:$PWD]\ $'at the end
Bash-3.00# cp / etc/profile / etc/profile.bak
Bash-3.00# vi / etc/profile
Press G to position the cursor to the last line and o to start inserting on the next line.
Make the configuration effective immediately
Bash-3.00# source / etc/profile
The above [user name @ hostname: current path] command prompt can be displayed, indicating that the modification was successful.
3 allow root users to log in to ftp remotely
Modify the / etc/ftpd/ftpusers file, add # before the root line, and comment out root.
[root@solaris188:/] # cp / etc/ftpd/ftpusers / etc/ftpd/ftpusers.bak
[root@solaris188:/] # vi / etc/ftpd/ftpusers
Users in the list do not allow ftp remote login, use # to comment out root, and root users can log in with ftp.
These are all the contents of the article "how to initially configure Virtualbox after installing Oracle Solaris 10". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.