Personal Alibaba Cloud server configuration

One, ubuntu16.04 install graphical interface

apt-get update
apt-get upgrade
apt-get install ubuntu-desktop
reboot

Only guest can log in at this time

cd /usr/share/lightdm/lightdm.conf.d
chmod 777 50-ubuntu.conf

Continue: vi 50-ubuntu.conf

文件 /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

修改前
[Seat:*]
user-session=ubuntu

修改后
[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true
allow-guest=false
# 文件 /root/.profile

# 文件修改前
	# ~/.profile: executed by Bourne-compatible login shells.
	
	if [ "$BASH" ]; then
	  if [ -f ~/.bashrc ]; then
	    . ~/.bashrc
	  fi
	fi
	mesg n || true

# 文件修改后
	# ~/.profile: executed by Bourne-compatible login shells.
	
	if [ "$BASH" ]; then
	  if [ -f ~/.bashrc ]; then
	    . ~/.bashrc
	  fi
	fi
	tty -s && mesg n || true

2. Basic commands

1. Check the system and kernel
cat /etc/os-release
uname -mrs
2. Check CPU
grep "CPU" /proc/cpuinfo
3. Run time
uptime
4. Check the number of system bits
getconf LONG_BIT
5. Check the hard disk and partition
df -h
6. Software installation and uninstallation are different from centos and ubuntu
yum update
#Update system yum makecache #Update software source cache
yum search software name#search software
yum install software name#install software
yum remove software name#uninstall software

7. Software management
service software name start #start
service software name restart #restart
service software name stop #close
service software name status #status

8. File and folder management
touch file name # create file
mkdir –pa/b/c/d # recursively create folder
cp aa bb #copy file
mv aa cc
#rename or copy chmod 0755 d/ #directory permission
chown – R Username: User group e/
#Directory ownership rm a.bc -rf #Delete files/folders

9. File download
wget http://download address

wget https://mirrors.aliyun.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-DVD-1611.torrent
10. Compression and decompression
Compression: tar zcvf node-v4.5.0.tar.gz
Unzip: tar zxvf node-v4.5.0.tar.gz

Guess you like

Origin blog.csdn.net/Saker__/article/details/107468014