Odprtokodni pogled

Opensource view

tuxmachines.org

Syndicate content
Your source for Linux and Open Source news, reviews, and howtos.
Posodobljeno: 43 min 15 sec nazaj

Programming Leftovers

Pon, 05/23/2022 - 08:35

  • Avoid exception throwing in performance-sensitive code

    There are various ways in software to handle error conditions. In C or Go, one returns error code. Other programming languages like C++ or Java prefer to throw exceptions. One benefit of using exceptions is that it keeps your code mostly clean since the error-handling code is often separate.

    It is debatable whether handling exceptions is better than dealing with error codes. I will happily use one or the other.

    What I will object to, however, is the use of exceptions for control flow. It is fine to throw an exception when a file cannot be opened, unexpectedly. But you should not use exceptions to branch on the type of a value.

    Let me illustrate.

  • Exploring JSON with interactive jq

    I often use ijq, or "interactive jq", to explore JSON, and also to improve my jq fu, because it gives me immediate visual feedback. Here's an example.

    There's a wrapper around jq called ijq (short for "interactive jq") which is a bit like a REPL in that it affords immediate feedback. It's a lovely program, and I use it a lot.

  • 10 Python In-Built Functions You Should Know

    Python is one of the most lucrative programming languages. According to research, there were approximately 10 million Python developers in 2020 worldwide and the count is increasing day by day. It provides ease in building a plethora of applications, web development processes, and a lot more. When it comes to making a program short and clear, we use in-built functions which are a set of statements collectively performing a task. Using in-built functions in a program makes it beneficial in many ways such as: [...]

read more

9to5Linux Weekly Roundup: May 22nd, 2022

Pon, 05/23/2022 - 08:12

This week hasn’t got much Linux news, but there were some very exciting ones, such as the release of the Linux 5.18 kernel series, Ubuntu 22.10 (Kinetic Kudu) finally switching to PipeWire for audio by default, and a new Mesa graphics stack branch that promises another layer of performance improvements for gamers.

On top of that, I take a look at Pika Backup as the “Flatpak App of the Week”, and talk about the latest distro and software releases, including Kali Linux 2022.2, RHEL 9, Inkscape 1.2, and KDE Plasma 5.25 beta. You can enjoy these and much more in 9to5Linux’s Linux Weekly Roundup for May 22nd, 2022, below!

read more

’Speek!’ An Open-Source Chat App That Uses Tor

Pon, 05/23/2022 - 07:40

Speek is an internet messaging service that leverages multiple technologies to help keep your internet chats private.

It is end-to-end encrypted, decentralized, and open-source.

Undoubtedly, it aims to pitch itself as one of the WhatsApp alternatives and a competitor to Signal on Linux.

So, what is it all about? Let us take a closer look at the details.

read more

Linux Kernel 5.18 Released. This is What's New

Pon, 05/23/2022 - 07:26

Release highlights of Linux Kernel 5.18 (mainline) which brings improvements across CPU, CPU, storage and misc updates.

read more

100 Best Applications for Ubuntu 2022

Pon, 05/23/2022 - 06:32

Since its publication in 2018, this article received enormous views from our readers. Now that we’re in 2022, there have been various changes in Ubuntu and its ecosystem. So, to address that we’re updating this article to match present needs of modern-day users, creators, influencers, developers and system administrators of Ubuntu.

Many users who have recently switched to Ubuntu from Microsoft Windows or any other operating system face the problem of finding best alternative to application software they have been using for years on their previous OS. Ubuntu has thousands of free to use and open-source application software that perform way better than many paid software’s on Windows and other OS.

read more

today's howtos

