More fun with FFmpeg. How to reverse video colors in interesting ways.

FFmpeg allows interesting video manipulation. This includes inverting the colours of video files. The example below will invert the colours of a video file. ┌──[[email protected]]─[~/Videos/titles] └──╼ ╼ $ ffmpeg -i zombiestrain.avi -vf lutrgb="r=negval:g=negval:b=negval" zomby.avi┌──[[email protected]]─[~/Videos/titles] └──╼ ╼ $ ffmpeg -i zombiestrain.avi -vf lutrgb="r=negval:g=negval:b=negval" zomby.avi This is an example of what this filter will give you. This … Read more

Change management systems are necessary in the modern world.

Information technology systems are often large and complex. With this size and complexity comes a growing risk of problems and faults that can affect user productivity. Users have high expectations of live systems such as file servers, web servers, databases etc. Although users generally accept that problems and faults can and do occur they expect … Read more

Useful bash shell prompt with customizable colors that are switchable on the fly.

This bash script will give you a custom bash prompt that has colors that are switchable on the fly. PS1=$( sep=$’\xC2\xBB’ # UTF-8 U+00BB red=$(tput setaf 1) green=$(tput setaf 2) yellow=$(tput setaf 3) blue=$(tput setaf 4) cyan=$(tput setaf 5) bold=$(tput bold) reset=$(tput sgr0)   [[ $EUID -eq 0 ]] && user=$red || user=$green   echo … Read more

How to change the Virtual Terminal font in Debian and Ubuntu easily.

To change the font in the Virtual Terminal in Debian or Ubuntu/Linux Mint, run this command. sudo dpkg-reconfigure console-setupsudo dpkg-reconfigure console-setup This lets you select the various character sets and fonts to customize your virtual terminal. jason@jason-desktop:~$ sudo dpkg-reconfigure console-setup [sudo] password for jason: Your console font configuration will be updated the next time your … Read more

How to change the Ubuntu hostname easily.

Change the hostname easily on your Ubuntu or Linux Mint machine To change the hostname of an Ubuntu machine, there are a couple of files that need editing. Firstly, open the /etc/hostname file and change the hostname in here to the one you wish to use. 09:51:17 0 ~ jason$ sudo vim /etc/hostname09:51:17 0 ~ … Read more

Adding a default route in Linux. How to define the default gateway.

Adding a default route in Linux is easy. The route command is the best way to do this. ~# route add default gw 172.18.31.1~# route add default gw 172.18.31.1 I used this command on a machine that previously had an IP address in the 192.168.0.xx range and the default gateway was 192.168.0.1. So I had … Read more

Change your MAC address on Linux with the command line.

To change your MAC address in Linux, you just need to issue these few commands, and then re-run dhcp or reconfigure the interface. This works for both wired and wireless cards. Bring down the interface. jason@eyjafjallajkull:~$ sudo ifconfig eth0 down [sudo] password for jason:jason@eyjafjallajkull:~$ sudo ifconfig eth0 down [sudo] password for jason: Set a new … Read more

How to mount the Ubuntu filesystem read-write when you have mounted the filesystem in recovery mode.

If you have appended this to the end of the grub command line to change a lost password: init=/bin/bash Ubuntu and you get this error. root@USB-h55-PC:~# passwd jason Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchangedroot@USB-h55-PC:~# passwd jason Enter new UNIX password: Retype new UNIX password: passwd: … Read more

How to change the default shell for new users on your Ubuntu Linux system.

The useradd command is used to add new users on your Linux system. But it can be used for other things too. You may display the defaults for new users. jason-H55-USB3% sudo useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/sh SKEL=/etc/skel CREATE_MAIL_SPOOL=nojason-H55-USB3% sudo useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/sh SKEL=/etc/skel CREATE_MAIL_SPOOL=no Use the -s parameter … Read more

How to change the shell for a user on a Linux system easily with the usermod command.

I recently created a new user with the adduser command. homer@deusexmachina:~/Documents$ sudo adduser jimkirk Adding user `jimkirk’ … Adding new group `jimkirk’ (1002) … Adding new user `jimkirk’ (1002) with group `jimkirk’ … Creating home directory `/home/jimkirk’ … Copying files from `/etc/skel’ … Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully … Read more

Getting information from a Windows machine using the net command on Linux.

The net command may be used to get information from a Windows PC. Below is an example. I am reading the time from a Windows 7 Ultimate PC. root@debian:/home/homer# net time -I 192.168.100.5 Fri Jul 11 11:22:32 2014root@debian:/home/homer# net time -I 192.168.100.5 Fri Jul 11 11:22:32 2014 This command shows the network shares that my … Read more

How to change the default plymouth theme manually on Ubuntu 14.10.

Change the default Plymouth theme on Ubuntu Changing the default plymouth theme on Ubuntu 14.10 is not very difficult. Just type this at the shell prompt. This will set the new theme. root@homer-eME730:~# update-alternatives –install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth 100root@homer-eME730:~# update-alternatives –install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth 100 Now we need to save our changes. root@homer-eME730:~# update-alternatives –config … Read more

How to change the hostname on an Ubuntu or Linux Mint system with the command line.

Changing the hostname on a Linux system is very easy indeed. Use this command to set a new hostname. homer@homer-eME730:~$ sudo hostname netbook.local Then edit the /etc/hosts file to set the new hostname. homer@homer-eME730:~$ sudo vim.tiny /etc/hosts And edit it to the new value. 127.0.0.1 localhost 127.0.1.1 netbook.local # The following lines are desirable for … Read more

How to change your username on Linux with the command-line. This is very easy indeed.

To change the username of an already created account on a UNIX or Linux system just follow this simple guide. I am changing the username mailman to mailman2. Firstly; open the /etc/shadow file with the VIM editor. homer@deep-thought ~ % sudo vim.tiny /etc/shadowhomer@deep-thought ~ % sudo vim.tiny /etc/shadow Then find the entry you are after … Read more