When I install GitLab Omnibus on Ubuntu-18.04 I am hitting a LetsEncrypt problem. The certs won't be issued.
This results in GitLab using a self-singed cert. I want to install my own certs so don't need Let's Encrypt at all.
I can disable it once GitLab is installed by adding this to /etc/gitlab/gitlab.rb
letsencrypt['enable'] = false
and then adding my certs in the correct place and then reconfigure.
Is it possible to pass a gitlab.rb file into the initial installation process with the above line so it doesn't even bother with LetsEncrypt on installation?
I am installing by:
sudo EXTERNAL_URL=<my url> apt-get install gitlab-ee
so I am looking for something like:
sudo EXTERNAL_URL=<my url> CONFIG=<path to local gitlab.rb> apt-get install gitlab-ee
EDIT: I believe the initial Lets Encrypt error issue is this one:
https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4900
I took a cue from the docker installation instructions and passed the GITLAB_OMNIBUS_CONFIG variable like this:
sudo GITLAB_OMNIBUS_CONFIG="letsencrypt['enable'] = false" apt-get install gitlab-ce
Hope it helps.
Using the GITLAB_OMNIBUS_CONFIG did not work for me, at least not with yum on rhel 7. For a workaround, I specified an http instead of https url:
sudo EXTERNAL_URL=http://<my-url> yum install -y gitlab-ee #or apt-get
Then change to https, disable letsencrypt, and add the certs in the configuration after the installation and reconfigure.
Related
I am trying to download/install php7.2 on Debian which is installed on my WSL (Windows Subsystem for Linux), through my company's proxy.
I have been able to download apt packages by using this solution : https://askubuntu.com/questions/89437/how-to-install-packages-with-apt-get-on-a-system-connected-via-proxy
The problem now is that I need ppa from sudo add-apt-repository ppa:ondrej/php cause php > 7.0 is not available anymore with sudo apt-get install and I tried many solutions but no one worked for me. Every solution tested by the asker of https://unix.stackexchange.com/questions/361213/unable-to-add-gpg-key-with-apt-key-behind-a-proxy were tried and the answers too.
So, there is my last obstacle :
$ sudo -E add-apt-repository ppa:ondrej/php
Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only
Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases
(https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu
release, they won't be provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
or ppa:ondrej/nginx
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating
regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmpw9sj_dvp/pubring.gpg' created
gpg: keyserver receive failed: No name
Please help,
I have CentOS7 on my server as well as Laravel Project with php 7.3.
On CentOS I have httpd and mariadb installed.
When uploading the avatar, I receive the following error:
Intervention \ Image \ Exception \ NotSupportedException
GD Library extension not available with this PHP installation.
First check which is the provider for php
# rpm -qf /usr/bin/php
php-cli-7.3.3-1.el7.remi
So you need to install the extension, from the same provider, from the same repository, in the same rpm namespace
# yum-config-manager --enable remi-php73
# yum install php-gd
Reading your answer, it seems you are confused by php73-* packages, read Difference between php-* and php##-php-* packages ? in the FAQ
I also recommend you carefully read the Wizard instructions.
You never have to edit ini file to enable an extension, each RPM package provides its own configuration file (e.g. /etc/php.d/20-gd.ini).
I was getting this issue too.
Ubuntu; apt-get install libpng-dev
Centos; yum install libpng-devel
This has been resolved with downloads.
i found a solution.
First of all
yum --enablerepo=remi install php73-php-gd
Then after
systemctl restart httpd
i went to my php.ini file and added extention path to
extension=/opt/remi/php73/root/usr/lib64/php/modules/gd.so
and after did
systemctl restart httpd
Now everything works fine.
I am installing Janus WebRTC Gateway in a Ubuntu Machine (14.04 64 bit). I followed the instructions as in the following link:
However, I get the following error when trying to execute janus:
https://github.com/meetecho/janus-gateway (readme.md file)
[FATAL] [janus.c:main:3670] No Janus API transport is available...
enable at least one and restart Janus
Anyone has any idea what the issue might be? I will only use the REST API without WebStockets or RabbitMQ.
I successfully installed Janus on Ubuntu 14 according to the following steps:
sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev libwebsockets-dev pkg-config gengetopt automake libtool doxygen graphviz git cmake
sudo apt-get install libavformat-dev
mkdir -p ~/build
cd ~/build
git clone git://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --disable-data-channels --disable-websockets --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
make && sudo make install
sudo make configs
Running it by:
cd /opt/janus/bin/
./janus -F /opt/janus/etc/janus/
I had this issue before, I had write a script to install everything just run this
wget https://gist.githubusercontent.com/johnmelodyme/966f474a99b6dd0cf4e7ac19ba4258da/raw/0f1779499c62eeee3e2a577ef641e94e57b71154/janus.sh && sh janus.sh
Hope This Help Much, I believe there are certain dependencies needs to be installation but you missed it. In https://github.com/meetecho/janus-gateway it stated the Dependencies needed, have to be installed without error.
It is because libmicrohttpd version is lower than requirement, Download and install libmicrohttpd manually (dont use yum or apt-get).
After setting up a fresh ec2 instance, I tried to install vim using yum... I got this error:
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
In the folder /usr/share/rhn/ the cert file is named wrong...
you can simply make a copy of the cert with the correct name
(as root)
cd /usr/share/rhn/
cp RHNS-CA-CERT RHN-ORG-TRUSTED-SSL-CERT
This answer worked for me.
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
A solution that worked for me was to copy the cert from another server
I am using an Ubuntu 12.04. I have downloaded the EC2 CLI tools from the Amazon website. The following are the steps that I have done..
Unzipped the file and put it in a directory.
Set the Java class path properly (My Tomcat is working).
Set the EC2 home path, after that set the EC2 Home and bin path in bashrc
Set the access and secret key in bashrc.
When I am trying to trying to start an instance or do anything for that matter from the terminal, I am getting the error
Required option '-K, --private-key KEY' missing (-h for usage)
Could someone please help me with this?
Posting this so it might be helpful for others. The problem was happening because when I installed Ubuntu I had installed the ec2-tools using the apt-get from terminal.
This version of ec2 which Ubuntu has is an outdated version (it was last updated in 2011).
When I found this out, I removed it. And reconfigured the path to the current version of ec2 cli tools I had downloaded and it worked!!! :)
The way to install newer versions of the ec2-api-tools, as suggested by https://help.ubuntu.com/community/EC2StartersGuide, is to simply add the aws-tools PPA:
sudo apt-add-repository ppa:awstools-dev/awstools
sudo apt-get upgrade
and then a simple apt-get install ec2-api-tools will install the correct version. :)