Uncategorised

Joining/Sizing MP4 Video Files

Loading

sudo apt install ffmpeg ffmpeg -i input.avi -vf scale="720:-1" output.avi Shrink size ffmpeg -i /media/stevee/489EB74C63B82B0E/ Iquitos.mp4 -vcodec libx264 -s hd720 -crf 25 -vf copy Dieta3Iquitos.mp4 Merge vids: Let,s create the list first. Here is an example and let us call the list fileList.txt. In this example, both the files are in the home directory. each ...  Joining/Sizing MP4 Video Files

GParted's e2fsck -fyvC0 /dev/sdx and ntfsresize -ifv /dev/sdx

Loading

Unmount the drives first!! Use these commands to check/repair linux ext4 and Win NTFS drives respectively - at your own risk of course... sudo e2fsck -fyvC0 /dev/sdx stevee@localhost:~$ sudo e2fsck -fyvC0 /dev/sdb1e2fsck 1.44.1 (24-Mar-2018)Pass 1: Checking inodes, blocks, and sizesPass 2: Checking directory structurePass 3: Checking directory connectivityPass 4: Checking reference countsPass 5: Checking group ...  GParted's e2fsck -fyvC0 /dev/sdx and ntfsresize -ifv /dev/sdx

My Rsync Local WordPress Backup Examples (in Win11 I just use Syncback)

Loading

Syncback for Win 11: https://www.2brightsparks.com/ Make sure drives are MOUNTED first! rm -vr --i=no /home/stevee/.cache/google-chrome/Default/Cache/* mysqldump -u root -p wp > /var/www/localhostwp.sql mysqldump -u root -p DebianAdmin > /var/www/localhostDA.sql sudo rsync /var/www /media/stevee/87b55176-f602-48db-ac1c-4fe0101b1a79/ -vah sudo rsync /* /media/stevee/51800665-dd6d-4c80-adf4-cf8c0061d0be/ --delete-excluded --exclude={1500,dev,home/stevee/.*,media,proc,sys} -vah rsync /var/www/* /1500/www/ --delete-excluded -vah sudo rsync /var/www/* /media/stevee/WinData/www/ --delete-excluded -vah sudo rsync /* ...  My Rsync Local WordPress Backup Examples (in Win11 I just use Syncback)

WP Info/Search Replace on CMD Line/vsftpd

Loading

A fresh Mint install for WP to run, not just read the wp-*php files will require: sudo apt install mysql-server wordpress apache2 libapache2-mod-php php-mbstring vsftpd php-curl php php-mysql sudo vi /etc/apache2/apache2.conf # Sets the default security model of the Apache2 HTTPD server. It does # not allow access to the root filesystem outside of /usr/share ...  WP Info/Search Replace on CMD Line/vsftpd

New Mint Install and Want WordPress at Home? Full Steps I Take… 

Loading

After a new Mint install! Personal Extras: sudo apt-get install ssh nmap vim automake autoconf module-assistant nbtscan locate libnss-winbind winbind g++ gparted intel-microcode amd64-microcode linux-firmware mysql-server wordpress apache2 samba libapache2-mod-php php-mbstring php-curl php php-mysql sudo passwd root sudo smbpasswd -a stevee To check FS every boot: sudo tune2fs -c 1 /dev/sda1 sudo vim /etc/samba/smb.conf Uncomment ...  New Mint Install and Want WordPress at Home? Full Steps I Take… 

Booting a Pi3 from USB3 Devices

Loading

This process is really easy now with the latest Raspian image - depending if your USB device make/model works: https://www.raspberrypi.org/downloads/raspbian/ The two USB3 devices which worked for me are these (Integral 16GB NOT the 8GB! That did not work): stevee@AMDA8:~ $ lsusb Bus 001 Device 004: ID 0781:5583 SanDisk Corp. (Sandisk Ultrafit 16GB) Bus 004 Device ...  Booting a Pi3 from USB3 Devices

WordPress Upload Limit – .user.ini

Loading

Importing Posts - Size Limits: sudo vi /etc/php/7.0/apache2/php.ini ; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; https://php.net/post-max-size post_max_size = 0 ; Maximum allowed size for uploaded files. ; https://php.net/upload-max-filesize upload_max_filesize ...  WordPress Upload Limit – .user.ini