Categories
Linux Mastering Development

Failing to install Docker CE on RHEL 7 since tonight

I am using this commands to install Docker CE on RHEL7 and I am failing with the following: This started tonight after working flawlessly for some time sudo yum install -y yum-utils sudo yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io Any idea what changed and what happened? [pzagalsky@pzagalsky-au-rhel7-pzagalsky ~]$ sudo yum install docker-ce […]

Categories
Linux Mastering Development

How to start Docker if address is already in use?

How can I start docker on Ubuntu 20.04, if it complains that address is already in use? I tried docker-compose up -d Starting relaatiotietokannat_db_1 … Starting relaatiotietokannat_db_1 … error ERROR: for relaatiotietokannat_db_1 Cannot start service db: driver failed programming external connectivity on endpoint relaatiotietokannat_db_1 (02444b3d0c2841a4fe702cf2705fbd5a869e44e7f258ecfbcea764ead989fcb4): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already […]

Categories
Linux Mastering Development

Bash script calculator loop

I have a data file with some sample data (First Name, Last Name, Income, Rax rate). I need to do some calculations, but when displaying the result, I’m having trouble as it’s a loop and it is not displaying in order. Yes, I must use bash. Example file: ———————————— example-file.txt: John,Rambo,99880,2% Elon,Musk,144000,2% ———————————— test.bash: #/bin/bash […]

Categories
Linux Mastering Development

Why case-insensitive option in ext4 was needed?

I was reading about Linux 5.2 patch note released at last year, I noticed that they started to optional support for case-insensitive names in ext4 file system. So… what I am wondering is the reason why the case-insensitive option (including casefold and normalization) was needed in the kernel. I could find out another article written […]

Categories
Linux Mastering Development

Why does my script fail when running from udev?

I am writing a bash script and am checking whether the application is running. If it is not running it should be started in a separate process (not a child process). If it is running, the window should be maximized. I kind of made it but the new process terminates shortly after being started, probably […]

Categories
Linux Mastering Development

what is wrong with this shell script?

#! /bin/sh if [ -d $1 ] then chmod 777 $1 find . type d -exec mv {} {}.dircopy \; elif [ ! -d $1 ] then mkdir $1 chmod 777 $1 echo "Dir does not exsit" fi echo what is wrong with this shell script?

Categories
Linux Mastering Development

how to open/convert .ost file (Microsoft Outlook email folder) on linux

How can I convert (or open) .ost file (Microsoft Outlook email folder) on linux ? Ideally, I would like to read it with Mutt. But mutt does not seem to understand this format. Therefore I would like to convert it into something readable such as mbox or mdir format. Are there such conversion tools on […]

Categories
Linux Mastering Development

Wireless drivers on HP laptop with RTL8723DE doesn’t work

I have a problem with installing wifi drivers on laptop. Debian 10 buster, kernel 4.19. However wired connection working perfectly. Googled a lot, seen much, also tried everything from changing the /etc/networks/interfaces to direct download of firmware to USB and mounting it on laptop. Nothing works. Then i found page on GitHub with famous Larry […]

Categories
Linux Mastering Development

NVRAM SPI character driver

I have NVRAM device FM25CL64B-G on a board. The device is controlled by SPI. I write on the device through SPI device file. I write a program to do this. But I want to use NVRAM directly as character device. Does anyone know how.

Categories
Linux Mastering Development

Command works but permission denied error when executed from script

The below command works fine from my localhost and I get the desired output. See below $ ssh -o ConnectTimeout=7 -o BatchMode=yes root@10.9.60.26 "echo WORKS;exit" Output: WORKS Now, i put this command in a script file test.sh having sufficient execution privileges cat test.sh segment=$(ssh -o ConnectTimeout=7 -o BatchMode=yes root@10.9.60.26 "echo WORKS;exit") echo "SEGMENT $segment" I […]