Pon, 05/23/2022 - 06:27
  • How To Install Django on Fedora 35/36

    In this tutorial, we will show you how to install Django on Fedora 36

    Django is a Python-based web framework, free and open-source, that follows the model–template–views (MTV) architectural pattern. It is maintained by the Django Software Foundation (DSF), an independent organization established in the US as a non-profit.

    Django is a free and open-source high-level Python Web framework built by experienced developers to encourage rapid development and pragmatic design of web applications for programmers and developers.

  • How To Install Visual Studio Code on Fedora 36

    In this tutorial we will show you how to install Android studio in Fedora 36.

    Android Studio is the official integrated development environment (IDE) for Google’s Android operating system, built on JetBrains’ IntelliJ IDEA software and designed specifically for Android development. It is available for download on Windows, macOS and Linux based operating systems or as a subscription-based service in 2020. It is a replacement for the Eclipse Android Development Tools (E-ADT) as the primary IDE for native Android application development.

    Android Studio provides the fastest tools for building apps on every type of Android device and is currently the official Google Android IDE.

  • Setup Drupal Using Docker Platform

    This post is about Setup Drupal Using Docker

    Drupal is a free, open-source web content management system written in PHP and distributed under the GNU General Public License. Drupal provides an open-source back-end framework for at least 14% of the top 10,000 websites worldwide.

  • Setup Standalone NTP Server on Ubuntu 22.04

    This post is about Setup Standalone NTP Server on Ubuntu 22.04

    NTP is a Network Time Protocole server used to synchronize the time of network devices within the LAN, cloud tenant, or within your LAN.

    One of the examples is Real-Time communication APPs. The Infrastructure (Machines, VMs, Kubernetes Cluster, PODs, etc) time should be synced; otherwise, the app will not work correctly.

  • How to Restart Ubuntu From the Terminal

    The most basic tasks of an operating system such as shutting it down or restarting it can also be done from a terminal in Linux. This gives us versatility so that in various configuration scripts we have more control over the system. Today, you will learn how to restart Ubuntu from the terminal.

  • How To Install Yandex Browser on Ubuntu 22.04 LTS - idroot

    In this tutorial, we will show you how to install Yandex Browser on Ubuntu 22.04 LTS, as well as some extra required packages by Yandex

  • How to Install OpenToonz – Animation Maker on Ubuntu 22.04

    OpenToonz is an open-source 2D animation software that you can download for free either you want it for your personal use, or you want to use it commercially in Ubuntu 22.04. As the name suggests, the application is specifically designed for cartoon-based animations but with the recent updates, you can create other types of animations as well. It has a very clean interface that is very easy to understand, and it also comes with lots of additional plugins that can help you save time and create the animations more efficiently.

  • How to Install Docker on Linux Mint

    Docker is an open-source platform to streamline the development, shipment, and deployment of the software. Docker is a cross-platform utility and is widely used in the software developers’ community around the globe.

    Docker allows you to package and run a software application in a container (Docker container). A Docker container comprises all the essentialities for software, such as; source code, tools, libraries, or any settings. Moreover, Docker provides the continuous integration of the software modules at the development time.

    This descriptive post demonstrates several methods to install Docker on Linux Mint.

  • How to Change Timezone on Ubuntu 22.04 - Cloudbooklet

    How to Change Timezone on Ubuntu 22.04. In this guide you are going to learn how to configure or setup your own timezone on Ubuntu server.

    Having a local time is necessary on your server for some cronjob or any system related processes. By default, when a server is provisioned a default timezone will get configured automatically with the Coordinated Universal Time (UTC). You can change the timezone later using the below method.

read more

Review: Fedora 36

Pon, 05/23/2022 - 01:36

The first rule of criticism is never to judge something before you taste it or listen to it or whatever. This applies whether you're reviewing restaurants or music or Linux distributions; an open mind is all - otherwise, what's the point?

But Fedora 36? It has rarely been more difficult for me to keep an open mind, and the more I worked with it, the crankier I got.

Know, first, that the distro was released three weeks late, missing two new release dates in the process. That's so late that it was launched just a week before Fedora 34 hit end of life. If I ran my freelance writing business like that, I'd be working as a greeter at Walmart. This is Fedora, which is affiliated with Red Hat, a company owned by IBM, and not a three-person volunteer effort making time to code around jobs and families and all the rest. Where's the professionalism one expects from one of Linux's most important and respected distros?

Know, second, that the delays didn't seem to do much to make Fedora 36 that much better or more interesting. Yes, Wayland is the default display protocol, and it worked seamlessly, as did PipeWire for sound. I wouldn't even have known either was there unless I was looking for problems.

Otherwise, Fedora 36 is adequate at best, and certainly not the very pleasant surprise that was Fedora 34. And I had high hopes, given how well Fedora 34 worked. But there are still a variety of nicks and scrapes, the distro equivalent of a broken shoelace - it works, certainly, but you get awfully tired of having to knot the lace every time it breaks.

read more

today's leftovers

