Sunday, March 13, 2022
Sunday, December 12, 2021
Multichain : Appending Data to Blockchain with DATA STREAMS
Multichain : How to Connect-Receive-Send to a Blockchain node?
Multichain Blockchain Platform: Brief Introduction & Installation
This video gives a minimal few minutes introduction to the Multichain blockchain platform followed by quick installation on an Ubuntu 20.04 OS terminal. This is one of the easiest platforms to play with and understand in much better way the mechanics of blockchain. Primarily CLI based, this video installs the multichain with few commands.
Tuesday, June 08, 2021
MERGING PDF: UBUNTU 20.04 LTS
This small post shares a one line command in Ubuntu terminal to merge to PDFs. While for the regulars,merging the same online would seem to be the quickest and the best but there are times when you wish your PDFs are not compromised by third party websites offering these mergers for free...so why not use a one line command with the help of a tool pdftk.
The command to install the same is
sudo apt-get install pdftk
and the command thereafter to merger the PDFs like three files 1.pdf, 2.pdf and 3.pdf is as seen below:
pdftk 1.pdf 2.pdf 3.pdf cat output 4.pdf
where 4.pdf is the merged final output file.
That's all...no third party website reliance for private files.
Sunday, January 31, 2021
REMOVE METADATA FROM IMAGES: UBUNTU with exiftool utility
Just few commands in Ubuntu to check the meta data and thereafter remove the same.I am using a utility exiftool which does not come inbuilt to most of the Linux systems,but we need to install them.
INSTALL COMMAND
sudo apt-get install libimage-exiftool-perl
USAGE COMMAND
exiftool -all= IMG_20200504_215424.jpg
(The above command creates a separate copy of the original file and the new file which is created with removed metadata)
or
exiftool -overwrite_original -all= IMG_20200504_215424.jpg
(The above command overwrites the original file with the new file created with removed metadata)
Showing you output of one file prior to removal of meta data and thereafter removing the meta data
ORIGINAL FILE
kabali@Kabali:~/Desktop/ddd$ jhead IMG_20200504_215424.jpg
File name : IMG_20200504_215424.jpg
File size : 3588382 bytes
File date : 2021:01:31 14:10:13
Camera make : Xiaomi
Camera model : Mi A2
Date/Time : 2020:05:04 21:54:24
Resolution : 4000 x 3000
Orientation : rotate 90
Flash used : No
Focal length : 4.1mm (35mm equivalent: 4mm)
Exposure time: 0.050 s (1/20)
Aperture : f/1.8
ISO equiv. : 1000
Whitebalance : Auto
Metering Mode: center weight
GPS Latitude : ? ?
GPS Longitude: ? ?
JPEG Quality : 98
REMOVED METADATA FILE
kabali@Kabali:~/Desktop/ddd$ jhead IMG_20200504_215424.jpg
File name : IMG_20200504_215424.jpg
File size : 3556853 bytes
File date : 2021:01:31 14:30:08
Resolution : 4000 x 3000
JPEG Quality : 98
Friday, January 29, 2021
REMOVING META DATA FROM VIDEO FILES : UBUNTU TERMINAL COMMANDS
Hello everyone, this post focuses on removing metadata from a video file using ffmpeg inbuilt utility in Ubuntu OS. The following command includes the original file MAH08207.mp4 being stripped of metadata and being output into a new file as output.mp4.
ffmpeg -i MAH08207.mp4 -map 0 -map_metadata -1 -c copy output.mp4
The output of the command is as below:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MAH08207.mp4':
Metadata:
major_brand : MSNV
minor_version : 22675568
compatible_brands: MSNVmp42isom
creation_time : 2020-11-09T00:48:18.000000Z
Duration: 00:00:44.16, start: 0.000000, bitrate: 12146 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 1440x1080 [SAR 4:3 DAR 16:9], 12016 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2020-11-09T00:48:18.000000Z
handler_name : Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2020-11-09T00:48:18.000000Z
handler_name : Sound Media Handler
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 12016 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc (default)
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1104 fps=0.0 q=-1.0 Lsize= 65489kB time=00:00:44.13 bitrate=12154.5kbits/s speed= 540x
video:64774kB audio:688kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.039428%
The size of the original file and the stripped of file is
-rw-r--r-- 1 kabali kabali 67050400 Nov 9 06:19 MAH08207.mp4
-rw-rw-r-- 1 kabali kabali 67060450 Jan 29 20:23 output.mp4
Thus difference between the files is the meta data removed.
I am also showing the output of ffprobe utility run on the two files to show you the difference of meta data removed too.
ffprobe MAH08207.mp4
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MAH08207.mp4':
Metadata:
major_brand : MSNV
minor_version : 22675568
compatible_brands: MSNVmp42isom
creation_time : 2020-11-09T00:48:18.000000Z
Duration: 00:00:44.16, start: 0.000000, bitrate: 12146 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 1440x1080 [SAR 4:3 DAR 16:9], 12016 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2020-11-09T00:48:18.000000Z
handler_name : Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2020-11-09T00:48:18.000000Z
handler_name : Sound Media Handler
ffprobe output.mp4
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:00:44.16, start: 0.000000, bitrate: 12148 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 1440x1080 [SAR 4:3 DAR 16:9], 12016 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : SoundHandler
SPLIT VIDEOS IN UBUNTU: SINGLE LINE COMMAND{ffmpeg utility}
Sharing here just a single line command of ffmpeg utility which can split a video with time duration's specified.So if your video is suppose 05:03(min:sec) long and you wanna split it into two sizes with part 1 as 00:00 to 02:28 and the other part 2 as 02:28 to 05:03,the commands to be executed will be
ffmpeg -i VID_20210129_115611.mp4 -ss 00:00:00 -t 00:02:28 part1.mp4
ffmpeg -i VID_20210129_115611.mp4 -ss 00:02:28 -t 00:05:03 part2.mp4
where VID_20210129_115611.mp4 is the main file and part1.mp4/part2.mp4 are the respective output files.
Thursday, January 28, 2021
MERGE VIDEOs IN UBUNTU: TWO TERMINAL COMMANDS
Hi guys...no time waste here...I m mentioning two commands to simply merge your multiple videos quickly in an Ubuntu OS.No GUI or other applications to download or use. The ffmpeg command inbuilt to Ubuntu easily merges without hassles.
So,the first command is
find "$(pwd)" -type f -name '*.mp4' -printf "file '%p'\n" | tee mp4_compile.txt
The above command will simply find your all mp4 files in the directory wherein you run this command in the terminal directory and compile them into one text file. This text file is named here as mp4_compile.txt. You can name it any thing.
The second command is as given below:
ffmpeg -f concat -safe 0 -i mp4_compile.txt -c copy merged.mp4
This command will merge all the files compiled in the txt file and merge into one output file names as merged.mp4
Thats all...I actually went through a lot of softwares and applications...tried online merge too but all had some kind of limitation in size...till I found these commands.So happy sharing and happy merging.
NOTHING BLOCKCHAIN ABOUT IT :-)
Wednesday, January 20, 2021
Ubuntu 20.04 LTS brightness control with command line[SOLVED]
The good thing is that this utility comes pre-installed with the OS. You just need to use it vide few command line inputs and these are as below:
The first command is
xrandr | grep " connected" | cut -f1 -d " "
xrandr --output HDMI-0 --brightness 0.7
SETTING RESOLUTION
xrandr --output HDMI-0--mode 1680x1050
SCREEN REFRESH RATE
xrandr --output HDMI-0--mode 1680x1050 --rate 60.00
Another switch –q will query your monitors and give details as seen below
Just remember to change your screen name as per your monitor name...in my case like I said...it is HDMI-0.
Wednesday, December 04, 2019
METAHASH WALLET INSTALLATION : UBUNTU 18.04 LTS
this is followed by simply executing the file on the terminal with sudo rights ie sudo ./Meta*.bin
Monday, October 07, 2019
SUBLIME editor installation in UBUNTU 18.04 LTS
(click on image to enlarge) |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
(click on image to enlarge) |
(click on image to enlarge) |
(click on image to enlarge) |
(click on image to enlarge) |
Wednesday, February 13, 2019
SPLIT LARGE FILES INTO SMALLER PARTS & MERGE : FOR EASY MIGRATION in LINUX SYSTEMS
2. The entire thing of splitting and merging gets over in simple two commands of SPLIT & CAT
> split -b file.name
> cat x* > file.name
Here ..before I go for the split...I have taken the hash of the same to compare it later after i merge the split parts...to check the originality of files and I get the hash of the file as bb867749cf4c0325abe145a0998e3b04
In the screen shot below I use the split command,which is inbuilt to UBUNTU and typically all Linux systems....I split the file in 3GB parts...
This screen shot shows the watch screen shot of the populating split parts...
Sunday, January 13, 2019
How to install Graylog on Ubuntu 18.04.1 LTS ?
$ apt install apt-transport-https uuid-runtime pwgen openjdk-8-jre-headless
This is followed by installing ELASTICSEARCH
$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
$ echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
Next we install
$ apt update && apt install elasticsearch
This is followed by enabling the service and starting
$ systemctl enable elasticsearch
$ systemctl start elasticsearch
|
Amend cluster.name as graylog
Followed by these lines at the EOF
$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
Install mongodb
$ apt update && apt install mongodb-org
$ systemctl start mongod
$ wget https://packages.graylog2.org/repo/packages/graylog-2.5-repository_latest.deb $ dpkg -i graylog-2.5-repository_latest.deb $ apt-get update $ apt-get install graylog-server
Assistance reference from https://www.osradar.com/how-to-install-graylog-on-ubuntu-18-04/ - Thanks