Newest ubuntu Questions

Q&A for system and network administrators

Enabling https for www and non-www ubuntu nginx [duplicate]

I have a web server running Ubuntu 16.04 with nginx. I have an SSL certificate provided by comodo and I have checked it has the Subject Alternative Name for the non-www domain and the domain with www. ...

Ansible can't git clone from enterprise git server

Hi I have enterprise git server where I created a private test-repo and added a ssh-key on the deploy ssh key form. I defined a git role in my common roles which is having below yml definition. --- -...

How to access a HTTP server using a name instead of the IP [on hold]

The client infrastructure: 1 notebook with Ubuntu as a server, that runs a Rails application on IP 192.168.0.199 port 3000. 1 TPLink Archer C50 router that assigned the IP ending with 199 to the ...

How do I run multiple on-going python scripts that might be changed in the future?

In a prod environment, I want to run some python scripts that run on start-up and never stop. Currently I am trying to run them as daemon processes, i.e. something like this in systemd: #!/bin/bash ...

With Varnish:80 and Nginx:8080 website is 404 not found

I followed multiple guides how to setup Varnish (e.g. https://www.globo.tech/learning-center/set-up-varnish-ubuntu-16/) and all of them tell to set Varnish to port 80 and Nginx to 8080. So this is ...

Linux VPN router

I have a Linux machine which is set to automatically connect a VPN tunnel into a corporate network. This machine is set to NAT traffic from the local network destined to 194.1.0.0/16** and 10.0.0.0/8 ...

How Uninstall pip and python

I wanted to install version 3 of python and pip but instead issued sudo apt-get install python-pip python-dev how do I uninstall python and pip, I tried sudo apt-get uninstall but did not work, what ...

Why my service restarted every 90 seconds?

I'm working with Ubuntu Server 16.04. Here's the .service file: [Unit] Description=NoDescpt [Service] ExecStart=/home/git/cmd/daphnei Restart=always KillSignal=SIGQUIT Type=notify NotifyAccess=all ...

GCSFuse - Fusermount: mountpoint is not empty

Using gcsfuse to mount a point locally on a server within a script. Running on an Ubuntu 14 LTS server. I have two fuse mount points and the script transfers data from other mount points into them. ...

When updating on Ubuntu I get: Invalid 'Date' entry in Release

When I do: apt-get update -qq -y I am getting this error: W: Invalid 'Date' entry in Release file /var/lib/apt/lists/osquery-packages.s3.amazonaws.com_xenial_dists_xenial_Release OS details: No ...

SSH Lockout after failed login attempts

I have an Ubuntu Server for my git repositories and other stuff. Sometimes someone trying to hack it (I think it's ok for servers) and after few failed login attempts SSH is locking out. I mean no one ...

Setting up docker owasp/zap on an AWS EC2 instance, and connecting to it

I've been tearing my hair out for the past few days about this. I have an EC2 instance spun up with Ubuntu on it and have set up my AWS instance so that all traffic accessing port 8088 and 8090 are ...

Out of memory debugging Ubuntu / AWS

I have a new server that has been frequently raising Out of memory errors. This has resulted in a several processes being killed by oom-killer, and I can't work out why. It's on AWS (EC2), with 4GB ...

ntpdate, ntpd can update time from time.google.com but the ntpd service fails

I'm trying to synchronise my Ubuntu 12.04.5 instance with the Google timeservers at time{1,4}.google.com and I can successfully query using both ntpdate and ntpd but once I start ntp as a service it ...

Ubuntu site-to-site VPN with no LAN on one side

A customer requires us to connect to their system via a site-to-site VPN tunnel. ("Client-based VPN solutions are not accepted.") Once the tunnel is established we'll be consuming data over the ...

Ubuntu 16.04 server is listening but not accepting incoming requests

I recently upgraded my server from Ubuntu 14.04 to 16.04. The upgrade seemed successful (so I'm not sure if it's related) but about a week in I restarted the host and it now will not accept remote ...

Hot increase boot partition size ubuntu command line

I'm not expert with filesystem and partitioning. I've tried to follow lots of tutorials in this site (and other sites) but I don't know how to adapt the solution to my case. I want to enlarge root (...

Ubuntu webserver misconfiguration

We are trying to move our hosted website to our own VPS. I asked the company where we host the server to set up the webserver because it's running Ubuntu and I'm not a Linux expert and didn't wanted ...

Squid3 Restrict user to use a single ip

I would like to restrict users to single IP so that each will get their own dedicated IP. Currently, I set up squid with a single IP for multiple users. I follow this instruction to setup the squid ...

Find from what directory postfix send email

From my server we have many virtual hosts/domains. I just find out that there was our ex programmer try to sending and receiving email from that server privately as a hack of information, we just dont ...

error while installing php7 FPM

I have a server with Ubuntu 16.04 installed. Righ now I'm trying to install Nginx+PHP7. I follow this instructions (so sorry that is in spanish, but you can see the commands at least). The thing is, ...

Server restart on code change in vps? [on hold]

I'm running Django on a Ubuntu 16.04 LTS VPS with Apache2. The issue is I need to do a hard restart everytime I make code changes to take effect. Why is it that and do I solve the issue?

Trailing slashes with nginx and shiny server

Trying to get Shiny apps to load without using trailing slashes. Here is my sites-enabled server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index ...

NFS troubles: showmount -e {server IP} doesn't work

I'm having a number of troubles setting up an NFS mount on a Ubuntu server, and the main issue seems to be in making connection from the client (a Mac). I can ping the server address fine. Here is ...

OpenVPN Client initiating multiple connections causing SSH connection to fail [migrated]

I have an ODROID C2 with an armv8 processor running openvpn as a client. I made separate configurations for it and my other computers. My raspberry pi is running the openvpn server. Connecting to ...

Forcing removal of broken packages on Ubuntu 16.04.2 LTS

$ dpkg -l | grep php7.0-cgi ri php7.0-cgi 7.0.13-0ubuntu0.16.04.1 amd64 server-side, HTML-embedded scripting language (CGI binary) $ apt-get purge php7.0-...

Load Average on server not coming down from 25

Load Average on my machine is not coming down from 25. I have killed all the processes that I can but still LA stays on or above 25. I increased the CPU from 2 to 10, RAM from 2GB to 10GB but LA is ...

Unrecognized SSH access on server?

I'm running a basic Ubuntu server from Digital Ocean, which I use an SSH key (stored on my Desktop) to access. I've just run netstat -ap with the following result: Local Address Foreign Address ...

Samhain Yule Beltane : Bad version number in the file signature database

I had a working client/server setup and made a few changes to the client samhainrc file. running: samhain -p info -t check -D I get the following error: <log sev="ERRO" tstamp="2017-02-22T16:34:...

Ubuntu server with many partitions

I have this problem with my VPS running ubuntu. /dev/nbd0 46G 46G 0 100% / /dev/nbd1 46G 52M 44G 1% /mnt/data Now, since nbd0 is already full, how do i start using nbd1. All my website files are ...

Ubuntu 14 find what is consuming disk space

Have any command to see what is consuming disk space on ubuntu 14? My Ubuntu server has left only 70MB of disk space thank's

Connection refused on port 8100

I'm having difficulties accessing a listening service (Ionic) on port 8100 from a remote browser. I have iptables on the Ubuntu 16.04 LTS server set up as following: -P INPUT ACCEPT -P FORWARD ...

New ElasticSearch 5.2.1 Install on Ubuntu 16.04: Connection refused

I just followed this install guide for Elasticsearch via APT: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html When I run curl -X GET 'http://127.0.0.1:9200/' (or localhost) I ...

Tracking down reason for connection refused on 8th successive ssh connection

I am using a code deployment service that connects to my server and execute commands. It connects, run some commands, disconnects and repeat. I am always getting connection refused on the 8th ...

I faced this error after trying to install mongodb on ubuntu 16.10

When trying to install mongodb on ubuntu 16.10 When I type this: $ sudo systemctl start mongodb Failed to start mongodb.service: Unit mongodb.service is masked I have followed all the steps on the ...

/usr vs /home directory in Ubuntu Server [duplicate]

What is the difference between /usr vs /home directory in Ubuntu? Why newly added users goes ti /home instead of /usr?

nginx ubuntu 413 http response

I do a post using the Requests framework on a worker thread (Celery with RabbitMQ as broker). It works fine most of the time but occasionally i get a 413 (request body too large error). I have set the ...

File doesn't exist when trying to run as sudo

Running sudo /usr/local/sbin/sudo_nginx_test returns the following error: sudo: /usr/local/sbin/sudo_nginx_test: command not found /usr/local/sbin/sudo_nginx_test definitely exists and I can nano the ...

Bind server unresponsive on Ubuntu [closed]

I have installed ispconfig 3.1 and it is up and running , I made a tiny mistake in making a dns server and instead of " F " I typed " T " in my domain name , and realized that , once I deleted the dns ...

Ubuntu 16.04 lxc no tty present and no askpass program specified

I'm using Ubuntu 16.04 and lxc 2.0.7-0ubuntu1~16.04.1, I got this error sudo: no tty present and no askpass program specified in an unprivileged container( Ubuntu 16.04 amd64). This is my /dev ...

SoftEther VPN has very slow download, while upload is high

I've installed SoftEther VPN Server on Ubuntu 16.0.4.1 VPN clients: iPhone, Windows 8 and another Ubuntu Server Network Traffic Speed Test Tool: without VPN: Download - 36.88 Mbps Upload - 4.93 ...

Mounted drive too small?

I have the following: Disk /dev/sda: 149 GiB, 160000000000 bytes, 312500000 sectors I ran: mkdir /data mount -t auto /dev/sda1 /data du -sh /data Expecting to see 149GB but instead I see 1.8G ...

Using Ngxtop for monitoring Nginx

Ngxtop -l file_name takes only 1 log file as its input, Isthere any way by which I can pass 2 log files to ngxtop for monitoring ? or combine two files into 1, so that they both can be monitored ?

bind9 not responding to DNS requests

I am trying to setup a basic DNS server that just forwards requests from other DNS servers. I've installed bind9 and edited the /etc/bind/named.conf.options file as below. options { directory "/...

Concurrent uploads in SFTP

I'm trying to establish an ubuntu server designed to allow SFTP. The SFTP works, however I want to make sure that files don't upload concurrently. For example, if i was uploading first.file second....

New server - all log files archived after first night

I recently set up two virtual servers running Ubuntu 16.04. After my basic configuration of the servers (ufw, fail2ban, sshd config) I disconnected from the servers. The next day I reconnected via ...

how we can use linux VM as shared hosted desktop?

I want to provide Linux server as a RDS. From thin client users have to access it(Thin clients have a ubuntu os). Is it possible in total Linux environment as like RDS in windows.

Websocket (WSS) migrate connection issue - from apache to Nginx

I am trying to migrate Apache websocket on windows to Nginx websocket on Ubuntu. It works on commercial browsers (Chrome, Firefox) but I on mobile apps it reports an error: Failed websocket opening ...

Outsourcing grunt of workstation to EC2 [on hold]

I have a range of servers running on EC2 with Ubuntu 16 configured with Ansible. Also I have one workstation and one work from home laptop as development environments with Ubuntu 16/ Phpstorm. I want ...

Cronjob not working at autoscaled instance's creation

We're trying to work with AWS EC2 auto scaling groups. We created an instance, set up like we need with ubuntu 16.04 and all the software we need, then made an image from that instance. We then ...
Translating... 0%