It’s this time again. Last time in 2012. Fast forward to 2021. Here we are again. This time it a little different. The drive has not failed yet but it shows signs of failures. smartctrl says it cannot read few sectors. Waring: One thing you learn over many years working with computers, servers, etc, is… Continue reading gpt/mdadm/debian stable/failed drive replacement howto
Category: Corporate
Enabling HTTP/2
aptitude or apt-get aptitude install php-fpma2enmod proxy_fcgi setenvifa2enconf php7.3-fpm #Lets enable mpm_event a2dismod php7.3a2dismod mpm_preforka2enmod mpm_event /etc/init.d/apache2 restart a2enmod http2 Few Errors that came up. The order above fixes the issues. a2enmod mpm_event Considering conflict mpm_worker for mpm_event: Considering conflict mpm_prefork for mpm_event: ERROR: Module mpm_prefork is enabled – cannot proceed due to conflicts. It… Continue reading Enabling HTTP/2
Mysql/MariaDB Upgrade from Debian 9 to 10
I read the release notes for Debian: https://www.debian.org/releases/stable/amd64/release-notes/ Did the standard upgrade from Debian 9(stretch) to Debian 10 (buster) In this blog we will cover the proper way to upgrade mysql as to not to get this problem. While I’m not saying this covers all steps mysql/mariadb upgrade, its a good lesson on what to… Continue reading Mysql/MariaDB Upgrade from Debian 9 to 10
Upgrade from Dell Latitude E7470 to Dell XPS P56F002
Dell XPS on Debian Stable 10, Thunderbolt, 2xhdmi Amazing setup
Moving / (root partition) to NVME while keeping /home on HDD
I need to move my running Linux Debian machine to my new m.2 nvme Samsung drive to gain 10x IO speed improvement. It’s crazy fast! The procedure is very similar as below http://lucasmanual.com/blog/move-root-partition-to-home-partition/ Prerequisites: You already installed NVME and partitioned it You have gpt2 with grub partition similar to : /dev/nvme0n1p1 [ 2.00 MiB] /dev/nvme0n1p2… Continue reading Moving / (root partition) to NVME while keeping /home on HDD
Cookiecutter – Modify context in post_gen_project.py
Cookiecutter is a template where you can setup skeleton of a project, and based on parameters from cookiecutter.json it will prefill all files with the supplied values. Advance Cookiecutter Question: How can I add new context based on what was submitted from cookiecutter.json, then come up with my own variations, and pass them back to… Continue reading Cookiecutter – Modify context in post_gen_project.py
Quick Intro to Cassandra vs MongoDB with python
Cassandra Conclusion: “One way that Cassandra deviates from Mongo is that it offers much more control on how it’s data is laid out. Consider a scenario where we are interested in laying out large quantities of data that are related, like a friend’s list. Storing this in MongoDB can be a bit tricky – it’s… Continue reading Quick Intro to Cassandra vs MongoDB with python
Alt + Speak (Alt+S) = How to enable Text-To-Speech
*Install festival. This will speak the text you select. apt-get install festival *Install xsel. This program allows you to pass what you selected into a talk.sh from your graphic interface. In my case I use gnome shell, so when you are in a email or website or reading long marketing notes and you select your… Continue reading Alt + Speak (Alt+S) = How to enable Text-To-Speech
Linux System Recovery part 1
In December 2012, there was a power outage mostly due to blowing fuse at the fuse box. For those that don’t deal with that much, older fuses will trip because the connectors are worn out. Also on a 20amp fuse you should not go over 60% output, so 14amp would be safe. You can replace… Continue reading Linux System Recovery part 1
mdadm Raid5 – How to replace failed drive GPT partition
Install gdisk. On debian squeeze you need to add main backports vi /etc/apt/source.list #Add below deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free Install gdisk aptitude install gdisk Drive sdb1 failed? Show details of partition md0 mdadm –detail /dev/md0 cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sdc1[1] sdd1[2] 3907028864 blocks level 5, 64k… Continue reading mdadm Raid5 – How to replace failed drive GPT partition