mkdir -p ~/.config/systemd/user/
example.service -- Unit file example
[Unit] -- section . section names are defined and case-sensitive
Description=Describe the service -- directive
[Service]
Environment=DISPLAY=:0
ExecStart=/bin/bash -c "while true; do hello.sh; sleep 30; done"
[Install]
WantedBy=default.target
Steps involved in installing arch linux.
-
Assumptions:
- Live OS is available and able to connect to internet.
-
Creatng Partition
$ fdisk -l Disk /dev/sda: 40 GiB, 42949672960 bytes, 83886080 sectors Disk model: VBOX HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xffa9e3c6 $ fdisk /dev/sda
create a primary partion. Lets assume
/dev/sda1
Format partition as ext4.
$ mkfs.ext4 /dev/sda1
-
Mount partitions.
$ mount /dev/sda1 /mnt
In case you have a partition for home, usr etc.
$ mkdir /mnt/home $ mount /dev/sda2 /mnt/home
-
Install essential packages [ along with editor and network manager ].
$ pacstrap /mnt base linux vim networkmanager
-
Configurations.
define your partition mounts.
genfstab -U /mnt >> /mnt/etc/fstab
-
Locale, Network - hostname & hosts , Time updates
-
Bootloader
$ pacman -S grub $ grub-install --target=i386-pc /dev/sda $ grub-mkconfig -o /boot/grub/grub.cfg
-
exit from chroot and reboot.
$ pacman -S xorg-xinit xorg i3
- chose i3wm
- set .xinitrc , i3 configs [ in this repo]
$ paccman -S rxvt-unicode rxvt-unicode-terminfo
# copy .Xdefaults from here.
$ xrdb -merge .Xdefaults