Kamis, 11 Februari 2021

Dual Booting Ubuntu With Windows 10 Pro With BitLocker Encryption

I have written about dual booting Windows and Ubuntu in the past. The process has improved so much in the last few years. Ubuntu and other Linux play very well with secure boot and UEFI now.

So, why I am I writing about installing Ubuntu with Windows 10 once again? Because these days Windows 10 Pro version comes with BitLocker encryption and hence when you try to dual boot like normal, it either refuses or creates issue.

I noticed it with my new Dell XPS 13. I bought the last Dell XPS in France and it was preinstalled with Ubuntu. Unfortunately, Dell India had no option other than buying the Windows 10 version. In a way, that’s good because it helped me to write this tutorial.

To be honest, dual booting with BitLocker encrypted disk is also not complicated. It just involves the extra step of disabling encryption before starting the dual boot and re-enable it after installing Linux.

Don’t worry. I won’t leave you just like that with my words. I’ll show you each and every step with appropriate details.

Installing Ubuntu with BitLocker Encrypted Windows 10

Please keep in mind that I have used Ubuntu here, but the steps should be applicable to Linux Mint and other Ubuntu-based distributions as well.

Attention!

This dual boot guide is exclusively for systems that have Windows 10 installed with BitLocker. Since it is relatively a newer thing, the steps are only for UEFI systems with GPT portioning scheme. Please check your system first before following the steps.

I also recommend reading the entire steps before you start following it. This may help you locate pain points and you may prepare accordingly.

Prerequisite

Here are the things you need:

  • A Windows 10 system with BitLocker encryption.
  • A USB key (also known as pen drive or USB drive) of at least 4 GB in size and no data on it.
  • Microsoft account for saving the recovery key of BitLocker encryption (external USB can be used as well but MS account will be more convenient).
  • Internet connection.
  • Optional: External USB disk for making back up of your data.
  • Optional: Windows recovery disk.
  • Some time and patience (mandatory).

Step 1: Make a backup of your important data on an external disk

This is optional yet recommended. You should make a backup of your important files on an external disk because you are going to deal with disk partitions.

If you are not sure of anything, I suggest look for documents, music, movies and other important stuff you must not lose and copy them on an external USB disk. You can use an external HDD (slower but cheaper) or SSD (faster but expensive).

You may also use a pen drive for copying files and storing it on some other computer (if you have more than one system).

If possible, have a Windows 10 recovery disk with you (optional)

This one is optional too but could be helpful if anything goes wrong. You could fix the boot records and restore Windows.

Step 2: Verify that you have BitLocker encrypted disk

First thing first, check if you actually have BitLocker encryption enabled. How do you do that? It’s simple. Go to file explorer and check if your main drive has a lock displayed.

Verify If Bitlocker On System

Alternatively, just search for BitLocker in Windows menu and see if you have BitLocker settings.

Bitlocker Settings
Bitlocker Settings

Step 3: Back up recovery key and disable BitLocker encryption

Now that you know that you have BitLocker encryption enabled on your system, the next step is to disable it.

Before you do that, you must back up your recovery key. It is a 40 digit key to reset BitLocker encryption. Why? Because you are going to change the boot settings and BitLocker won’t like that. It will ask you to enter the recovery key to ensure that your encrypted disk is in safe hands.

Bitlocker Encryption Windows

You may back up the key on an external USB disk or to your Microsoft account. I saved it to my Microsoft account because it is easier to keep track of the recovery keys at one central place. Of course, you must ensure that you have access to a Microsoft account.

Back Up Recovery Key

Verify that your recovery key is properly saved by going to this link and logging into your Microsoft account.

Once you have saved the recovery key, disable BitLocker encryption. The decryption process may take some time depending on how much disk space you had already utilized.

While you wait for the decryption to complete, you should go on and download Ubuntu ISO. Once BitLocker is disabled, you would notice that the lock has disappeared from the drive icon.

Step 4: Download Ubuntu ISO

Download Ubuntu Desktop

While the disk is being decrypted, you should utilize the time in downloading the ISO image of Ubuntu desktop version. It’s a single file of around 2 GB in size and you may download it directly or use torrent if you have a slow and inconsistent internet.

Step 5: Create a live USB of Ubuntu

