Tips for linux: general Linux technology-Linux technology and application information. For more information, see the following. Enable color text in linux
Procedure (very simple ):
I'm using Red Hat Enterprise 4, this rpm package in the second installation disc, is a vim-enhanced-6.3.035-3.i386.rpm
1. Place the second installation disk
2. mount/dev/cdrom
3. rpm-ivh/media/cdrom/RedHat/RPMS/vim-vim-enhanced-6.3.035-3.i386.rpm
4. exit
Log on again, vi/etc/fstab
Step 2: # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE = eth0 Nic name
BOOTPROTO = static
IPADDR = 192.168.1.236 IP Address
NETMASK = 255.255.255.0 Subnet Mask
GATEWAY = 192.168.1.1 GATEWAY
HWADDR = 00: 0C: 29: E8: 88: 3E MAC address
ONBOOT = yes
DHCP_HOSTNAME = lab.com.cn
FreeBSD practices:
Run ifconfig de0 10.10.10.1 in FreeBSD shell.
De0 indicates the name of the NIC device.
You can also run/stand/sysinstall in shell to go to the installation menu and reset the IP address in network settings.
On solaris:
You can only change the IP address of the host in the/etc/hosts file.
Create a linux automatic shutdown user
Log on as a root user
Adduser down
Passwd down
# Vi/etc/sudoers // Add the following line
Down ALL = NOPASSWD:/sbin/shutdown-h now
Then modify/etc/profile
If [$ LOGNAME = "down"] // if the user name is called down
Then
Echo "The machine will shutdown now! Please logout! "// Display information
Sleep 5
/Usr/bin/sudo/sbin/shutdown-h now // shutdown command
Exit
Fi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.