Questions tagged [linux]

LINUX QUESTIONS MUST BE PROGRAMMING RELATED. Use this tag only if your question relates to programming using Linux APIs or Linux-specific behavior, not just because you happen to run your code on Linux. If you need Linux support you can try https://unix.stackexchange.com or the specific Linux distribution's Stack Exchange site like https://askubuntu.com or https://elementaryos.stackexchange.com/

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Segmentation Fault in apache after changing environment from Python 2.7 to Python 3.6

I am trying to upgrade my python environment from 2.7.15+ to 3.6.9 on my debian server. After deploying the latest python 3 code and installing the requirements I noticed that apache started giving ...
0
votes
0answers
8 views

Issues with giving permission to user PHPMYADMIN

I'm trying to give all permissions to a user on phpmyadmin so he can add a collation to his database. However, once I enter the command : ''' GRANT ALL PRIVILEGES ON . TO 'admin'@'localhost'; ''' ...
0
votes
0answers
10 views

Linux bashscripting problems [closed]

How to make a copy command that takes the filename as first argument and direcrory name as second argument in a shell script , how to give thaht directory name the path so the command can be used from ...
0
votes
0answers
20 views

Replacing smart quotes in unix with single quotes using sed on LInux Suse 12

If I run this as a normal user #!/bin/bash echo This is a smart quote fixed using previous method | sed "s//'/g" QUOTES="\xE2\x80\x9C|\xE2\x80\x9D" echo This is a fixed smart quote fixed using ...
-1
votes
0answers
7 views

CUPS printer class queuing only one job at a time [closed]

I am running multiple dye sub printers as members of a CUPS printer class running on Raspbian. The purpose of this setup would be maximum print performance with multiple devices printing at the same ...
0
votes
0answers
16 views

Merging files header and appending data in unix using awk

All files are | delimited files. These are files examples. FILE 1 (This file has all master columns to be in output file) A|B|C|D|E|F|G|H|STATUS FILE 2 A|B|C|ON_STATUS 0|3|6|Y 1|4|7|N 2|5|8|N ...
-1
votes
0answers
23 views

Linux using grep

This is a LINUX questions my file is called poem, how can I use grep to do these things in LINUX Use grep or egrep to pick out the lines in a text file which satisfy: Exactly 3 letters from abc Of ...
0
votes
0answers
11 views

Ansible: how to remove characters from a string using jinja2 filters

I am trying to extract an IP address in an ansible playbook from a string but I am terribly failing and all workarounds in other similar stackoverflow questions don't seem to work for my case. - ...
0
votes
1answer
43 views

Linux not recognizing perl shebang

I have a perl job migrated from a Solaris server to a Linux server that is failing I believe because the Linux version is not respecting the shebang, which the Solaris server handled no problem. perl ...
-1
votes
0answers
10 views

Ubuntu/Linux/HPC terminal, leave some blank lines at the bottom

This may be asked before but I have not found a useful solution. I was using Linux recently and also a high-performance cluster which also based on Linux. By default, the cursor in the terminal is ...
-1
votes
0answers
6 views

installation of SCIPOptSuite-6.0.1-Linux.deb on linux virtual machine

I am getting the following error : after installing pip3 and libgfortran3 on my virtual box when I install I get the following error on my IDE when I call Model. from pyscipopt.scip import ...
0
votes
0answers
17 views

bash can't find commands anymore or gives permission denied [closed]

I was messing around on my linux server ( centos7) and I wrongly changed the owner and group of .bash_proflle .bash_logout and .bashrc. And the only command that is working anymore is "pwd". "cd" ...
0
votes
0answers
22 views

Printing Unicode Characters from scratch C linux [duplicate]

So my question is, how do I print Unicode characters to the Linux Terminal with the write() syscall from <unistd.h>. I don't want to use higher level libraries like <stdio.h> or <...
0
votes
0answers
15 views

because root can't create a folder mkdir: cannot create directory .ssh: Permission denied [closed]

I try to execute ssh-copy-id [email protected] /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new ...
0
votes
0answers
12 views

Linux sys_open in 64-bit NASM returns negative value

I am opening an existing file to write into it, using sys_open and sys_write. The sys_write works correctly when I create a new file as shown below. But if I use sys_open, the return value is ...
0
votes
0answers
91 views

TypeError: expected string or bytes-like object and works on server but not on PC

Introduction I have problem with python program written in python 3.4.2. At the beginning i want to say, that it's not my program. When i connect with server by SSH and compile it, it works just ...
0
votes
1answer
14 views

Using more than one argument for separate outputs for each one in a shell script

I have a script that looks for local packages in the system that I called querypac. It's very simple, just because I hate typing yay -Q|grep footo look for these packages. It goes like: #!/bin/zsh ...
-1
votes
0answers
8 views

How to Host Ktor server application in AWS? [closed]

I have searched a lot about Ktor app hosting in linux server, it shows only for Google App Engine and Heroku. So could anybody explain me about how can i run my Ktor server application in AWS linux ...
0
votes
0answers
7 views

symbolic link between linux wsl and windows [closed]

I have a problem, because I want to create a symbolic link on Linux and connect it to a specific folder on windows with wsl. I've been searching for that on the web but can't find any solution for ...
-4
votes
0answers
44 views

How to separate a big file into smaller ones using linux commands? [closed]

I have a file that looks like below. I want to separate out the chunks from first '//' to the next '//' and create separate files using linux commands. How can I do that? Position Code Kinase ...
0
votes
0answers
27 views

assembly - how to properly use stack between function call

I'm confused with how to use the stack in assembly. I'm trying to understand how can I pass and read variables between functions, for this pupose, I've written a short program and I'm debugging it ...
0
votes
0answers
42 views

Socket Communication Data Corruption on Write/Read

I've got a C++ server that communicates with multiple clients. It uses a vector to store the handles to the sockets for those clients (playerSockets in the code below). At the end of the "game" I want ...
0
votes
0answers
9 views

JQuery Multi Upload Class in Codeigniter Not Working on the Linux (Centos 6.x, Ubuntu 16.04) Sever

I have a project that is used to manage officer details. One of the options in the project is used to upload some .pdf files of a officer, to specific folder (./uploads/) in the linux server. "upload" ...
-1
votes
0answers
9 views

Is SUSE linux support COUCHDB and OPA(Open policy Agent)

I am trying to Install COUCHDB and OPA on SUSE Linux machine. And I am trying to get correct package or repo which could be compatible with SUSU, But I am not able to find correct solution so far. It ...
0
votes
0answers
10 views

sshexec failing with No such file or directory

I'm trying to deploy package remotely using SSH, the package W-1.2.tar.gz is getting SCP to remote bench properly after that, I'm doing untar and run a script to install but I'm getting the following ...
-1
votes
1answer
19 views

How to set up a development environment for React when IT won't allow you to install anything on your Windows workstation

I am working for a client that does not allow setting up anything on the native Windows workstation. I am, however, allowed to set up a virtual machine on which I can install anything I want. So, I'...
-1
votes
0answers
12 views

Re-installing linux VM with iso on every boot

I have a use case where I need to install RHEL 7 OS in a VM from ISO every time it reboots. For the first time installation is successful. But when I reboot and want to reinstall OS then I get ...
-2
votes
0answers
14 views

What is use of trans2.c in samba? [closed]

I was working with Samba 2.2.1 server in Linux where i came across trans2.c file. The code is quite confusing. Can some tell me the basic usage of this file
0
votes
1answer
16 views

How environment variables can be read from a file when going into a login shell with here-string and using the sudo command?

I am trying to write a small script that aims to login to a remote server, load environment variables and print one of them. (In the actual script, instead of an echo, the parameters that are read are ...
2
votes
0answers
27 views

Why are my sorted unique counts not writing to the output file in linux?

I am trying to extract the coverage counts from a file, and then sort these and have counts of the unique values. The coverage count data is in column 3 of my file. I have been running this as my job,...
-1
votes
0answers
10 views

Error when compiling CAMB: ld: cannot find [closed]

I'm trying to compile CAMB using ifort but typing make produces the following error: ld: cannot find -lm ld: cannot find -lstdc++ ld: cannot find -lpthread ld: cannot find -lc ld: cannot find -ldl ...
2
votes
1answer
26 views

linux kernel function length in Oops and objdump (disassembly)

I have some kernel Oops which failed here: BUG: ... IP: [<ffffffffabcdefab>] myfunction+0x10/0x1e [mymodule] In Oops we can see that the function length is 30 bytes in decimal. I suppose that ...
0
votes
0answers
6 views

linux http[s]_proxy env variable ignored(?)

I'm testing c-icap module that I developed, using squid-cache as proxy server. The test code sets http[s]_proxy environment variable to redirect traffic to squid proxy and then to my c-icap module, ...
2
votes
1answer
28 views

How to determine the size of a set variable in Python?

I have code as below where table data is captured in set(cur). Is there any way to find the space occupied by this variable in linux/unix? (Memory or buffer space) cur.execute("select A , B , C from ...
-1
votes
0answers
6 views

Any way to use Guest OS as DNS? [closed]

I was just wondering if there is a way to use pihole which is installed on a VM in Virtual Box as a DNS on my host machine (Windows 10 pro). Also: is there a way to also connect other devices to the ...
-1
votes
0answers
13 views

restrict any user in Linux to perform specific command [closed]

I created one user name user1 and I want to restrict user1 to perform rm command even user1 try with sudo rm user1 not able to perform rm command. How to do this?
0
votes
0answers
25 views

TCP: Server with multiple clients on same host

I have a general question of whether something is possible or not. I am not savvy with TCP/IP and therefore not certain if what I am trying to do is feasible... Currently my legacy application ...
0
votes
1answer
42 views

Bash Linux - call function in a if statement [duplicate]

i have probably some nooby question how can I call a defined function in a if statement in bash? Have a look on my example: #!/bin/bash -x Variable_A=xyz function_x() { echo "hello everyone" } #...
0
votes
1answer
21 views

Prevent git from failing on filesystems without chmod permissions in Linux

I am trying to initialize a git repro on a samba mount with very limited permissions. Trying to init I will receive: $ git init . error: chmod on /mnt/server/subfolder/.git/config.lock failed: ...
0
votes
1answer
10 views

Cppcheck syntax error on Template class having a function with template paramter

Anyone knows how I can fix this Cppcheck syntax error (no more information than "syntax error") or if it is a false positive (maybe due to options used), I looked at template tutorials and ...
-1
votes
0answers
14 views

Compatible peap+freeradius+openldap [closed]

On my new job I have inherited a service wpa2-enterprice with peap+freeradius+openldap. As NAS we use ArubaIAP with enabled function "eap-termination". And this bundle works well! Little deep: In ...
-1
votes
1answer
11 views

Error 'E514: write error (file system full?)' when editing /dev/ttyUSB0 latency timer [closed]

when I try to edit the latency_timer of /dev/ttyUSB0 on my laptop I get an error. Here what I do: $ sudo vim /sys/bus/usb-serial/devices/ttyUSB0/latency_timer When editing 16 to 1 and saving, I got ...
-1
votes
0answers
14 views

Lock and Unlock Folder [closed]

I can't seem to figure out how to delete or even move the eclipse-installer from my Downloads folder. I uninstalled Eclipse but can remove the folder. Could someone help? Thank you.
0
votes
0answers
15 views

curl: (6) Could not resolve host: download.docker.com [closed]

Good morning I am presenting the following problem when trying to download docker on a linux RED HAT 8 server: I'm shaking my head for solutions, but I don't get it; someone could help me? I'm ...
-1
votes
0answers
10 views

What's the cURL equivalent of wget -nv --spider

I am using this wget command in a cron to log status of my nodejs app... wget -nv --spider http://localhost:8125 -a applog.log I also want to monitor a LDAP server but wget does not support ldap:// ...
0
votes
1answer
13 views

How to delete folders that start with “--” through command line [closed]

After running a bad command my computer generates folders that start with "--". When I run ls I get something like: workspace --workspace I don't know how to delete these folders through the ...
0
votes
0answers
10 views

Qt Virtual Keyboard full screen

I run Qt Virtual Keyboard example in ubuntu(16.04), it runs just on full screen mode and i can not see text edit when typing with virtual keyboard. I want virtual keyboard width fit to window size and ...
0
votes
0answers
28 views

How can I test if a file could be marked as executable and run?

Is there a way to test whether a file, if I mark it as executable with chmod +x file and run it with ./file will cause the operating system to execute it (or at least attempt to execute it), without ...
0
votes
0answers
10 views

How to use SVN/libopenssl with tlsv2+ on an old SLES11 machine?

for the time being I have to work with an old SLES 11 machine. An update is planned but that's something in the future. For now I need the machine to be able to connect to an SVN server without ...
-3
votes
0answers
23 views

cannot detecting any networks using airodump kali linux [closed]

I am using Kali Linux on virtual box. I enabled monitor mode and airodump-ng was working fine and can capture available WiFi networks but after restarting the machine I got this I tried airmong-ng ...