Fedora 23: Install D (dlang)

There are two way to install D on fedora 23

The first way:

1.Go to dlang.org/download.html and download RPM file:

2.Go to your download folder and install D using dnf command in Terminal
sudo dnf install dmd-2.071.0-0.fedora.x86_64.rpm

3. (Optional) Go to code.dlang.org/download, download and extract binary tarball, then move dub file to usr/bin folder:
 sudo mv dub /usr/bin


The second way:

1. Type below script in terminal:
curl -fsS https://dlang.org/install.sh | bash -s dmd

2. Config .bashrc:

export PATH=$PATH:/home/yourname/dmd/dmd-2.071.0/linux/bin64
export PATH=$PATH:/home/yourname/dmd/dub
export LIBRARY_PATH=$LIBRARY_PATH:/home/yourname/dmd/dmd-2.071.0/linux/lib64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yourname/dmd/dmd-2.071.0/linux/lib64

Fedora 23: Install D (dlang)

Fedora 23: Install Erlang, Elixir and Phoenix

Install Erlang with kerl:

curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl
chmode +x kerl
./kerl list releases
./kerl build 18.2.1 mybuild-18.2.1
./kerl list builds
./kerl install mybuild-18.2.1 ~/erlang-18.2.1

Add the following line into ~/.bashrc:
export PATH=$PATH:~/erlang-18.2.1/bin

Install kiex:

\curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s
Add the following line into ~/.bashrc:
[[ -s "$HOME/.kiex/scripts/kiex" ]] && source "$HOME/.kiex/scripts/kiex"

Install Elixir:

kiex list known
kiex install 1.2.3

Add the following line into ~/.bashrc:
export PATH="$PATH:~/.kiex/elixirs/elixir-1.2.3/bin"

Install Phoenix:

mix local.hex
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

Install Postgresql (Default SQL database on Phoenix):

sudo dnf install postgresql-server postgresql-contrib
Fedora 23: Install Erlang, Elixir and Phoenix

LXDE: Enable touchpad tap

cp /usr/share/X11/xorg.conf.d/50-synaptics.conf /etc/X11/xorg.conf.d/50-synaptics.conf
cd /etc/X11/xorg.conf.d
sudo gedit 50-synaptics.conf

Modify first section in this file as such:

Section  "InputClass"
Identifier  "touchpad catchall"
Driver  "synaptics"
MatchIsTouchpad  "on"
# Enable left mouse button by tapping
Option  "TapButton1"  "1"
# Enable two-finger tap right click
Option  "TapButton2"  "1"
# Enable vertical scrolling
Option  "VertEdgeScroll"  "1"
# Enable right mouse button by tapping lower right corner
Option "RBCornerButton" "3"
MatchDevicePath  "/dev/input/event*"

Note for left handed user (changed mouse setting to left handed), change tapbutton1 option to 3:

Option "TapButton1" "3"
LXDE: Enable touchpad tap

Simple setup Angular Js with Rails

Simple setup angular js with ruby on rails:

1 Install and config nodejs, npm, bower, angular js

a) Install npm: sudo dnf install nodejs npm (sudo apt-get if you using Ubuntu)

b) Install bower: sudo npm install -g bower

c) Create rails project: rails new YourApp

d) Cd to YourApp project and init Bower: bower init

e) Create .bowerrc in YourApp root folder: touch .bowerrc

f) Edit .bowerrc gedit .bowerrc:


This will install your components in bower_components folder

g) Install angular: bower install angular –save

2. Create and edit these files: application.js, angularApp.js, application.html.erb, routes.rb, and application_controller.rb

a) Add //= require angular before at the top of application.js, this will allow you to use angular js

b) Create a file angularApp.js (or whatever name) in app/assets/javascripts folder

c) Edit angularApp.js: var angularApp = angular.module(‘angularApp’, [])

d) In app/views/layouts/application.html.erb change your body tag:

    <body ng-app=”angularApp”>

e) Create a method in application_controller.rb to render application layout:

    def angular
      render ‘layouts/application’

f) Root your site in routes.rb:

    root to: ‘application#angular’


Finally test angular js in your rails site:

Write: {{ 1 + 1 }} in your application html body and remove <%= yield %>

Start rails server: rails s and see your result







Simple setup Angular Js with Rails

Fedora 23: Install Ruby on Rails

  1. Update fedora: sudo dnf update
  2. Install free and nonfree RPM: Configuration – RPM Fusion
  3. Install npm, ruby and sqlite: sudo dnf install npm ruby gcc ruby-devel sqlite-devel
  4. Install rails: gem install rails
  5. Test ruby on rails:
    a) Create new project: rails new testproject
    b) cd testproject
    c) Start rails server: rails server -p 8000
    d) Access yoursite: open localhost:8000
Fedora 23: Install Ruby on Rails