{ "version": "https://jsonfeed.org/version/1", "title": "Markkku's blog", "description": "", "home_page_url": "https://markku.raitisoja.com", "feed_url": "https://markku.raitisoja.com/feed.json", "user_comment": "", "author": { "name": "Markku Raitisoja" }, "items": [ { "id": "https://markku.raitisoja.com/starting-a-new-blog/", "url": "https://markku.raitisoja.com/starting-a-new-blog/", "title": "Starting a new blog", "summary": " I'm starting this new blog where I hope to keep posting articles about various subjects, mostly it will be…", "content_html": "\n
\n I'm starting this new blog where I hope to keep posting articles about various subjects, mostly it will be computer related.\n
\n\n\n I hope you enjoy \n
", "author": { "name": "Markku Raitisoja" }, "tags": [ ], "date_published": "2021-05-31T11:18:33+03:00", "date_modified": "2021-05-31T11:18:33+03:00" }, { "id": "https://markku.raitisoja.com/create-7-zip-encrypted-archive/", "url": "https://markku.raitisoja.com/create-7-zip-encrypted-archive/", "title": "Create 7-zip encrypted archive", "summary": "Installing 7-zip in Ubuntu sudo apt install p7zip-full This is a quick oneliner to compress and encrypt files in folder.", "content_html": "Installing 7-zip in Ubuntu
\nsudo apt install p7zip-full
\nThis is a quick oneliner to compress and encrypt files in folder. This uses symmetric AES-256 encryption.
\n 7z a \\
-t7z -m0=lzma2 -mx=9 -mfb=64 \\
-md=32m -ms=on -mhe=on -p'verysecretpassword' \\
archive.7z directoryoffiles
\n
You can actually leave the password after -p switch empty and the password is asked interactively. This way it's little more secure, but can't be used in scripts because it's usually run in the background. In scripts you can replace it with command substitute or write the password in the commandline, but then remember to read protect the script.
\nQuick way to disable reading of the file for others than the owner of the file
\nchmod 600 nameofthescript
\nExplanation:
\nHere are the switches explained
\nSwitch | \nMeaning | \n
a | \nAdd (directoryoffiles to archive.7z) | \n
-t7z | \n7z format | \n
-m0=lzma2 | \nlzma2 | \n
-mx=9 | \nUse the '9' level of compression = the best level | \n
-mfb=64 | \nUse number of fast bytes for LZMA = 64 | \n
-md=32m | \nUse a dictionary size = 32 megabytes | \n
-ms=on | \nSolid archive = on | \n
-mhe=on | \n\n 7z format only : Disables listing of files without a password | \n
-p{Password} | \nAdd a password | \n
I found this article from scrambox website and there is an explanation how the brute force times are calculated.
Here is the re-cap from the site how long it would take the different computers to brute force this encryption
Computing power | \nAverage time to crack using exhaustive search | \n
---|---|
High-end PC | \n27,337,893,038,406,611,194,430,009,974,922,940,323,611,067,429,756,962,487,493,203 years. 27 trillion trillion trillion trillion trillion years | \n
Fastest supercomputer | \n27,337,893,038,406,611,194,430,009,974,922,940,323,611,067,429,756,962,487 years. 27,337,893 trillion trillion trillion trillion years | \n
2 billion high-end PCs | \n13,668,946,519,203,305,597,215,004,987,461,470,161,805,533,714,878,481 years 13,689 trillion trillion trillion trillion years | \n
Age of the universe | \n15,000,000,000 years 15 billion years | \n
Here is the command how you can quickly vacuum your journalctl logfiles. This might be handy when test server's disk is getting full and logfiles are not needed
\nThis will permanently delete logfiles. Please know what you are doing.
\nThis will save last 200 MB of journald logfiles
\nsudo journalctl --vacuum-size=200M
", "image": "https://markku.raitisoja.com/media/posts/7/keyboard-2.jpeg", "author": { "name": "Markku Raitisoja" }, "tags": [ "commandline", "Sidebar", "Linux" ], "date_published": "2021-05-30T10:49:24+03:00", "date_modified": "2021-05-30T11:12:46+03:00" }, { "id": "https://markku.raitisoja.com/quickly-resize-convert-and-modify-images-from-the-linux-terminal/", "url": "https://markku.raitisoja.com/quickly-resize-convert-and-modify-images-from-the-linux-terminal/", "title": "Quickly Resize, Convert & Modify Images from the Linux Terminal", "summary": "This command will convert all the png files (with that suffix) with longest side to be 1080 pixels with quality…", "content_html": "This command will convert all the png files (with that suffix) with longest side to be 1080 pixels with quality of 50%. New files will be renamed as \"converted-<OriginaFileName>\"
\n\n
for file in *.png; do convert $file \\
-resize 1080 -quality 50 \\
converted-$file; done
", "image": "https://markku.raitisoja.com/media/posts/6/keyboard.jpeg", "author": { "name": "Markku Raitisoja" }, "tags": [ "commandline", "Sidebar", "Linux" ], "date_published": "2021-05-30T10:33:12+03:00", "date_modified": "2021-05-31T09:21:04+03:00" }, { "id": "https://markku.raitisoja.com/friendica/", "url": "https://markku.raitisoja.com/friendica/", "title": "Friendica", "summary": " Friendica is federated microblogging software that lives in the fediverse. Fediverse is the collection of interconnecting servers that can…", "content_html": "\n
\n Friendica is federated microblogging software that lives in the fediverse.
Fediverse is the collection of interconnecting servers that can communicate with each other. Mostly used protocol used is ActivityPub (later AP).
With AP users can follow other users from different servers and do mostly common microblogging actions like commenting, resharing or liking.\n
\n Total statistics of fediverse
16 Protocols
69 Projects
9,548 Nodes
3,877,197 Users\n
\n This is the latest info about friendica according to the-federation.info website \n
\n\n\n 299 Nodes
9110 Users
1143893 Posts
273808 Comments\n
\n Everybody who has the skills to setup friendica server can start to follow people from other servers. Also there is a possibility to sing up with hosted server, which has sign in enabled. That is also a good way to start exploring friendica as product.\n
\n\n\n \n
", "image": "https://markku.raitisoja.com/media/posts/4/Friendica_Logo.png", "author": { "name": "Markku Raitisoja" }, "tags": [ "Friendica" ], "date_published": "2021-05-29T22:39:28+03:00", "date_modified": "2021-05-30T11:11:14+03:00" }, { "id": "https://markku.raitisoja.com/about/", "url": "https://markku.raitisoja.com/about/", "title": "About", "summary": " Quickly about me I'm introverted (INFJ) person who likes to tinker different software on Linux. My main interests are…", "content_html": "I'm introverted (INFJ) person who likes to tinker different software on Linux.
My main interests are in privacy and security.
I have been working in IT business almost 20 years in different roles.
Recently I have been working as an IT infra architect, designing and implementing different platforms.
I try to take photographs as often as possible, but usually they don't turn up to be publishable, but I'm trying to learn more about that subject, so you can also see those.
\nI used to practice eskrima, which is Philippino martial art mainly focusing on sticks, knifes and machetes.
\nMy main hobby is administering my Linux servers, that run different kinds of software.
I'm hosting the following: