[DEV] update

This commit is contained in:
Edouard DUPIN 2018-08-27 22:47:30 +02:00
parent c81aa49fe2
commit db98da63f4
2 changed files with 45 additions and 12 deletions

View File

@ -1,5 +1,7 @@
My install and configuration script for Archlinux. My install and configuration script for Archlinux.
see: https://www.tecmint.com/arch-linux-installation-and-configuration-guide/
Archlinux Install Archlinux Install
================= =================
@ -18,25 +20,29 @@ wifi-menu
Prepare the storage devices Prepare the storage devices
--------------------------- ---------------------------
mettre ma partition en ```GPT```
``` ```
fdisk /dev/sda fdisk
# help: => m
d ==> delete ```
p ==> print table
n ==> new (+128M to define 128 MO)
a ==> set partition bootable (for sda1) ```
cfdisk /dev/sda
``` ```
| Name | Boot | Size | Format | Mount | | Name | Boot | Size | Format | Mount |
| ---- | :---: | -----: | :--------: | ----- | | ---- | :---: | -----: | :--------: | ----- |
| sda1 | * | 128M | mkfs.fat | /boot | | sda1 | * | 300M | mkfs.fat | /boot | EFI System
| sda2 | | 8G | mkswap | | | sda2 | | 8G | mkswap | | swap
| sda3 | | 32G | mkfs.ext4 | / | | sda3 | | 32G | mkfs.ext4 | / | linux filesystem
| sda4 | | ALL | mkfs.ext4 | /home | | sda4 | | ALL | mkfs.ext4 | /home | linux home
mkfs all... mkfs all...
``` ```
mkfs.fat /dev/sda1 mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2 mkswap /dev/sda2
mkfs.ext4 /dev/sda3 mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda4 mkfs.ext4 /dev/sda4
@ -55,7 +61,7 @@ Install the base system
----------------------- -----------------------
Replace \<foobar\> by what you want... Replace \<foobar\> by what you want...
``` ```
pacstrap /mnt base base-devel syslinux vim git pacstrap /mnt base base-devel syslinux vim git gptfdisk
genfstab -L -p /mnt >> /mnt/etc/fstab genfstab -L -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt arch-chroot /mnt
echo <laptop-name> > /etc/hostname echo <laptop-name> > /etc/hostname

View File

@ -28,3 +28,30 @@ systemctl enable avahi-daemon.service
systemctl start avahi-daemon.service systemctl start avahi-daemon.service
``` ```
Corret ontrol of time:
========================
Install servie of network time protocol:
```
pacman -S ntp
```
For ce the time to update fast and not with small change
```
ntpd -qg
```
Start a service:
```
systemctl stop ntpd
```
Display the current status
```
timedatectl status
```