Once you have got the ISO, you should get a tool for making the bootable live USB of Ubuntu.

You may use Etcher on Linux, Windows and macOS. However, the way Etcher creates a bootable disk leaves the USB in a weird state and you’ll have a difficult time formatting the disk after the dual boot is over.

For this reason, you are using Windows, I recommend using a free tool like Rufus. Download Rufus from its website.

Plug in the USB key. Since the USB will be formatted, make sure it doesn’t consist of any important data.

Rufus automatically identifies the plugged in USB keys but it will still be a good idea to make sure that it is pointing to the correct USB. Then you should browse to the location of the downloaded ISO image.

You must ensure that it uses GPT partitioning scheme and UEFI target system.

Make Live Usb With Rufus

Hit the start button to initiate the process of live USB creation. If asked, choose ‘Write in ISO Image mode’:

Making Live Usb With Rufus

It will take a few minutes to complete the process. Once you have the live USB ready, the next step is the actual installation of Ubuntu Linux.

Step 6: Boot from live USB

With the live USB of Ubuntu plugged in to your Windows system, it’s time to boot into this live system. There are two ways to do that:

  1. Restart the system and at the boot time, press F2/F10 or F12 to access boot settings. From here, move ‘booting from removable media’ up the order to boot from USB.
  2. From within Windows, access UEFI settings and choose to boot from removable media. This will reboot the system and you’ll be booting from the USB.

I prefer the second method because you may have difficulties in with boot settings from the first method.

In the Windows menu, search for UEFI and click on ‘Change advanced startup options’:

Accessing Uefi Settings Windows

Under the Advanced startup option, click on Restart now button.

Access Uefi Settings Windows

On the next screen, click on ‘Use a device’:

Access Uefi Settings Windows 1

Recognize the USB disk with its name and size:

Access Uefi Settings Windows 2

Now it will power off your system and reboot into the disk you chose which should be the live USB disk.

Step 7: Installing Ubuntu with Windows

When you boot from the live USB, you should see the GRUB screen that presents you the option to try Ubuntu in live USB or install it right away. You may go with either option.

Ubuntu Live Install Screen
Booting into live Ubuntu USB

If you chose to try live USB, you should see the installation option on the desktop screen.

Start Installing Ubuntu
Start Ubuntu installation from live session

Clicking it will start the installation procedure that starts with choosing language and keyboard layout.

On the next screen, it asks for the kind of installation. Go with Normal installation. No need to download updates or install third-party software just yet. You may do it after installation completes. In my experience, it increases the installation duration and may create issues at times. I prefer to avoid it.

Install Ubuntu by replacing Windows
Go with normal installation

It takes a little time and then you see the Installation type screen. This is one of the most important parts of the dual booting procedure.

If you see the ‘Install Ubuntu alongside Windows Boot Manager’, it’s good news. You can proceed with the rest of the installation.

Ubuntu Installation Type
Choose to install alongside Windows

But if you are one of the unlucky ones who don’t see this option, you’ll have to quit the installation and do some additional efforts that I have explained under the expandable section.

What to do if you don’t see ‘Install Ubuntu alongside Windows’ option?

Here’s what you should be doing. Quit the installation. Power off the live Ubuntu session, take out the live USB and turn on the system again.

When you boot into Windows, go to Disk Management settings. Here, shrink your C Drive (or D/E/F drives wherever you have plenty of free space) and make some free space like 50, 100 GB or more.

Disk partitioning for dual booting Windows and Ubuntu

Once you have the free space, repeat the procedure from step 6. Which means boot from the USB and start the installation procedure. When you see the Installation type screen again, go with Something Else this time.

Install Ubuntu Something Else

It will take you to the partitioning screen. Here, you can use the free space you created earlier for installing Ubuntu.

partition on Ubuntu Windows 8 dual boot

You may choose to allocate the entire free space to root (swapfile and home will be created automatically under root) or you can separate root, swap and home partitioning. Both methods are fine.

Creating partition for Ubuntu installation

Once the partition is in place, click on Install now and follow the rest of the tutorial.

Things are pretty straightforward from here. You’ll be asked to select a timezone.

Installing Ubuntu Timezone Selection

You’ll be asked to enter a username, hostname (computer’s name) and a password. Pretty obvious, right?

