Tag Info

New answers tagged

1

Just a few pointers here to get you started: if you don't need or want the second computer to use a monitor after the first installation steps, install Ubuntu Server and login from another computer using SSH (on Windows, use the PuTTY client). Otherwise, install Ubuntu Desktop. Version 14.04 LTS is the recommended "stable" version in both cases. Hook up a ...


1

Best practices: Understand what the production servers do (deep internals), and consider whether or not your "hardening" will interfere with what they do. "Harden" your test servers first. A tool that I like is lynis from cisofy.com. It is free, and makes no changes, just points to vulnerabilities


0

i know this already has correct answer but would like to point out how to solve this bug. Just edit pptpd(/etc/init.d/pptpd) file and add simple "-p" after status_of_proc it should look like this. status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?


2

I found out there is an easy way of doing that. You can follow this blog post which is providing a step by step guide to do it : Install Apache Tomcat on Ubuntu


0

LVM offers features very similar to RAID 0, and is more flexible -- it's easier to combine two disks of different sizes with LVM than with RAID 0, for instance. I also happen to be more familiar with Linux's LVM than with Linux's software RAID, so that's what I'd use in your case. Somebody who's more familiar with RAID might make the other choice, and that's ...


0

I faced this exact same problem through the day and am glad I solved it in the below manner. Although, the above reply is marked as an answer, it is clear from the comments to that answer that it doesn't completely answer the question. The correct file to enable is in /etc/php5/cli/conf.d Then enter the following in there zend_extension=opcache.so ...


0

For me this was happening because of incorrect MTU settings while using a PPTP vpn. This fixed the issue for me: sudo ip link set ppp0 mtu 1400


0

ProFTPD has nice features and actually is a great choice. It has native FTP over SSH support which is fantastic if you want encryption. All the documents can be found here It also has nice features to analyse logs and messages via The Webalizer and ftpweblog scripts


3

I'm using vsftpd on an internal server, so I can only answer for that one… vsftpd has basically two parameters to control the directory listing in its /etc/vsftpd.conf dirlist_enable If set to NO, all directory list commands will give permission denied. Default: YES dirmessage_enable If enabled, users of the FTP server can be shown messages ...


1

reset mysql's root password Stop MySQL The first thing to do is stop MySQL. If you are using Ubuntu or Debian the command is as follows: sudo /etc/init.d/mysql stop For CentOS, Fedora, and RHEL the command is: sudo /etc/init.d/mysqld stop Safe mode Next we need to start MySQL in safe mode - that is to say, we will start MySQL but skip the user ...


0

it seems like your problem like this post you have BIOS related issue where by default HP system show only HP Smart Array Controller and will not show HDD . so , you have to set SATA settings in BIOS . for more info you can use given link .


1

