Ubuntu Server 18.04 installation

background

Epidemic prevention and control, must lead to isolation at home, then look for something to do. Just my sister's laptop at home, so do the servers installed ubuntu18 play

Start

Download images, and uses win32diskimager burning.

Distinguish something

Starting method Disk Burning software
legacy MBR win32diskimager
UTFI GPT UltraISO
- - USB Image Tool 1.75(usbit)

Installation process

Question one

Before installing ubuntu16 time, are the / boot, / home, /, / swap disks and other points out, it has been found to install GRUB error.

My guess: It may be: 1, burning the wrong way, guide the wrong way; 2, the installation partition does not make things right.

later

Completely default, no partition, then OK, he is not to think more of

Configuration

1, close the lid is not dormant

we /etc/systemd/logind.conf

Changed to ignore the HandleLidSwitch

Restart the service
service systemd-logind restart

2, wifi configuration

First, the system update to the latest state

Detour

Reference: https: //zhidao.baidu.com/question/577906173.html

See the data, suggesting that the ubuntu drive problem, update the driver.

1. First, check the corresponding PCI device, you can see that my wireless card is Broadcom's BCM4313.
Here Insert Picture Description
2, ubuntu default network card driver can not make the card work, remove the default ubuntu 16.04 broadcom wireless card driver.

APT-GET the Remove bcmwl sudo-Kernel-Source
Here Insert Picture Description
3, install the latest broadcom wireless card driver.
sudo apt-get install firmware-b43 -installer b43-fwcutter
Here Insert Picture Description

4. Check the network card driver configuration file.
cat /etc/nodprobe.d/* | grep 'bcm'
Here Insert Picture Description

5, can be seen in the blacklist.conf bcm43xx blacklisted configuration, the configuration is removed.
Here Insert Picture Description

6, see the network card device "ifconfig", and configure the device. There configure devices automatically obtain an IP address and a static IP address configured in two ways, configured in / etc / network / interfaces file.

# ifupdown has been replaced by netplan(5) on this system.  See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
#    sudo apt install ifupdown
# wlp12s0b1 为网卡的逻辑名字,有点奇怪,因为一般情况都是wan0这种
auto  wlp12s0b1
iface wlp12s0b1  inet dhcp
wpa-ssid FAST_D80E
wpa-psk liantong

7, enabling network interface device, after the modification is completed, the following command to enable wireless card.

Reference: https: //steemit.com/network/@oflyhigh/ubuntu-server-18-04-wifi

sudo apt-get install wpasupplicant
sudo apt-get install network-manager

sudo ifdwon wlp12s0b1
sudo ifup wlp12s0b1

Here Insert Picture Description
11, ifconfig view the situation

12, modify the DNS

sudo vim /etc/systemd/resolved.conf

amend as below:

[Resolve]
DNS=114.114.114.114

Save and exit ,, and enter the following command

systemctl restart systemd-resolved.service

Ali cloud modify the source of

First, the first backup Ubuntu official source file system

1, open the Ubuntu terminal command to enter the directory where the source file sources.list, and then perform the backup command:

cd /etc/apt
sudo cp sources.list sources.list.backup

Second, modify the source file contents

1, Ali source content file as follows:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

It is noteworthy that there are entries sources.list file format (through the contents of the above we also look out), generally have the following form:

deb http://site.example.com/debian distribution component1 component2 component3
deb-src http://site.example.com/debian distribution component1 component2 component3

So it is behind several parameters classification software packages (under Ubuntu is main, restricted, universe, multiverse four)
so the content you write:

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted 
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed universe multiverse

Like the above are possible, until I have this doubt, so here let us know and I have the same doubts friends.

2, the contents of the file above Ali source of all copy, use sudo vim sources.list open a file, in command mode, enter:

.,$d

A carriage return no more.

3, Ali source file to copy all the contents pasted into the file, enter: wq save and exit.

sudo apt-get update to update Ali software acquisition source

Snaps installed minidlan (the package in question, to give up;)

Edit /var/snap/minidlna-escoand/19/minidlna.conf

https://www.helplib.cn/tianye/how-can-i-debug-minidlnad-installed-via-snap

Snap的用法
这里只简单说下,初步了解下就行了。

#查看snap版本信息
snap --version
#找出所有snap应用
snap find
#安装应用
snap install 包名
#重启应用
snap restart 应用名
#升级应用
snap refresh 应用名
#查看安装的应用
snap list
#卸载应用
snap remove 应用名

Python management tools pyenv

Reference: https: //www.cnblogs.com/ningvsban/p/4384995.html

This method can be installed version of python

Add a user to a specific group

Adding a user to a user group, do not directly use:
the usermod -G of group groupA

Doing so will make you leave the other user groups, just as a member of the user group groupA.
You should use the -a option:
the usermod -a -G of group groupA the User

(FC4: the usermod -G groupA, groupB, the User Group C)
-a representatives append, that is, add yourself to the user group groupA without having to leave the other user groups.

User management of important configuration files:
/ etc / passwd username and password bit UID GID ownership login name $ HOME directory

/ Etc / shadow password username password change information is encrypted password policy

/ Etc / group password for the group name in the user group GID bit

/ Etc / gshadow group password related documents, unimportant

/ Etc / sudoers username permission define permissions

You can create a shadow password pwconv command to convert the / etc / passwd file password to the / etc / shadow file

Finish

Published 30 original articles · won praise 3 · views 10000 +

Guess you like

Origin blog.csdn.net/djfjkj52/article/details/104136784