1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
|
Author: Jesús E.
Category: tutorials
Date: 2019-11-11 08:41
Diaspora: https://diasp.org/u/heckyel
Image: 2019/11/hyperbola-base.jpg
Lang: en
Mastodom: https://masto.nobigtech.es/@heckyel
Save_as: hyperbola-installation-guide/index.html
Slug: guia-de-instalacion-de-hyperbola
Tags: hyperbola, guia
Title: Hyperbola installation guide [Legacy/MBR-DOS mode]
URL: hyperbola-installation-guide/
[TOC]
First we must build a Hyperbola installation device,
it can be on a [USB][usb-boot]{:target='_blank' rel='noopener noreferrer'}
memory or [CD][cd-boot]{:target='_blank' rel='noopener noreferrer'}.
There is also an [installation video][video-guide]{:target='_blank' rel='noopener noreferrer'}
that will be updated.
### First steps
We check if there is an Internet connection
:::console
# ping -c 3 gnu.org
Partition disk
:::console
# cfdisk
- In case of the partition chosen as **swap** go to "Type" option and select **82 (Linux swap)** from list.
- In case of the partition chosen as **/boot**, select **"bootable"**
example:
:::bash
sda1=/boot
sda2=/
sda3=/home
sda4=swap
Recommendations:
/boot = 300MB
/ = 40GB
/home = customized
swap = equivalent to RAM
#### Wi-fi connection
`wifi` detect
:::console
# iw dev
Enable device of network
:::console
# ip link set <device-name> up
Enable Internet with `wpa_supplicant`
:::console
# wpa_supplicant -B -i <device-name> -c <(wpa_passphrase "ssid" "psk")
Renew IPv4 with `dhcpcd`
:::console
# dhcpcd <device-name>
### Partition Formatting
- `/boot`, **ext4** will be used
:::console
# mkfs -t ext4 /dev/sda1
- `/`, **ext4** will be used
:::console
# mkfs -t ext4 /dev/sda2
- `/home`, **ext4** will be used
:::console
# mkfs -t ext4 /dev/sda3
- `swap`, **mkswap** will be used
:::console
# mkswap /dev/sda4
- Enable swap partition
:::console
# swapon /dev/sda4
### Organization of Partitions
- Mount root in /mnt
:::console
# mount /dev/sda2 /mnt
- Make directories of other partitions
- boot
:::console
# mkdir /mnt/boot
- home
:::console
# mkdir /mnt/home
- Mount other partitions
- Mount boot
:::console
# mount /dev/sda1 /mnt/boot
- Mount home
:::console
# mount /dev/sda3 /mnt/home
### Base System Installation
Update keys of hyperiso:
:::console
# pacman -Sy hyperbola-keyring
Install base packages:
:::console
# pacstrap /mnt base base-devel grub-bios wpa_supplicant iw kernel-firmware ldns xenocara-input-synaptics
> Install `xenocara-input-synaptics` only on laptops
### Main Configuration
- Generate fstab file
:::console
# genfstab -U -p /mnt >> /mnt/etc/fstab
- Inside chroot and configure base system
:::console
# arch-chroot /mnt
- Set hostname, to edit `/etc/hostname` file:
Example:
:::console
# echo hyperpc > /etc/hostname
- Set localtime
:::console
# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
- Update system time to UTC (Optional)
:::console
# hwclock --systohc --utc
- Enable our location, uncomment
:::console
# sed -e 's|^#en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|g' -i /etc/locale.gen
- Set location preferences
:::console
# echo LANG=en_US.UTF-8 > /etc/locale.conf
- Generate location
:::console
# locale-gen
- If you need to change keymap, configure in `/etc/conf.d/keymaps` file
:::console
# sed -e 's/^keymap="us"/keymap="uk"/g' -i /etc/conf.d/keymaps
- Install Grub
:::console
# grub-install --target=i386-pc --recheck /dev/sda
- Create grub.cfg file
:::console
# grub-mkconfig -o /boot/grub/grub.cfg
- Edit ramdisk
:::console
# nano -w /etc/mkinitcpio.conf
-----------------------------
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
- Generate ramdisk
:::console
# mkinitcpio -p linux-libre-lts
- Set root user password
:::console
# passwd
- Configure [wpa_supplicant][wpa_link]{:target='_blank' rel='noopener noreferrer'}
:::console
# nano -w /etc/wpa_supplicant/wpa_supplicant.conf
and inside:
:::bash
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
network = {
ssid="lynx"
psk="your-pass"
}
Add to service by default
:::console
# rc-update add wpa_supplicant default
- [DHCPCD][dhcpcd_link]{:target='_blank' rel='noopener noreferrer'}
Add to service by default
:::console
# rc-update add dhcpcd default
- Close chroot
:::console
# exit
- Unmount partitions
:::console
# umount '/mnt/{boot,home,}'
- Reboot
:::console
# reboot
### Adding a user
- Create user group, for example: `libre`
:::console
# groupadd libre
- Create user `freedom` and add it to basic groups
:::console
# useradd -m -G audio,disk,games,http,input,lp,network,optical,power,scanner,storage,sys,video,wheel -g libre -s /bin/bash freedom
- Assign password
:::console
# passwd freedom
- Edit `/etc/sudoers` file
:::console
# sed -i /etc/sudoers -e 's|^# %wheel ALL=(ALL) ALL|%wheel ALL=(ALL) ALL|g'
- Reboot pc
:::console
# reboot
- Upgrade system
:::console
$ sudo pacman -Syu
### BASE graphical interface
#### Install video package (depending trademark of your video card)
Check video trademark:
:::console
# lspci | grep -e VGA
Install one, depending of trademark:
AMD:
:::console
# pacman -S xorg-video-amdgpu
Ati:
:::console
# pacman -S xenocara-video-ati
Intel:
:::console
# pacman -S xorg-video-intel
Nvidia:
:::console
# pacman -S xorg-video-nouveau
Vesa (generic):
:::console
# pacman -S xenocara-video-vesa
#### Xenocara components
:::console
# pacman -S xenocara-server xenocara-xinit xenocara
#### Mesa demos
:::console
# pacman -S mesa mesa-demos
#### Setting in keyboard language for Xenocara
Syntax of X configuration files is explained in
[Xenocara#Configuration][xe-conf]{:target='_blank' rel='noopener noreferrer'}.
Method creates configuration for entire system, which is
maintained after reboot.
Here's an example:
:::console
# nano -w /etc/X11/xorg.conf.d/00-keyboard.conf
and inside write:
:::bash
:::bash
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,uk"
Option "XkbModel" "pc105"
Option "XkbVariant" "deadtilde,dvorak"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
XkbOptions can receive various parameters for example:
`"grp:alt_shift_toggle,compose:rwin,lv3:ralt_switch,numpad:pc"`
We have 2 keyboard layouts: English US (us) and English UK (uk),
and to go from one to the other just use the `ALT+SHIFT`
key combination.
- Check keyboard settings:
:::console
# setxkbmap -print -verbose 10
- Typefaces
:::console
# pacman -S ttf-liberation ttf-bitstream-vera ttf-dejavu ttf-droid
Next, we will proceed to create the personal folders.
In case you have planned to install **GNOME** or **PLASMA KDE**
as a desktop environment, skip this step, since the
**GNOME** or **PLASMA KDE** installation automatically
generates this directories.
- Directory generator installation:
:::console
# pacman -S xdg-user-dirs
- Automatic directory creation:
:::console
# xdg-user-dirs-update
#### Audio support
Install `pulseadio`
:::console
# pacman -S pulseaudio pulseaudio-alsa alsa-utils pavucontrol
Add audio service to default
:::console
# rc-update add alsasound default
#### Configure pulseaudio
:::console
# sed -e 's/^; autospawn = yes/autospawn = yes/g' -i /etc/pulse/client.conf
### Officially supported desktop environments
#### Install MATE
MATE desktop environment is the continuation of GNOME 2 (Based on Gnome 2).
It provides an intuitive and attractive environment. MATE is actively being
developed to add support for new technologies, while preserving the
traditional desktop experience.
- Installation
:::console
# pacman -S mate mate-extra
Where:
+ mate: contains basic desktop environment and applications necessary for the standard MATE experience.
+ mate-extra: contains a set of packages and optional tools, like a screensaver, a calculator,
an editor and other non-problematic applications that go well with the MATE desktop.
#### Install XFCE
Xfce is a lightweight desktop environment for UNIX-like systems.
Its goal is to be fast and use few system resources, while
remaining visually attractive and easy to use.
- Installation
:::console
# pacman -S xfce4 xfce4-goodies
Where:
+ xfce4: is basic group of xfce4 packages.
+ xfce4-goodies: is a group of additional packages, such as panel plugins,
notifications and other system tools.
#### Install LXDE
LXDE is a free desktop environment. Abbreviation means
«Lightweight X11 Desktop Environment»
- Installation
:::console
# pacman -S lxde
#### Install KDE Plasma
KDE is a software project that currently comprises a
desktop environment known as Plasma, a collection of
libraries and frameworks (KDE Frameworks) and also a
large number of applications (KDE Applications).
The desktop environment created by KDE primarily for GNU/Linux systems,
KDE Plasma 5, is successor to KDE Plasma Workspaces and is primarily
released on July 15, 2014.
- Installation
:::console
# pacman -S plasma kde-applications plasma-wayland-session
Where:
+ plasma: contains group of packages to install desktop. with some basic applications and tools.
+ kde-applications: installs all KDE applications contained in group (kcal, amarok, etc).
+ plasma-wayland-session: enable support for Wayland in Plasma.
#### How to start Xenocara?
- Write a `~/.xinitrc` file (option 1)
Uncomment your desktop installed, example file `~/.xinitrc`:
:::bash
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec enlightenment_start
# exec i3
# exec mate-session
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde #deepin-session
Then from a tty, you can run `startx` and your desktop will start.
- Install login manager (option 2)
Example: `lightdm`
:::console
# pacman -S lightdm lightdm-gtk-greeter
Add to service by default
:::console
# rc-update add lightdm default
- Reboot
:::console
# reboot
### Tools
#### Disks
- gvfs to mount disks
:::console
# pacman -S gamin gvfs
#### Net
- dhcpcd-ui for IP management
:::console
# pacman -S dhcpcd-ui
#### Key manager
- gnome-kering
:::console
# pacman -S gnome-keyring
#### Volume applet
- Volume icon
:::console
# pacman -S volumeicon
#### Synchronize Local Time
Install NTP
:::console
# pacman -S ntp
Synchronize Time
:::console
# ntpdate -u hora.roa.es
#### File compressors
Normally we come across files compressed in ZIP, RAR and/or another
format that are usually exchanged on the Internet. In many desktop
environments, usually include theirs (File Roller in GNOME, Engrampa
in MATE, Ark in KDE, and XArchiver in XFCE/LXDE). To improve functionality
of these file compressors, we will add support for 7Z, RAR, ZIP and others.
- GZip (known with extension ".tar.gz"):
:::console
# pacman -S zlib haskell-zlib
- BZip2:
:::console
# pacman -S bzip2
- RAR:
:::console
# pacman -S unar
- 7Zip:
:::console
# pacman -S p7zip lrzip
- ZIP:
:::console
# pacman -S zip libzip unzip
#### Partition detector
- Udisk utility:
:::console
# pacman -S udevil autofs
- Reading and writing NTFS file systems:
:::console
# pacman -S ntfs-3g
- FAT32 file system read and write:
:::console
# pacman -S fatsort exfat-utils dosfstools
- Reading and writing XFS file systems:
:::console
# pacman -S xfsprogs
#### Multimedia support
To play multimedia files, you need to be able to have the codecs and player.
To do this, we will proceed to install ffmpeg and gstreamer codecs, in addition
to players.
Here I suggest some players that you may find useful.
- Codecs:
:::console
# pacman -S ffmpeg gstreamer gst-libav gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-plugins-base gstreamer-vaapi gst-transcoder ffms2 x264 libvorbis libvpx libtheora opus vorbis-tools
- Audacious player:
:::console
# pacman -S audacious
- SMPlayer:
:::console
# pacman -S smplayer smplayer-themes smplayer-skins
- VLC player:
:::console
# pacman -S vlc
- MPV player:
:::console
# pacman -S mpv
- Lightweight image viewer
:::console
# pacman -S viewnior
- PDF viewer
:::console
# pacman -S epdfview
#### Aplicaciones UXP
There are browsers included by desktop environments like GNOME with Epiphany
or KDE with Konqueror. However, thanks to the developers, in Hyperbola
we have **[Iceweasel-UXP][iceweasel-uxp]{:target='_blank' rel='noopener noreferrer'}**
a web browser, **[Iceape-UXP][iceape-uxp]{:target='_blank' rel='noopener noreferrer'}**
internet suite and a email-manager called
**[Icedove-UXP][icedove-uxp]{:target='_blank' rel='noopener noreferrer'}**.
- Iceweasel-UXP:
:::console
# pacman -S iceweasel-uxp
- Iceape-UXP:
:::console
# pacman -S iceape-uxp
- Icedove-UXP:
:::console
# pacman -S icedove-uxp
#### LibreOffice
In general, when using an Operating System, at least you have an office suite.
In GNU/Linux, it's customary to have one. Fortunately in Hyperbola, Libreoffice
is presented in its stable version. For install, run:
:::console
# pacman -S libreoffice-still
##### Spell check
To check spelling you will need hunspell and a hunspell dictionary (such as hunspell-en_US, hunspell-es, etc)
:::console
# pacman -S hunspell hunspell-en_US
##### Hyphenation and justification
To have provide rules you also need `hyphen` + a set of rules (hyphen-en, hyphen-de, etc)
:::console
# pacman -S hyphen hyphen-en
##### Synonyms
For Synonyms option you will need `mythes` + a mythes synonym library (`mythes-en` `mythes-es`)
:::console
# pacman -S mythes mythes-en
#### Security
Security is important when browsing the Internet, that's why Hyperbola provides
a tool called **[firejail][firejail]{:target='_blank' rel='noopener noreferrer'}**
in combination with a graphical interface
**[firetools][firetools]{:target='_blank' rel='noopener noreferrer'}**.
:::console
# pacman -S firejail firetools
#### Social
Hyperbola have programs for communication:
- Gajim
:::console
# pacman -S gajim python2-axolotl
- Tox
- qtox:
:::console
# pacman -S qtox
- toxic:
:::console
# pacman -S toxic
#### Identifying keycodes
Showkey utility reports key codes for the virtual console. showkey waits
for a key to be pressed and, if there is none for 10 seconds, closes.
To run showkey you need to be in a virtual console, not in a graphical
environment:
:::console
# showkey --keycodes
[video-guide]: https://lablibre.tuxfamily.org/hyperbola-gnu-linux-libre-base/
[firejail]: https://github.com/netblue30/firejail
[firetools]: https://l3net.wordpress.com/projects/firejail/#firetools
[usb-boot]: https://wiki.hyperbola.info/doku.php?id=en:guide:beginners#write_the_image_to_your_usb
[cd-boot]: https://wiki.hyperbola.info/doku.php?id=en:guide:beginners#burn_the_image_to_your_optical_disk
[wpa_link]: https://wiki.archlinux.org/index.php/WPA_supplicant
[dhcpcd_link]: https://wiki.archlinux.org/index.php/Dhcpcd
[iceweasel-uxp]: https://wiki.hyperbola.info/iceweasel-uxp
[iceape-uxp]: https://wiki.hyperbola.info/iceape-uxp
[icedove-uxp]: https://wiki.hyperbola.info/icedove-uxp
[xe-conf]: https://fedoraproject.org/wiki/Input_device_configuration#xorg.conf.d
|