I’m running some python scripts on some Linux clusters using SGE or SLURM. I already have my conda environment set up properly using the login node. I have been writing something like to activate the environment properly. (I have done a lot of work to figure this out) However, I just found some example codes like seems to do the
NTP 4.2.8p15 fails build with glibc 2.34: error: missing binary operator before token “(“
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]. The fix attached to the upstream bug report [2] resolves the issue. Additional info: ntp
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 Use the newest MySQL apt repository mysql-apt-config_0.8.22-1_all.deb. You can download the file.asc from MySQL
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.ubuntu.com –recv-keys 78BD65473CB3BD13 Or sudo apt-key
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/media_99.mp4 would yield a TRUE condition. Man diff
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 to figure out how I can get this working.
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. Which doesn’t happen on Jelastic servers. The error is that I inserted
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 Redhat error message Ubuntu output Answer Had to clone this repo https://github.com/util-linux/util-linux.git Then follow this how-to found
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 the path and the filename of the files that are matched by the grep command. How can I get