Rabu, 31 Mei 2023

FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

Immutable is the new buzzword in the Linux world. Started with container-focused working environments, and it is also coming to desktop variants.

With Fedora already there, Ubuntu is also planning for a Snap-based immutable desktop edition in 2024.

Seems like immutability is the future of Linux.

๐Ÿ’ฌ Let's see what else you have in this edition of FOSS Weekly:

  • First look at Sniffnet, a Rust-based network monitoring tool
  • Using face unlocking in Linux
  • And other Linux news, videos, puzzles and, of course, memes!

๐Ÿ“ฐ Linux news

  • The Budgie-flavored Fedora Onyx is all set to be a new immutable Fedora Variant.
  • PyPI recently had to share user data with the US Department of Justice.
  • Microsoft has made Azure Linux generally available as a container host for Azure Kubernetes.
  • Mozilla introduced a brand-new logo for the Thunderbird email client.
  • MX Linux 23 Beta is now available for testing.
Snap-based Immutable Ubuntu Desktop to Come With 24.04 LTS!
Ubuntu is likely to offer an immutable desktop option based on Snap with the release of Ubuntu 24.04 LTS.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿง  What we’re thinking about

There is no cloud. It's just someone else's computer. Own your computer. Or should I say, own your servers?

Introducing the Librem Server v2 – Purism
Purism makes premium phones, laptops, mini PCs and servers running free software on PureOS. Purism products respect people’s privacy and freedom while protecting their security.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿ›️ Interesting offers for Linux users

Unleash the creative power of Blender, the free and open-source software tool for 3D artists, with this bundle of books from Packt.

Humble Tech Book Bundle: Blender Animation and Games by Packt
We’ve teamed up with Packt for our newest bundle. Get books like Game Development with Blender and Godot. Plus, pay what you want & support charity!
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿงฎ Tips and Tutorials

Even though Snap packages are updated automatically, you can still control updates manually. Learn more on the update mechanism of Snap.

How to Update Snap Packages in Ubuntu
Snap packages are automatically updated. But you can still control the updates manually. Learn all about Snap updates here.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

By default, Netflix only streams in 720p which is not even considered HD anymore. Here is what you can do to improve streaming quality on Firefox and Chrome.

Watch Netflix in Full HD on Firefox
Paying for full HD streaming to Netflix and yet it doesn’t play in 1080p? Here’s how you can make Netflix play full HD on Firefox browser.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

If you are in experimental mode, here's something you can try.

How to Set Up Face Unlock on Ubuntu and Other Linux Distros
Missing the Windows Hello kind of unlocking of your system on Linux? Learn how to set up face unlock on Ubuntu and other Linux distributions.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿ“น What we are watching

Three videos in three weeks! Is there a reward for such a streak? ๐Ÿ˜‰


✨ Application highlights

Sniffnet is a pretty neat tool for monitoring the network activity on your system.

Sniffnet: An Interesting Open-Source Network Monitoring Tool Anyone Can Use
Take a glance at your network connection with this handy app.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿ’กQuick Linux tip

Nautilus has the feature to show recently visited folders. On the top left, right-click on the back arrow to get the list of previously visited folders.

FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿคฃ Meme of the week

Ubuntu is embracing Snap. The users might not ;)

FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿ—“️ Tech trivia

File sharing service Napster was released on June 1, 1999. The service provided a simple way for users to copy and distribute MP3 music files. It became an instant hit among young internet users. Napster was sued by the Recording Industry Association of America a few months later and as a result, it was shut down in 2002.


๐Ÿงฉ Puzzle (for Pro members only)

This week's puzzle is slightly like crosswords, but it's not exactly the same.

When you answer all the questions correctly, it reveals a hidden word. Can you do that?

Puzzle of The Week: Acrostic #1: Reveal the hidden word
Exercise those ‘little gray cells’ of yours and solve this puzzle.
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐Ÿง‘‍๐Ÿค‍๐Ÿง‘ FOSSverse corner

A long-time It's FOSS reader, Ernie, shared his experience finding the perfect distro for his older laptop.

