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.

learn more… | top users | synonyms (2)

0
votes
0answers
8 views

Ubuntu LAMP server disconnects after some time

I am trying to move my websites from shared hosting to the vps I rented, so I am trying to set up LAMP stack. After installing all, the server works fine at start, when I visit it's IP address on ...
4
votes
2answers
4k views

Ubuntu 15.04: Elasticsearch service doesn't start

I followed the first part from the tutorial here to install Elasticsearch. I didn't install java because I already have that installed with other java programs running. sudo service elasticsearch ...
0
votes
0answers
11 views

Boot error on cloud-init

After a reboot my instance is not connected to the network, connecting to serial port i can see the error: [ 1415.293774] cloud-init[31802]: Cloud-init v. 0.7.7 running 'init' at Tue, 28 Jun 2016 09:...
2
votes
2answers
1k views

Ubuntu server closing connection after successful login

I am unable to logon to my Ubuntu (12.04 LTS) server via WinSCP or sftp. There was previously a permission problem for ssh_host_* files in /etc/ssh. This was after I tried chmod -R from another ...
-1
votes
0answers
4 views

could not able to enable CORS in apache2

I have configured my wordpress blog site on latest version of ubuntu vps. When i tried to use CDN, browser giving error Font from origin 'http://example.cdn.com' has been blocked from loading by ...
4
votes
2answers
2k views

403 with Apache and Symfony on Ubuntu 10.04

I'm trying to run symfony on my apache installation (I'm using xampp for the whole package) and it keeps giving me a 403 error every time I try to access my website. I've got vhosts set up with the ...
1
vote
1answer
3k views

Zentyal Server : Setting up secure VPN Client

I have officially exhausted pretty much all my google-fu trying to set this up so I'm asking my question here. For the record, I am a mid level rookie who has played around with servers in his spare ...
1
vote
1answer
16 views

DH GEX group out of range

I'm having a sudden issue SSHing into my server: ssh -v --@-- OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips 1 Mar 2016 debug1: Reading configuration data /home/paul/.ssh/config debug1: Reading ...
0
votes
0answers
9 views

Difference between ldap/ldap.conf and Samba4 smb.conf [on hold]

I have been using using Samba4 as domain controller, with active directory authentication for different services for a couple of weeks. I am wonder what is the difference between the CA which I can ...
0
votes
1answer
13 views

MySQL won't allow login from normal user account

When connecting to MySQL as root from the linux user user user@computer:~/$ mysql -u root -p Enter password: ERROR 1698 (28000): Access denied for user 'root'@'localhost' When doing the same exact ...
0
votes
1answer
13 views

Failed to install the ansible with pip

I tried to install ansible with the following commands: docker run -ti --rm ubuntu:14.04 bash echo "===> Updating cache..." && \ apt-get update && \ \ \ echo "==...
0
votes
1answer
14 views

EC2 custom AMI in autoscaling group not running user data script

Similar to this question, My user data is: #!/bin/bash echo 'test' > /home/ubuntu/user-script.txt Using a standard Ubuntu AMI, this works fine. I have a custom AMI that I have created by ...
0
votes
1answer
16 views

sudo-like privilege management for docker containers

I want to allow a Docker container to invoke some actions on another container without granting it full privileges. An example would be a Docker container which does log rotation and reloads the ...
1
vote
2answers
3k views

passwd: Authentication token manipulation error

I am running a Ubuntu 12 machine, and have recently been working to secure it. I made all the changes from this guide. I am not running a Linode, but I used these as a starting point for setting up ...
1
vote
3answers
2k views

How to reduce AWS EBS root volume size?

Enlarging an EC2 instance is easy like a breath (for instance, create an AMI, launch an instance from it and then change the storage size). But reducing it becomes more difficult. I’d like to reduce ...
0
votes
1answer
254 views

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo ...
0
votes
1answer
55 views

Apache mod_ssl to use OpenSSL ENGINE on Ubuntu 14.04

I have installed OpenSSL 1.0.1f and created an Engine for RSA acceleration using GPU. The Engine is dynamic so it is known globally. Then I have installed Apache $ sudo apt-get install apache2, ...
-1
votes
1answer
13 views

