I have the following problem with my Gitlab Pipeline Setup. I recognized that in the bash there is shown “shell runner” but in the .yml file I used “tags: -docker”. If I re-run the job, sometimes it works and uses the right runner, but most of the time not. The is the bash output: Runn…
Tag: linux
How to add webrtc native apis into my qt project?
I have been in trouble for a few days, so I really need some exports of webrtc to help me. I compiled successfully with the source code by ninja, and I can run the peerconnection example. I add the static libraries(.a file) into my qt project one by one, and then I set the include path to the source code
How to create an ELF executable from process memory image
First of all, Engilish is not my native language. Please excuse if there are any mistakes. As stated above, I want to create an ELF executable from process memory image. Up until now, I successfully extracted an ELF Header, Program Headers and a list of Elf64_Dyn structures resides in Dynamic segment. I also …
accept(…) seems to be modifying the file descriptor parameter I give it
Here’s a section of my code, for a simple echo server I’m attempting to write using the linux sockets syscalls: Just before this piece of code, I set up a socket descriptor fd, and then, immediately before the while loop begins: I compile this and then run it, and then run a client program which I…
Upgrade .Net Core 1.0 to 2.0 Ubuntu 16.10
I’m trying to upgrade the .net core version from 1.0 to 2.0 but I’m getting some errors. I’m not good at Linux, so I don’t understand well what’s happening. I run: And I get this error: So, I try to install dotnet-runtime-2.0.5 and I get this After this, I try to install libicu55…
linux ulimit with java does not work properly
I run code on linux ubuntu 17.10 this code returns “unlimited” but whenever I run command from terminal I get 1024. Why those numbers are different? Answer You get the same result if you run the same command from the command line: This is because -c only looks at the argument immediately following…
Expect: How to iterate over files in a directory?
The following is a bash script which iterate over .csv files within a directory. The question is, I now have an expect script #!/usr/bin/expect where I want to use the same for loop. How could I achieve that? Answer You would write: Expect is an extension of Tcl. In addition to the expect man page, a link to …
How to get current foldername and remove characters from the name in bash
I’m trying to write a single command in my makefile to get the current folder and remove all “.” from the name. I can get the current folder with $${PWD##*/} and I can remove the “.”s with $${PWD//.} but I can’t figure out how to combine these two into one. The reason I nee…
Startup with Django runserver error
I am starting up with Python-Django in Ubuntu 18.04. I have python3 installed. python3 –version says Python 3.5.2 After installing Python, I installed Django as below: I also have Django installed. django-admin –version says 2.0.5 In my project, startproject worked successfully, but when I am tryi…
Wipe clean logfile on daily basis with logrotate
I want to clean a Docker container logs every day (no need to store/archive the data). I created a file called docker in /etc/logrotate.d and put the following inside: well, but it doesn’t work. So, obviously something in my logrotate configuration isn’t right. AFAIK, I don’t need to setup c…