MikroTik: Clear Terminal Screen

When you’re working in a command line interface you may sometimes have a desire to empty a terminal screen from messages and keyboard input.

Depending on an operating system there should be a command that can erase the contents of your terminal and display a prompt only (for example a clear command in Linux or a cls command in Windows).

Although a MikroTik RouterOS is based on Linux, there is no a command to clear the screen.

Nevertheless the terminal screen in the MikroTik RouterOS can be cleared using a keyboard shortcut. (more…)

[SOLVED] The Container Name Is Already In Use By Container

While starting a Docker container, you may sometimes receive “the container name is already in use by container” error.

The complete error looks like as follows:

ERROR: for <containerName> Cannot create container for service <serviceName>: Conflict. The container name “<containerName>” is already in use by container “<containerID>”. You have to remove (or rename) that container to be able to reuse that name.

This short note shows how to fix “the container name is already in use by container” error. (more…)

Connect To MikroTik Router For a First Time

MikroTik routers are very powerful, flexible and are widely used in all kinds of environments from a simple home to a large enterprise network.

For ones who are not familiar with networking and with the MikroTik routers particularly, it might be a bit challenging to connect to the new MikroTik router for the first time and access its management interface for the initial configuration.

From this article you will find out how to connect to the new MikroTik router for the first time using a direct connection via an Ethernet cable, connection over WiFi or through an ISP’s (internet service provider) router. (more…)

Reset MikroTik Router

A MikroTik router reset, hard reset, factory reset and configuration reset are all synonyms for resetting the device to its original defaults.

If you reset your MikroTik router, you’ll clear its configuration and return it to the original state it was in when you purchased it.

For example, if you forget a password to the MikroTik router, you can reset it to the factory settings so it returns to the default password it originally came with.

Below you will find a short instructions of how to reset your MikroTik router. (more…)

Windows: Uninstalled Programs History

In Windows you can easily get a list of installed apps with the installation dates through a “Programs and Features” (press ⊞ Win + R to start the “Run” dialog and type in appwiz.cpl and click “OK”).

To get a history of uninstalled programs is a bit more challenging, but is still possible using an “Event Viewer”.

In the “Event Viewer” we can list the changes made by an MsiInstaller – the tool that Windows uses for any installations and uninstallations of applications.

Additionally, we can filter out that list by the event ID 1034, that exactly corresponds to the program uninstallation events.

Below you will find how to check the uninstalled programs history in Windows and how to find out who has uninstalled a program and when. (more…)

Copy as Path: Get Full Path of File on Windows

An absolute path, also known as a full path, on Windows systems represents the complete details needed to locate a file or folder, starting from a drive letter (e.g. C:\), including all sub-folders and ending with the file or folder name.

Once you have located the desired file or folder in a File Explorer, there is a simple way to get the full path and copy it to a clipboard.

This short note shows how to unlock a “Copy as path” Windows feature to get the full path to the file or folder quickly and easily. (more…)

Kubectl: Get Pod Containers

According to best practices you should always try to have one container per Pod, and this is the most common Kubernetes use case.

However, a Pod can contain multiple containers and the primary reason for this is to support helper applications that assist a primary application.

Typical examples of helper applications are data pullers, data pushers and proxies.

This short note shows how to get Pod containers using a kubectl command, and also how to get logs and log into the particular container running inside the Pod. (more…)

Raspberry Pi: Wake from Sleep – Command

While using a Raspberry Pi (RPi) connected to a monitor or TV over HDMI, you may notice that the screen will be automatically put to sleep after a certain amount of time of inactivity.

To wake the RPi it is usually enough just to move a mouse or press some key button.

But if you are connected remotely over SSH, it seem that the only thing that you can do to wake the RPi from sleep is to reboot it.

Lucky there is a way to wake the RPi and unblank the screen from a terminal by changing display power management and screen saver settings. (more…)

VLC: Change Preferred Audio Language Order

VLC Media Player can play video files with multiple audio tracks.

The audio track can be selected in “Audio” → “Audio Track” menu.

If you watch some series with a default language that doesn’t suit you, you would have to manually change the audio track for each episode, that may be a bit annoying.

Luckily, in VLC we can change the default audio language order to a preferred one and in this short note i will show how to do this. (more…)