How to easily install Teamspeak on Linux.

Installing Teamspeak allows easy voice and text communication over a TCP/IP network. This is easy to install. Download Teamspeak 64-bit client from this page: https://teamspeak.com/en/downloads/#. Then run it like this to install. ┌──[[email protected]]─[~/Downloads] └──╼ ╼ $ bash ./TeamSpeak3-Client-linux_amd64-3.5.6.run Welcome to the TeamSpeak 3 Client for Linux on amd64 installer  …

Read More

How to get an excerpt from a video with FFmpeg.

Extracting an excerpt from a video is very useful, this is how to do it. The command below extracts an excerpt from a video at 00:00:05 to 00:00:15. This is scaled to 640×360 pixels and is good quality. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ffmpeg -v 1 -i agropromfun.mp4 -ss 00:00:05 -to…

Read More

Alternative ways of using the bash shell on Linux.

There are many ways to use the bash shell on Linux. It has different key binding options and the ability to navigate to a directory by typing the name alone. set -o vi bind -m vi-insert "\C-l":clear-screenset -o vi bind -m vi-insert "\C-l":clear-screen This will enable VIM styled keybindings for…

Read More

Very useful Linux tips for getting information on current logins.

There are many ways to get detailed information on known users on your Linux system. The lslogins command is therefore very useful for listing all usable login accounts. The below example will list all user accounts including the root account. This might be disabled on an Ubuntu system, but it…

Read More

Some very useful Linux bash functions.

Show a preview of a directory as you cd into it. c() { cd "$@" ls_truncate=20 files=$(ls -F -C –color=always) files_num=$(echo "$files" | wc -l) echo "$files" | head -n $ls_truncate [ $(echo "$files" | wc -l) -gt "$ls_truncate" ] && echo "(Ommited $((files_num-$ls_truncate)) files/directories)" }c() { cd "$@" ls_truncate=20…

Read More

Setting up an SSH server is very easy.

The Secure Shell, or SSH, provides a way of running command line and graphical applications, and transferring files, over an encrypted connection. SSH uses up to 2,048-bit encryption with a variety of cryptographic schemes to make sure that if a cracker intercepts your connection, all they can see is useless…

Read More

An example of recording TV with MPV on Linux.

This is a sample command, I used this to record TV with MPV from a stream. This is quite problematic, but I managed to get this working on the example stream. ┌──[[email protected]]─[~] └──╼ ╼ $ mpv https://c.mjh.nz/101002210221/ –stream-record=tv1.ts –demuxer-lavf-probe-info=yes [ffmpeg] hls demuxer: Can’t support the subtitle(uri: hdntl=exp=1607128378~acl=%2f*~data=hdntl~hmac=a731c5d7a64c0589edb0290b2e2f44e9c48f2dbb1cf2f564d3d0914ee3341922/index_7_0.m3u8) Video –vid=1 ‘bitrate…

Read More