64 How to install Linux on its own PC?

These are notes I made when installing Linux EOS/Arch on its own PC.

to install brave browser on EOS/arch do

curl -fsS https://dl.brave.com/install.sh | sh
 

To install pacman GUI manager

sudo pacman -Syu 
yay -S pamac-aur
 

To mount windows NTFS drive to linux, do

sudo mkdir /mnt/g
 

now mount it, make sure to use same uid and gid as id shows there is no need to change owner on g above, which is owned by root as the mount command below will automatically changed it to user also

>id 
uid=1000(me) gid=1001(me) groups=1001(me),3(sys),981(rfkill),998(wheel),1000(autologin)
 

Now do

>sudo mount -t ntfs-3g -o uid=1000,gid=1001 /dev/sdb1 /mnt/g 
 
#or 
 
sudo mount -t ntfs-3g -o uid=1000,gid=1001 /dev/sdc1 /mnt/g
 

Make sure to do /dev/sdb1 and not just /dev/sdb which is what fdisk -l shows. i.e. add 1 at end.

sudo fdisk -l
 

You see, all files are now owned by me

ls -l /mnt/g 
total 16 
drwxrwxrwx 1 me me    0 Jul 14  2020 '$RECYCLE.BIN' 
drwxrwxrwx 1 me me    0 Apr 14  2022  nabbasi 
drwxrwxrwx 1 me me 8192 Apr 15  2022  public_html 
drwxrwxrwx 1 me me    0 Mar 20  2021 'System Volume Information' 
drwxrwxrwx 1 me me    0 May 16  2021  Users
 

To unmount do

sudo umount /mnt/g
 

If you get this error

>sudo mount -t ntfs-3g -o uid=1000,gid=1001 /dev/sdc1 /mnt/g 
The disk contains an unclean file system (0, 0). 
Metadata kept in Windows cache, refused to mount. 
Falling back to read-only mount because the NTFS partition is in an 
unsafe state. Please resume and shutdown Windows fully (no hibernation 
or fast restarting.) 
Could not mount read-write, trying read-only
 

Then do this

>sudo umount /mnt/g 
>sudo ntfsfix /dev/sdc1 
Mounting volume... The disk contains an unclean file system (0, 0). 
Metadata kept in Windows cache, refused to mount. 
FAILED 
Attempting to correct errors... 
Processing $MFT and $MFTMirr... 
Reading $MFT... OK 
Reading $MFTMirr... OK 
Comparing $MFTMirr to $MFT... OK 
Processing of $MFT and $MFTMirr completed successfully. 
Setting required flags on partition... OK 
Going to empty the journal ($LogFile)... OK 
Checking the alternate boot sector... OK 
NTFS volume version is 3.1. 
NTFS partition /dev/sdc1 was processed successfully. 
>
 

Now it mount OK

>sudo mount -t ntfs-3g -o uid=1000,gid=1001 /dev/sdc1 /mnt/g 
>
 

to install bootles

sudo pacman -Syu flatpak 
 
flatpak install bottles