• How To Resize, Reduce a Video to a Specific Size and Quality Ubuntu Linux using ffmpeg

    This is a common issue when e-mailing or uploading video files. One note is that you should make the filesize you choose below about 20% smaller than you need. For example I took a 219MB video and told it to be 20M. The resulting file was still about 21.9M but it was OK when I said 18M and was barely below the 20M size. ffmpeg is our friend here, just use this command: Change the -fs 100Mto the size you want eg. 20M, 500M Chan........
  • Cannot Print PDF Solution and Howto Resize

    If you can print other PDFs but not a particular one it is very likely that the PDF size is A4 (the longer, skinnier Asian paper size) instead of the North American letter size ( 8.5" x 11"). This breaks printing in most cases. Or it may print if you find a program that ignores the size issue. Here is an example of an A4 being rejected by a printer in Ubuntu Linux via CUPS Cannot print PDF CUPS Samsung C460: Processin........
  • Duplicate entry '2147483647' for key 'PRIMARY' MySQL Error Solution

    This usually happens when you are using something like an INT and try to insert a larger valuethan the maximum which is larger than "2147483647" On a practical term I have seen this and been guilty of this error when using scripts like PHPand generating large random numbers: $hash = mt_rand(5,9999999999999); Obviously that many 9's are more digits than the maximum of an INT resulting in that error. Change your code accord........
  • h264 DVR security camera footage cannot be played

    This is not just a Linux issue but a general issue most software or hardware players cannot play the resulting exported/backed up format of .h264 from DVR security camera footage for some silly reason. There is a simple solution in Linux using ffmpeg fortunately. Convert the .h264 file into mp4 ffmpeg -i yourfile.h264 -codec copy video.mp4 play dvr .h264 file........
  • mdadm frozen and doesn't realize array is dead/missing failed due to unplugged drives

    This was a surprising bug but I unplugged all drives for an array md127. At first it was just 1 drive and mdadm seemed to notice this. I unplugged the second drive taking the array offline but mdadm did not realize it was offline and still showed a non-existent disk as being part of it. This created problems trying to unmount it or even to stop this array with mdadm freezing. As for how to fix it I can only think of making sure you are not in a mounted path of........
  • How to Normalize and Increase the Volume on M4A files in Linux

    M4A is a weird format, so you have to be creative here is a quick copy of what I did. Basically you need to convert to .wav to make use of them and thenI converted the resulting .wav into an mp3 (nice small file size and basically universally playable): ======= sudo apt-get install mpg321 mp3gain faad normalize lame faad "Voice 002 (copy).m4a" faad "Voice 002 (copy).m4a"........
  • Howto edit/rotate Samsung/Android Videos in mencoder solution

    Movie-Aspect is undefined - no prescaling applied. videocodec: libavcodec (720x1280 fourcc=34504d46 [FMP4]) [mpeg4 @ 0x2c91c00] timebase not supported by mpeg 4 standard Could not open codec. FATAL: Cannot initialize video driver. That is the error I would get, I thought it was a codec error something else. By fluke Isaw something about ffmpeg where someone recommended manually telling it to the "fps" and it worked.........
  • How to Encode all VOBs from a DVD/Bluray VIDEO_TS folder into an XVID

    In my case I already copied the VIDEO_TS folder to my hard drive. Here is the command for mencoder: mencoder -dvd-device "myvideobackup/VIDEO_TS" dvd:// -ovc xvid -oac mp3lame -lameopts cbr:br=128 -xvidencopts pass=2:bitrate=-700000 -o myvideobackup.avi Replace "-dvd-device myvideobackup/VIDEO_TS" with the location of your backup files or the /dev device of your DVD drive. The -o myvideobackup.avi is of course the name o........
  • KVM/QEMU Base/Template Images and the power they provide

    qemu-img create -b centos.5-8.x86.20120308.qcow2 -f qcow2 ../kvmguests/25000-centos5.8x86.qcow2 Formatting '../kvmguests/25000-centos5.8x86.qcow2', fmt=qcow2, backing_file=centos.5-8.x86.20120308.qcow2, size=10485760 kB -b the source/base image -f format is qcow2 and the location of the destination image What is so special about this? It's even quicker than creating a template with OpenVZ but this is an actual OS. It saves time a........
  • Linux Quick and Simple Animated Banner Creation using gifsicle

    This is just how I like things, quick and simple through CLI (command line) using gifsicle for free. gifsicle --colors 256 --delay=200 --loop banner.gif banner-page2.gif > banner.gif banner.gif = the first page of the banner banner-page2.gif = the second page --delay=200 ms to switch between the two --loop=it goes back and forth between the two pages forever banner.gif=the resulting animated gif. There are many other opti........
  • Convert PDF to JPG/JPEG without low resolution/small picture size

    convert -density 400 somepdf.pdf -scale 2000x1000 output.jpg The key is the "-density 400" switch and also -scale 2000x1000 To give credit I found the solution here: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10928 That was the perfect solution when I was frustrated with how small the resulting JPG's resulted. I'm sure this will help a lot of people when it comes time to converting a PDF to JPG which I'm amazed Imag........
  • OpenVZ backup container to a single file while it's running using "vzdump"

    Proxmox has made this free utility to backup running OpenVZ containers. It's a great program which is actually just a PERL script but gets the job done. This program is not 100% required because all it really does is cp -a from your container's path as far as I know but it is still good to have uniformity to how you backup your containers. For RPM distros such as Centos/RHEL/Fedora etc.. download and install this: wget http://www.proxmox.com/cms_proxm........
  • Latest Articles

  • RTL8821AU Setup Configure Wifi Realtek 8821 in Linux Debian Mint Ubuntu Howto
  • How To Tell Which Repository a Package Comes From Debian Mint Ubuntu
  • How To Reload All Kernel Modules And List Required Moduels for Each Device - Linux Mint Debian Ubuntu Troubleshooting
  • Debian Ubuntu Mint How To Change Default Display Manager
  • Ubuntu Mint Debian Howto Execute Command / Script / Program Upon Wakeup From Sleep
  • Linux Debian Mint Ubuntu How To Add Non-Free Repositories and Contrib
  • Debian Ubuntu Mint DHCP dhclient quits and how to make it persistent if first attempt to get DHCP lease fails
  • ssh Too many authentication failures not prompting for password
  • LightDM Mint Ubuntu Debian won't start errors Nvidia Graphics
  • WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path. Linux Ubuntu Mint Debian E
  • How To Upgrade Linux Mint 18.2 to 18.3 to 19.x and 20.x
  • MP3s Won't Play / ID3 Version 2.4 Issues in Cars and Other MP3 Players/CDs/DVDs Solution
  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 80] apt update Debian 11 Bullseye Solution The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from db.local.clamav.net freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution