All Questions
1,054
questions
103
votes
2
answers
198k
views
Systemd with multiple execStart [closed]
Is it possible to create service with the same script started with different input parameters?
Example:
[Unit]
Description=script description
[Service]
Type=simple
ExecStart=/script.py parameters1
...
42
votes
4
answers
62k
views
npm run dev --host network: not exposed
I want to expose my svelte app on LAN using the npm run dev --host command but it shows:
> [email protected] dev
> svelte-kit dev
SvelteKit v1.0.0-next.295
local: http://localhost:3000
...
23
votes
1
answer
67k
views
Can any c# application be run on linux [duplicate]
I am developing a game server in c#. Server talks to clients via sockets and sends byte[] using custom packet protocol.
The question is, will this software be windows os specific or will be able to ...
17
votes
2
answers
8k
views
Recursively find files that are not publicly readable
I'd like to recursively find all files in my public_html folder that are not publicly readable (i.e. those files that will cause 403 error). Is there a quick bash command for that? I am using Linux ...
14
votes
2
answers
35k
views
libpulse.so.0: cannot open shared object file: No such file or directory
I am getting this error when trying to install a server.
libpulse.so.0: cannot open shared object file: No such file or directory
I run an ldd and there is the libpulse.so.0 but the script don't ...
13
votes
4
answers
28k
views
ImportError: No module named 'appdirs'
I'm trying to get a program called hangoutsbot
to work on my linux server. I'm currently using a digital ocean server. However, every time I try to run the script it gives me an error that says:
...
13
votes
1
answer
11k
views
Run custom TextSecure (Signal) server
I am trying to start my custom TextSecure (Signal) server. I want to use it for all functions that Signal has (both SMS and telephony). I believe that I also need redphone server to run telephony. I'...
13
votes
1
answer
11k
views
Tomcat Server creating Directories in tmp
Everytime my embedded virtual tomcat server is ran (spring boot) it creates a directory structure in /tmp/ that is named tomcat.##########################.8080 (I am guessing 8080 is for port or ...
9
votes
3
answers
8k
views
Linux (zip): how to find all files that are not readable?
I just tried to zip folder and it's content by this command:
zip -r ./mytarget.zip ./mysource
At the end I got the warning:
zip warning: Not all files were readable
files/entries read: 141595 (4....
8
votes
4
answers
14k
views
SLURM - echo output file so it prints on screen?
Our company's server uses a SLURM workload manager. I'm using sbatch to submit a script. Currently, I have the output printed to a file using #SBATCH -o /job_%j.out and #SBATCH -e /job_%j.err. I'd ...
8
votes
1
answer
11k
views
Apache Benchmark HTTPS Issue
I cannot get apache benchmark to work with my site. Whenever I issue this command
ab https://example.com/
I would get this output error:
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>...
7
votes
1
answer
5k
views
Nginx: Serve multiple Laravel apps with same url but two different sub locations in Linux
I want to serve multiple Laravel apps in a single nginx server, the first one has a root directory in /var/www/html/app1, the second one has /var/www/html/app2, and so on. The index.php file of each ...
7
votes
2
answers
16k
views
How can I run my node js script automatically using scheduler on server
I have created a nodejs file using express enviornment and running the file on server using nodemon. Currently I have to give commands to the interface to run the particular file on nodemon but what I ...
7
votes
1
answer
6k
views
Nginx "location ~ ." vs "location ~* \."
Is there a difference between the 3 following directives?
location ~* \.(png)$ {
expires max;
log_not_found off;
}
location ~ \.(png)$ {
expires max;
log_not_found off;
}
location ~ .(png)$ ...
6
votes
4
answers
7k
views
Accessing to Laravel server from android phone at a port
Trying to access to Laravel server at localhost:8000 from android phone.
What I did:
Laptop & android phone is connected to same router.
started Laravel server at localhost at port 8000
laptop's ...
6
votes
1
answer
8k
views
How to set the socket option SO_REUSEPORT in Rust?
I've read the documentation for std::net and mio, and I've found some methods like set_nodelay and set_keepalive, but I haven't found a way to set other socket options like SO_REUSEPORT and ...
6
votes
1
answer
27k
views
Mounting Linux FS in Windows 10 using SSHFS
I don't exactly remember how my friend synched his changes in VS Code with remote machine(Gitlab). He commits, adds, changes the code in VS Code and it automatically applied to remote machine.
The ...
6
votes
4
answers
29k
views
How to keep elastic search running on linux server
I am accessing my server using ssh via Putty client but when my putty goes inactive or I close it elastic search stops. I want to keep it running all the time. How can I achieve this?
6
votes
1
answer
8k
views
How tomcat handle multiple concurrent request at the same time?
How tomcat handle multiple concurrent request at the same time ?
Does it queues up the requests or processes some of the requests in parallel ?
If it processes requests in parallel , how does it ...
6
votes
3
answers
8k
views
How to install latest version of nginx on raspbian?
What to specify in source.list? because when I write
deb http://nginx.org/packages/debian/ jessie nginx
deb-src http://nginx.org/packages/debian/ jessie nginx
appears error:
Unable to find expected ...
6
votes
3
answers
14k
views
Mongodb stop working: Aborted (core dumped)
After restarting the server, MongoDB, stopped working.
When I start service mongod start and gives the default message: mongodb start/running, process 6986
But it so soon after, does not give error ...
6
votes
0
answers
2k
views
How to solve nvidia-smi command stuck and not showing anything?
My server do not response to nvidia-smi after I use ctrl+c kill the process running my GPU-training code.
Before today, when I tap ctrl+c, the process first shows keyboard interrupt and then killed ...
5
votes
3
answers
53k
views
sudo: command not found when I ssh into server
I am a newbie with server handling and Linux. I am trying to install composer on my server so that i can host my Laravel project onto it as mentioned in the tutorial in Ultimate Guide: Deploy Laravel ...
5
votes
6
answers
10k
views
Drush: permission denied on remote server
I am trying to set drush up on a remote server. (a webserver by a provider)
I installed drush with composer via SSH, but when I try to run it, I get
-bash: /data/web/myusername/.composer/vendor/...
5
votes
2
answers
10k
views
SSH - Connection reset by peer - Linux Host
I have a hosting account with Linux shared hosting account with GoDaddy, recently my ssh access stopped working, this is the error:
Toms-MacBook-Pro:production tom$ ssh [email protected]
...
5
votes
5
answers
30k
views
Tomcat is not getting started: Permission denied
I am getting below error when trying to start the tomcat using systemd service
systemd[1]: tomcat.service: Failed to execute command: Permission denied
systemd[1]: tomcat.service: Failed at step ...
5
votes
3
answers
5k
views
Unable to register git runner on local network server
i'm trying to register a git runner on my company local network server, gitlab is working fine with self singed certificate, but when trying to register a git runner like this
sudo gitlab-runner ...
5
votes
3
answers
8k
views
Run Linux command in background and keep runing after closing SSH [duplicate]
I need to run a Perl script for several days processing something. On a linux Centos server, from the SSH terminal I run this command:
nohup perl script.cgi 2>&1 &
This runs the script in ...
5
votes
1
answer
3k
views
What is the proper way to handle multiple clients connections on linux server
Hi I am writing server on linux in C language using TCP.
The server has to handle multiple connections (up to 5000 approximately). 5000 is max, but average should be about 500 - 1000.
I would like to ...
5
votes
1
answer
10k
views
Nginx SSL Handshake Error
I am getting following error in my server log :
[crit] 915#0: *46701 SSL_do_handshake() failed (SSL:
error:140A1175:SSL routines:SSL_BYTES_TO_CIPHER_LIST:inappropriate
fallback) while SSL ...
5
votes
0
answers
10k
views
creating pkpass files for Apple Wallet/Passbook on server-side
I'm new to iOs development, I am android developer.
I followed the apple developer instruction and managed to create working boarding pass(pkpass file). But it's static and i built it using my ...
5
votes
0
answers
4k
views
Dropbear for Windows
I'm looking for an open source SSH server for Windows.
I came across a some servers but they were all closed source.
I want to believe that one exists already.
I also tried to compile Dropbear for ...
4
votes
2
answers
41k
views
Error: Cannot find a valid baseurl for repo: base [closed]
I need some help please, I am trying to install yum update in CentOS 5.9 but I get error
> Loaded plugins: fastestmirror, kmod Loading mirror speeds from cached
> hostfile YumRepo Error: All ...
4
votes
1
answer
26k
views
mount: /dev/mapper/centos-home: can't read superblock [closed]
I've a very big problem. Today after 3 months of activity on my home server I shutdown it and restarted it. It boot in recovery mode. I see from journalctl logs that the problem was:
can't mount /...
4
votes
3
answers
58
views
How data can be synchronized among multiple linux servers [closed]
I have basically 4 servers for running the same project. I want make changes in database from UI.
What should I do so that all changes are reflected on all server so that all servers contain the ...
4
votes
1
answer
8k
views
c# Access to the path denied on ubuntu 18.04 server
My friend and I wanted to make a discord server. I made the bot in c# and needed something to host it on so it can run 24/7, I've chosen Digitalocean. I created a ubuntu 18.04 droplet, installed ...
4
votes
1
answer
3k
views
lighttpd not making global environment variables availble to executables
How to set up lighttpd in order to make environment variables available to spawned processes?
I have an executable being called through CGI as an URL (e.g. http://.../cgi-bin/executable.bin).
The ...
4
votes
3
answers
4k
views
Tomcat9 Failed at step NAMESPACE
My OS is Debian 10 (Buster), 4.19 kernel, and Tomcat9 seems to be unstable.
I don't want to see any error messages when I run the 'systemctl status tomcat9.service' command.
but, 'systemctl status ...
4
votes
1
answer
4k
views
PHP Code Is Not Executed For PHP 7.2 On Aws Ec2 Instance
I am trying to install php on aws ec2 instance. Since php 7.2 is not available, I used following commands to enable few repos as suggested in this Link
sudo yum install epel-release
sudo yum install ...
4
votes
1
answer
10k
views
NGINX 404 not found but file exists
I want to call the index.html from the folder /var/www/fileUpload/html. The index.html file exists in that folder.
The / router works. the uploadFiles route as well. But when I open the upload route I ...
4
votes
1
answer
6k
views
ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN
We got an error form laravel 7, when rabbitMQ Connection in server.
The same server Laravel 5.8 working fine, We use same login details
for both 5.8 and 7. But 7 version only we that issue
...
4
votes
3
answers
6k
views
How to sudo run a local script over ssh
I try to sudo run a local script over ssh,
ssh $HOST < script.sh
and I tried
ssh -t $HOST "sudo -s && bash" < script.sh
Actually, I searched a lot in google, find some similar ...
4
votes
1
answer
3k
views
Docker service does not start anymore after Ubuntu 18.04 update: dm_task_run failed / no such device storage-driver=overlay2
After I triggered an unattended-upgrade on Ubuntu 18.04 (currently 18.04.5) and rebooted the server my docker service does not start anymore. So I tried to run it manually with sudo dockerd but got ...
4
votes
1
answer
711
views
Apparmor: is it possible to call another executable from within an executable?
I have a problem I am not sure how to solve in AppArmor.
Basically I have a profile that executes a program, let us say
profile myprof {
/my/executable ix,
}
The problem is that from that ...
4
votes
1
answer
4k
views
.NET Core best linux server distribution
Can you recommend best choice for linux server distribution for my .NET Core application?
My Second question is about managing big traffic on this server.
Can you advice the way to manage request on ...
4
votes
1
answer
3k
views
How do I run a simple Go server as a daemon in Debian?
I recently wrote a simple server in Go:
package main
import (
"net/http"
"fmt"
"os/exec"
)
func main() {
http.HandleFunc("/", handler)
http.ListenAndServe(":****", nil)
}
...
4
votes
1
answer
1k
views
Mayan EDMS install, seems ok, but not working
I follow the steps on the below link, and build it on my ubuntu cloud, it seems ok, but not working on my browser.
https://mayan.readthedocs.io/en/v2.1.4/topics/installation.html
no matter on local: ...
3
votes
2
answers
5k
views
Difference(s) between a background process and a daemon in linux
Background processes don't belong to a user and a terminal, nor do daemon processes. What is the main difference between the two? If I were to write a server program, should I run it as a background ...
3
votes
1
answer
4k
views
Could not install packages due to an EnvironmentError in ec2 server
i'm typing the following in my working amazon ec2 linux server. (with ENV activated)
pip install pillow
getting this error:
Could not install packages due to an EnvironmentError:
[Errno 13] ...
3
votes
1
answer
3k
views
How to run node js even on server restart
I built a Nodejs project and now it runs smoothly.
I use forever service for running file in background but if server get restarted
the daemon won't be started automatically and should be started ...