Installing Ubuntu Account Setup

Now it’s just the matter of waiting. It should take 8-10 minutes to complete the installation.

Installing Ubuntu

Once the installation finishes, restart the system.

Restart After Installing Ubuntu
Restart after installation completes

You’ll be asked to remove the USB disk. You can remove the disk at this stage without worrying. The system reboots after this.

Ubuntu Finished Installation
Remove USB and press enter

If everything went smooth, you should see the grub screen once the system powers on. Here, you can choose Ubuntu to boot into Ubuntu and Windows boot manager to boot into Windows. Pretty cool, right?

Dual Boot Grub Screen
You can choose the operating system from the grub screen

If you don’t see the option to install Ubuntu alongside Windows, quit the installation, turn off the system and boot into Windows. Here, make some free space on your disk by shrinking your disk size.

What are your option if you don’t see the grub screen?

In some unfortunate cases, you may not see the grub screen. There are a few possibilities here.

If it boots straight into Windows, go to UEFI boot settings and see if there is an option for Ubuntu along with Windows. If yes, try to move Ubuntu up in the boot order.

If you see grub rescue screen, you may try to fix the boot issue by booting into live Ubuntu USB and use the boot repair tool.

If you are not able to fix the grub error and getting panic attack, calm down. You can revert to Windows. Go into UEFI boot settings and use Windows boot manager to boot into Windows. Here, delete the Ubuntu partition to claim the disk space and from the UEFI boot settings, delete the Ubuntu/grub boot file.

If you are not able to boot into Windows at all (extremely rare case), it is time to utilize the Windows recovery disk and the backup you had made earlier.

When you boot into Ubuntu, you should see this welcome screen.

Ubuntu After Booting
Ubuntu first run

You are at penultimate stage. The only remaining part is to re-enable BitLocker for your Windows partitioning, if you want encryption again. You may leave it unencrypted as well. It’s really up to you.

Step 8: Enable Bitlocker after installing Ubuntu successfully

Restart your system and select Windows boot manager at the grub screen to boot into Windows. In Windows, go to BitLocker settings and click on ‘Turn on BitLocker’ option.

Re Enable Bitlocker
Re Enable BitLocker

Here’s an important thing. Each time you disable and re-enable BitLocker the recovery key changes. This is why you’ll be asked to back up your recovery key once again. Save it to your account once again.

Back Up Recovery Key Again
Back up recovery key again

On the next step, it asks if you want to encrypt the entire disk or only the used space. You can choose either option depending on your need.

Encrypt Disk With Bitlocker
Encrypt disk space With BitLocker

Go with the new encryption mode:

Encryption Type
Encryption Type

Start the encryption. Please keep in mind that encrypting the disk will take some time (based on your used disk space) and consumes considerable processing power. Have patience.

Bitlocker Encryption Completed

Things look all set. Before ending the tutorial, I’ll also show you what to do when Windows asks for the BitLocker recovery key.

Bonus Tip: Using BitLocker recovery (when asked for it)

When you re-enable BitLocker, it can sense that the boot settings has been changed. For that reason, it will ask for the recovery key when you try to boot into Windows after re-enabling BitLocker.

It mentions the recovery key ID. The first eight characters are important to identify the correct recovery key.

Bitlocker Recovery Key
BitLocker asking for recovery key

On a mobile device or on another computer or boot into Ubuntu and then access your Microsoft account and look at the saved recovery keys.

You may have more than one recovery keys on the account of saving the key multiple times. This is where the recovery key ID comes in handy. Take a note of the 40 digit recovery key associated to that recovery key ID.

Bitlocker Recovery Keys Ms Account
BitLocker recovery keys in Microsoft account

Enter this recovery key to unlock BitLocker and access Windows.

Don’t worry. It won’t ask you for the recovery key every time you boot into Windows. It is just when you make a change in the boot settings.

Were you able to successfully dual boot Windows 10 with Ubuntu and BitLocker?

I know it was long read with too many steps and images. I actually tried to give you all the necessary details so that you don’t feel uncomfortable or lost at any stage. I am also working on a video for these steps so that you can see things in action.

If you tried the tutorial, did it work for you? Do you still have problems or questions? Please feel free to ask in the comment section.



