I am building NTP 4.2.8p15 with glibc 2.34. The build fails with error: Answer The problem is answered here: https://bugs.archlinux.org/task/74690 Since glibc 2.34 PTHREAD_STACK_MIN is no longer a compile time constant so can not be used in preprocessor comparisons which causes the compilation failure [1]. Th…
Tag: linux
How to wrap color coded text to fixed line length in terminal?
For text with color codes, how to wrap it to a fixed length in the terminal? Text without color codes wraps nicely with fold: But this red text wraps wrong: Note: While the red text is wrapped wrong, it still is printed in red, which is the desired behavior. (My use case is line wrapping the output of git log
where can I find mysql-apt-config_0.8.13-1_all.deb.asc
I have issue with install mysql-apt-config_0.8.13-1_all.deb in Debian 9 but I have apt-key issue. I find that I can use Signature Checking Using GnuPG I find the PGP SIGNATURE but i can’t find the mysql-apt-config_0.8.13-1_all.deb.asc how can I find it to do gpg –verify package_name.asc. Answer Us…
The following signatures couldn’t be verified because the public key is not available while updating sudo apt update
I am trying to install some application on Ubuntu 20.04, for that I am trying to run command on terminal and I have got following error Answer I am got the same issue while running the below command In your case, you can follow below option to resolved these issue. sudo apt-key adv –keyserver keyserver.…
diff compare directories by filename only
Is it possible to use any sort of diff utility to diff based on filename only, excluding the file extensions? I have multiple dirs that have various versions of a file, ie media.mov, media.mp4, media.jpg, etc. I want to make sure all versions were made for each file (1000s). So /dir1/media_99.mov and /dir2/me…
Updating a yaml with a string containing special characters using sed
I have a yaml file that needs to be updated with string containing special characters. Here is the command I used but I get sed expression error Yaml file (file): Command that works without special characters for $var (env variable): Value for $var: fkugoiuhoiuyflkbbui/qy++bfv7J3c Error I get is: I am trying …
Jelastic – How to fix bash_profile with invalid characters entered when creating environment variables?
In advance, I apologize for my English. It was while researching how to solve the problem that I discovered Jelastic’s recommendations for creating environment variables. Without this knowledge, I created variables like I create in linux, where in case of error, I can edit the bash_profile file easily. …
python script error message ‘unknown column’ – Redhat
My Python script produces unknown column error on redhat 8.5 python 3.6.8. But works without issue on Ubuntu 20.04 with python 3.8.10 Would this be a python or redhat issue? Is it possible to gather more detailed logs? Link to full script https://github.com/michael-pellegrini/scripts/blob/master/xtime.py Redh…
Linux find xargs command grep showing path and filename
find /folder/202205??/ -type f | xargs head -50| grep ‘^Starting’ There are 20220501 20220502 20220503 and so on folders… This command searches all first 50 lines of all files in ‘/folder/202205??/’ and shows the lines beginning with text “Starting” I haven’t th…
How we can update MIB variables values dynamically in linux?
I have created one mib file where five variables are added. Also by using the following command I’m able to see the OID’s of the all varialbes. After this by using “PASS protocol” I tried to get the data from the one variable with the help of following script file After running the abo…