Archive of posts filed under the Linux tip category.
Linux Internet sharing via iptables
sudo sysctl net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE sudo iptables -A FORWARD -i enp7s1 -o eno1 -j ACCEPT sudo iptables -A FORWARD -m conntrack –ctstate RELATED,ESTABLISHED -j ACCEPT
Screen recorder with ffmpeg
Ubuntu 14.04 ffmpeg -y -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1920×1080 -i :0.0 -vcodec libx264 -pix_fmt yuv420p -crf 22 -acodec libmp3lame -ar 44100 -ab 126k -threads 3 ~/Skrivebord/screencast.mp4 Fedora 23, screengrab 720p no audio. bitrate 1200k ffmpeg -video_size 1280×720 -framerate 30 -f x11grab -i :1+3840,200 -vcodec libx264 -b:v 1200k …
Arch Linux and Lightworks 12.0.2 / 12.0.3 Beta
Current date 19. April 2015, and version Lightworks 12.0.2 / 12.0.3 Beta Lightworks has a dependancy on older version of OpenSSL v. 1.0.1, which has been superseeded by v.1.0.2 Symptoms are Lightworks quits while trying to authenticate to server. This can of course be fixed, by downloading older version from bellow, and then either install to …
Continue reading ‘Arch Linux and Lightworks 12.0.2 / 12.0.3 Beta’ »
Simple backup script
#!/bin/bash BACKUPDATE=$(date +”%y-%m-%d-%H.%M.%S”) echo Creating Backup from files on $SNAPDATE tar czvf test/Lightworks$BACKUPDATE.tgz Lightworks #creating md5sum for backup control check. md5sum test/LightworksBACKUPDATE.tgz >> test/md5sum.txt # use md5sum filename to check if file is identical # use tar xvf test/filename to extract
Download videos from almost all videosites
Disclaimer: This might not be legal in all countries. Check you local copyright laws. Downloading videos and soundtracks from videosite can be accomplished with the program youtube-dl. For highest video resolution, type this command from terminal or windows command prompt: youtube-dl -f bestvideo+bestaudio [videolink] Linux install: debian based distro: sudo apt-get install Arch based …
Continue reading ‘Download videos from almost all videosites’ »
Digital signatur
This is guide to setup digitally signed email with the danish NemID. Download and install the NemID platform from: here Installation in thunderbird Go to account settings, select the security tab, select Security Devices. Add NemID by selecting Load, and browse to the NemID PKCS#11, pointing at the file: C:\Program Files (x86)\Nets DanID\NemID Udvidelsesprogram\NemID_PKCS11.dll
Where is my diskspace?
A brand new install of a a operating system on a computer is great. Lots and lots of space, you just keep installing, and then suddenly you are out of disk space. But where did the diskspace all go? There are several tools to find out which files fills you valuable space, I will list …
Logitech Unified under Linux
For GUI, you can install: solaar, and pair/remove device to unified dongle. https://pwr.github.io/Solaar/index.html Pairing a logitech unified dongle with a device can also be done with 3 simple terminal commands git clone https://github.com/treeder/logitech_unifier.git cd logitech_unifier sudo ./autopair.sh Turn of your logitech product you want to pair, and press enter Now turn the unit …
Windows Dynamic Disk and Systemd
If you are running Windows formatted dynamic disk, you will need to setup a tool to make that available in Linux: ldmtool For Arch users use this guide: ldmtool is in the AUR repo: ldmtool You need to install gtk-doc and json-glib via pacman sudo pacman -S gtk-doc json-glib now you can download, extract and …