from It's FOSS https://ift.tt/373InJc
via IFTTT

Selasa, 09 Februari 2021

How to Add Fingerprint Login in Ubuntu and Other Linux Distributions

Many high-end laptops come with fingerprint readers these days. Windows and macOS have been supporting fingerprint login for some time. In desktop Linux, the support for fingerprint login was more of geeky tweaks but GNOME and KDE have started supporting it through system settings.

This means that on newer Linux distribution versions, you can easily use fingerprint reading. I am going to enable fingerprint login in Ubuntu here but you may use the steps on other distributions running GNOME 3.38.

Prerequisite

This is obvious, of course. Your computer must have a fingerprint reader.

This method works for any Linux distribution running GNOME version 3.38 or higher. If you are not certain, you may check which desktop environment version you are using.

KDE 5.21 also has a fingerprint manager. The screenshots will look different, of course.

Adding fingerprint login in Ubuntu and other Linux distributions

Go to Settings and the click on Users from left sidebar. You should see all the user account on your system here. You’ll see several option including Fingerprint Login.

Click on the Fingerprint Login option here.

Enable Fingerprint Ubuntu
Enable fingerprint login in Ubuntu

It will immediately ask you to scan a new fingerprint. When you click the + sign to add a fingerprint, it presents a few predefined options so that you can easily identify which finger or thumb it is.

You may of course scan left thumb by clicking right index finger though I don’t see a good reason why you would want to do that.

Adding Fingerprint Login Ubuntu
Adding fingerprint

While adding the fingerprint, rotate your finger or thumb as directed.

Adding Fingerprint Ubuntu Linux
Rotate your finger

Once the system registers the entire finger, it will give you a green signal that the fingerprint has been added.

Fingerprint Added Ubuntu
Fingerprint successfully added

If you want to test it right away, lock the screen by pressing Super+L keyboard shortcut in Ubuntu and then using the fingerprint for login.

Login With Fingerprint Ubuntu
Login With Fingerprint in Ubuntu

Experience with fingerprint login on Ubuntu

Fingerprint login is what its name suggests: login using your fingerprint. That’s it. You cannot use your finger when it asks for authentication for programs that need sudo access. It’s not a replacement of your password.

One more thing. The fingerprint login allows you to log in but you cannot use your finger when your system asks for sudo password. The keyring in Ubuntu also remains locked.

Another annoying thing is because of GNOME’s GDM login screen. When you login, you have to click on your account first to get to the password screen. This is where you can use your finger. It would have been nicer to not bothered about clicking the user account ID first.

I also notice that fingerprint reading is not as smooth and quick as it is in Windows. It works, though.

If you are somewhat disappointed with the fingerprint login on Linux, you may disable it. Let me show you the steps in the next section.

Disable fingerprint login

Disabling fingerprint login is pretty much the same as enabling it in the first place.

Go to Settings→User and then click on Fingerprint Login option. It will show a screen with options to add more fingerprints or delete the existing ones. You need to delete the existing fingerprints.

Disable Fingerprint Login
Disable Fingerprint Login

Fingerprint login does have some benefits, specially for lazy people like me. I don’t have to type my password every time I lock the screen and I am happy with the limited usage.

Enabling sudo with fingerprint should not be entirely impossible with PAM. I remember that when I set up face unlock in Ubuntu, it could be used with sudo as well. Let’s see if future versions add this feature.

Do you have a laptop with fingerprint reader? Do you use it often or is it just one of things you don’t care about?



from It's FOSS https://ift.tt/3cYicHo
via IFTTT

Senin, 08 Februari 2021

Viper Browser: A Lightweight Qt5-based Web Browser With A Focus on Privacy and Minimalism

Brief: Viper Browser is a Qt-based browser that offers a simple user experience keeping privacy in mind.

While the majority of the popular browsers run on top of Chromium, unique alternatives like Firefox, Beaker Browser, and some other chrome alternatives should not cease to exist.

Especially, considering Google’s recent potential thought of stripping Google Chrome-specific features from Chromium giving an excuse of abuse.

In the look-out for more Chrome alternatives, I came across an interesting project “Viper Browser” as per our reader’s suggestion on Mastodon.

Viper Browser: An Open-Source Qt5-based Browser