How to forward specific packets from a machine to another machine? [on hold]

I have a network with 3 linux hosts, A, B, and C. I want to send 1,000 packets from A to B, and B should automatically forward it to C. How should I do it? B has one adapter with IP 192.168.1.100/24 ...
0
votes
0answers
19 views

Smtpd_sender_login_maps isn't working for Postfix

So I'm trying to set my postfix up so that only certain users can relay their own emails. Instead of allowing them access to all the emails on the server. At the moment with the setup below any ...
-1
votes
0answers
14 views

How to run a function for every specific received packet? [on hold]

I am doing an experiment for my master thesis. I want to run a function (e.g. multiply two numbers) when a specific packet is received (e.g. a packet with destination TCP port 6666). For example, I ...
0
votes
0answers
6 views

Force nproc ulimit on non interactive user

I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch. ...
1
vote
1answer
1k views

Move files from ftp server to s3

I would like to set up an ftp server, where users will upload files, and for each file, put it on s3 storage, and delete it from the ftp server. (the server runs on ec2 ubuntu) Here are the stuff I ...
0
votes
0answers
10 views

Installing cmu-sphinxbase on AWS EC2 ubuntu instance

I've setup an app on EC2 using Elastic Beanstalk. It's a Ubuntu instance and I'm running a Rails app on it which depends on sphinxbase and pocketsphinx. I've ssh'd into the EC2 instance to install ...
2
votes
1answer
1k views

Mounting a network file system inside LXC on Ubuntu 12.10

On an Ubuntu 12.10 server, I created an Ubuntu cloud lxc container. In the /var/lib/lxc/MY_CONTAINER/config file, I uncommented the line: lxc.aa_profile = unconfined and started the container. ...
0
votes
1answer
19 views

Samba is ignoring file and directory create permissions

I am trying to create a SAMBA share but as usual I get a bunch of permissions problems. Here is my setup: [global] workgroup = WORKGROUP security = user map to guest = bad ...
0
votes
1answer
23 views

Can only ping one direction across an Openvpn tunnel

Setup: Main office - Ubuntu openvpn server behind a sonicwall Remote Office - ASUS router connected to the openvpn via it's builtin VPN client. Main Office 10.0.5.0/24, Openvpn 10.8.0.1 Remote ...
0
votes
1answer
1k views

Compiling an individual kernel module (Debian/Ubuntu)

I need to modify the ELF loader's kernel implementation of an Ubuntu 14.04 distribution. Having downloaded the sources using: sudo apt-get source linux-image-$(uname -r) I ran the configuration ...
1
vote
1answer
32 views

Getting my server maintenance script right

I have two routine postgresql maintenance tasks that require deletion of aged rows from certain tables of my web application. Both take ~1 hr to complete, respectively. Currently, each of these ...
4
votes
2answers
393 views

Is it possible to install MySQL extensions on Amazon RDS?

We are about to migrate our existing system from local MySQL instances on the same EC2 to a proper remote Amazon-RDS. Unfortunately there is a functionality called Median that MySQL is missing. Our ...
0
votes
1answer
30 views

How to authenticate clients trying to access my website via my external IP address?

I have made a ruby on rails app which is running on 0.0.0.0:3000 I have also forwarded the port 3000 on my router so that it is accessible remotely via the internet. So, I can view the webapp by the ...
-1
votes
1answer
9 views

Cannot chroot mounted volume to reset root password ( hangs )

I am trying to reset the root password on my instance. I boot it in rescue mode and mount the primary disk. fdisk -l sudo mount /dev/sdb1 /mnt sudo chroot /mnt The prompt just hangs here and it ...
-1
votes
1answer
32 views

What permissions should I give to CA Bundle file? [duplicate]

Hi I setup an ssl certificate using godaddy and read the following article: Best location for SSL certificate and private keys on Ubuntu. I am trying to protect an aws ubuntu gitlab instance that uses ...
1
vote
0answers
26 views

old tape backup using xfsrestore

I have some old tapes that were backups to servers from an old irix machine. I need to get the data off of them and I know they were written to the tapes via 'xfsdump'. I'm running ubuntu 14.04 server....
2
votes
3answers
7k views

