HowTo: Setup minimal ArchLinux on VirtualBox including Openssh + Postgresql + Emberjs + Sailsjs6/12/2015 Step 1. Installing bare bone ArchLinux i. In-order to install minimal ArchLinux, follow the below step-by-step guide by goguda55 (Tech Tutorials) on YouTube called How to Install Arch Linux ii. Here's, how to persist keyboard layout settings. Note! In my case its 'Finnish' language keyboard layout (i.e. fi): $ sudo setxkbmap -layout fi INFO: Alternative approach to the above step: Installing minimal ArchLinux installation with MATE as the Window Manager, follow the below step-by-step guide by 'Giuseppe Carelli' (Tech Tutorials): - Arch VBox Beginners guide (Note! Three part YouTube videos, however here's the written instructions Arch-Linux VBox Guide) Step 2. Installing useful utilities INFO: To list all ports that ArchLinux is listening, run the below command (Reference site: Get a list of Open Ports in Linux): $ netstat -lntu i. Install net-tools $ sudo pacman -S net-tools ii. Install ssh $ sudo pacman -S openssh $ sudo systemctl enable sshd.service $ sudo systemctl start sshd.service iii. Install uzip $ sudo pacman -S unzip iv. Install nano editor's syntax highlighting - Install & configure Nano Syntax Highlighting Files v. Install GIT version control $ sudo pacman -Sy git Step 3. Setting-up networking Setup-up static IP address: $ sudo cp /etc/netctl/examples/ethernet-static /etc/netctl/staticip $ sudo nano /etc/netctl/staticip $ sudo netctl enable staticip $ sudo netctl start staticip Step 4. Install Postgresql database i. Install Postgressql package: $ sudo pacman -S postgresql ii . How to set & generate locale on Linux (required by Postgresql db) INFO: Reference site: Setting up a locale in PostgreSQL on Linux a. Edit the following file with the below command: $ sudo nano /etc/locale.gen b. Now, uncomment the following lines: en_US.UTF-8 UTF-8 en_US ISO-8859-1 c. In-order to generate the locales, run the below command: $ sudo locale-gen iii . Postgresql configuration guide INFO: Reference site: Configure PostgreSQL to be accessible from remote hosts a. Switch to 'postgres' user, with the below command: $ sudo -i -u postgres b. Initialized the database cluster: [postgres]$ initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data' Note! Don't forget to exit the 'postgres user' session. c. Start & Enable Postgresql service $ sudo systemctl start postgresql.service $ sudo systemctl enable postgresql.service d. Configure the Postgresql db to be accessible from remote hosts, by editing the following file: $ sudo nano /var/lib/postgres/data/postgresql.conf Now, add the following line under the section 'CONNECTIONS AND AUTHENTICATION': listen_addresses = '*' $ sudo nano /var/lib/postgres/data/pg_hba.conf Now, Add the following line under the section 'IPv4 local connections': host all all 192.168.1.33/32 trust e. Now, restart Postgresql service $ sudo systemctl restart postgresql.service f. To set password for postgres user, run the below command: $ sudo passwd postgres g. Database creation & populating the database: Now, create necessary databases & restore the databases using pgAdminIII client. Step 5. Install Nodejs + NPM + Emberjs + Sailsjs i. Install Nodejs + NPM $ sudo pacman -Sy nodejs $ sudo pacman -Sy npm ii. Install Emberjs $ sudo npm install -g ember-cli $ sudo npm install -g bower iii. Install Sailsjs $ sudo npm install -g sails
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorCategories
All
Archives
January 2019
|