Kamis, 11 April 2024

Change Video Playback Speed in VLC [Quick Tip]

Change Video Playback Speed in VLC [Quick Tip]

Have you ever watched a video and wished you could slow it down or speed it up? Maybe the speaker is too fast, or you just want to skip through some parts. You can do that with VLC media player!

In this article, we’ll explore how to control video playback speed using VLC.

Increase or decrease speed with keyboard

Not a fan of mouse clicks? VLC provides some simple keyboard shortcuts to control the speed of the playback.

When you are playing a video, use the following keys, for the mentioned purposes.

Function Key
Increase playback speed +
Increase playback speed fine control ]
Decrease playback speed -
Decrease playback speed fine control [
Make playback speed back to normal =

Fine control means increasing/decreasing the speed only at a small fraction.

Speed up a video using the menu bar

While playing a video, click on the Playback option on the top menu bar. When hovering over the speed entry, you will get some preset speed options.

Change Video Playback Speed in VLC [Quick Tip]
Control playback speed

You can use the option multiple times to increase and decrease the speed. Anytime, select Normal Speed to come back to the normal video speed, that is 1.0x.

Speed up a video using right-click

This is almost the same as the above one, except you won't be clicking on the menubar anymore.

While playing a video, right-click on the play area. From the resulting context menu, select Playback → Speed. From the resulting options, select the speed you want.

Change Video Playback Speed in VLC [Quick Tip]
Change playback speed with right-click

You can repeat the process to get more/less speed.

Control the speed using the status bar

In VLC, you can enable a small status bar below the control icons. For that, first click on View in the top menu bar. From there, enable the Status bar, by checking the box.

Change Video Playback Speed in VLC [Quick Tip]
Enable the status bar in VLC

Now, on the status bar, you can see a small field on the right side, that indicates the current playback speed. Click on it to get a slider.

Change Video Playback Speed in VLC [Quick Tip]
Current playback speed

Scroll this slider to the right to increase the speed, and scroll left to decrease the speed. Use the forward and backward button to do it in steps.

Change Video Playback Speed in VLC [Quick Tip]
Custom speed slider

I hope you liked this quick little VLC tip.



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

Rabu, 10 April 2024

FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

Here's positive news that should delight most Linux and open-source supporters. German state Schleswig-Holstein has decided to replace Microsoft Office with LibreOffice on over 30,000 employees' PCs.

Wow! German State Ditches Microsoft for Open-Source Software
The end of dominance for Microsoft in this German state, replacing Windows with Linux, and Office with Libreoffice.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

Good news indeed, right?

By the way, it appears that some of you did not receive the previous newsletter due to some technical difficulties. No worries. You can still read the Homelab special edition here.

💬 Let's see what else you get in this edition:

  • Using alias in Linux terminal.
  • Open source Android keyboard app.
  • Yet another German state trying to move away from Microsoft.
  • And other Linux news, videos and, of course, memes!
  • This edition of FOSS Weekly is supported by Warp.

✨ Warp: Linux Terminal With AI

Warp is a modern terminal emulator built with Rust. It has AI assistant integrated along with IDE like features. Consider it the VS Code of terminal. Although not open source and initially developed for macOS, Warp is now also available for Linux.

Linux Terminal
The modern, Rust-based terminal with AI built in. Now available for Linux.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

📰 Linux news

Great news for users of NVIDIA hardware on Linux. The Explicit Sync protocol is almost here. Learn why it matters:

Explicit Sync in Wayland is The Answer to NVIDIA Linux Problems!
Time to say goodbye to NVIDIA Wayland issues? Sounds like it!
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

🧠 What we’re thinking about

For those who may be wondering why Thunderbird is helping maintain the Snap package.

ThunderSnap! Why We’re Helping Maintain The Thunderbird Snap On Linux
In the spirit of free software, we want to support as many users as possible. That’s why we’re officially supporting the Thunderbird Snap.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

🧮 Linux Tips, Tutorials and More

Aliases are a great way to ease your work in the Linux terminal.

Creating Aliases in Linux Command Line
Unleash the super power of aliases in the terminal.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

Add a splash of color to your log reading experience with Tailspin.

Highlight and Colorize Log Files in Linux With Tailspin
Make reading log files a bit more accessible and fun with tailspin CLI tool.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

2024 is shaping up to be yet another year of great distro releases. Check which one may suit you the best:

Best Linux Distributions For Everyone in 2024
Looking for the best Linux distribution that suits everyone? Take a look at our comprehensive list.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

📹 What we are watching

An interesting infrared-based head tracking mouse made possible using a Raspberry Pi that runs on Linux!


✨ Project highlights

Cartridges is a minimal launcher for your games across various platforms.

Cartridges: A Simple Game Launcher With Support for Steam, Lutris, and Others
Don’t want to log in separately? Just want to manage all your games in a neat user interface? Cartridges can help.
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

In response to your requests, we have started our FOSS Android apps series with Simple Keyboard!

I Found The Perfect Open-Source Keyboard App for Android
A simple, secure, and privacy-friendly keyboard app for Android that you need!
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

🧩 New quiz

Debian fan? This is for you.

The Ian Murdock (Debian) Quiz
Love Debian? Love Debian-based distros? But, do you know about the one who started it all? Take this quiz!
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

💡 Quick handy tip

View Firefox browsing history neatly by sorting sites. Follow the arrows shown below.

FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

🤣 Meme of the week

Can they ever get to terms?

FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

🗓️ Tech Trivia

The popular version control system Git was released 19 years ago on 7th April 2005. It was created by none other than Linus Torvalds. He was frustrated because the proprietary source control system BitKeeper revoked the free license for Linux kernel development.

Interesting, isn't it? Torvalds created Linux because he could not afford to purchase UNIX and then he created Git in a somewhat similar situation. That's why he is a legend.


🧑‍🤝‍🧑 FOSSverse corner

FOSSers discuss the recently released unofficial version of Antix.

Antix-23.1_init_diversity_edition
Here is a surprise. From out of the Antix community, an unofficial release of an .iso which installs 4 separate Antix versions, each with one of sysVinit, runit, s6-rc and s6-66+OpenRC. https://www.antixforum.com/forums/topic/antix-23-1_init-diversity-edition-sysvinit-runit-s6-rc-s6-66/page/14/ It generates a grub menu like this That is the 386 version, there is also x86-64. I dont know what default is? It has taken off. There is already a Devuan5 copycat version https://www.antixforum.c…
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

On the other hand, one of our FOSSers shares their experience of using openSUSE Tumbleweed.

openSUSE Tumbleweed: My Semi-Thorough Review
Hey everyone! So, as I had said before, at SCALE 21x I met the amazing people that are part of SoCalSUSE. As a result of meeting them, I first tried out openSUSE Tumbleweed in a VM, then decided to install it on my laptop. I have been using it exclusively for a little over two weeks now. General Computer Use Not really anything here to report. I saw some people on this forum from 2018 talking about codec issues but I have not seen that. It was also quite nice to try out Tumbleweed, because e…
FOSS Weekly #24.15: German State Goes Open Source, Android FOSS App, Tailspin and More

❤️ With love

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

Share the articles in Linux Subreddits and community forums.

Follow us on Google News and stay updated in your News feed.

Opt for It's FOSS Plus membership and support us 🙏

Enjoy using Linux 😄



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

Selasa, 09 April 2024

Systemctl Command Examples

Systemctl Command Examples

If you are using any popular Linux distribution including Debian, Ubuntu, Arch, openSUSE, or Fedora, your system uses systemd as its init system.

Sure, there are controversies surrounding systemd. But, it is the most used init system.

In a systemd-equipped distro, there is a command that could make your life easy. It is the systemctl command, used to interact with the systemd init service. System administrators always use this command, but it is also useful for end-users wishing to take control via the terminal.

For instance, you can use the systemctl command to list services in Linux.

So in this tutorial, I will walk you through all the essentials you need to learn to use the systemctl command:

  • The basic syntax and common flags.
  • Practical examples of the command.
  • Practice questions to get better at using the systemctl command.

Here's How to Use The Systemctl Command

To use the systemctl command, it is important to learn the syntax and available options.

Here's how the syntax looks like:

systemctl <command> <service_name>

Here,

  • <command>: this is where you specify the action you want to execute over the service such as stop, start, etc.
  • <service_name>: this is where you specify the name of the service that you would like to work with.

To manage services, you have various commands to use with the systemctl command, here's a list of one of the most useful ones:

Command Description
systemctl start [service] Start a service and run it in the background.
systemctl stop [service] Stop a currently running service.
systemctl enable [service] Configure a service to start automatically at system boot.
systemctl disable [service] Configure a service to not start automatically at system boot.
systemctl status [service] Display the current status (running, stopped, etc.) of a service.
systemctl restart [service] Stop a running service and then start it again.
systemctl reload [service] Reload the configuration of a service without stopping it.
systemctl mask [service] Prevent a service from being started, even manually.
systemctl unmask [service] Allow a previously masked service to be started.
systemctl set-default [target] Change the default system target (runlevel) for the next boot.
systemctl list-unit-files List all installed unit files and their current state (enabled/disabled).
systemctl list-dependencies [unit] Show the dependencies (other units) required for a specific unit.
systemctl list-sockets List all active sockets (for inter-process communication).
systemctl list-jobs Show all currently active systemd jobs (ongoing operations).
systemctl list-units List all loaded and active systemd units (services, sockets, etc.).

Now, let's take a look at some practical examples of the systemctl command.

Practical examples of the systemctl command

In this section, I share some practical examples of the systemctl command, ranging from the basics to the advanced ones.

Let's start with how you can start your service.

1. Start a service

In most cases, the installed service gets activated by default, but there are times when you are required to do that manually.

To start a service, you need to use the start flag with the systemctl command and append the name of the service, as shown here:

sudo systemctl start <service_name>

Let's say I want to start the Apache server, I'll be using the following:

sudo systemctl start apache2
Systemctl Command Examples

2. Enable a service

When you start a service, it will only be effective until the next boot. This means the service will be turned off when you reboot your system.

To tackle this situation, you want a service to start automatically when you boot your system and for that purpose, you can use the enable flag as shown here:

sudo systemctl enable <service_name>

For example, if I want to enable Apache service, then I'll use the following:

sudo systemctl enable apache2
Systemctl Command Examples

3. Stop a service

When you intend to modify an active service, the first step you have to perform is to stop the service and for that purpose, you use the stop flag as shown here:

sudo systemctl stop <service_name>

For example, here's how you stop the Apache service:

sudo systemctl stop apache2
Systemctl Command Examples

Suggested Read 📖

Start, Stop & Restart Services in Ubuntu and Other Linux
You can easily manage service with systemd and init. Learn to start, stop and restart services in Ubuntu and other Linux Distributions.
Systemctl Command Examples

4. Disable a service

If you've enabled a service in the past, and now you don't want it to be active at every system boot, you can disable it.

To disable a service, you use the disable flag as shown here:

sudo systemctl disable <service_name>

To disable the Apache service, I use the following command:

sudo systemctl disable apache2
Systemctl Command Examples

5. Check the status of a service

Checking the status before performing any action over a service is highly recommended and can save you a lot of time.

To check the status of a service, all you have to do is append the name of the service to the status flag as shown here:

systemctl status <service_name>

Here, I check the status of the Apache service:

systemctl status apache2
Systemctl Command Examples

As I disabled the Apache service earlier, the above output suggests that the service is disabled.

But depending on your service, you may receive a different status of the service, and here's what it means:

Status Description
active (running) The service is currently running in the background.
active (exited) The service was a one-time or periodic task that has completed its execution.
active (waiting) The service is running but waiting for a specific event or condition to occur before proceeding.
inactive The service is not currently running.
enabled The service is configured to start automatically when the system boots up.
disabled The service is configured to not start automatically at system boot.
static This service cannot be managed by systemd or the systemctl command; it needs to be managed manually.
masked The service is masked, which means it is prevented from being started (needs to be unmasked before it can run).
alias The service name is an alias, and the service is a symbolic link pointing to another unit file.
linked The service or unit file is symbolically linked to another unit file.

6. Restart a service

Once you modify the service configuration, or if it is not responding, then restarting a service can be helpful.

To restart a service, you use the restart flag as shown here:

sudo systemctl restart <service_name>

For example, my Apache server was not responding, so if I were to restart the service, then I use the following command:

sudo systemctl restart apache2

Related Read 📖

14 Systemd-Free Linux Distributions
systemd has been adopted by most major Linux distribution. If you don’t like systemd at all, here are the alternative Linux distros for you.
Systemctl Command Examples

7. Reload a service

sudo systemctl unmask <service_name>

You reload a service when you make changes to the service configuration, and you want to apply changes without restarting the entire service.

sudo systemctl unmask <service_name>

To reload a service, you use the reload flag as shown here:

sudo systemctl reload <service_name>

For example, I made a few changes to the Apache service and now if I were to reload the Apache service, here is what I type in the terminal:

sudo systemctl reload apache2

8. Mask a service

Masking a service is the most efficient way to prevent that service from being started, either manually or automatically, during system boot.

Think of it as a more robust version of stopping the service 😉.

To mask a service, you use the mask flag as shown here:

sudo systemctl mask <service_name>

Here's how the command would look for the Apache service:

sudo systemctl mask apache2
Systemctl Command Examples

Whenever you mask the service, you see a symlink created which redirects the service's configuration file to the null device (/dev/null). This means you cannot start the service by any means until it is unmasked.

9. Unmask a service

If you want to start the masked service, it needs to be unmasked first!

To unmask a service, you use the unmask flag as shown here:

sudo systemctl unmask <service_name>

Just type in the command like this:

sudo systemctl unmask apache2
Systemctl Command Examples

As you can see, it removed the symlink pointing to /dev/null.

10. Set the default target

Setting a default target refers to changing the default operational mode or runlevel that the system will enter after booting up.

One good example of setting a default target is to choose the user interface to boot, such as you can either boot to CLI mode or GUI.

To set a default target, you use the set-default flag as shown here:

sudo systemctl set-default <target-name>

For example, if you want to boot into the GUI, then I will set the default target to graphical.target as shown here:

sudo systemctl set-default graphical.target

Apart from the GUI target, you have other options as well:

Target Description
multi-user.target This target starts the system with networking enabled, suitable for servers or non-graphical workstations.
rescue.target This target is useful for system recovery or troubleshooting when the system cannot boot into the regular multi-user mode.
emergency.target This target provides an emergency environment for system maintenance or repair when the system is in a critically broken state.
reboot.target This is typically used for one-time reboots or in automated scripts.
poweroff.target This is typically used for one-time shutdowns or in automated scripts.
hibernate.target Sets the system to hibernate (save system state to disk and power off) as the default target, Only available if the system supports hibernation.
hybrid-sleep.target Sets the system to enter a hybrid sleep mode (a combination of hibernation and sleep) as the default target, Only available if the system supports hybrid sleep.

Suggested Read 📖

How to List Services in Linux
Checking the service status is one of the first few steps for troubleshooting a Linux system. Learn to list services on your system in this tutorial.
Systemctl Command Examples

11. List unit files

Unit files are plain text configuration files that are used to define and manage system services and units.

You can list all the unit files by executing the following command:

systemctl list-unit-files
Systemctl Command Examples

12. List of all active sockets

When you list all the active sockets, you get insight into the inter-process communication channels established on a systemd-based system.

To list all the active sockets, use the given command:

systemctl list-sockets
Systemctl Command Examples

And there you have a list of all the sockets which are listening for the incoming requests.

Practice questions 📓

Once you know the basics of the systemctl command, it is important to practice getting better at using the command.

Here are some practice questions for the systemctl command:

  1. How would you check the status of the httpd service using systemctl?
  2. Write the command to start the sshd service if it's not already running.
  3. You want to enable the mysqld service to start automatically at system boot. What command would you use to do this?
  4. Suppose you need to reload the configuration of the nginx service without interrupting its operation. What systemctl command would you use?
  5. Your system is currently set to boot into the multi-user.target by default. You want to change the default target to graphical.target for the next boot. How would you use to accomplish this?

If you encounter any difficulty solving the above questions, you can post your queries in our community forum or drop a comment below.

Wrapping Up

Now that you know the essentials of systemctl command, what next?

Well, if you are all about exploring and experimenting, you can create your own systemd service. Here's how to write your own systemd service in Linux:

How to create a systemd service in Linux
Learn the steps for creating systemd services in Linux with the practical example demonstrated in this tutorial.
Systemctl Command Examples

Are you a new learner looking to explore Linux commands? You might want to start with the fundamentals:

Linux Command Tutorials for Absolute Beginners
Never used Linux commands before? No worries. This tutorial series is for absolute beginners to the Linux terminal.
Systemctl Command Examples

💬 Did I miss a variation of the systemctl command important to you? How do you use it for your use-case? Please let me know in the comments.



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