Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

Filter by
Sorted by
Tagged with
-3
votes
0answers
26 views

DIGITALOCEAN - Curl(7) connection timed out to http://www.rel.rimac.com.pe

In my new droplet cant curl to specific url http://www.rel.rimac.com.pe. Curl response with code (7), but in browser this url works fine. Curl with google.com, yahoo.com works fine. Response: curl -...
1
vote
1answer
55 views

Cronjobs not running. Cron daemon not working

First of all, the server specs: VPS - OpenVZ, Ubuntu 14, Kernel 3.10 Now, it appears that the cron daemon is not running ANY crojobs at all and i cannot find out why. I tried: Rebooting the server....
1
vote
1answer
27 views

Using iptables, I lose connection. After flushing, connection is back

These are the commands I am using when I loose my connection. sudo iptables -I INPUT -j NFQUEUE --queue-num 0 sudo iptables -I OUTPUT -j NFQUEUE --queue-num 0 Can anyone tell me why?
0
votes
0answers
53 views

PKCS # 7 signature not signed with a trusted key

I have this problem I don't know if it affects my computer in any way. When I turn it on, I get the message: PKCS # 7 signature not signed with a trusted key Which appears in white or orange. I am ...
0
votes
0answers
40 views

Check if file exists using bash inside Java program? [migrated]

So I am witting a java program for interacting with filesystem. Java program itself cannot run as super user. I created a special user for this program and gave it some special privileges to run some ...
0
votes
0answers
28 views

installation of python module from local folder

module requests in missing on my redhat 7.5 machine this is what we get when we run python with module requests Traceback (most recent call last): File "/tmp/uri", line 6, in <module> ...
0
votes
0answers
13 views

Get which /dev/tapX got associated to a macvtap without guessing

Following this guide to setup a macvtap works great. An excerpt from the guide loosk like this: # ip link add link eth1 name macvtap0 type macvtap # ip link set macvtap0 address 1a:46:0b:ca:bc:7b up #...
0
votes
0answers
40 views

Is there a way to give a user access to a file without adding it to sudoers?

My monitoring system runs with lowered permissions but I want it to run a command that needs access a particular file in a folder that the monitoring system is not allowed to enter. The usual ...
0
votes
1answer
39 views

Send binary file to ttyUSB0 serially in linux

I have a binary file(obtained from assembly code). I need to transfer this file to an fpga serially via ttyUSB0. I read in some posts that using cat and echo data can be transferred to ttyS0. echo -...
0
votes
1answer
21 views

what `foo=bar programname` means [duplicate]

While developing a React app, I needed to use some environment variables. The way to do it is by using this syntax: REACT_APP_NOT_SECRET_CODE=abcdef npm start see reference My first question is: ...
0
votes
1answer
24 views

Linux console with different input / output font size

Is there a way to have multiple font sizes in a single linux console? example: x@system:~$ ls -a // Font Size 14 . .. td // Font Size 10
0
votes
0answers
39 views

In my linux system umount gives error : error writing /etc/mtab.tmp: No space left on device

I am trying to unmount on /root and fails with the following error: error writing /etc/mtab.tmp: No space left on device I am trying to unmount both "log" and "abc" df -h Filesystem ...
0
votes
1answer
24 views

JVM memory + dose heap size Xmx values have impact on consuming memory

we have linux redhat machines with service ( service is based on java ) for now service consume 1.5G memory , and the heap size set to Xmx2G let say we increase the heap size to Xmx10G dose this ...
-1
votes
1answer
30 views

Linux Server is out of space and unable to execute and command

I am login to the Linux terminal and the disk space got full now I am not unable to execute any the command and any other user not able to login on sever what can be done In this case ?
0
votes
1answer
51 views

sed backreferencing with a command

I have a string STR="<trkpt lat="53.4829787887" lon="-113.518349362"><ele>682.0</ele><time>2020-01-09T01:00:01Z</time><speed>20.0</speed></trkpt>" and ...
0
votes
0answers
25 views

Run multiple nohup commands in parallel without closing and opening a new terminal again

Suppose I have directory_name1.....100 I need to run nohup rsync -a --delete empty/directory_name1/ for 100s of directories Now when I run this command for the first time , I have to close ...
0
votes
1answer
18 views

Two partitions mounted on the same mountpoint