Pon, 05/23/2022 - 00:44

  • Hack Another ELF On The Stack | Hackaday

    [dropbear] recently found herself in a pickle. Dumping some data out of an Android app at a specific point for reverse engineering purposes. While it worked great in the simulator, it was painfully slow on hardware via lldb. The solution was to write a patch and apply it to the ELF file.

    Writing the AArch64 assembly to dump the buffer is relatively trivial, but adding it to the existing ELF and repackaging it into a new APK leads to strange errors. The relative offsets into .rodata are now all wrong. For those who don’t routinely interface with the format of ELF files, we have a fantastic resource to take you into the dark depths. But the quick summary version is that sections contain various resources, and you find parts of those resources by relative offsets. The program header describes what type of resources each section contains.

  • Brodie Robertson: I've Finally Made 1,000 Videos: Content Changes Are Coming

    I have no idea how it's happened but I've finally made 1,000 videos and that's kind of crazy, it's only been 3 years but it feels like it's been so much longer and so much less at the same time.

  • The Kubernetes ecosystem hits its inflection point

    With the Cloud Native Computing Foundation’s KubeCon CloudNativeCon Europe 2022 last week in València, Spain, the Kubernetes world came roaring back to life after a lackluster conference in Los Angeles last fall – in spite of a rigorous conference-wide mask mandate.

    The general feeling at the conference was that the Kubernetes ecosystem is reaching an inflection point. Work on the core Kubernetes platform itself is slowing, as it has reached a level of maturity – while rapid innovation continues unabated across the broader Kubernetes landscape.

    [...]

    The shift is subtle, but noticeable: There is less of a concern for the software infrastructure and a greater focus on the applications that run on that infrastructure – deploying, managing and securing them.

    Kubernetes may not quite be part of the background noise of information technology the way Linux and TCP/IP before it have become, but it’s well on its way. There remain a few missing pieces, and other projects are still rough around the edges, but Kubernetes – and cloud-native computing in general – are here to stay.

  • Linux Weekly Roundup #183

    Welcome to this week's Linux weekly Roundup.

    We had a relatively lovely week in the world of Linux releases, with Kali Linux 2022.2, Peppermint OS 5-22-22 and openSUSE 15.4-rc.

    Inkscape 1.2 has also been released this week.

  • Sergio Talens-Oliag: New Blog

    Welcome to my new Blog for Technical Stuff.

    For a long time I was planning to start publishing technical articles again but to do it I wanted to replace my old blog based on ikiwiki by something more modern.

    I’ve used Jekyll with GitLab Pages to build the Intranet of the ITI and to generate internal documentation sites on Agile Content, but, as happened with ikiwiki, I felt that things were kind of slow and not as easy to maintain as I would like.

    So on Kyso (the Company I work for right now) I switched to Hugo as the Static Site Generator (I still use GitLab Pages to automate the deployment, though), but the contents are written using the Markdown format, while my personal preference is the Asciidoc format.

read more

Ian Jackson & Debian reject mediation

Pon, 05/23/2022 - 00:23

Most of the attention on DebConf19 has been about the intern scandals.

Behind the scenes, the anti-harassment gulag organized a Birds of a Feather (BoF) meeting to talk about their sinister work. There is a video available. This was not long after the blackmailing of Dr Norbert Preining and the death of Lucy Wayland.

Jackson, a former Debian Project Leader from the UK, comments that he doesn't like mediation. Could this be a hint about why Debian is now wasting so much money on a SLAPP attack to shut down the Debian Community News?

In the 45 minute video, nobody presents any alternative to mediation.

read more

today's howtos

Pon, 05/23/2022 - 00:20
  • How to install Krita on Debian 11 - Invidious

    In this video, we are looking at how to install Krita on Debian 11.

  • How to install Mine-imator 1.2.8 on a Chromebook

    Today we are looking at how to install Mine-imator 1.2.8 on a Chromebook. Please follow the video/audio guide as a tutorial where we explain the process step by step and use the commands below.

  • How To Install MPV Media Player on Ubuntu 22.04 LTS - idroot

    In this tutorial, we will show you how to install MPV Media Player on Ubuntu 22.04 LTS. For those of you who didn’t know, MPV is a free and open-source media player. MPV brings a command-line-based media player, it does not contain the GUI but a small menu bar that contains all the options to control the media file. It supports operating systems like Windows, macOS, and Linux distributions.

    This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MPV-free and open-source media player on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.

  • [Older] How to share directories to your LAN From Ubuntu Desktop 22.04

    Ubuntu 22.04 (Jammy Jellyfish) has arrived, and it offers plenty of exciting new features that are sure to win over hardcore Linux users as well as those new to the world of open source. As usual, the developers of Ubuntu have gone out of their way to make everything not only “just work” but do so with ease.

read more

GNOME vs KDE: Which Linux Desktop Environment to Choose

