👨‍💻 Tunning your Devbox shell

Using Oh-My-Bash with Jetify Devbox: A Step-by-Step Guide If you’re a developer working with Jetify Devbox, you might have noticed that its shell environment doesn’t always play nicely with Oh-My-Bash. By following these steps, you can customize and personalize your themes and PS1 prompt to create a more enjoyable and productive shell experience. Step 1: Install Oh-My-Bash First, you need to install Oh-My-Bash. You can do this by running the following command in your terminal:...

2024-07-26

Python & Virtual Environments

When starting a Python 3 project in Linux, it’s essential to follow best practices to ensure a clean and isolated development environment. One of the recommended approaches is to utilize virtual environments. Virtual environments allow you to create an isolated environment for each project, preventing conflicts between different packages and dependencies. In this guide, we’ll walk you through the steps to set up and activate a virtual environment for your Python 3 project....

2023-03-15

Java Native Memory Tracking in GNU/linux

Java provides a Native Memory Tracking feature that enables you to monitor the memory usage of your Java application. This feature is particularly useful for identifying memory leaks and optimizing the memory usage of your application. In this post, we will discuss how to activate Native Memory Tracking for a Java jar application in Linux. Step 1: Check Java Version First, you need to check the version of Java installed on your system using the following command:...

2023-01-10

setup auto mount smb v1.0

In any case you still having a device that works with smb v1.0 you can use the following way in order to mount it on your Fedora host: Path: /etc/NetworkManager/dispatcher.d/smb-setup.sh #!/bin/sh -e # Script to dispatch NetworkManager events # more over: https://stackoverflow.com/questions/16848021/linux-networkmanagers-etc-networkmanager-dispatcher-d-test-script-does-not # Runs ifupdown scripts when NetworkManager fiddles with interfaces. # See NetworkManager(8) for further documentation of the dispatcher events. INF="$1" # your current interface name such as eth0, wlp4s0 and so on STA="$2" # status such as UP or DOWN # Send message to /var/log/messages logger -s "$0 called for interface named $INF with $STA ....

2022-05-27

Ansible missing sudo

Ansible FAILED! => {"msg": "Missing sudo password"} I have a couple of ansible-playbook, from one of my endpoint device started to prompt missing sudo password due there is needed a sudoers access, thus this is one of the solutions. login by ssh to the device, where ansible can’t login. go to /etc/sudoers.d/ create a new entry eg: “023_user-nopass” add the following line “user ALL=(ALL) NOPASSWD: ALL” into the file “023_user-nopass” change the permission by using: sudo chmod 440 023_user-nopass NOTE: please change value for your normal user access -not the root one-...

2022-04-03

How to install /e/OS in Gigaset GS290 from GNU/Linux

I created this post as aim to collaborate with the project and help those how are bought a Gigaset GS290 to test this great /e/ OS degoogle fork, and have been failed by using easy installer, but first I will let clearly that these steps are the steps I followed in order to set up the /e/ OS in my Gigaset. Requirement-system: GNU/Linux OS (in my case Fedora).** ADB & Fastboot library latest....

2021-03-21

Format & Mount an usb drive in GNU/Linux [terminal]

Format and Mount usb drive in GNU/Linux Tools/commands: lsblk parted df fdisk mkfs wipefs check if which blcok devices used by usb (sd) [df -h, lsblk] eg: a) $ sudo fdisk -l Disk /dev/sda: 7.2 GiB, 7736072192 bytes, 15109516 sectors Disk model: DataTraveler 3.0 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 b)...

2021-01-22

Monitoring with Cockpit

On this post we are going to talk about cockpit how to monitoring and manage your GNU/Linux infrastructure. Based on the official description, Cockpit project is pretty easy to use, install and integrate, you can manage and add servers by ssh credentials to your dashboard, showing logs, monitoring containers(podman/docker), services running, disk usage, etc. I’ve using it around 1 year, the only thing I cannot see it’s an alert tool or event trigger, maybe for the next release; is developed by RH team and open source, it’s already integrated in some of the GNU/Linux distribution ( RH, debian, ubuntu, fedora, etc)....

2021-01-11

Nextcloud bot as Notification System

Following the last post, where I shared how to use Telegram’s bot; on this post I’m going to explain how implement it by Chat Nextcloud API. This post is useful for those have a Nexctcloud deployment running at home/cloud. Assuming you have already Nextcloud up and running, we can create the new user, that we are gonna use it as “BOT” we will need the chat room token and the “BOT” credentials....

2020-10-09

Telegram Bot as Notification System

From one older post “Create a job using crontab” I used into my script the service exim4/ssmtp as mail server using gmail, but as we’re trying to walk away of Google’s jaw, I switched my notification engine to Telegram by an API service(bot)… almost it’s a step forward ! :) Requirement: Bot (Telegram) Web Browser Terminal(script) I will assume you have already set up your Bot on Telegram with BotFather...

2020-09-24