GithubHelp home page GithubHelp logo

matmoul / archfi Goto Github PK

View Code? Open in Web Editor NEW
2.5K 79.0 316.0 472 KB

Arch Linux Fast Installer : tutorial installer

License: GNU General Public License v3.0

Shell 100.00%
arch-linux wizard installer install installation archlinux arch-linux-installation

archfi's Introduction

plasma-containmentactions-customdesktopmenu is ready for plasma 6 :
https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu

Because I am migrating my codes to my local Gitea, my github will definitely be less active.
https://git.netm.ch/explore/repos

As I no longer have time for g810-led, I only maintain CVS.
The OpenRGB project seems a good alternative.

What about archfi/archdi?
I think they are reaching the end but I will complete this topic later.

If you love your HP48 calculator from your studies and want it on Linux, here's the latest solution :
https://github.com/gwenhael-le-moine/x48ng

archfi's People

Contributors

ajmeese7 avatar beni69 avatar bowero avatar c0b41 avatar conqp avatar dawidd6 avatar diegoherculano avatar err53 avatar exorcist365 avatar gauntletwizard avatar hugok79 avatar isti03 avatar maalos avatar matmoul avatar maxwilliamjf avatar mipimipi avatar mohdalawadi avatar mramericanmike avatar mrboen94 avatar mystogab avatar pebeto avatar prodject avatar quelotic avatar roipoussiere avatar serdarsaglam avatar steveclement avatar tessaimusa avatar thegoldgoat avatar thelinuxninja avatar untergrundbiber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archfi's Issues

Syslinux bootloader error

I get an error while installing Syslinux bootloader using your installation script

"ERROR: Could not stat device /dev/nvm No such file or directory"

I'm using NVMe disk and it's assigned to a block device "/dev/nvme0n1". Could you please advise?

Install Bootloader Error

I get an error while installing bootloader in /dev/sda

"grub install: error: cannot write to '/boot/grub/x86_64-efi/core.efi' : No space left on device.
exit
Press any key to continue"

What do I do? Can you help me out please?

Selection of mirrors by country

It would be helpful to have the possibility to select the mirrors by country - in addition to have the possibility to edit the mirrorlist in an editor.

Question

Hello,

I have translated the script completely to Arabic more than a week ago.

It is 100% correct and an accurate translation.

How can I "upload" it in a sense?

Thank you.

Set Keyboard Layout don't work from last iso

localectl list-keymaps don't work anymore on the last ArchLinux ISO.
Need to use the alternative from Arch Wiki.
find /usr/share/kbd/keymaps/ -type f

Configuration of vconsol.conf is also affected.

Signature issue

Thanks for your work on this installer. I ran into the attached signature issue when running the Install Arch Linux pacstrap base step: signature from <> is unknown trust when attempting an install. I broke out to a command line and installed and ran pacman-key --refresh-keys but that did not resolve the issue. Any help would be appreciated.

Signature_Issue

Missing hook for resume

I installed a system with archfi and found the following problem, there is a kernel parameter and a hook missing for hibernation to work.

What I did to fix it:
use "ls -l /dev/disk/by-uuid" to find the UUID of the SWAP device, it is a symlink to /dev/sdx, where sdx is the one where "[SWAP]" is stated behind in the output of "lsblk".
This has to be added to the kernel parameters in /etc/default/grub in the line:
GRUB_CMDLINE_LINUX="cryptdevice=/dev/disk/by-uuid/8a3d46d1-985e-4661-a771-50c880f08db7:root resume=UUID=d816e356-bd5e-4881-b9fb-7c1690da2e40"

So the UUID above is the one from "ls -l /dev/disk/by-uuid".

And also the hook "resume" has to be added, so my hooks now look like this:
"HOOKS=(base udev autodetect modconf block keymap encrypt filesystems resume keyboard fsck)"
The file for this is: /etc/mkinitcpio.conf
I already had to add the "keyboard" hook, which is helpful to have the right keyboard layout for the cryptsetup password dialog during boot.

After both changes those commands have to be run:
grub-mkconfig -o /boot/grub/grub.cfg
and
mkinitcpio -p linux

Warning, this might expose the SWAP data to third parties, it would be better to have the SWAP in a LUKS/LVM I think, then the UUID above has to be the one of the LVM partition with the SWAP.

I looked at those pages for the solution:
https://wiki.archlinux.org/index.php/kernel_parameters#GRUB
https://wiki.archlinux.org/index.php/Kernel_parameters
https://wiki.archlinux.org/index.php/Mkinitcpio#Image_creation_and_activation

This only applies to GRUB systems.

I hope that someone can pick up my suggestions and implement it in the script, I think I am bit to inexperienced to do it myself.

Thanks for the work, I love Arch and you guys help me a lot as a user.

BTRFS subvolumes

Could an option be added to installer if installing with BTRFS to install more subvolumes at install time, like
@home
@var
@snapshots so that I can install snapper after and have snapshots like OpenSUSE?

Not sure how hard that would be to install. I was looking at the code at line 610.

Mount the root btrfs volume mount
/dev/sda2 /mnt
Create subvolume for root, home, var and one for snapshots
btrfs subvolume create /mnt/@root
btrfs subvolume create /mnt/@var
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@snapshots

Mount them
umount /mnt
mount -o noatime,compress=lzo,space_cache,subvol=@root /dev/sda2 /mnt
mkdir /mnt/{boot,var,home,.snapshots}
mount -o noatime,compress=lzo,space_cache,subvol=@var /dev/sda2
/mnt/var mount -o noatime,compress=lzo,space_cache,subvol=@home /dev/sda2 /mnt/home
mount -o noatime,compress=lzo,space_cache,subvol=@snapshots /dev/sda2 /mnt/.snapshots

Swap
btrfs subvolume create /.swap
truncate -s 0 /.swap/swapfile
chattr +C /.swap/swapfile

Support for HiDPI...

Kind of hard to use the menus with a magnifying glass... Even though (with a magnifying glass) I download a font and change it with setfont then enter Archfi after I get through the first couple menus it goes back to tiny.. I guess I could just ssh in to it but if it could be set within Archfi that would help. Fantastic job on this and thank any which way...

When using auto partitioning, you don't really know which partition is which

I'd like to start by saying I really appreciate your work here.

The only problem I found so far is that when you do auto partitioning, the script creates each partition but it doesn't tell you which is which. So in the next step when you have to pick where the mountpoints will be, you don't know the size of the partitions created to know which you're gonna use for what, unless you go look at your disk information and then reopen the script.

ERROR: file not found: 'fsck.btrfs'

I formated my drive to btrfs using archfi, and I got error messages like this when performing pacstrap /mnt base linux firmwares:

VirtualBox

It seems that we need fsck.btrfs. pacman -F fsck.btrfs tells me it belongs to btrfs-progs.
However, btrfs-progs has been included in the official Arch Linux Image. So I have no idea why this would happen.

I was using VirtualBox so it should be easy to reproduce. The Host OS is Arch Linux and I made little configurations to VirtualBox except Enabling EFI.

SSD Support

Hi i'am trying your script , it worked very good , would be nice if the support of ssd drives could be include ?

suggesting my ArchI0 script

Hi !
i Have and automation applications installer and i want to share that with @MatMoul,
Tell me what do you think about it and if you can add that to your script or even if you suggest some changes.
i'll be thankful with any type of feedback ^^

ArchI0 : An ArchLinux Applications Automatic Installation Script
https://github.com/SofianeHamlaoui/ArchI0

Translation of Archfi to Arabic

Hello,

There is no issue with your Archfi installation, it's great.

I would like to offer translating it to Arabic as I am fluent in English and am a native speaker of the Arabic language.

I have had years of experience with open-source software and am experienced with translating from Arabic to English and vice versa.

Thank you.

Suggestion

This isn’t an error but just a suggestion. If it’s possible to do, at the stage where you have the user select what kernel to use/install it’s a good idea to run grub-mkconfig after so it generates the updated configuration so for example if you install the lts kernel it will be used by default on restart.

Disk encryption

Hello, what is the state of disk encryption for Archfi?

It is the only option i am missing

User is created incorectly.

When the script creates a user like this: "useradd -m -g users -s /bin/bash some_user" which is incorrect because programs like pamac asks for root password instead of some_user password I think the user should be created like that "useradd -m -g users -G wheel -s /bin/bash some_user". Have a good day!

f2fs-tools missing from File System section

Could it be possible to add f2fs-tools in the File System section with the dosfstools and the others. If you partition with f2fs, there is this module missing to be able to use your partition.

By the way, thanks for this script.. Really useful!

[wish] install base-devel with base

