vefgadgets.blogg.se

Arch add sudo user
Arch add sudo user









arch add sudo user
  1. Arch add sudo user how to#
  2. Arch add sudo user pdf#
  3. Arch add sudo user update#
  4. Arch add sudo user code#
  5. Arch add sudo user iso#

Setup the Invoice Ninja key and database: sudo -u http php artisan key:generate Also check that the value of PHANTOMJS_PDF_GENERATION is correct for your needs. env (as the http user) and change DB_DATABASE1, DB_USERNAME1 and DB_PASSWORD1 to match the values you entered when you created the database above. env file: sudo -u http printf "NINJA_ENVIRONMENT=selfhost\nAPP_NAME=\"Invoice Ninja\"\nAPP_ENV=production\nAPP_KEY=\nAPP_DEBUG=false\nAPP_URL=\nREQUIRE_HTTPS=\nDB_CONNECTION=db-ninja-01\nDB_DATABASE1=\nDB_USERNAME1=\nDB_PASSWORD1=\nPHANTOMJS_PDF_GENERATION=false\n" | sudo -u http tee. Once done, restart the php-fpm service sudo systemctl restart php-fpmĬonfigure Invoice Ninja cd /srv/http/hosts/invoiceninjaĬopy the supplied. This will list any additional extensions that must be enabled in /etc/php/php.ini. Sudo -u http /usr/bin/php /usr/bin/composer i -no-dev Setup PHP for Invoice Ninja cd /srv/http/hosts/invoiceninja Then run sudo systemctl enable -now php-fpm There are a number of things that need to be changed in the PHP configurationĮdit /etc/php/php.ini file (edit these values to suit your requirements): file_uploads = On GRANT ALL PRIVILEGES ON `db-ninja-01`.* TO PRIVILEGES

Arch add sudo user code#

Run sudo mariadb-install-db -user=mysql -basedir=/usr -datadir=/var/lib/mysqlĪnd enter the root password you entered while running mysql_secure_installation when askedĬreate the Invoice Ninja user and database - you can/should change the schema, user and password in the code below to suit your needs, particularly the password (the “identified by” bit) CREATE SCHEMA `db-ninja-01` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

Arch add sudo user how to#

I highly recommend reading Arch’s excellent wiki on how to install MariaDB, create the initial database, setup systemd so that the database server starts automatically upon reboot, start the server and secure it. Prepare Cron (cronie) sudo systemctl enable -now cronie Unzip this release into /srv/http/hosts/invoiceninjaĬhange the file and folder ownership: sudo chown -R http:http /srv/http/hosts/invoiceninja Install Invoice Ninjaĭownload the latest Invoice Ninja release from here Unfortunately the packages above will also install the latest version of PHP8 as a dependency which will have to be taken into consideration when configuring the web server (see the Prepare Web Server section below). You also need to install the web server of your choice.

arch add sudo user

Nss sudo pacman -S at-spi2-atk atk gtk3 mesa nss

Arch add sudo user pdf#

If you intend to use SnapPDF to generate PDF files for your invoices (rather than the legacy PhantomJS), these additional packages are required: Ttf-roboto sudo pacman -S mariadb mariadb-libs php php-fpm php-gd cronie composer git vi ttf-roboto The following packages need to be installed: Required PackagesĪs of Invoice Ninja v5.1.40, PHP 8 is supported.

Arch add sudo user update#

Warnings from any Perl update about “Setting locale failed” can be ignored for now as Invoice Ninja is a PHP app, but I recommend that you fix them at some point. If one of the updated packages is a new Linux kernel, reboot the VPS. Make sure that all the system packages are up to date: sudo pacman -Syu You use this guide at your own risk! First Steps Needless to say that I am not responsible if anything breaks on your system. You must change these in every command if your installation is different. the web server is configured to run as the http user in the http group.the Invoice Ninja files are installed in the /srv/http/hosts/invoiceninja folder.

Arch add sudo user iso#

The Arch Linux ISO installation automatically creates a user in /etc/passwd called “http” for web servers with a home folder of /srv/http. Also there is no guarantee that the Arch ISO you or your VPS provider is using is the same as that of OVH so you might need to adapt the section below on Required Packages to suit your needs.

arch add sudo user

This was a clean install of the VPS and Invoice Ninja was the first application to be installed so that there could be no conflicts with other packages or applications. This article is based on my experience using Arch on a VPS from OVH. HOWTO: Install Invoice Ninja v5 on Arch Linux Health Warning











Arch add sudo user