Category "linux"

PowerShell script to SSH to Multiple Linux devices and restart/reboot them

I am comfortable with writing single queries. I am new to writing bash scripts trying to automate the daily stuff. I need help on creating a PowerShell or bash

Strange delays in websocket data transfer from Ubuntu-hosted wifi access point

I have an application that is streaming jpeg images from an Ubuntu machine over a wifi connection. The wifi network is an access point/SSID hosted on the Ubuntu

How can I increase the size of the VirtualBox screen?

I'm trying to run Arch Linux within VirtualBox 5.1.28 where the host OS is Windows 10. The problem is that the display size is too small, even when I maximize t

conda activate does not accept more than one argument:

I have conda 4.8.4, on my Linux server and still see this issue. $ /opt/anaconda3/bin/conda shell.posix activate taking the arguments $1 $2 $3 $4 passed to the

linux fcntl file lock with timeout

the standard linux fcntl call doesn't provide a timeout option. I'm considering implement a timeout lock with signal. Here is the description of blocking lock

How to create user for connect to database

ERROR : [FATAL] [DBT-05509] Failed to connect to the specified database (cdb21). CAUSE: OS Authentication might be disabled for this database (cdb21). ACT

react-native cannot find android studio

It's usual that react-native cannot find android SDK. My problem is different... Android ✓ JDK ✖ Android Studio - Required for building and inst

Linux Bash to mysql: Select or delete record with external value

I have a MariaDB (mysql) database with a table which looks like this: MariaDB [DevicesPool]> show columns from Dirs_and_Names; +-----------------+-------

Need help forming python-ldap query to list group members

Running this script on linux machine with openldap WHY DOES THIS NOT LIST USERS WITHIN THE GROUPS... it only lists groups...no one can seem to figure this out.

Jenkins unable to find npm

On this linux server, I have a user named "myuser". For this user, when echoing the path, I get this: /home/myuser/bin:/home/myuser/.local/bin:/home/myuser/.nv

"In-source builds are not allowed" in cmake

I'm new to cmake, and I'm only using it to install opencv on my ubuntu linux. Here's the command I ran: cmake -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=/

How to detect the 'service stop' command in Linux

I'm writing a C application to drive a LED strip on a Linux machine: the application listens on a TCP socket port to receive commands. If the connection is term

Remove Files whit name '\' [duplicate]

I make mistake file with this name '' and i do not know how to clear this file How to remove the file with this name '' ? rw-r--r-- 1 root ro

Get kernel symbol name in Golang

I’m trying to use bpf_get_stackid in the eBPF to query the kernel stack with the flag BPF_F_FAST_STACK_CMP. In the stacks map(BPF_MAP_TYPE_STACK_TRACE typ

Segmentation fault (core dumped) on ubunto WSL

I am trying to access the core dumped file to start debugging but it never shows. I tried many solutions such as: Giving it a size ulimit -c unlimited making t

PyGIWarning: Gtk and Rsvg were imported without specifying a version first. Use gi.require_version

$ python -c 'from gi.repository import Gtk' -c:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before

Flutter PDF Viewer for Linux desktop

I developing some kind of chat application with PDF viewing functions on Flutter for Android and Linux desktop platforms. So i want to embed PDF viewer in flutt

How to replace double spaces with one space in filenames (also subdirectories) (CloudLinux Server release 6.10)

I want to replace double spaces with one space in the filenames of a lot of photos. These photos are located in directory /foto and it's subfolders. How to do t

How to link shared library on linux using cmake?

How to link shared library on linux platform? I downloaded sfml library using apt cmd and I tried to run simple example: main.cpp #include <SFML/Graphics.hpp

How to truncate Tomcat Catalina.out log to 3 months back

My company wants us to save logs from the past 3 months. Catalina.out is getting too large on the linux server (Red hat). How can I remove everything in the log