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
0answers
2 views

cannot run LibreOffice on Kali Linux

I have installed Kali Linux 2018.4 on my machine. I installed LibreOffice via the following link: https://libre-software.net/how-to-install-libreoffice-on-ubuntu-linux-mint/ But I get the following ...
0
votes
0answers
6 views

How to start a jar file using systemd

I want to start java application on system boot using systemd. I tried to do by adding above scripts. But service is not starting. my-startup.sh [Unit] Description=Startup [Service] ExecStart=/usr/...
0
votes
0answers
9 views

How to setup a cron job every random weekday? [duplicate]

As the question is fairly self-explanatory, I would like to know how to set a cronjob to execute any random weekday without using any external script. EDIT: In case people have not understood this ...
0
votes
0answers
12 views

nginx default location does not catch all

Why does my nginx proxy with configuration as below, not direct all locations not specified in the server block to what is given in the default location? server { listen 80; ...
0
votes
1answer
24 views

Get SSH port of an ec2-instance

In my company, we have an ec2-instance, of which I didn't have any knowledge about. My predecessor would have created that, and didn't provid any information about that. Now suddenly something ...
-1
votes
0answers
12 views

Can a server with HDD handle 1000 visitors online at same time (500kbps each) [duplicate]

i have a server and i host videos there. example i have 1000 visitors and they view video with 500Kbps at the same time so it means server should handle 500Mbps bandwidth but what about HDD , is that ...
0
votes
0answers
6 views

Why does duplicity require the backup passphrase when deleting old volumes?

I've recently been investigating utilising duplicity to backup a server to a remote location via webdav. As part of this, I want all parties involved to have the absolute minimum permissions needed. ...
2
votes
1answer
19 views

How migrate directory ACLs when migrating apache between different VMs?

I am copying two directories from my on-prem server to apache on AWS /var/www/my_app, and /etc/httpd When I get the long listing for /etc/httpd I get the following on my local server with all those +...
0
votes
1answer
14 views

/proc/sys/net/netfilter/nf_conntrack_count extreme drop when reading /proc/net/nf_conntrack

I have very busy Web servers, and wanted to introduce some analysis to see what kind of traffic present. Namely, total number of all connections, number of time waits, established connections, udp and ...
0
votes
0answers
29 views

nginx default location redirect

Is there a way of making nginx use the location / {} block, when a user types "hostname/anything-not-already-a-location" into the browser? I want to be able to type "hostname/anything" and be ...
0
votes
0answers
12 views

Jboss EAP5 fails to start on Linux

I am trying to start JBoss EAP5 server on Linux CentOs machine. However, the process gets killed abruptly and I get nothing in the boot.logs. Please find the logs below: Server Library URL: file:/usr/...
0
votes
2answers
16 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
16 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
votes
0answers
13 views

linux deduplicate same memory page [on hold]

we are un a small datacenter with few memory We would like to launch the same program several times, the data contained on ram in this program are essentially the same. the program is a application ...
0
votes
0answers
27 views

Why do I have to add network card name in ipv6 link host address on linux when using php file_get_contents()? [migrated]

I have a question when I try to request an ipv6 link host address on Centos7. Here is my code. var_dump(json_decode(@file_get_contents('http://[fe80::852f:f5c7:15f1:d726]:8080/api/init/info', 0, $...
0
votes
0answers
12 views

'alternatives' system in linux is not listing all installed desktop managers

I'm tring to set WindowMaker to be the default Desktop Manager (xsession) in openSUSE Tumbleweed. This was working fine in Leap. I have set it in YaST -> System -> /etc/sysconfig Editor but it still ...
1
vote
1answer
23 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
votes
0answers
19 views

folder with +1k files sort them by making a folder (001,002,003,etc) and move 50 files to every folder. [on hold]

I have several folders with a lot of pictures. I want to sort them making a folder every 50 pictures. For example if the folder has 1200 photos, make 24 folders, 001 to 025, and move 50 photos to ...
0
votes
1answer
10 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
1answer
16 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
14 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
44 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
39 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
24 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 ...
-1
votes
1answer
34 views

Changed from DHCP to static but cannot resolve name

I just installed a Debian 9.6 amd64 on a VirtualBox with NAT. I had to change the network settings from DHCP to static, so I followed a few articles and changed my /etc/network/interface for it to be ...
-2
votes
0answers
17 views

When i was start nginx,i see some problems [on hold]

I was try all the solutions from google, but doesn't work.
2
votes
1answer
57 views

Mariadb 1000% CPU [on hold]

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
17 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 ...
-2
votes
0answers
20 views

ulimit not working with -f

I am trying to use ulimit to prevent my shell from writing to any files. The result is that I am still able to write the file. What I am doing wrong? $ ulimit -f unlimited $ ulimit -f 0 $ ulimit -f ...
0
votes
0answers
5 views

How Not To Bash Auto Complete File Name From the Beginning Letter? [migrated]

Say I'm in a directory and have a file called 01_test.py and if there are too many files in the folder and I forget the beginning of the file name and only remember there is a test in the file name, ...
0
votes
0answers
15 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
19 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
28 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....
-1
votes
0answers
18 views

How to use environmental variables in Postfix config? [on hold]

I've looked for this information and haven't been able to find it. Is it possible at all?
-2
votes
1answer
40 views

404's on large request pages [on hold]

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 ...
0
votes
0answers
45 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
20 views

Default apache test page in https [on hold]

Today i tried to add a third domain on my server but when i tried to access the website with https:// i see only the apache test page and not the content of the website , meanwhile the other 2 ...
-3
votes
0answers
15 views

how to enable/set a 2fa authentication or encryption key on linux (VPS) [on hold]

My server has been tried to cracked many times, I tried using reverse proxy, but it still fails sometimes, thus, I want to know if there is anything (a soft) which can enable 2fa in a linux server? ...
0
votes
0answers
12 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
35 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 ...
0
votes
0answers
17 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 ...
-2
votes
0answers
19 views

raspberry image copy to other pi? [on hold]

I have a Raspbery Pi with a crashed microSD-card (crashed like it's damaged, as in multiple pieces - don't ask me what the user did, but it happened..). I have a copy of the whole content of the Pi (...
0
votes
1answer
9 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
19 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
27 views

Pritunl OpenVPN External IP not Connecting via UDP but connects via TCP

I'm using OVH for my vpn, and decided to go with Pritunl because of it's nice web interface for the server. I choose OVH for DDOS Protection for Xbox and selling some spots for my friends. When i'm ...
0
votes
0answers
29 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
1answer
64 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
30 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 ...
0
votes
0answers
10 views

Where should I report issues regarding a linux command (crontab)? [closed]

I found an issue with crontab. While trying to update cron jobs the check reported : crontab: installing new crontab "/tmp/crontab.AvDwzo":3: bad minute errors in crontab file, can't install. Do you ...