Note: Viper Browser is fairly a new project with a couple of contributors. It lacks certain features which I’ll be mentioning as you read on.

Viper Browser

Viper is an interesting web browser that focuses on being a powerful yet lightweight option while utilizing QtWebEngine.

QtWebEngine borrows the code from Chromium but it does not include the binaries and services that connect to the Google platform.

I spent some time using it and performing some daily browsing activities and I must say that I’m quite interested. Not just because it is something simple to use (how complicated a browser can be), but it also focuses on enhancing your privacy by giving you the option to add different Ad blocking options along with some useful options.

Viper Browser Setup

Even though I think it is not meant for everyone, it is still worth taking a look. Let me highlight the features briefly before you can proceed trying it out.

Features of Viper Browser

Viper Preferences

I’ll list some of the key features that you can find useful:

  • Ability to manage cookies
  • Multiple preset options to choose different Adblocker networks
  • Simple and easy to use
  • Privacy-friendly default search engine – Startpage (you can change this)
  • Ability to add user scripts
  • Ability to add new user agents
  • Option to disable JavaScript
  • Ability to prevent images from loading up

In addition to all these highlights, you can easily tweak the privacy settings to remove your history, clean cookies when existing, and some more options.

Viper Browser Tools

Installing Viper Browser on Linux

It just offers an AppImage file on its releases section that you can utilize to test on any Linux distribution.

In case you need help, you may refer to our guide on using AppImage file on Linux as well. If you’re curious, you can explore more about it on GitHub.

My Thoughts on Using Viper Browser

I don’t think it is something that could replace your current browser immediately but if you are interested to test out new projects that are trying to offer Chrome alternatives, this is surely one of them.

When I tried logging in my Google account, it prevented me by mentioning that it is potentially an insecure browser or unsupported browser. So, if you rely on your Google account, it is a disappointing news.

However, other social media platforms work just fine along with YouTube (without signing in). Netflix is not something supported but overall the browsing experience is quite fast and usable.

You can install user scripts, but Chrome extensions aren’t supported yet. Of course, it is either intentional or something to be looked after as the development progresses considering it as a privacy-friendly web browser.

Wrapping Up

Considering that this is a less-known yet something interesting for some, do you have any suggestions for us to take a look at? An open-source project that deserves coverage?

Let me know in the comments down below.



from It's FOSS https://ift.tt/39WnSzR
via IFTTT

Selasa, 02 Februari 2021

5 Tweaks to Customize the Look of Your Linux Terminal

The terminal emulator or simply the terminal is an integral part of any Linux distribution.

When you change the theme of your distribution, often the terminal also gets a makeover automatically. But that doesn’t mean you cannot customize the terminal further.

In fact, many It’s FOSS readers have asked us how come the terminal in our screenshots or videos look so cool, what fonts do we use, etc.

To answer this frequent question, I’ll show you some simple and some complex tweaks to change the appearance of the terminal. You can compare the visual difference in the image below:

Default TerminalCustomized Terminal

Customizing Linux Terminal

This tutorial utilizes a GNOME terminal on Pop!_OS to customize and tweak the look of the terminal. But, most of the advice should be applicable to other terminals as well.

For most of the elements like color, transparency, and fonts, you can utilize the GUI to tweak it without requiring to enter any special commands.

Open your terminal. In the top right corner, look for the hamburger menu. In here, click on “Preferences” as shown in the screenshot below:

Linux Terminal Preferences

This is where you’ll find all the settings to change the appearance of the terminal.

Tip 0: Use separate terminal profiles for your customization

I would advise you to create a new profile for your customization. Why? Because this way, your changes won’t impact the main terminal profile. Suppose you make some weird change and cannot recall the default value? Profiles help separate the customization.

As you can see, Abhishek has separate profiles for taking screenshots and making videos.

Terminal Profiles
Terminal Profiles

You can easily change the terminal profiles and open a new terminal window with the new profile.

Change Terminal Profile
Change Terminal Profile

That was the suggestion I wanted to put forward. Now, let’s see those tweaks.

Tip 1: Use a dark/light terminal theme

You may change the system theme and the terminal theme gets changed. Apart from that, you may switch between the dark theme or light theme, if you do not want to change the system theme.

Once you head in to the preferences, you will notice the general options to change the theme and other settings.

