Installing a fresh copy of Ubuntu Server 14.04.3 LTS and then:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install lamp-server^
Is this configuration production-ready in terms of security and stability?
No. Almost no system will be "production-ready" without configuring it properly according to your needs. Neither in terms of security nor stability/performance.
Related
I want to create my own Xubuntu customize distribution with packages required by my application.
First I install Ubuntu 22.04 Server with Minimized type.
Second I run:
sudo apt -y update && sudo apt -y install xubuntu-core ubiquity ubiquity-casper ubiquity-frontend-gtk ubiquity-slideshow-ubuntu ubiquity-ubuntu-artwork
Then restart the system and run the Install but nothing happened.
Do I miss something?
Can someone explain me how I can upgrade a running gitlab CE on Ubuntu 16.04 to Ubuntu 18.04?
I could not find any relevant documentation for this upgrade path
It is clear to upgrade ubuntu with
sudo apt update
sudo apt upgrade
sudo do-release-upgrade
But what is needed to tell rerun the setup/upgrade on gitlab?
If you upgrade your Ubuntu Version from 16.04 to 18.04, you also need to alter the repository path for debian packages provided by GitLab Inc.
If you inspect the installation/configuration script available on GitLab.com, you will see that there should be a file in /etc/apt/sources.list.d/ which contains gitlab in its filename.
Simply replace its content with the following lines:
deb https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
deb-src https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
You are now able to upgrade GitLab using the new package repository for your upgraded Ubuntu System:
sudo apt update
sudo apt upgrade
If you mean update Ubuntu from 16.04 to 18.04 then here's the steps:
I did that a couple of days ago.
lsb_release -a # This is just to check the. Ubuntu version
sudo apt update
sudo apt upgrade
This will make sure that you have all the packages updated. The upgrade will not start if you don't have them upgraded.
Then for the actual upgrade
sudo do-release-upgrade
NOTE
1 - The above command might fail because "you have to upgrade all the packages before" please inspect the output of sudo apt upgrade maybe you have a dependency issue & not all the packages are upgraded
2- Please make sure you have all your data backed up before doing the upgrade. I'm assuming that you doing the upgrade via SSH which may be troublesome.
For me, the upgrade got stuck while trying to update the openSSH config files. What I did is that I closed the current SSH session ( tmux ) opened a new session & rebooted the server.
After the server is rebooted
lsb_release -a
Should show
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well.
How do I go about installing it on Ubuntu/Kubuntu 16.04.2 LTS?
java-package is available in the official ubuntu repositories. All you need to do is update the repository with the latest version then install it as shown below:
sudo apt-get update
sudo apt-get install java-package
I trying to install VirtualBox on Ubuntu 14.04. I've installed VirtualBox from Ubuntu repository:
sudo apt-get install virtualbox
Then I added my user to vboxusers:
sudo usermod -G vboxusers -a user
I also installed an extrapack for my vb vsion:
wget http://download.virtualbox.org/virtualbox/5.0.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack
sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack
But when I trying to start vm, I get an error:
RTR3InitEx failed with rc=-1912 (rc=-1912)The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing '/etc/init.d/vboxdrv setup'may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime
what: 4
VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
And I have no /etc/init.d/vboxdrv file.
How can I fix this problem?
I've removed all the virualbox packages:
sudo apt-get purge 'virtualbox*'
Then I've installed virtualbox v.5
sudo apt-get install virtualbox-5.0
After that I've enabled virtualization in BIOS.
Now it works.
Check what version of virtualbox you installed
dpkg --list 'virtualbox*'
may be it's not aligned with the Extension pack.
Remove your installation
sudo apt-get autoremove 'virtualbox*'
Don't install fron Ubuntu repositories but run a fresh installation following the instuctions from official Oracle Virtualbox Download page about Debian-based Linux distributions.
Check that Virtualbox is running before installing the Extension pack.
I had the same error starting a vm client in ubuntu 16.4 .
Coincidentally I noticed in the file /var/crash/_usr_lib_virtualbox_VirtualBox.0.crash the following message:
Title: VirtualBox crashed with SIGABRT in QMessageLogger::fatal()
UnreportableReason: Sie haben einige veraltete Paketversionen
installiert. Bitte aktualisieren Sie die folgenen Pakete und prüfen
Sie, ob das Problem danach noch auftritt:
virtualbox-dkms
Translated: You have some outdated package versions installed. Please update the following packages and check, if the problem still occurs after that:
After the command:
sudo apt-get install --only-upgrade virtualbox-dkms
all was OK :)
I was just adding tmux plugins to my .tmux.conf file to find out that one of the plugins (tmux-copycat I think) requires tmux 1.9. When I start tmux I get the message `Error: Tmux version unsupported. Please install tmux version 1.9 or greater!".
So, what is the best way to upgrade tmux 1.8 to 1.9 on Ubuntu 14.04?
Update: due to new tmux version and changes in package repository, this answer is updated to show how to install tmux 2.0 (which is better, no reason to use 1.9 anymore).
Here are the steps to update "blank" ubuntu - version 14.04 only (see below for other ubuntu versions):
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=2.0-1~ppa1~t
now if you do tmux -V it should show tmux 2.0 which is a good version for tmux plugins
I verified the above steps on a new digitalocean droplet.
Basically, it's adding the pi-rho/dev repository, updating and then installing tmux from there.
If you have another ubuntu version you might want to install a different tmux version from the same repo. So:
ubuntu 12.04 (Precise Pangolin) step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~p (installs tmux 1.9, no package for tmux 2.0 yet)
ubuntu 13.10 (Saucy Salamander) step 5: sudo apt-get install -y tmux=1.9a-1~ppa1~s (installs tmux 1.9, no package for tmux 2.0 yet)
ubuntu 14.10 (Utopic Unicorn) step 5: sudo apt-get install -y tmux=2.0-1~ppa1~u
ubuntu 15.04 (Vivid Vervet) step 5: sudo apt-get install -y tmux=2.0-1~ppa1~v
If you don't want to add a PPA, you can just build it from source. It's explained in the README on tmux's GitHub page:
To build tmux from a release tarball, do:
$ ./configure && make
$ sudo make install
You might need to install some extra packages to build it. On Ubuntu I needed to install these packages before it would successfully build:
exuberant-ctags
cmake
libevent-dev
libncurses5-dev
Another way to do #3 above (especially if you are using a corporate proxy that might break ppa).
sudo add-apt-repository -y http://ppa.launchpad.net/pi-rho/dev/ubuntu
If using a tool like Artifactory to act as a caching package proxy
sudo add-apt-repository -y http://my.artifactory.site/ppa.launchpad.net/pi-rho/dev/ubuntu
or
sudo add-apt-repository -y http://my.domain/artifactory/ppa.launchpad.net/pi-rho/dev/ubuntu