Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

0
votes
2answers
24 views

File writing issue with mounted ftp drive with curlftpfs

I have mounted an ftp account to my linux folder using below command curlftpfs -o user=userid:password ip-address /home/temp -o kernel_cache,allow_other,direct_io,umask=0000,uid=1000,gid=1000 The ...
0
votes
1answer
23 views

Systemctl service dependency without changing service file [duplicate]

I want to make nginx service dependent on a service I wrote, say abc.service. By dependent, I mean: nginx service should stop when I stop abc nginx service should start when I start abc A typical ...
1
vote
1answer
30 views

Sign a document and verify Date of signature (openssl)

First off: openssl's options make my head spin :) I have a file that I want to sign (foo.doc), and at some point in the future I want to prove the date/time the file was signed. How do I do this? I ...
1
vote
1answer
17 views

Mount Windows share on linux host preserving ACLs

I have a debian server with some samba shares. It is joined to a Windows domain (Win 2008 R2) and the users are mapped using winbindd. Is it possible to mount a remote Windows share (situated on win7) ...
0
votes
2answers
24 views

Setting number of threads for xz on webmin filesystem backup module

Is it possible to change the number of threads for the xz command in the filesystem backup module? I would like to use all of the available cpu's on my system. I have tried to add --threads=0 in the ...
0
votes
1answer
18 views

Incrond | Use $HOSTNAME environmental variable

I'm using Incrond to check a folder for file changes which triggers a Rsync job to our storage server. This configuration is deployed through Puppet, and therefore would like to use the $HOSTNAME ...
0
votes
2answers
79 views

https --> http lightweight proxy

I'm new to web servers and need some advice. I've wrote simple HTTP server based on served over RedHat 7.2. Sadly, served as far as I understand does not support HTTPS. In order to keep in line ...
1
vote
2answers
51 views

Sticky bit resets after every reboot

I've got a CentOS server that performs a few dedicated tasks, where different processes/users need to full access to each others files. As these files are temporary in nature, they are stored in the /...
2
votes
0answers
42 views

ntpdate: no server suitable for synchronization found [NO FIREWALL]

I have a private NTP server which again get its time from upstream NTPs and provide ntp service for the LAN. Time of server: Mon Dec 10 12:05:37 CET 2018 Time of client: Mon Dec 10 12:05:37 CET 2018 ...
0
votes
1answer
81 views

Changed from DHCP to static but cannot resolve name [closed]

I just installed a Debian 9.6 amd64 on a VirtualBox with NAT. I had to change the network settings from DHCP to static and with a netmask of /30 because it is in my assignment. So I followed a few ...
2
votes
1answer
107 views

Mariadb 1000% CPU [closed]

I have a big problem with my site (Laravel based), I have from 1000 to 1500 contemporary visitors, and I have a problem with mariadb, practically when people use filters, and other options that ...
0
votes
1answer
20 views

Ip and secondary ip sometimes doesn't repond to ping

In order to have a virtual ip, I sometimes add another IP for my interface enp2s0f0 using # ifconfig enp2s0f0:1 192.168.201.33 up I also send a gratitus arp in order to publish the new ip of the ...
0
votes
0answers
20 views

linux redhat + pip failed to install whl pkg

on my redhat machine we try to install the Jinja pkg in spite we want to install local pkg , seems that pip using network installation and we not understand why pip check the resolution we also ...
-2
votes
1answer
24 views

Ubuntu subnet distribution

I´ve a question regarding the distribution of subnets within my linux system or more specifically ubuntu. If I set a ip-adresse with a netmask, how will ubuntu set the netaddress and broadaddress of ...
0
votes
0answers
48 views

Software RAID missing after replacing motherboard - how to restore?

I had a perfectly good software raid (md0) on my Linux Mint 19 installation. I replaced the motherboard, using the exact same drives as before. However, now the RAID doesn't exist and won't assemble....
-2
votes
1answer
77 views

404's on large request pages [closed]

We just moved to a linux apache cpanel vps server. Some pages with large numbers of images are receiving many 404's per page load. Some images load while others result in a 404. different images get ...
-1
votes
0answers
58 views

new vhost redirect to other vhost (rspamd)

actually setup a new apache vhost for a second domain on my debian vps. Every time i browse the new domain, it redirect to my rspamd vhost. My first domain working fine, the rspamd redirect working ...
-1
votes
1answer
30 views

