Skip to content

Instantly share code, notes, and snippets.

@nickpreston24
Forked from boseji/Manjaro-tricks.md
Created January 4, 2020 05:45
Show Gist options
  • Save nickpreston24/28a9d0e4ca7badeaec19663ff0250760 to your computer and use it in GitHub Desktop.
Save nickpreston24/28a9d0e4ca7badeaec19663ff0250760 to your computer and use it in GitHub Desktop.
Manjaro Linux : Tips and Tricks (ARCH Linux under the hood)

Manjaro Linux : Tips and Tricks

We have been using Manjaro linux for past year and have been happy with its perfomance. Though we don't use te AUR (Arch User Repository, since many are not supported into Manjaro.

The best part is even with bad / dumb users like myself, IT-DOES-NOT-BREAK. So, we very much recommend Manjaro.

It seriously worked much better than Ubuntu. We might not be able to have all the boat load of software & support like Debian, but we are happy.

Enough talk lets get some Juice !

Secure HTTPS Repository Updates

We know the importance to updates and we also know how important is to take it from correct sources. So after multiple tries we have made a small command. This to get all your Manjaro update repositories correct. And, more importantly Secure Repositories Configured.

sudo pacman-mirrors --api --protocols https --set-branch stable --fasttrack 5

Remove the Cyclic Dependency Problem

Some time you might have seen a warning Warning: Detected cyclic dependency in packages... Here is a command to refresh things and remove that warning:

sudo pacman -Syyu

In case you still face the problem Then run the Secure Repository Update command, then run the above one.

Installing Google Chrome

The Reference has been taken from :

https://linuxconfig.org/how-to-install-google-chrome-on-manjaro-18-linux

cd /tmp # Get to the temporary directory for downloading the Package
git clone --recursive https://aur.archlinux.org/google-chrome.git
cd google-chrome/
makepkg -s
# Now it would Start the Download of the Pckage
cp *.xz ~/Downloads/ # Copy the Package to your Desired location

Next right-click on the respective xz file and click on 'Open with Software Installer'. It would begin installation like a Normal package.

Next in a Terminal give the command:

google-chrome-stable

You can mark this as favorite to get a Icon in the Start bar or It would automatically get attached in the Application Menue. So eitherways, your chrome install is done.

Note: For SRWare IRON users

There is no effect on the SRWare Iron's operation. Google Chrome would make a Spearate folder for its configuraiton pieces.

Note: Where to Uninstall Chrome if needed

Open Package Manager -> Click on Installed -> Click on Foreign

Fix UEFI Bootloader Grub in Windows / Manjaro Multiboot

Its more than one instance I found that the Windows nearly killed itself and took down manjaro with it.

Typical of MS (who knows) - but manjaro is Hard to Crash.

Its very much alive only the UEFI boot got corrupted.

Let's work getting Manjaro back online.

Prepare a bootiable UEFI USB-drive for Manjaro

The easy way to do this under windows:

  1. Download Manjaro ISO
    I generally go for the gnome version. You can choose your own.

  2. Download the Rufus tool. Typically v3.5 and above should do the Job.

  3. Use the Rufus tool to create a Manjaro USB

    a. Here you would be asked for Formatting - Use FAT32 without modifying the Cluster size

    b. Make sure to select the GPT Partition Table Option for UEFI to work well

    c. More Details: https://wiki.manjaro.org/index.php?title=UEFI_-_Install_Guide

Fix the Grub Bootloader by Reinstall

Boot into Manjaro USB-Drive Using the Boot Selection by pressing either F8 Key or F12 key on the Key board. For most cases F12 key works.

Next in Open the Terminal window:

  1. List Partitions lsblk -f command.
    This would show all the partitions in the current disk. Genarally it would /dev/sda... where the '...' becomes sda1, sda2 and so on.

  2. Mount the Manjaro Partition Typically this would be the one marked with ext4 type.
    sudo mount /dev/sda8
    Choose the sda.. based on your installation.

  3. Mount the UEFI Partition Typically this would be vfat marked partition. In most cases it should be /dev/sda2. Give the command:
    sudo mount /dev/sda2 /mnt/boot/efi
    Note the /mnt/boot/efi since we are mounting inside our mount point.

  4. Next Go into chroot of the mounted filesystem:
    sudo manjaro-chroot /mnt
    You would end up into a strange sh5.2# like prompt. Not to worry here its your good old trusty Manjaro installation in PC/Laptop HDD.

  5. Give the command to install Manjaro:

    sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
    
  6. Next Give the Command to Update Grub:

    sudo update-grub
    
  7. More insight at
    https://forum.manjaro.org/t/solved-how-to-properly-restore-grub-with-efi-boot/75906/10
    https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader

If you are still facing any problem then try to chage the BIOS UEFI Boot Order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment