Category "linux"

Log in to a site (Stack Overflow) by Bash

How can I log in to a website using Bash in Linux? For example, to log in to Stack Overflow I tried many different methods, shown below, but nothing's worked. w

Cannot connect to docker daemon in intellij in ubuntu with snap

In Intellij Ultimate docker is not detected automatically. I choose "create new", but i get the message, that i cannot connect to docker daemon at unix /var/run

How to change default shell of OpenWrt?

The default shell of OpenWrt is ash, but I would like to change it to fish. When I ran chsh -s /usr/bin/fish (the absolute path of fish), it returned -ash: chs

What is the Unexpected Token syntax error in line six?

I'm trying to learn how to create NFTs on the Ethereum block chain. In terminal (Ubuntu 20.04.3 LTS) Aki-Zeta:~/my-nft$ node scripts/mint-nft.js I keep getting

Which all multicast groups are available under custom netlink protocol

I am trying to send a notification message from a kernel module to user space application using netlink sockets interface and custom netlink protocol. My unders

Install Python 3 on Centos 8 returns "Failed to synchronize cache for repo 'BaseOS'"

I am using CentOS 8. I'm trying to install Python 3. Command: sudo dnf install python3. Error: Failed to synchronize cache for repo 'BaseOS' How can I fix

failed to synchronize cache for repo AppStream

My centos machine has no connection to internet. I need to install make utility to compile some modules from source code. I am getting this error while i run yu

Unable to get output of a Python script with qprocess

I am trying to get the output of a Python script with qprocess but I can't seem to make it work. I think the issue is with the script since I can get the output

How to store line by line in a variable?

I want to search for hidden directories or files with "find" and store it in a variable. I tried like this and it works, but it is stored one after one in TEST.

Execute system command in x64 bit assembly?

I recently been trying to execute system commands using pure assembly. I managed to achieve it in a x32 bit binary as posted here: execute system command (bash)

How to get the actual download link embedded with any "Download" button

I have this code to download a big file in chunks: import requests from tqdm import tqdm def get_size(url): response = requests.head(url) size = int(r

RStudio hangs, won't start on Ubuntu 22.04LTS (R compiled from source)

Just another post about RStudio does not start. I'm using Ubuntu Linux 22.04LTS "jammy". Since the new R version (currently 4.2.0) wasn't available in the repos

NVM: Getting Permission denied with nvm install command

I recently fresh-installed Ubuntu 21.04 and wanted to install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash Then closed a

Old problem PHP still not resolved. PDO pgsql is slower than pg functions

i fight with same issue as described here: Slow connection PHP PDO Postgres but not MySQL here's the thing - PDO Postgresql connections seem to be really slow

grep positive/negative integer value only

I am looking to grep any positive/negative integers only and no decimals, or any other variation including a number. I have a testpart1.txt which has: This is a

How to get latest file from sftp server to local using mget in linux?

Hi I am following below logic to get the latest file from sftp server. But it is copying all the files. Please help what I need to correct in my logic? datadir=

Tkinter vs Linux (ubuntu/Mint) <KP_Enter> not enabled by default

On Windows the events of the 'Return' key by default are already linked to the <KP_Enter> key. For example selecting a combobox item, or closing a mesageb

user-data shell is not executed when an EC2 instance launched by ASG/Launch Configuration with custom AMI

I have a set of Auto scaling group and launch configuration to manage certain EC2 instances. After changing the AMI to a custom AMI, the user data script that I

Linux getenv() could not get $PS1 or $PS2

My home world is to write a shell. and I must use $PS2. but when I write a code like this: char *ENV_ps2; ENV_ps2 = getenv("PS2"); I just found ENV_ps2 was

BASH: Filter list of files by return value of another command

I have series of directories with (mostly) video files in them, say test1 1.mpg 2.avi 3.mpeg junk.sh test2 123.avi 432.avi 432.srt test3 asdf.m