Tag: linux


Open source Video editor for Linux

OpenShot Video Editor is a free, open-source video editor for Linux. OpenShot can take your videos, photos, and music files and help you create the film you have always dreamed of. Easily add sub-titles, transitions, and effects, and then export your film to DVD, YouTube, Vimeo, Xbox 360, and many other common formats. – http://www.openshot.org/ …


Concatenate two .ogv video files

oggCat concatenates two or more ogg files. The parameters of the resulting ogg file is defined by the first file in the concatenation list. Installation on Debian sudo apt-get install oggvideotoolssudo apt-get install oggvideotools Concatenate two ogv video files oggCat final.ogv 1.ogv 2.ogvoggCat final.ogv 1.ogv 2.ogv Usage usage: oggCat [Options] <outputFile> <inputFile1> <inputFile2> [ <inputFile3> …

Debian, VirtualBox

How to resize a virtualbox VDI disk

Backup VDI file cp "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi" "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi.bak"cp "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi" "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi.bak" Resize the VDI file VBoxManage modifyhd –resizeVBoxManage modifyhd –resize e.g. VBoxManage modifyhd "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi" –resize 51200VBoxManage modifyhd "/home/john/VirtualBox VMs/Kali-Linux-2016.2/Kali-Linux-2016.2.vdi" –resize 51200 Resize the System Partition * Download GParted * Create a new virtual machine, call it “GParted” with type: “Linux” and Version “Linux …


Record screen in Debian

Install recordmydesktop sudo apt-get install recordmydesktopsudo apt-get install recordmydesktop Record specific application window with no sound recordmydesktop –no-sound –windowid `xwininfo -display :0 | grep ‘id: 0x’ | grep -Eo ‘0x[a-z0-9]+’`recordmydesktop –no-sound –windowid `xwininfo -display :0 | grep ‘id: 0x’ | grep -Eo ‘0x[a-z0-9]+’` .OGV to .MP4 conversion sudo apt-get install libav-toolssudo apt-get install libav-tools avconv …


Mount encrypted LUKS usb disk at boot

Find USB Disk UUID sudo blkidsudo blkid or e.g. sudo blkid /dev/sdg1 | awk -F ‘"’ ‘{print $4}’sudo blkid /dev/sdg1 | awk -F ‘"’ ‘{print $4}’ Edit crypttab file sudo nano /etc/crypttabsudo nano /etc/crypttab and add a new line entry such as: UUID=<name> UUID=<disk_uuid> <mount_point> <type>UUID=<name> UUID=<disk_uuid> <mount_point> <type> Example: sdg5_crypt UUID=123456789-1234-1234-1234-1234567890ab none lukssdg5_crypt UUID=123456789-1234-1234-1234-1234567890ab …


Automated backups with rsync

Create a shell script nano /home/myusername/sync/backup_data.shnano /home/myusername/sync/backup_data.sh with the following contents: #!/bin/bash rsync -r -t -v –progress –delete -s /source/folder/ /destination/backup/folder/#!/bin/bash rsync -r -t -v –progress –delete -s /source/folder/ /destination/backup/folder/ Make the file executable chmod +x /home/myusername/sync/backup_data.shchmod +x /home/myusername/sync/backup_data.sh Test script ./backup_data.sh./backup_data.sh Edit crontab crontab -ecrontab -e Add a new line entry to run script …


Automatically mount usb drive at startup

Find USB Disk UUID sudo blkidsudo blkid or sudo blkid /dev/sdf1 | awk -F ‘"’ ‘{print $4}’sudo blkid /dev/sdf1 | awk -F ‘"’ ‘{print $4}’ Edit fstab file sudo nano /etc/fstabsudo nano /etc/fstab and add a new line entry such as: UUID=<disk_uuid> <mount point> <type> <options> <dump> <pass>UUID=<disk_uuid> <mount point> <type> <options> <dump> <pass> Example: …


Install the latest VirtualBox version on Debian

Add the repository to sources list sudo nano /etc/apt/sources.listsudo nano /etc/apt/sources.list deb http://download.virtualbox.org/virtualbox/debian jessie contribdeb http://download.virtualbox.org/virtualbox/debian jessie contrib Add the public key https://www.virtualbox.org/download/oracle_vbox_2016.asc sudo apt-key add oracle_vbox_2016.ascsudo apt-key add oracle_vbox_2016.asc or wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add – Update and Install sudo apt-get updatesudo apt-get …


How to setup SSH keys

Create RSA Key Pair ssh-keygen -t rsassh-keygen -t rsa Create .ssh folder mkdir ~/.sshmkdir ~/.ssh Set right permissions chmod 700 ~/.sshchmod 700 ~/.ssh Create authorized_keys file touch ~/.ssh/authorized_keystouch ~/.ssh/authorized_keys Set right permissions chmod 600 ~/.ssh/authorized_keyschmod 600 ~/.ssh/authorized_keys Add public key to the authorized_keys cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keyscat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys