Questions tagged [ubuntu]
Ubuntu Linux is a Debian derivative that aims to bring Linux mainstream. Questions on this site should generally refer to Ubuntu Server. Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.
16,577
questions
0
votes
1
answer
79
views
Can GPUs be dynamically allocated in a 20 GPU server?
The purpose for this server is deep learning algorithms. What I am planning to do is to assemble a server with 20 GPUs (Nvidia GTX 1080 TIs) and 2 CPUs (Intel Xeon Phis) and then have many users draw ...
0
votes
2
answers
1k
views
How to use Nginx load balancing to update one web server while the other one is responding?
I am looking for options and solution for my company project where we can host our websites on multiple servers and we can use load balancing. The major issue is that when I update websites, I need to ...
0
votes
1
answer
581
views
How safe is firejail?
I'm trying to execute untrusted C, C++, Python, Java and PHP program inside of a sandbox in ubuntu server. I don't know much about accessing host computer through hypervisor, or how firejail actually ...
0
votes
1
answer
82
views
MySQL rolling backups [closed]
I want to backup MySQL hourly, but only keep one days worth of backups and the. Start the process again.
How would I do that?
0
votes
1
answer
532
views
How compile PHP modules/extensions from source
I have set-up multiple PHP versions on single apache ubuntu instance using below tutorial.
https://gist.github.com/jbinfo/d297fcfdb151e25a299c
Both PHP versions working fine but php-geoip and ...
0
votes
2
answers
1k
views
cannot ssh to Google compute engine after fstab change
I wanted to auto mount a disk to my VM so added the following line to /etc/fstab:
UUID="0e9b2dc6-4eb9-47b2-9125-571a1e2aed59" /media/anExistedfolder defaults 0 0
However after resetting ...
0
votes
1
answer
610
views
Virtual Ubuntu gparted increase root partition size
I am trying to increase the disk size of my Ubuntu server with Gparted. I've come so far but the changes don't seem to have an effect.
Here is an image of what i began with and how my partitions ...
0
votes
1
answer
5k
views
https is not working in nginx along with apache ubuntu
I'm running with nginx in port 81 and apache in port 80. I tried to put ssl certificate in nginx. It's not woking.
Here is my nginx's default:
server{
listen 81;
listen 443 ssl;
server_name 35....
0
votes
2
answers
1k
views
tcpdump gives encrypted results
If I run the following: tcpdump -A -w /tmp/apache_outgoing.pcap trigger an event and then look at the pcap file I see something like:
�y�<�*�^L�cM9��^U^MK
Is there any way to make the tool human ...
0
votes
1
answer
510
views
setting up MariaDB Galera cluster Ubuntu Zesty
I can't figure out how to initialize a MariaDB Galera cluster on Ubuntu Zesty. I've followed the documentation, but something seems to be missing. I cannot get the first node to come up.
I ...
0
votes
1
answer
44
views
Recover in use apache2.conf
Someone has overwritten an apache2.conf file by accident and they havent restarted or reloaded the server so the old file is still applied.
Is there any way I can recover the previous file / current ...
0
votes
1
answer
64
views
Adding Server Block Breaks Subdomains NGINX
I currently have all HTTP connections redirecting to HTTPS using the following server block:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
...
0
votes
1
answer
368
views
Have I created and mounted this raid array correctly?
So I am working out how to add a new raid1 array to our server as we have a raid1 array which is almost full. I have replicated our server setup in a virtual machine and attempted to add a raid array ...
0
votes
2
answers
142
views
Let's Encrypt verification failure
trying to generate a new SSL cert with Let's Encrypt following this guide - https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04 but am getting ...
0
votes
1
answer
913
views
Adding second nic Ubuntu causes network restart failure
I'm running an Ubuntu 16.04 LTS box and trying to get a second NIC up on it. Here is the /etc/network/interfaces config:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
...
0
votes
1
answer
1k
views
Autovacuum is using 100% CPU time in Ubuntu 16.04
Running Postgres on Ubuntu 16.04 autovacuum processes are using 100% CPU after a short time.
ps aux | grep postgres
postgres 79654 72.7 0.1 402164 226580 ? Rs Apr17 66:48 postgres: 9.6/...
0
votes
1
answer
516
views
Extracting Per Domain Bandwidth Usage In Apache
I have a web application which will be powering a wide range of websites. I want to implement some form of bandwidth monitoring on a per domain basis for billing and excessive use purposes. I am using ...
0
votes
1
answer
3k
views
sudo fails when disk is full
I have an ubuntu 16.04 system that has filled the root partition with logs (written by root so reserved space did not save us).
The problem is that attempts to do anything via sudo fail at ...
0
votes
1
answer
45
views
Different Linux permissions for two users
I have a small problem I can't seem to get it right.
I have user1 and user2 and a folder, but I'd like user1 to have full access and user2 to have read only access..
Checking online and looking at ...
0
votes
1
answer
500
views
Iptables Not Actually Blocking Anything
I am having problems with iptables not blocking anything despite being told to block everything except for my IP address. I followed this StackExchange tutorial but even if I try to connect from ...
0
votes
1
answer
249
views
Using DKIM from G Suite with Exim 4
I have a account in G Suite (Google Apps) and i made a DKIM, is possible use this DKIM to sign sent emails from my server through exim?
If possible, how i configure the exim?
0
votes
2
answers
727
views
Ubuntu networking issue
we have Ubuntu 16.04.2 LTS running on Hyper-V.
Connectivity to Ubuntu is unstable. Pings are stopping every 5-10 seconds for few timeouts from management station in different vlan. But if i ping from ...
0
votes
1
answer
117
views
Node.js not talking to Mongodb
I inherited a server, and the original admin team is no longer around. We have a live server that is working, but I'm trying to successfully convert it to an AMI for AWS scaling.
The clones work, ...
0
votes
1
answer
478
views
Ubuntu - Install cassandra version 3.0.9 fails: Version '3.0.9' for 'cassandra' was not found
I have ansible scripts that were used to provision some cassandra servers a couple months ago.
They are failing now on this command:
ubuntu@ip-172-30-0-193:~$ sudo apt-get install cassandra=3.0.9
...
0
votes
1
answer
848
views
empty folder takes inodes
I'm running a ubuntu 14.04.1
While I have diskspace remaining, I do have a 100% inode usage:
ubuntu@ipsec-2:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvda1 524288 520606 ...
0
votes
2
answers
2k
views
Squid cache not starting in Ubuntu 16.04.2 LTS
I'm trying to start Squid (3.5.12) by the following command:
$ /etc/init.d/squid start
[ ok ] Starting squid (via systemctl): squid.service.
but only one line appears in cache.log, and nothing else:...
0
votes
1
answer
42
views
How to keep virtual IP when port fowarding
I have a server running in a virtual machine and the internal IP keeps changing frequently making it basically impossible to forward a port.
How do I go about solving this problem?
Also I am new to ...
0
votes
1
answer
325
views
Nagios 3 how to install RabbitMQ plugin Ubuntu 12.04
I am trying to incorporate a RabbitMQ Server into our Nagios Core 3 running on Ubuntu 12.04.
My searching led me to http://www.thegeekstuff.com/2013/12/nagios-plugins-rabbitmq/ which seemed quite ...
0
votes
1
answer
4k
views
Best Practice for hardware upgrade - reinstall Ubuntu?
I am preparing for hardware upgrades for PowerEdge 1950 Gen II, PowerEdge 2950 Gen II servers and PowerEdge r710 within our DC. They all run Ubuntu 16.04 LTS.
The upgrades involve upgrades of RAM and ...
0
votes
1
answer
374
views
Postfix can only send mail to my own e-mail address
So, my Postfix e-mail server can only send e-mails to my personal e-mail. Let's call it [email protected]. When I try to send an e-mail to [email protected], that gets rejected:
<***@gmail.com>:...
0
votes
1
answer
1k
views
Xen Vm install error could not find bridge device xenbr0
I am using Xen on Ubuntu, and I want to install Ubuntu on Xen as a domU. I followed these instructions: https://help.ubuntu.com/community/Xen, Manually installing an HVM Guest VM
However I had this ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
1k
views
How to create a background service on linux with chef?
I have a Python script that I'm executing using screen on an ubuntu host, and I want to turn that into a proper background service using a Chef recipe. The python script just starts up an SMTP server ...
0
votes
1
answer
2k
views
How to create a full backup of a remote ubuntu 16.04 server?
I just finished configuring a dedicated remote ubuntu server and want to create a backup with DD in order to be able to rebuild fast in case of hardware issues.
The system has 2 SSD drives with 500GB ...
0
votes
1
answer
1k
views
Apache2 Not Starting
When I try to start Apache2 it fails then if I do
Apache2 -e Debug
It comes up with these errors
[Thu Feb 09 09:46:08.244772 2017] [core:warn] [pid 16287] AH00111: Config variable ${APACHE_RUN_DIR} ...
0
votes
1
answer
695
views
Where does echo end up when a php script is executed from a shell script?
I have a php script that I execute from a .sh file, and have some echoes in it.
if I run the script from the terminal, I can see all the output, but where does it go when it is running in the ...
0
votes
1
answer
960
views
Connecting two networks
I want to interconnect two networks.
Each of the networks should connect to the other by a PC running Ubuntu.
So, I have three networks:
NW1: 192.168.1.x NW2: 192.168.2.x and MgmtNW: 192.168.3.x ...
0
votes
1
answer
2k
views
consul keeps looking for the dead server node
I have consul cluster in production which is integrated with terraform, ansible,nomad,docker,vault. My consul keeps looking for the dead node which was part of initial setup even after removing entry ...
0
votes
2
answers
2k
views
ldapmodify can't contact LDAP server for cn=config
I've been pulling my hair out for 3 days now trying to configure ldap. I first tried installing from source but then reinstalled using apt-get, which caused some migration errors, but I believe those ...
0
votes
1
answer
758
views
Deleted bash, how do I recover?
I deleted /bin/bash. I had terminal open, but it auto-closed later. I am a normal user in sudo group.
What do I do? I'm panicked.
Can I change file permission of /etc/passwd with Python / Perl and ...
0
votes
1
answer
654
views
Postfix External SMTP Authentication - Wrong login user?
I am trying leverage Postfix as an SMTP relayer on a Raspberry Pi to allow other systems on my network to email outbound system messages. It appears there are two problems, (1) it's not authenticating ...
0
votes
1
answer
115
views
Ubuntu memory consumption
I've got the following output of the free -m command
screenshot
So as far as I understand, 6501MB is available for using. The problem is that I have a cron job executing some SQL and I've noticed ...
0
votes
1
answer
650
views
docker npm ERR! install Couldn't read dependencies
While trying Docker Tutorial https://prakhar.me/docker-curriculum/#dockerrun
getting error while running root@ip-172-31-22-20:~/docker-curriculum# docker build -t ashishkarpe/foodtrucks-web .
root@ip-...
0
votes
1
answer
97
views
Protect MySQL server from Linux users
I have a LAMP running on Ubuntu. I want to grant access to some colleagues and friends to use my machine to upload their websites and do whatever they want in their home directories to which I have ...
0
votes
3
answers
497
views
Speed up DNSSEC keygen
I'm rebuilding some DNS boxes and for the life of me I can't remember what I installed that drastically speeds up the dnssec-keygen process.
Would anyone know what this might have been or a way I ...
0
votes
1
answer
375
views
anacron fails, crontab succeeds with automysqlbackup
After installing and configuring ppadial/automysqlbackup the following results occur in Ubuntu 16.04:
anacron:
/etc/cron.daily/runmysqlbackup:
run-parts: failed to exec /etc/cron.daily/...
0
votes
3
answers
1k
views
How to configure icinga2 apilistener logger
icinga2 on ubuntu 16.04 logs every single api call to /var/log/syslog.
I`m attempting to run icinga2 on xenial (ubuntu 16.04.1). I get a log of api related statements in my syslog. I have some ...
0
votes
1
answer
127
views
Apache Access log recieved request time issue
Please see the strange situation with received request time in the Apache(2.4.7) access log in Ubuntu 14.04:
IP1 - - [14/Dec/2016:00:00:02 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 ...
0
votes
1
answer
2k
views
How to automatically run Node.js server on Apache with Shell Script [closed]
I usually access my application via Putty and do exactly what I show below to let my Node script running in the background:
screen
cd /var/www/node
node app.js
I'm using Ubuntu and I have already ...
0
votes
2
answers
274
views
GCE Persistent Disk block sized writes data integrity
The block size for a SSD Persistent Disk appears to be 4096 bytes.
If I write aligned blocks of 4096 bytes directly to the block device (/dev/sdb with O_DIRECT and posix_memalign), are these writes ...