Category "linux"

How to run npm start without opening browser for react development on linux

I am learning react and find myself running npm start on the terminal a couple of times but its annoying how it opens a new browser window everytime. I'm tryin

Cannot debug C# tests with visual studio code on linux

I have a c# project which I want to unit test. I'm trying to simply debug a unit test in VSCode running on linux, but I get the following error: Failed to start

Is there a way to log (additional) keystroke information on a Cowrie honeypot?

For a thesis project, I have set up a Cowrie honeypot within an Azure VM running Debian. I am interested in, in addition to the regular logs, extracting specifi

Mysql: can't start mysqld "mysqld.service: control process exited, code=exited status=1"

I have installed a third party framework fate, and mysql has been installed inside this framework, at the following path: /data/projects/fate/common/mysql/mysql

No output in the parent process without fflush(stdout)

I'm trying to understand what is behind this behaviour in my parent process. Basically, I create a child process and connect its stdout to my pipe. The parent p

Use of function kmem_cache_shrink() in slab allocation

While going through the slab allocation mechanism, I came across the following function. int kmem_cache_shrink (struct kmem_cache *) The description of this fu

Libadwaita on windows 10 & 11

I am new to GTK development. I started using GTK4 and it is really grea. As far as I understand libadwaita is used for reflecting dynamic system changes of colo

If I pull every 1 minute with a script on my linux server from Github, will I be banned? [closed]

I have two repos on Gitee and Github, and I want to use my personal server on linux to sync them. What I've done is to pull every 1 minute fro

conditional binary operator expected with Do and ssh connection

This is part of my code that I working to find a word in a remote server connecting via ssh to that server filename=test.repo word=fail exists=$(grep -c $word $

command 'scala' not found after set up by coursier

I use coursier to set up the environment of Scala using command ./cs setup in Ubuntu 20.04 LTS. It was said that all the requirements were installed. However, w

Trying to perform setcap from Qt program

I'm trying to perform setcap from Qt program this way: QProcess process; QString command = "cat"; QStringList args; args << _fileName; process.start(comm

Why function pointer in the structure causes relocation at program load-time

I've the following code that I compile and run on Linux: #include <stdio.h> // can't be static void do_stuff(void) { ;; } typedef void (*func)(void)

get error Cannot find module '/app/app.js' when start NextJs on docker

I have a project on docker developing by nextjs and laravel. The project runs successfully on my laptop but when I try to run this project on another sustem wit

Merge 2 files in Notepad++ or Vim

I have 2 files with me. File1.txt: Bus Railway Cinema Motor File2.txt: Stand Station Theatre Cycle Above 2 files I have with me and I need output like below

How do I Split Huge File into Chunks of equal size in bash

I have a huge file of 4GB of data i.e 523 rows & 2,655,566 columns. I would like to read the whole file in equally divided chunks. How to do so, suggest the

Change style of GtkLabel inside header bar

I am trying to add a GtkLabel to the right of a GtkHeaderBar then change the font weight but I cannot manage to do it. I have my XML like this: <?xml version

Change style of GtkLabel inside header bar

I am trying to add a GtkLabel to the right of a GtkHeaderBar then change the font weight but I cannot manage to do it. I have my XML like this: <?xml version

Save modifications in place with awk

I am learning awk and I would like to know if there is an option to write changes to file, similar to sed where I would use -i option to save modifications to a

how to print out all commands in bash script [duplicate]

I know "set -x" will print out commands in current script. but if the script a.sh runs b.sh then b.sh won't print out commands. is there a way

Building kernel with `-save-temps`

I'm building the Linux Kernel with the gcc options -save-temps in order to see exactly how all the C files get preprocessed. I followed the instructions here, b