speeding up deleting a large directory by running rm -rf on multiple terminals

I have this very large directory that I'm deleting with : rm - rf . It is taking very long, so I opened up another terminal and try deleting the same directory with rm -rf parallely. Is this ...
0
votes
0answers
19 views

Receving error message on boot up

I am using Linux CentOs 7. Had to reboot server and boot appears to be hanging on the following. Probing EDD (edd=off to disable)...ok I have read online several things and tried them with no luck....
1
vote
0answers
40 views

Dynamic DNS, basic configuration not working

I'm trying to implement DDns, where DHCP daemon updates dns records instead of myself. From what I understand, it should work. But it doesn't. I would be very grateful, if somebody points out my ...
1
vote
0answers
45 views

Upgraded 14.04 to 16.04 and boot is dropping to initramfs prompt

Anyone know how to fix this? I upgraded a system with LVM partitions for /, /var, /usr, /home and it seems like initrd can't figure out the LVM scheme. I found a bugreport on launchpad regarding this ...
0
votes
1answer
11 views

Cannot run getent command remotely

On my CentOS 7 machine, I am running this command: pssh -h rephosts -i "/bin/getent hosts sync.$(hostname) | awk '{ print $1 }'" but I am only getting my host ip (where i am executing this command) ...
0
votes
1answer
36 views

Linux Bonding Mode 1 Active-Backup