I think I’ve found the right distro for my aging (older) laptop!
Windows 10 reaches end of life next year. When my wife passed away, I ‘inherited’ her laptop, so I named it charpc. It is a Dell Experion 5000 series UEFI based device with TPM2, but the CPU will never pass the Windows 11 hardware requirements, so for about the past year (I like to be proactive), I…
FOSS Weekly #23.22: Immutable Ubuntu Edition, Face Unlock and More Linux Stuff

๐ŸŽ‰ We reached 21,000 members on It's FOSS. Thanks for being part of this journey.


❤️ Enjoying FOSS Weekly?

Forward it to Linux-using friends and encourage them to subscribe (hint: it's here).

Become a Pro member and show your support ๐Ÿ™

Share the newsletter and the articles in Linux communities on Reddit and other platforms.

Native French or Deutsch speaker? Like the Spanish section, I am looking to expand It's FOSS in French and Deutsch languages. And I need help with the translation. Want to help me out? Press the reply button :)



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

Selasa, 30 Mei 2023

Install and Use pipx in Linux

Install and Use pipx in Linux

Pip is a popular tool for installing Python packages and modules from Python Package Index.

However, in recent distribution versions, pip users are encountering an externally-managed-environment error.

Install and Use pipx in Linux

That's a 'feature' added to avoid conflicts between Python packages installed via Pip and the native package manager. Python wants you to use separate virtual environments instead of installing the package at the global level via Pip.

This is where pipx comes into the picture. It creates a new virtual environment for each application you install and then creates links to local binary in the /bin at the global level. All this is automatic. It saves time and effort for you.

Let's see how to install and use Pipx on Ubuntu and other Linux distributions.

Install pipx on Ubuntu and other Linux

The installation is straightforward and can be installed using the following command on Ubuntu and Debian:

sudo apt update && sudo apt install pipx

For other distributions, please use your package manager and install it.

Once you are done with the installation, add it to the $PATH so it can be accessed from everywhere:

pipx ensurepath
Install and Use pipx in Linux

Close the terminal and start it again. That's it! Now, let's have a look at how to use it.

Using pipx

What is the primary use of a package manager? Package installation, updation, and removal.

Let me show how you can do the following with pipx:

  • Search packages
  • Package installation
  • Upgradation
  • Package removal

Let's start with the installation.

How to install packages using pipx

To install packages using pipx, you'd have to follow a simple command syntax:

pipx install <package_name>

For example, here, I installed a very useful program Cowsay:

pipx install cowsay
Install and Use pipx in Linux

Similarly, if you want to install a specific version of the package, you'd have to insert the version number followed by == as shown:

pipx install package==version

For example, here, I installed numpy version 1.24.1:

pipx install numpy==1.24.1
Install and Use pipx in Linux

How to search packages

The pipx utility does not have a search feature (because of limited API use of PyPI) but that doesn't mean you can't search Python packages.

To search packages, you'd have to install pypisearch:

pipx install pypisearch

Once you do that, you can search the packages using the pypisearch command:

pypisearch python_package_name

Here, I searched for neofetch:

Install and Use pipx in Linux

How to upgrade packages using pipx

Like any other modern package manager, you can upgrade all packages at once or you can upgrade one package at a time.

To upgrade all the packages at once, all you have to do is execute the following command:

pipx upgrade-all
Install and Use pipx in Linux

As you can see, it upgraded numpy to the latest version.

But if you want to upgrade a specific package, here's how you do it:

pipx upgrade package-name

Let's say I want to upgrade cowsay package to the latest version, then, I will be using the following:

pipx upgrade cowsay
Install and Use pipx in Linux

How to uninstall packages using pipx

To remove packages, you'd have to use the uninstall flag as shown:

pipx uninstall package_name

For your reference, here, I removed numpy from my system:

pipx uninstall numpy
Install and Use pipx in Linux

Pip or Pipx?

The restrictions put on Pip have limited its use by the end users. Thankfully, Pipx provides the much-needed alternative. It meets the Python guidelines of using virtual environments and, at the same time, allows installed applications to be available at the global level.

For end users, who are not Python application developers, this gives the option to use Python applications unavailable in distribution repositories.

I hope you find this tutorial helpful. Let me know if you have questions or suggestions.



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

Senin, 29 Mei 2023

How to Update Snap Packages in Ubuntu

How to Update Snap Packages in Ubuntu

The snap packages are now an integral part of Ubuntu.

I mean, you can remove Snap from Ubuntu but they are still at the core of Ubuntu.

When it comes to updating Ubuntu, you'll come across apt update and apt upgrade commands. No one really talks about snap update command.

That's because Snap updates are automatically updated to newer versions. It's built-in to the Snap mechanism. Your system checks for the updates multiple times daily and updates Snap applications automatically.

But this does not mean you cannot update Snap packages manually. Knowing about Snap updates also help you understand some of the underlying mechanism.

Let me show you how Snap update works and how you can control various parameters.

๐Ÿ“‹
The snap refresh command is used for updating Snap packages.

Check Snap update schedule

As I mentioned earlier, the snapd daemon checks for updates on installed Snap packages multiple times a day.  By default, it checks for updates four times a day.

You can see all these details using this command:

snap refresh --time

It gives me the following output:

How to Update Snap Packages in Ubuntu

In here, timer: 00:00~24:00/4 tells you that the refresh check takes place 4 times in the span of 24 hours.

It also shows that the last Snap update check took place at 09:19 and the next one is scheduled at 15:33.

๐Ÿ‹️
You can change the refresh schedule for snaps using refresh.timer option. For example, sudo snap set system refresh.timer=6:00-8:00,20:00-22:00 will make the Snap update check to happen between 6 and 8 in the morning and 8 and 10 at night.

See which Snap applications can be updated

You can check which Snap packages have updates available with the following command:

snap refresh --list

If no Snap package has updates, you'll see this message.

All snaps up to date.
How to Update Snap Packages in Ubuntu

Update all Snap packages manually

If you don't want to wait till the next Snap refresh, you can surely manually update all the Snap packages that can be updated.

All you have to do is to run this command:

sudo snap refresh

And see the updates take place.

Update specific Snap packages

If you only want to update a specific Snap package, use:

sudo snap refresh package_name

You'll need to be precise with the package name, of course. You can also provide multiple packages to be updated.

sudo snap refresh package_1 package_2

Please note that some Snap applications (that are usually installed in classic mode) are not updated in the background. You have to close the running Snap applications and then update them.

[Solved] “Pending Update of Firefox” Error in Ubuntu
Seeing a persistent “pending update of Firefox snap” message that doesn’t go away even if you restart the browser or the Ubuntu system? Here’s what to do.
How to Update Snap Packages in Ubuntu

Check changes made by Snap updates

Since Snap updates mostly work in the background, you may wonder what changes were made

snap changes

It should show what changes Snap made in the last refresh.

How to Update Snap Packages in Ubuntu

You can see the details of each change by using the ID it shows.

snap change change_ID
How to Update Snap Packages in Ubuntu

Revert the updated Snap application

By default, Snap saves one older version of the Snap packages. If you do not like the newly updated version, you can go back to the previous one with the revert option.

sudo snap revert package_name
How to Update Snap Packages in Ubuntu

Prevent a package from updates

If you would like to stay on the current version for a particular package, you can hold it to prevent it from automatic updates.

sudo snap refresh --hold package_name

When you are ready to accept updates on the package, you can unhold it.

sudo snap refresh --unhold package_name

You may also unhold all the held packages in one go:

sudo snap refresh --unhold
๐Ÿ‹️
You can hold a package for a specific time with sudo snap refresh --hold=duration package_name. The duration can be in hours, minutes or even seconds.

In the end...

If you use mobile data from time to time and do not want Snap auto-updates to eat away all your precious data, here's a trick for that.

The command below will prevent Snap updates on metered connections. In network settings, you can set your mobile network as metered.

sudo snap set system refresh.metered=hold

More about Snap updates can be found in the official documentation.

Managing updates | Snapcraft documentation
Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. And because they bundle their dependencies, they work on all major Linux systems without modification.
How to Update Snap Packages in Ubuntu

And that's it. I guess you know a lot more about Snap updates than you did earlier. Let me know what new stuff you learned in the comments. Any other question or suggestion is also weclome.



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

Rabu, 24 Mei 2023

FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

It seems like Pip is changing its behavior to avoid conflicts with native Linux packages. The change is now present in Ubuntu 23.10 and Fedora 38, where you'll run into an error while using Pip.

And we have new badges for Pro members ๐Ÿค˜

๐Ÿ’ฌ Let's see what else you have in this edition of FOSS Weekly:

  • Addressing the Pip issue in Ubuntu 23.10
  • Stress testing CPU
  • And other Linux news, videos, puzzles and, of course, memes!

๐Ÿ“ฐ Linux news

Twitter's original co-founder Jack Dorsey's Bluesky recently open-sourced their Web, Android, and iOS applications.

Bluesky Social: A Decentralized Twitter Alternative Takes an Open-Source Approach
A Twitter replacement in the works with better fundamentals and approach in place?
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿง  What we’re thinking about

This is going to resonate with many long-time Ubuntu users.

Dear Ubuntu…
Dear Ubuntu, I hope this letter finds you well. I want to start by saying that our time together has been one of creativity and entertainment, a time in which you gave me the tools to develop a new…
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿงฎ Tutorials

You cannot use Pip for installing Python packages in Ubuntu 23.10. At least not directly. Here's why and what you can do about it.

Externally Managed Environment Error With Pip in Ubuntu 23.10
Seeing an “externally managed environment” error while using Pip in Ubuntu 23.10? Here’s what you can do about this error.
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

When building a new system, stress testing the CPU is a way to check your processor's performance capabilities under heavy load.

How to Stress Test CPU in Linux
Want to stress test your CPU in Linux? Here’s how you can do it effortlessly.
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

Brave has the picture-in-picture mode. It's just not obvious like Firefox. Here's how to use it.

How to Use Picture in Picture Mode in Brave Browser
Brave has picture-in-picture mode but it’s so hidden that you feel like there is no PIP support at all. Here’s how to enable and use it.
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿ“น What we are watching

2 videos in 2 weeks... now we are rolling ⛹️


✨ Application highlights

VidCutter is a nifty tool for trimming and merging videos on Linux. That's it. No fancy video editing features here.

Easily Trim Videos With VidCutter in Linux
Learn how to install and use VidCutter, a simple open source tool for trimming and merging videos in Linux.
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿ’กQuick Linux tip

The usual way of hiding files from normal view is to add dot (.) before the filenames.

In Nautilus and perhaps some other file managers, you can hide multiple files and folders without renaming them.

All you have to do is to create a text file named .hidden and add the names of the folders and files you want to hide to this file.

FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

Now, close your file explorer and start it again. The files and directories mentioned in the .hidden file will be hidden and can only be viewed with Ctrl+H keys.


๐Ÿงฉ Puzzle (for Pro members only)

This week you have scrambled e̶g̶g̶s̶ words. The puzzle is composed of various Linux-related terms and applications.

Puzzle of The Week: Scrambled Words Puzzle #1
Exercise those ‘little gray cells’ of yours and solve this puzzle.
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿ›️ Interesting offer

Unleash the creative power of Blender, the free and open-source software tool for 3D artists, with this bundle of books from Packt.

Humble Tech Book Bundle: Blender Animation and Games by Packt
We’ve teamed up with Packt for our newest bundle. Get books like Game Development with Blender and Godot. Plus, pay what you want & support charity!
FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿคฃ Meme of the week

Linux can be very welcoming to new users!

FOSS Weekly #23.21: Pip Issue, CPU Stress Testing and More Linux Stuff

๐Ÿ—“️ Tech Trivia

On May 24, 1844, Samuel Morse sent the first telegraph over a line from Washington, D.C. to Baltimore. He sent 'What hath God wrought' to his partner Alfred Vail, who retransmitted the same message back to Morse.

The famous Morse code is named after Samuel Morse.


๐Ÿ†• FOSSverse updates

Now the Pro members get honor badges displayed with their names in both Community and the Comments sections.

I guess that gives you one more reason to upgrade to It's FOSS Pro membership ๐Ÿ˜‰


❤️ Enjoying FOSS Weekly?

Forward it to Linux-using friends and encourage them to subscribe (hint: it's here).

Become a Pro member and show your support ๐Ÿ™

Something else? Share it with me by pressing the reply button.

Keep on Linux-ing with It's FOSS :)



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