How to debug Nagios “NRPE: Unable to read output” when checking NFS?

I have a working Nagios setup where I e.g. monitor disk usage through the NRPE daemon without parsing arguments through NRPE for security reasons. So I know that NRPE works. Now I would like to check ...
4
votes
2answers
4k views

UFW Firewall Rules ordering?

I have the following rules on our server within UFW: To Action From -- ------ ---- 22 ALLOW 217.22.12.111 22 ...
55
votes
3answers
20k views

What are the functional differences between .profile .bash_profile and .bashrc

What are the functional differences between the .profile, .bash_profile and .bashrc files?
1
vote
1answer
1k views

Node.js websocket error “Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL”

Application work fine on localhost .but when its connect to server it getting error. I connect server through port 22 But my app connecting server port 80. This is the error Error: listen ...
0
votes
0answers
8 views

Upgrade to Windows 10 fails on Windows 7 / Ubuntu dual boot machine [migrated]

My attempts to upgrade my Windows 7 install to Windows 10 consistently fails with Error 800703ED. I strongly suspect that this is caused by by dual boot setup. I have inserted info re my disk/grub ...
0
votes
1answer
32 views

IPTABLES nat to LXD Containers

I created the following temporary rule that I enable occasionally but I would like to remove it without the need of restarting the machine. Can someone provide me the command? sudo iptables -t nat -...
1
vote
2answers
58 views

Installing LetsEncrypt on Ubuntu 14.04

I'm trying to install LetsEncrypt for my domains on my Ubuntu server, I've done these before.. Now I'm on another server, and when I try to run ./letsencrypt-auto --apache -d example.com -d www....
0
votes
1answer
35 views

How to diagnose process at 100% CPU without being able to shell in?

Given an Ubuntu 14.04 server setup on a popular VPS provider hosting a single website with Nginx, Apache and WordPress / PHP, after starting the server it works fine for a while. Days later the VPS ...
0
votes
0answers
15 views

How can I write a new HTML file based on changes to a cloud db? [closed]

Trying to mend the gaping absence of content in my client-heavy web app when it's initially served. I'll use Firebase as an example cloud db. Instead of depending on client to populate DOM initially ...
0
votes
0answers
8 views

Recommended Hardware for a school lab LTSP [duplicate]

currently I'm working on a project for a elementary school's computer room/lab. They have a lot of old computers (AMD Athlon CPU f.e.) with WinXP. The teachers are afraid of using that insecure ...
1
vote
2answers
29 views

Create daemon on ubuntu 16.04

I developed a crawler in PHP that parse an URL with specific headers and put all URLs of content in the queue. It works fine. I developed this code in a ubuntu 14.04 and I put a .conf file in /etc/...
0
votes
0answers
6 views

OpenCart SEO isn't functioning even with SEO Button Enabled and htaccess configured

I have opencart installed with ubuntu 14.04, my apache config file is: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName example.com ServerAlias www.example....
1
vote
1answer
85 views

What configuration issue is preventing Samba Network Shares from being visible over VPN?

I set up a VPN using L2TP and IPSEC (with LibreSwan) using this script: https://github.com/hwdsl2/setup-ipsec-vpn The only change I had to make was to change the instances of 'eth0' to the new format ...
0
votes
1answer
23 views

How to stop Ubuntu keeping writing degraded RAID

I have a hardware RAID (Adaptec 5805, RAID 6 of eight 6TB drives) that recently constantly fails when I have lots of disk writes. I installed Ubuntu on a separate disk and the Ubuntu seems not able to ...
1
vote
2answers
1k views

Ubuntu Server 14.04LTS Swappiness for server with 16GB memory [on hold]

(don't worry I'm not asking what my setting should be, asking for the theory behind some conflicting advice I've read) My application is one that is lightweight and not under much load, but needs to ...
6
votes
3answers
7k views

Invalid system activity (sysstat) file on Ubuntu server

I'm periodically getting this message from the daily cron on my server. (I don't get this message every day.) /etc/cron.daily/sysstat: Invalid system activity file: /var/log/sysstat//sa28 Here's ...