Pon, 05/23/2022 - 00:10

This article introduces new Linux users to the advantages and disadvantages of the two most popular desktop environments in the Linux world, GNOME and KDE.

One of the first things any new Linux user learns is that the Linux desktop environment can look in various ways. The second thing a user discovers is that in Linux, you can have multiple entirely independent working environments.

This is where the confusion begins, and the first words that appear on the horizon are usually GNOME and KDE. For a range of reasons, these two desktop environments are the most popular in the Linux world, and before we go any further, we’ll provide our readers with a quick historical overview.

read more

today's howtos

Ned, 05/22/2022 - 21:52
  • How to Securely Delete Files in Linux

    When you delete a file on your computer, the file is removed by the system, but it isn’t permanently deleted. You can usually recover deleted files using file recovery tools.

    If you have files containing sensitive information, you can delete these files using a more secure method so they can’t be recovered and viewed. We’ll show you a few ways to do this in Linux.

    If you want to know how to securely delete files in Linux, follow our guide below.

  • How to show ink levels of your printer in Linux - Real Linux User

    Linux continues to evolve and support for internal and external devices gets better and better. There was a time when it was a real challenge to get your equipment to work properly under Linux, but those days are really gone. Linux recognizes so much out-of-the-box that you no longer have to worry that, for example, your printer will not work. But there are always minor glitches that you should expect, or at least be aware of. One of these things is when you use your printer for a while you probably want to know if your ink levels are still on a sufficient level to see if you consider ordering new ink cartridges. Of course not all printers are technically capable of giving information about ink levels, but for those who can, most of the time the Linux driver will not give you any information about it. But there is a solution. In this article I will explain how to show the ink levels for your printer in Linux.

  • How To Turn Ubuntu 22.04 into Kubuntu

    This tutorial will explain how you can turn Ubuntu 22.04 with GNOME Desktop into Kubuntu with KDE Plasma Desktop. This will not remove the original GNOME, but we simply install Plasma Desktop on top of the system so we will have two different desktop environments as the result. Follow it carefully and have a friendly computing with Kubuntu!

read more

Vidoes: Going Linux and Why Linux Instead Of BSD

Ned, 05/22/2022 - 21:52
  • Going Linux #424 · Listener Feedback

    We have feedback on Deepin concerns, information about UbuntuDDE, LinuxFX, NxOS, and the application Flameshot. Bill breaks KDE Neon and Ambrose is annointed ‘Engineer Minion’.

  • Why Do I Use Linux Instead Of BSD? - Invidious

    A question that I often get asked is "Why don't you use BSD?" The answer to this question is rather simple, but I wanted to ramble a bit on some of the reasons that I think people "assume" are my reason why I choose Linux over BSD.

read more

Linux Kernel 5.18 Officially Released, This Is What’s New

Ned, 05/22/2022 - 21:14

Highlights of Linux kernel 5.18 include the switch to the C11 compiler standard, support for “user events” in the tracing system, support for AMD’s “host system management port” function, support for 64-bit integrity checksums on NVMe devices, support for the Intel’s “hardware feedback interface” feature, indirect branch tracking support for the x86 architecture, as well as better process scheduling performance on AMD Zen CPUs.

read more

today's leftovers