It could be great to install from the beginning base-devel with base in order to get some building tools even if you don't install any aur-wrapper like yaourt after this first step.

Also, as a feedback, I can tell Mate installation worked great :)

Systemd-boot option

Is it possible to add option for "systemd-boot" too?

Thanks for this great project, it is amazing!

grub-mkconfig fails No such file or directory

On the Arch Install Menu:
image

After selecting that option it installs the packages but after pressing enter it then tries to create the grub and it fails like this:
image

Then once you install the bootloader you have to go back to Install Grub and select it again.
When you do it the second time it re-installs the packages and it won't fail at grub-mkconfig -o /boot/grub/grub.cfg

I have looked over this multiple times when installing I was wondering if those two options are in the wrong order or if its just something intentionally? This happened on two machines (1 VM and 1 Laptop)

Display disk size

It would be helpful to get the disk size displayed along with disk id when heaving to select a disk.

mount does not work for LUKS partitions

If the root is crypted, then the "mount exsisting" should call cryptsetup luksOpen /dev/<id> root and then mount /dev/mapper/root /mnt. This is useful if you run the archfi multiple times (e.g. if you forgot something). Great script 👍

HIDPI/4K Display

I don't know if I would consider this as an issue, but I am not too good at navigating github.
I use a Dell laptop that has a 4k display. I have installed arch through this script and it was flawless. The only issue that I had is the text/font size on my screen. It was so tiny the whole time that I eventually had a headache trying to read things. It would be greatly appreciated if support for bigger fonts on 4k screens/HIDPI was included in this script automatically or as an option when starting the script.
Thank you for the hard work put into this and looking forward to using it in the near future.

Install fails after reboot. System stuck at systemd version and fsck.

Scripts work fine during the install, however after reboot the system presents the starting version of systemd and does the fsck and than freezes. Unable to control alt F1 F2 etc.. Only key strokes that work are Control Alt Del. I tried using AUI last night and it was able to install and run fine. I did notice that during mkinitcpio for the fallback image there are quite a few missing firmwares with ArchFI. AUI did not have the same issue. I don't know if that is helpful or not. Love ArchFI, ArchDI and hope it gets working again in the future.

locale.gen twice en_US after sed

as we know locale.gen contains:

Examples:

en_US.UTF-8

#en_US.UTF-8

just add # in your version sed -i '/en_US.UTF-8/s/^#//g' /etc/locale.gen and in will not touch Examples block
sed -i '/#en_US.UTF-8/s/^#//g' /etc/locale.gen

Add instructions to add the installer in the archiso.

There is a guide on the Arch wiki to remaster the Arch iso.

In this way it's possible to add the arch installer in the iso before mounting the iso on a flash drive.

These instructions, or a link to this page could be added on the readme, which would look like this:

  • archfi
    • How to use
      • Method a: create regular iso then download the script from it
      • Method b: create remastered including the script

Having the installation script already in the archiso could be really useful. Among other things, this would allow adding in that installer some functions that configure the internet connection.[1]

It would be very helpful in particular when installing Arch via a wireless connection (some modern laptop does not have Ethernet plug).


[1]: Note that I can help for this and suggest a PR.

first run of archfi runs pacman before sync'ing the repo db

when running archfi immediately after boot, pacman is run before the first menu without doing a 'pacman -Sy' which results in errors:

warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
error: target not found: arch-install-scripts
error: target not found: wget
error: target not found: libnewt

Installing wget is not needed since it is already installed as part of the archiso build.

Since arch-install-scripts and libnewt are never installed, I can assume they aren't needed and this line can be removed from archfi entirely. Else, this will need to be done after the mirrorlist is configured and the initial package database has been sync'd.

file /etc/hosts is not updated by archfi

It appears the installation step for updating the /etc/hosts file isn't in the archfi script

According to the wiki, it should be updated as so:

127.0.0.1	localhost
::1		localhost
127.0.1.1	myhostname.localdomain	myhostname

Since we already have the hostname in a var, should be easy to output this file.
If agreed upon, I can submit a PR.

linux-lts systemd failure

Thank you for making this script, I've used it the last few times I needed to make an Arch machine.. and it has helped me greatly.

I chose linux-lts and systemd as the boot manager and I do not think there is entry for the lts kernel.

I understand the issue and will deal with it on my side accordingly.. but I will check out your script and see if I can make an adjustment.

Again thank you for your script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.