1. Turn the Chinese interface into an English interface
Yast2->system->language: Main language: American English US
2. Log on by default with the root user
Ubuntu uses root login
Ubuntu system by default does not allow users to log in as root, although there is a certain degree of security, but does not conform to the nature of my control system. The methods found online are as follows:
1, first set the root password, using the existing administrator account to access Ubuntu, the terminal execution command: sudo passwd root, and then enter the password and root password, repeat the password. This will have the root user available.
2, the default is not allowed to log directly into the GUI with the root account. This can be done by modifying the/etc/gdm/gdm.conf file to allow root to log in directly, find Allowroot=false in the file and change it to allowroot=true switch user.
Note: In some systems gdm.conf default is read-only property, you can use sudo chmod 777/etc/gdm/gdm.conf modify file permissions before modifying
Linux System hardware Configuration view method
(many commands are not suitable for suselinux)
One: View CPU
More/proc/cpuinfo | grep "model name"
grep "model name"/proc/cpuinfo
If you feel the need to see more comfortable
grep "model Name"/proc/cpuinfo | Cut-f2-d:
Two: View memory
grep memtotal/proc/meminfo
grep Memtotal/proc/meminfo | Cut-f2-d:
Free-m |grep "Mem" | awk ' {print $} '
Three: Check whether the CPU is 32-bit or 64-bit
View the number of CPU bits (+ or 64)
Getconf Long_bit
Four: View the current version of Linux
More/etc/redhat-release
Cat/etc/redhat-release
V: View kernel version
Uname-r
Uname-a
VI: View current time
Date
The above has been described how to synchronize time,
Seven: View hard disks and partitions
Df-h
Fdisk-l
You can also view partitions
Du-sh
You can see all the space occupied
Du/etc-sh
You can see the size of this directory
Eight: View the installed packages
To view the packages installed on the system
Cat-n/root/install.log
More/root/install.log | Wc-l
See which packages are now installed
Rpm-qa
Rpm-qa | Wc-l
Yum List Installed | Wc-l
But strangely enough, the number of installation packages I've queried through RPM, and Yum, is not the same. No reason was found.
Nine: View the keyboard layout
Cat/etc/sysconfig/keyboard
Cat/etc/sysconfig/keyboard | grep KEYTABLE | Cut-f2-d=
Ten: View selinux status
Sestatus
Sestatus | Cut-f2-d:
Cat/etc/sysconfig/selinux
11: View Ip,mac Address
In the Ifcfg-eth0 file you can see Mac, Gateway and other information.
Ifconfig
Cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep ipaddr
Cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep ipaddr | Cut-f2-d=
Ifconfig eth0 |grep "inet addr:" |awk ' {print $} ' |cut-c 6-
Ifconfig | grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' | Cut-d:-f2 | awk ' {print '} '
View Gateway
Cat/etc/sysconfig/network
View DNS
Cat/etc/resolv.conf
12: View Default language
Echo $LANG $LANGUAGE
cat/etc/sysconfig/i18n
13: View your time zone and whether to use UTC time
Cat/etc/sysconfig/clock
14: View Host Name
Hostname
Cat/etc/sysconfig/network
Modify the hostname is to modify this file, but also preferably the host file also modified.
View PCI Information LSPCI
View hard disk information DF-LH
Curl--head www.163.com View 163.com Server environment
Uptime See how long the boot time
Ifconfig eth0 up enable NIC Eth0
/etc/initd/network Restart Restart Network Service
OPEN SUSE LINUX