Terminal Theme

Tip 2: Change the font and size

Select the profile that you want to customize. Now you’ll get the option to customize the text appearance, font size, font style, spacing, cursor shape, and toggle the terminal bell sound as well.

For the fonts, you can only change to what’s available on your system. If you want something different, download and install the font on your Linux system first.

One more thing! Use monospaced fonts otherwise fonts might overlap and the text may not be clearly readable. If you want suggestions, go with Share Tech Mono (open source) or Larabiefont (not open source).

Under the Text tab, select Custom font and then change the font and its size (if required).

Terminal Customization 1

Tip 3: Change the color pallet and transparency

Apart from the text and spacing, you can access the “Colors” tab and change the color of the text and background of your terminal. You can also adjust the transparency to make it look even cool.

As you can notice, you can change the color palette from a set of pre-configured options or tweak it yourself.

Terminal Color Customization

If you want to enable transparency just like I did, you click on “Use transparent background” option.

You can also choose to use colors from your system theme, if you want a similar color setting with your theme.

Linux Terminal

Tip 4: Tweaking the bash prompt variables

Usually, you will see your username along with the hostname (your distribution) as the bash prompt when launching the terminal without any changes.

For instance, it would be “ankushdas@pop-os:~$” in my case. However, I permanently changed the hostname to “itsfoss“, so now it looks like:

Itsfoss Hostname

To change the hostname, you can type in:

hostname CUSTOM_NAME

However, this will be applicable only for the current sessions. So, when you restart, it will revert to the default. To permanently change the hostname, you need to type in:

sudo hostnamectl set-hostname CUSTOM_NAME

Similarly, you can also change your username, but it requires some additional configuration that includes killing all the current processes associated with the active username, so we’ll avoid it to change the look/feel of the terminal.

Tip 5: NOT RECOMMENDED: Changing the font and color of the bash prompt (for advanced users)

However, you can tweak the font and color of the bash prompt (ankushdas@itsfoss:~$) using commands.

You will need to utilize the PS1 environment variable which controls what is being displayed as the prompt. You can learn more about it in the man page.

For instance, when you type in:

echo $PS1

The output in my case is:

\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$

We need to focus on the first part of the output:

\[\e]0;\u@\h: \w\a\]$

Here, you need to know the following:

  • \e is a special character that denotes the start of a color sequence
  • \u indicates the username followed by the @ symbol
  • \h denotes the hostname of the system
  • \w denotes the base directory
  • \a indicates the active directory
  • $ indicates non-root user

The output in your case can be different, but the variables will be the same, so you need to play with the commands mentioned below depending on your output.

Before you do that, keep these in mind:

  • Codes for text format: 0 for normal text, 1 for bold, 3 for italic and 4 for underline text
  • Color range for background colors: 40-47
  • Color range for text color: 30-37

You just need to type in the following to change the color and font:

PS1="\e[41;3;32m[\u@\h:\w\a\$]"

This is how your bash prompt will look like after typing the command:

Terminal Bash Prompt Customization

If you notice the command properly, as mentioned above, \e helps us assign a color sequence.

In the command above, I’ve assigned a background color first, then the text style, and then the font color followed by “m“.

Here, “m” indicates the end of the color sequence.

So, all you have to do is, play around with this part:

41;3;32

Rest of the command should remain the same, you just need to assign different numbers to change the background color, text style, and text color.

Do note that this is in no particular order, you can assign the text style first, background color next, and the text color at the end as “3;41;32“, where the command becomes:

PS1="\e[3;41;32m[\u@\h:\w\a\$]"
Linux Terminal Customization 1s

As you can notice, the color customization is the same no matter the order. So, just keep in mind the codes for customization and play around with it till you’re sure you want this as a permanent change.

The above command that I mentioned temporarily customizes the bash prompt for the current session. If you close the session, you will lose the customization.

So, to make this a permanent change, you need to add it to .bashrc file (this is a configuration file that loads up every time you load up a session).

Bashrch Customization Terminal

You can access the file by simply typing:

sudo nano .bashrc

Unless you’re sure what you’re doing, do not change anything. And, just for the sake of restoring the settings back, you should keep a backup of the PS1 environment variable (copy-paste what’s in it by default) to a text file.

So, even if you need the default font and color, you can again edit the .bashrc file and paste the PS1 environment variable.

Bonus Tip: Change the terminal color pallet based on your wallpaper

If you want to change the background and text color of the terminal but you are not sure which colors to pick, you can use a Python-based tool Pywal. It automatically changes the color of the terminal based on your wallpaper or the image you provide to it.

Change Linux terminal color based on wallpaper

I have written about it in details if you are interested in using this tool.

Wrapping Up

Of course, it is easy to customize using the GUI while getting a better control of what you can change. But, the need to know the commands is also necessary in case you start using WSL or access a remote server using SSH, you can customize your experience no matter what.

How do you customize the Linux terminal? Share your secret ricing recipe with us in the comments.



from It's FOSS https://ift.tt/3rihRDy
via IFTTT

Paru – A New AUR Helper and Pacman Wrapper Based on Yay

One of the main reasons that a user chooses Arch Linux or an Arch based Linux distribution is the Arch User repository (AUR).

Unfortunately, pacman, the package manager of Arch, can’t access the AUR in a similar way to the official repositories. The packages in AUR are in the form of PKGBUILD and require a manual process to be built.

An AUR helper can automate this process. Without any doubt yay is one of the most popular and highly favoured AUR helper.

Recently Morganamilo, one of the two developers of yay, announced that is stepping away from maintaining yay and starting his own AUR helper called paru. Paru is written in Rust compared to yay that is written in Go and its design is based on yay.

Please note that yay hasn’t reach the end of life and is still being actively maintained by Jguer. He also commented that paru may be suitable for users that looking for a feature rich AUR helper; thus I would recommend giving it a try.

Installing Paru AUR helper

To install paru, open your terminal and type the following commands one by one.

sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si

Now that you have it installed, let’s see how to use it.

Essential commands to use Paru AUR helper

In my opinion these are the most essential commands of paru. You can explore more on the official repository on GitHub.

  • paru <userinput> : Search and install <userinput>.
  • paru — : Alias for paru -Syu
  • paru -Sua : Upgrade AUR packages only
  • paru -Qua : Print available AUR updates
  • paru -Gc <userinput> : Print the AUR comments of <userinput>

Using Paru AUR helper to its full extent

You can access the changelog of paru on GitHub for the full changelog history or you can see the changes from yay at the first release.

Enable colour in Paru

To enable colour in paru, you have to enable it first in pacman. All the configuration files are in /etc directory. In this example, I use Nano text editor but, you may use any terminal-based text editor of your choice.

sudo nano /etc/pacman.conf

Once you open the pacman configuration file, uncomment the “Color” to enable this feature.

Pacman.conf Color

Flip search order

The most relevant package according to your search term is normally displayed on the top of the search result. In paru, you can flip the search order to make your search easier.

Similar to the previous example, open the paru configuration file:

sudo nano /etc/paru.conf

Uncomment the “BottomUp” term and save the file.

Paru AUR helper configuration

As you can see the order is flipped and the first package appears on the bottom.

Paru.conf Bottomup 2

Edit PKGBUILDs (For advanced user)

If you are an experienced Linux user, you can edit AUR packages through paru. To do so, you need to enable the feature from the paru configuration file and set the file manager of your choice.

In this example I will use the default in the configuration file i.e. the vifm file manager. If you haven’t used it you may need to install it.

sudo pacman -S vifm
sudo nano /etc/paru.conf

Open the configuration file and uncomment as shown below.

Paru.conf Vifm

Let’s go back to the Google Calendar AUR package and try to install it. You will be prompted to review the package. Type yes and click enter.

Paru Proceed For Review

Choose the PKGBUILD from the file manager and hit enter to view the package.

Paru Proceed For Review 2

Any change that you make will be permanent and the next time you upgrade the package, your changes will be merged with the upstream package.

Paru Proceed For Review 3

Conclusion

Paru is another interesting addition to the AUR helpers family with a promising future. At this point I wouldn’t suggest replacing yay as it is still maintained but definitely give paru a try. You can have both of them installed to your system and come to your own conclusions.

To get the latest Linux news, subscribe to our social media to be among the first to get them whilst they are fresh!



from It's FOSS https://ift.tt/3tmh6v1
via IFTTT