Is it possible both NIC configured as Linux Bonding Mode 1 sending traffic? I have a strange case where both NIC is set as Linux Bonding Mode 1 (active-backup) and connect to two different switches (...
0
votes
0answers
35 views

My postfix server rejects my python script - “Client host rejected: cannot find your hostname”

I have a postfix on a server. When I'm trying to send an email from my python script, it gets rejected due to "Client host rejected: cannot find your hostname". How to allow an email come through? If ...
0
votes
2answers
93 views

.htaccess password protect a file in a certain directory

I have files with the same name in different directories on the serves (example: stats.php), and I want to password protect some of them (.htaccess file in the root directory). I tried "FilesMatch" ...
1
vote
2answers
36 views

How can I change a SMART attribute value?

I have a drive which has signaled a SMART error (Current_Pending_Sector is 1) and I've run a "long offline test" against the drive which reported zero errors. This was after running a "short offline ...
1
vote
0answers
132 views

L2TP ipsec using network-manager-l2tp and strongswan ubuntu 18.04

The VPN works flawlessly on OSX and Windows 10 but no luck with ubuntu VPN gets connected on ubuntu using Phase1 Algorithms : 3des-sha1-modp1024 Phase2 Algorithms : 3des-sha1 And in 10 seconds ...
0
votes
1answer
52 views

How to run a command in another process's network namespace?

There is a process running in its own network namespace. I would like to telnet to the machine and run a command in this process network namespace, something like that (17543 is the pid of the process ...
-1
votes
0answers
236 views

Centos 7 realm join and sssd logins not working after update from 7.5.1804 to 7.6.1810

I was configuring a new server from a Centos 7 release 7.5.1804 template and ran a test join to our AD domain. Everything was fine. I ran a yum update and updated the O/S to release 7.6.1810, ...
0
votes
1answer
53 views

(Can't load main.ndb) ClamAV Deamon Virus signature DB Error

I installed ClamAV as a "normal" application and inside the daemon mode. After the installation, the daemon status says the following part. clamd[7425]: LibClamAV Error: cli_parseadd(): Problem ...
0
votes
0answers
11 views

Tomcat Java error (Java/Tomcat noob)

Have an old java site archive that I'm trying to spin up to see what could be done to "convert" it to php, but I'm terrible when it comes to Java and Tomcat. Dropped the .jsp files in to the webroot ...
0
votes
1answer
49 views

pip install failed on is not a supported wheel on this platform

we want to use pip in order to install - MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl from uname -a we have uname -a Linux Master 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 ...
1
vote
1answer
49 views

Duplication of UDP traffic to two ports on localhost

I need to redirect incoming UDP traffic to two services listening different UDP ports on localhost. I tried: iptables -t nat -I PREROUTING -p udp -d 10.11.12.13 --dport 22 -j DNAT --to-destination ...
1
vote
1answer
31 views

How to keep custom kernel modules on kernel updates installed?

I've got a NIC (Asus XG C100C) that is not properly supported in the current Linux kernel. Hence, I installed driver which I compiled from source. Every time when the kernel is updated, I have to ...
-1
votes
1answer
28 views

Gitlab Testhosts for multiple Braches [closed]

Does anybody know a way to test webapplications while developing in gitlab? A solution like: branchname.myserver.com uses a automatic exported branch as document root? Specific: Bind it to a ...
0
votes
1answer
17 views

Is it possible to disable in NFS showing name of shared folder?

I have NFS server 192.168.1.1 and two client servers 192.168.1.2 and 192.168.1.3. On nfs server I have one shared nfs folder /etc/exports: /nfsshare 192.168.1.2(rw,sync,no_root_squash,no_all_squash) ...
0
votes
1answer
31 views

rkhunter: whitlist for test 'packet_cap_apps'

W have here a CentOS 7 server with rkhunter installed. Since yesterday we get following rkhunter warning: [01:10:30] Info: Starting test name 'packet_cap_apps' [01:10:30] Checking for packet ...
2
votes
1answer
63 views

WWW::Mechanize Perl module won't install on server

I'm trying to work out why a Perl module won't install on my server. cpanm WWW::Mechanize It processes stuff for ages, and then eventually dies with: root@admin:~# cpanm WWW::Mechanize --> ...
2
votes
1answer
58 views

How can I stop a systemd service with cron?

I have a simple crontab entry that is supposed to stop a service, yet it does not work. * * * * * systemctl stop nginx I even tried: * * * * * /bin/systemctl stop nginx Since that't the location ...
0
votes
1answer
29 views

Get CPU Core and CPU Count on Linux

In this output to lscpu, is it correct to say that it has 2 cores and 1 cpu? Core(s) per socket: 2 Socket(s): 1
0
votes
0answers
49 views

Azure point to site VPN connection on Linux

I am trying to get a local Linux VM to connect to our existing Azure point to site VPN. Windows machines are able to easily connect using the executable provided in the zip. The P2S configuration ...
0
votes
1answer
45 views

linux rdp show screen different users

I need a software that can run under linux as server and share the current user screen with a remote viewer. I've tried those software but they start a new session: xtighvncviewer remmina ...
0
votes
1answer
36 views

iptables and limit requests per IP per minute

I'm running Debian and iptables and are trying to limit users to accept my site more than 10 times per minute. This is my original attempt: # Max connection in seconds TIME_PERIOD=60 # Max ...
0
votes
1answer
34 views

Changing partitions on a Centos 7 system from the command line

I have just done a fresh install of a Centos 7 system that has 3 disks in it. I have ended up with the following: [root@nas /]# fdisk -l Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 ...
1
vote
0answers
32 views

Correct form of /etc/hosts

I've always thought that the correct format of /etc/hosts was 1.1.1.1 fully.qualified.name shortname alias We're upgrading our core software and some of the vendors utilities are failing as they ...
1
vote
0answers
50 views

Set SERVER vars programatically from the CLI

I need a script to set the SERVER variables programatically when executing a PHP script from the CLI. The idea is to get the SetEnv lines from an apache config file and feed them into the cli ...
0
votes
1answer
62 views

Linux Headless Server Audio Player RTP stream

I am streaming audio from a linux server (192.168.0.10) to a headless client using ffmpeg. ffmpeg -i INPUT -acodec libmp3lame -ar 11025 --f rtp rtp://192.168.0.100:1234 On the headless client, I am ...
-1
votes
1answer
58 views

How to recover a TAR file from a partially overwritten XFS disk?

This is the scenario. The environment is Linux (Arch Linux actually). An uncompressed 1,3TB tar file has been written on a freshely XFS-formatted 2TB disk as a backup. Later on, a 586MB UEFI boot ...
0
votes
2answers
82 views

Linux Two network adapters with static IP addresses on GCE Linux instance

I want to make a VM hosted on Google Compute Engine to have 2 static IP addresses. For the purpose I created the VM having two network adapters (NICs) each of them allowing me to "pick" 1 static IP ...
0
votes
2answers
86 views

ubuntu 18.04 docker swarm ipv6

Unfortunately I am not able to dump configs in here so I will attempt to describe. I have a docker compose file, when I do a docker up on it things work fine. However, when I start it with docker ...