We noticed 2 partitions mounted on the same mount point. In altering and creating files seems to be everything normal, even the inode usage are the same. cat /etc/redhat-release Red Hat Enterprise ...
0
votes
2answers
59 views

Installed Debian alongside Windows 10 but GRUB does not show

I have one SSD on which Windows 10 is installed, and one hard drive initially partitioned entirely in NTFS - but I shrunk the NTFS using the Debian installer and installed Debian on the newly freed ...
1
vote
1answer
30 views

How can a small MTU cause a Linux kernel crash?

man 7 netdevice states: SIOCGIFMTU, SIOCSIFMTU Get or set the MTU (Maximum Transfer Unit) of a device using ifr_mtu. Setting the MTU is a privileged operation. Setting the MTU to too small ...
0
votes
1answer
27 views

can't write file on php

I am trying to create a file in the /tmp directory and unable to. It won't even let me create a file in the same dir I am in (/var/www/html). I believe I dont have the correct setting on my php.ini, ...
0
votes
0answers
15 views

Can gstreamer fbdevsink output to Xvfb virtual framebuffer? Which device to use?

I learned recently how to use Xvfb virtual Linux framebuffer: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=261264 I want gstreamer fbdevsink output into a virtual framebuffer, but that ...
0
votes
1answer
21 views

openSUSE: “Permission denied” error on Cron log file

using: openSUSE Leap 42.2 /etc/cron.d/mysite file content: * * * * * wwwrun /usr/bin/php /srv/www/mysite/cron.php >> /var/log/apache2/mysite.cron 2>&1 /etc/cron.d/ dir content: /etc/...
0
votes
1answer
36 views

how can I with a bash script tell if Sticky bit and Setgid are on the file

I am trying to make it more simple and easier for users to know if setgid or sticky bit are on the file permission by just writing setgid: ON/OFF sticky bit: ON/OFF how would I do that I know about ls ...
0
votes
1answer
32 views

replace a file if different after executing curl call

I have a url that I need to execute using curl. If the status is 200 then write the response in a temporary file. Now compare this temporary file with another file ("/opt/proc/config/init.txt"). If ...
-1
votes
0answers
27 views

what command can I use to only delete groups that where created by the user only

I was wondering if I could make it so that users can only delete their own created group lets say that bob created a new group called boblovescats, and there was another group called wehatecats ...
0
votes
1answer
27 views

Uninstalling part installations [closed]

I tried to install gambas on Ubuntu KDE it seemed to unpack quite a lot of stuff an install quite a lot of stuff but by the end of the semi installation there were so many missing files and warnings ...
1
vote
1answer
44 views

Mapping several files into one

I need to make two files appear as one : +----------------+ +------------------+ | | | | |...
0
votes
1answer
21 views

trying to understand how to not include system groups in my list of groups

I am trying to list all the groups on a Linux system with simple cut -d: -f1 /etc/group | sort now if I am understanding right this will list all the groups in the file even the system ones, now how ...
1
vote
1answer
36 views

Sum column values across multiple dataframes

Suppose I have 3 dataframes (independent .txt files): Acamar Begalb Caspri Acamar 0.1 0.0 6.3 Begalb 0.33 8.3 0.0 Caspri 1.4 0.617 2.4 ...
1
vote
1answer
56 views

Is there an interactive firewall on Linux, one that gives popup on anything trying to connect to anything?

I used ZoneAlarm and a few other programs for a long time on Windows, just because I could control anything from system services to any software connecting to any IP address. I don't find the idea of ...
0
votes
1answer
30 views

Internal Network(Client-router-Server) of Linux(VirtualBox)

I am trying to run a internal network that I built with three Linux Mint machines in VirtualBox. One acts as a client, the second one as a router and finally the server. They are connected to my ...
1
vote
1answer
42 views

Is it possible to copy files from a Host os to a Guest OS which is running in the virtualbox ? (Not Folder sharing)

As per my understanding there is an option called Shared Folder. But I am not referring to that. Here my Guest OS is Linux and my Host OS is windows. I am using virtualbox to run the Guest OS. I need ...
0
votes
0answers
9 views

How can we get ACK frame in user space application in wireless(cfg80211, mac80211, mt7601u driver) Linux?

I am using mt7601u as WiFi driver in one of embedded board with Linux kernel supporting wireless feature. I am able to send management frames(action frames) from user space applications(iw) from first ...
-1
votes
0answers
20 views

MySQL and Oracle DB backup scripts

I am urgently in need of a pre-freeze and post-thaw script for Mysql DB and oracle DB, and would appreciate any help I can get. I am also new to scripts so please, include explanations to applying ...
0
votes
0answers
15 views

Firefox additional searchbar

A colleague of mine (who is not with us anymore) used to have some kind of additional software installed where he could press a keykombination and bring up a small searchbar at the bottom of the ...
0
votes
0answers
7 views

Connection Time of Wireless stations

I am writing a function code for Wireless Access Point (AP) which stores the information of the connected devices/stations. The attributes are frequency,station mac id and connection time. Frequency ...
4
votes
0answers
47 views

When does Linux “garbage-collect” namespaces?

My current understanding of Linux (kernel) namespaces is that their lifetime after creation is as long as at least one of the following conditions holds true: at least one process/thread is joined (...
0
votes
0answers
10 views

Problem with file “.ssh/rc” and option “ForceCommand”. Script python loop infinite!

As the title suggests, I have a python script to run when logging in with ssh. The problem is that in the script there is a "while" loop with "raw_input" inside which must read a keyboard value. If ...
0
votes
1answer
33 views

How to view Stack Trace of a process?

I have seen this answer and according to that Stack Trace can be seen like: $ cat /proc/<PID>/stack [<ffffffff81012b72>] save_stack_trace_tsk+0x22/0x40 [<ffffffff81213abe>] ...
0
votes
0answers
27 views

Default password prompt change in linux unix

I want to change default password prompt in Linux. Instead of below default prompts, I want to customize the message. What Linux file I need to modify to effect these change? New password: Retype ...
0
votes
2answers
41 views

Is there a way to safely break a long command line, which is inside quotes?

I wrote a command that is a little complicated. Because there are several ' ' and " " quotes. And escaping conditions like '\'' (that usage is obligatory for some reasons. I researched it a lot). And ...
0
votes
2answers
33 views

Filter a directory to show directories larger than 1 GB

I've used the following command to list any file/directory, sorted by size: du -sh * | sort -hr How can I modify this to show only files/directories larger than 1GB?
1
vote
1answer
36 views

mdadm create raid 5 stopped after ony few hours

I'm trying to setup a raid 5 for my Nextcloud but when I run the mdadm --create command it stops. Here is my configuration : Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 732566646 sectors Units: ...
0
votes
0answers
10 views

loopback plug detection on linux

I try to find a way to detect a loopback plug on a embedded linux device. The goal is to detect the looback plug at startup and to do some actions. Do you know how can I detect the presence of a ...
0
votes
0answers
8 views

Virtual box disable Win keystroke for hotkey

I'm running Virtualbox 6.1 on Ubuntu 18.04 and installed Ubuntu 18.04 into it. The problem is hotkeys like Alt + Tab or Ctrl + Alt works only when Win cmd is held: Win + Alt + Tab, Win + Ctrl + Alt + ...
0
votes
0answers
14 views

ntuple not working for multicast MAC address

Setup: Two peer-to-peer PCs installed with Debian 10.2 I am running an application in a PC which continuously transmit Ethernet packets to a multicast MAC address (01:00:5E:7F:00:02). In the second ...
3
votes
0answers
81 views

Debian ignores second multicast packet

I have a home local network with several devices. One of devices sending multicast packets with information about some events (smart home). It works well - I've try to launch Multicast Tester app on ...
0
votes
2answers
55 views

Why does it take longer to create a file with random text than with zeros?

i recently created a test file, because I wanted to play around with logrotate. I was searching for a solution to create a file with any size I want. I found out that this is my solution: dd if=/dev/...
1
vote
0answers
29 views

Split the large file and group the split files into sub directories

In a Directory, Find the files having size greater than 5GB and split them as 2GB files each, then group the slit files of 5 files into separate directories. If I have a file with 20GB in my current ...
16
votes
1answer
2k views

How can I change a file to a directory? Files lost after find+mv

I had a directory containing some 2000 files. I ran the following command to move those 2000 files into a target directory: find /opt/alfresco \ -type f \( -iname \*.pdf -o -iname \*.xml \) \ ...