Even when @FreeSoftwareServers is true, there's a way to install a GUI, download a desktop version of ubuntu, i think xubuntu (xfce) is more suitable since it's an old computer (limited resources). Burn the cd and put it on the machine. Then you have to create a dir to mount the cd sudo mkdir -p /mnt/cdrom Mount the cd on that dir, and check it ( ...


2

Ubuntu Server does not come with a GUI. Its Headless, IE: Command Line Only. You would need to run an APT-GET command which requires internet. If you get network capabilities check out.. Install GUI on Ubuntu Server


0

Swap the order of those Alias directives so the most specific one comes first: Alias /blog/wp-content /var/lib/wordpress/wp-content Alias /blog /usr/share/wordpress From the docs: [...] the Aliases and Redirects are processed in the order they appear in the configuration files, with the first match taking precedence. For this reason, when two ...


0

By default ifup/ifdown configures network interfaces based on interface definitions from /etc/network/interface file. network-manager can read and configure interfaces reading this file, using a plugin named ifupdown. You might see a line like in /etc/NetworkManager/NetworkManager.conf file's main configuration snippet : plugins=ifupdown,keyfile,ofono ...


0

If you definitely want changes to be effective for all applications you're running now and and at all times you can imagine, edit the existing files in /etc/apache2/mods-available/, otherwise modularize as early as possible by separating into different files. The latter case should almost always be the way to go as you'll figure out much later that you can ...


0

I didn't try it, but I think a redirection should work. Try adding this after the server block where you configure the SSL connection on the IP : server { listen 443; server_name *; return 301 http://$http_host$request_uri; }


0

The reason why it wasn't working turned out to be the kernel which was supplied with the Ubuntu build installed by the hosting provider (SoYouStart/OVH). This kernel has less features enabled, including the ones required by LXC. I had installed a Generic Linux kernel, but not correctly updated grub and enabled it. After following the steps for selecting the ...


1

i found the answer sudo htpasswd -c /etc/nagios3/htpasswd.users nagiosadmin Enter a strong password when prompted.


1

The dnsmasq executable binary is included in the dnsmasq-base package. When dns=dnsmasq appears uncommented in NetworkManager.conf, NetworkManager runs a dnsmasq instance to serve as a local forwarding nameserver. The dnsmasq package includes configuration files which support running a dnsmasq instance independently of NetworkManager. The latter dnsmasq ...


0

I suggest you import an ssh key to your MAAS user and simply try to "deploy" a node. See if it comes up, transitions to "deployed" and if you can ssh into it with that key as the ubuntu user.


1

Reboot and shutdown activities are delayed by 5 minutes on the client side on purpose. If there is someone logged in at the console, he/she will have 5min to save his/her work, or cancel the reboot/shutdown. About package updates taking 30min, that could depend on a lot of factors: your bandwidth from the client to the ubuntu archive if this happened ...


0

Maybe is best solution Owncloud. You can upload, download files from any location using web browser. Also you can create users ... Manual for instalation is here Owncloud is well documented and if you wish you can use owncloud cilent ... Admini guide is here


0

Fuck if I know. There are lots. man ssh lists some (~/.ssh/config comes to mind). Others can be discovered using e.g. dpkg -L network-manager-vpnc, which lists all the files installed by that package. You'll have to figure out which ones are config files. Try https://dnsleaktest.com/. I think it's mainly aimed at people trying to steal movies safely, but I ...


2

in some case after change, PermitRootLogin yes must check this config : DenyUsers root AllowUsers saeid and to enable login must change to : #DenyUsers root AllowUsers root OtherUser


0

Found the answer online here Open the terminal. Type ifconfig wlan0 and press [Enter]. You will not see any output in the terminal, as this command just turns your wireless card on. Most wireless cards are designated wlan0. If yours has a different designation, use that instead. Type iwconfig wlan0 essid name key password and press [Enter]. Replace name ...


0

To change the data directory in docker it needs to be run with the option -g /my/data. In my /etc/default/docker I set: DOCKER_OPTS="-g /srv/docker" See also my notes here. To change the data directory in lxc I put in /etc/lxc/lxc.conf: lxc.lxcpath = /srv/lxc


2

I have figured it out!!! Turns out I have set up ufw firewall to block any incoming traffic (in this case Samba) which is not listed in the before.rules in ufw config. I was following the OpenVPN guide and it asked me to set it up. A single command fixed my problem: sudo ufw allow Samba Anyway, thanks everyone for helping me along! I appreciated it!! ...


0

What I did is to use Upstart files. You can find some examples and other solutions in the Docker website. Create a file such like that in /etc/init : Description "My container" start on filesystem and started docker stop on runlevel [!2345] respawn script /usr/bin/docker start -a mycontainer end script pre-stop script /usr/bin/docker stop mycontainer ...


0

In my opinion, for your usage, you shouldn't have to dig in the madness of docker networking. I would advice you to use port mapping when you run your container. For example, say you have created an apache image in docker through your Dockerfile. When you want to run this container, use the -p option to map ports : sudo docker run -d -p=80:80 -p=443:443 ...


1

It seems you nginx server is handle by an upstart process. Look in the /etc/init folder, and check if there is not a file which handles nginx. grep -r nginx /etc/init Then edit this file, and remove the respawn option in the config file.


-1

It seems you're using dnsmasq which is a caching DNS server. If you want to add a DNS server, you can exec this command : echo nameserver X.X.X.X | sudo resolvconf -a IFACE.PROGNAME sudo service dnsmasq restart where IFACE.PROGNAME is the name of the network you use (eth0, eth1, wlan0...) For a permanent change, you can create a ...


1

In order to change where zsh looks for its user configuratation files (.zshenv, .zprofile, .zshrc, .zlogin), you have to set the ZDOTDIR environment variable to the path where they reside. ZDOTDIR may contain an absolute or relative path, where relative paths are relative to the current working directory when starting zsh. If ZDOTDIR is not set, zsh looks in ...


0

You need three redirects to do what you want: http://example.com to https://www.example.com http://www.example.com to https://www.example.com https://example.com to https://www.example.com The first two are from port 80 plain HTTP so you have a VirtualHost for them. You can make a VirtualHost section apply to more than one hostname (www.example.com and ...


0

Before we start, find your Ubuntu Server's internal MAC Address (All servers have them) and write it down 1- Open a web browser 2- Go to your router using your IP Address 3- Login to your router WARNING: SETTINGS MIGHT BE SLIGHTLY DIFFERENT, JUST USE YOUR INNER CHRIS COLUMBUS AND FIND THE SETTING PAGE 4- IP And MAC Binding 5- Add a new one 6- For MAC ...


0

IT WAS HARD! YAY. OK, to fix, I just issued: sudo mount -o remount,soft 10.43.1.134:/c/Servers /mnt/backups All fixed. Everything umounted, all the errant processes received the notification that they were unwanted, load average immediately dropped back to sane levels.. I'm only ever using "soft" in future again!.. I actually thought you needed that to ...


0

This worked for me, you can test it on my domain if you like. <VirtualHost *:80> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com Redirect / https://www.freesoftwareservers.com/ </VirtualHost> <VirtualHost *:443> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com ...


0

Mr. Evans, start here: https://help.ubuntu.com/lts/serverguide/samba-ldap.html Both Samba and LDAP require solid beginnings. You really need to know what you want to achieve before going forward. They can be confusing topics.


1

Without having more detail about the server my guess is that the server uses weak Diffie-Hellmann keys and that the SSL handshake will fail because OpenSSL was fixed to enforce stronger DH keys. The reason for this fix are the recent publication of the Logjam attack. From the Changelog SECURITY IMPROVEMENT: reject dh keys smaller than 768 bits ... ...


0

First of all install MAAS and configure juju on it correctly. If you are testing the installation, I would recommend you to use Ubuntu Server 14.04 LTS installation with MAAS and install juju afterwards. Use a Virtual Machine Manager such as Oracle VirtualBox and register the nodes in the MaaS cluster. Then you can use juju in it. Then install openstack. ...


0

Please try your interfaces file like this: auto eth0 iface eth0 inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 192.168.1.1 8.8.8.8 Restart the interface: sudo ifdown eth0 && sudo ifup eth0 And check: hostname -I Since the definition of -I in man hostname says: Display all network ...


1

If you want to customize the message but not per-user you can use nologin, meaning re-enabling users account but assigning them /usr/bin/nologin as their login shell. They will not be able to connect and receive a default message saying the account is disabled or the message written in /etc/nologin.txt. If you want a per-user message you can replace nologin ...


0

Your .ssh session has 3 environment variables defined: SSH_CLIENT=127.0.0.1 42421 22 SSH_CONNECTION=127.0.0.1 42421 127.0.0.1 22 SSH_TTY=/dev/pts/3 Your values after the "=" may differ. You could have your .zshrc file check for them, and do somerthing different.


0

It seems that the permissions of your Wordpress installation are not properly set up. Try running the following commands in the root directory: sudo find . -type f -exec chmod 664 {} + sudo find . -type d -exec chmod 775 {} + sudo chmod 660 wp-config.php This is an example permission setup of course. By using it, you grant users of the Wordpress site the ...


0

Changing my Apache config file to the below resolved the issue. <VirtualHost *:80> ServerName somehost DocumentRoot /var/www/html/public CustomLog /var/www/html/access.log common ErrorLog /var/www/html/error.log <Directory /var/www/html/public> <IfModule mod_rewrite.c> Options ...


0

To solve your problem, don't use deb files, if the packages can be installed via package manager and don't use debian repositories for no reason. I assume, you have downloaded the deb from here or a similar side or you have added the line deb http://ftp.debian.org/debian/ wheezy-proposed-updates main to your sources.list. Remove this repository and start ...


0

It was Docker after all. Turns out that Docker makes changes directly on your iptables, which are not shown on ufw status. The solution is to use the --iptables=false flag on container creation, or edit the /etc/default/docker file. See here for details: The dangers of UFW + Docker


0

You might also want to look at setting up a VirtualBox environment for PHP development. This way you keep your host OS free from server packages but you can still do all development on your own PC with the shared folder functionality. :)


0

Ubuntu (the Linux kernel) can handle both RAID-1 or RAID-5. Either of them can tolerate the failure of one disk. It will also tell you which drive is no longer in function. Yes the recovery process is automatic: all you have to do is to add a new disk to your degraded (i.e., faulty) RAID array. You can even grow your RAID-5 array that is add new disks to ...


1

1. Installing and setting up the LAMP stack Open Terminal by hitting Ctrl+Alt+T Update the apt cache and install lamp-server^ by running sudo apt-get update && sudo apt-get install lamp-server^ (you should be able to go through the on-screen setup; it's just a matter of setting up the mysql root password) 2. Installing and setting up PHPMyAdmin ...



Top 50 recent answers are included