Ned, 05/22/2022 - 17:54
  • MooseX::Extreme Needs a New Name

    It's based on years of experience being the lead designer of the Corinna project and trying to figure out how we can get a version of Moose which is safer and easier to use, including removing a lot of boilerplate.

  • Understanding ViewComponent concepts by building a button

    For the purposes of this post, a component is an encapsulation of a reusable piece of a view template responsible for its rendering. Components can technically be unique, but the core idea is to build common reusable parts and stay away from one-off components. Think buttons, alerts, or icons.

  • parallel @ Savannah: GNU Parallel 20220522 ('NATO') released

    GNU Parallel 20220522 ('NATO') has been released. It is available for download at: lbry://@GnuParallel:4

  • MQ-2 with Raspberry PI Pico: Gas Sensor Wiring and MicroPython Code

    Detecting air gas comes useful in applications like air quality monitoring, Gas leak alarm and maintaining environmental standards in hospitals. The MQ-2 with Raspberry PI Pico bring this capability to your DIY projects with cheap parts

    In this tutorial, I’m going to show you how to connect the gas sensor MQ-2 with Raspberry PI Pico, coding it with MicroPython.

    WARNING: health and safety are serious topics. Lives and object security should never fully depend on DIY projects until you are a professional in these fields and you adopt all the needed precautions.

  • Announcing Google Summer of Code 2022 projects

    The community bonding period has already started (from May 20) and it will last until June 12. During this time, the contributors are expected to coordinate with their mentors and community.

    This will be immediately followed by the coding period from June 13 to September 4. After which, the contributors are expected to submit their final work, evaluate their mentors, and get evaluated by their mentors as well. Results will be announced on September 20.

  • Google Summer of Code 2022 – please welcome our students!

    A few days ago, Google announced the list of students accepted for this year's Google Summer of Code.

    We are very proud to welcome 4 students this year who will be working on various parts of the project during the upcoming months.

  • How to Curve Text in Inkscape - ByteXD

    Curving text is widely spread when composing graphical pieces, because the curves are more comfortable to the eye than the sharp shape. Nonetheless, it makes the graphic more dynamic and interesting.

  • How to Install Laravel 9 on Ubuntu 22.04
  • Hypnotix – SparkyLinux

    Hypnotix is an IPTV streaming application with support for live TV, movies and series. It can support multiple IPTV providers of the following types: M3U URL, Xtream API, Local M3U playlist. Hypnotix does not provide content or TV channels, it is a player application which streams from IPTV providers. By default, Hypnotix is configured with one IPTV provider called Free-TV.

read more

Security Leftovers

Ned, 05/22/2022 - 17:51
  • TurtleAuth DIY Security Token Gets (Re)designed For Durable, Everyday Use

    [Samuel]’s first foray into making DIY hardware authentication tokens was a great success, but he soon realized that a device intended for everyday carry and use has a few different problems to solve, compared to a PCB that lives and works on a workbench. This led to TurtleAuth 2.1, redesigned for everyday use and lucky for us all, he goes into detail on all the challenges and solutions he faced.

  • (Free) Ethical Hacking courses in 2022

    Ethical hacking is also known as white hat hacking or penetration testing. Its a process followed by a hacker to exploit a vulnerability inside a system and that system could be computers such as Windows, Linux, macOS, or maybe websites.

    Unlike malicious hackers, who are typically motivated by financial gain, ethical hackers aim to help companies (and society as a whole) keep their data safe…

  • VMware issues critical fixes, CISA orders federal agencies to act immediately (CVE-2022-22972)

    VMware has released patches for a privately reported critical vulnerability (CVE-2022-22972) in VMware’s Workspace ONE Access, VMware Identity Manager (vIDM), vRealize Lifecycle Manager, vRealize Automation, and VMware Cloud Foundation products, and is urging administrators to patch or mitigate immediately, because “the ramifications of this vulnerability are serious.”

read more

Linux hardware video encoding on Amlogic A311D2 processor

Ned, 05/22/2022 - 17:46

I’ve spent a bit more time with Ubuntu 22.04 on Khadas VIM4 Amogic A311D2 SBC, and while the performance is generally good features like 3D graphics acceleration and hardware video decoding are missing. But I was pleased to see a Linux hardware video encoding section in the Wiki, as it’s not something we often see supported early on. So I’ve given it a try…

First, we need to make a video in NV12 pixel format that’s commonly outputted from cameras. I downloaded a 45-second 1080p H.264 sample video from Linaro, and converted it with ffmpeg...

read more

My Unholy Battle With a Rock64

Ned, 05/22/2022 - 17:39

I’ve got this rock64, which is an aarch64 board comparable to a Raspberry Pi 3 B+ with 4 gigs of ram. For years I’ve wanted to put a distribution on here that doesn’t have a premade image available, mainly because out of all the options on that page I don’t actually like any of them. Well, except NetBSD, but NetBSD doesn’t have GPU drivers for it. Problem is, everything I do want to use provides rootfs tarballs and tells you to figure it out. To do that I’ve got to get a Linux kernel, track down the device trees so it knows what hardware it has, and then wrangle u-boot into actually booting the whole thing. I figured that would be the hard part; little did I know the depths that Single Board Computer Hell would reach.

Also: My unholy battle with a Rock64 – OSnews

read more

Top 15 Linux Performance Monitoring Tools/

Ned, 05/22/2022 - 17:29

There are several performance monitoring tools in Linux that allow you to monitor resource usage on the system. These tools can aid in debugging Linux System Performance issues and troubleshooting them.

In this article, we will discuss some of the best tools for monitoring Linux performance. The commands listed below are available in all Linux distributions and some of them are installed by default on the system.

read more

sfy39587f05