• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

install

Amazon Linux Docker Install

July 10, 2019

Here’s the installation of Docker for the original Amazon Linux.

# To install docker
sudo yum install docker
sudo service docker start
# Validate it's working
docker --version
docker run hello-world
docker ps -a
docker image ls

# To install docker sudo yum install docker sudo service docker start # Validate it's working docker --version docker run hello-world docker ps -a docker image ls

Filed Under: Cloud, Linux Tagged With: amazon linux, aws, docker, install, yum

Install Docker on Linux

July 4, 2019

How to install Docker on Linux Mint or Ubuntu.

sudo apt-get install docker-ce docker-ce-cli containerd.io
docker --version

sudo apt-get install docker-ce docker-ce-cli containerd.io docker --version

Filed Under: Cloud Tagged With: docker, install, linux, mint, ubuntu

Local RPM Install

March 11, 2019

Steps for creating a local RPM package installation.

# download plugin
yum install yum-plugin-downloadonly
# download package and dependencies
yum install --downloadonly reiserfs
# download package and dependencies to a specific directory
yum install --downloadonly --downloaddir=/home/ec2-user package
# download multiple packages
yum install --downloadonly --downloaddir=/root/mypackages/ package1 package2
# finally install package
rpm -ivh -r /home/ec2-user package.rpm

# download plugin yum install yum-plugin-downloadonly # download package and dependencies yum install --downloadonly reiserfs # download package and dependencies to a specific directory yum install --downloadonly --downloaddir=/home/ec2-user package # download multiple packages yum install --downloadonly --downloaddir=/root/mypackages/ package1 package2 # finally install package rpm -ivh -r /home/ec2-user package.rpm

Filed Under: Linux Tagged With: download, install, packages, yum

Apps to Install on Linux Mint

January 23, 2019

I recently started using Linux Mint again. Although it contains many excellent apps, there are a few things that are missing. So, here’s a list of programs that I have installed ✅ or will be installing on Linux Mint in the near future.

  • ✅ sublime text 3
  • ✅ lastpass
  • ✅ discord
  • ✅ aws cli
  • ✅ ffmpeg
  • ✅ handbrake
  • ✅ git
  • ✅ vim
  • ✅ emacs
  • ✅ tor
  • ✅ slack
  • ✅ docker
  • virtualbox

Filed Under: Linux Tagged With: apps, install, list, mint

Upgrade Firefox in Linux Mint

January 9, 2019

I fired up my old Linux PC which runs on Linux Mint. I noticed the default Firefox browser is quite old. It needs an upgrade, which is expected since this Linux Mint version is 18.1. The current version is 19.1. So, here are the steps to upgrade Firefox in Linux Mint.

Download Firefox.

wget https://www.mozilla.org/en-US/firefox/download/thanks/

wget https://www.mozilla.org/en-US/firefox/download/thanks/

Extract.

cd ~/Downloads/
tar xjf firefox-64.0.2.tar.bz2

cd ~/Downloads/ tar xjf firefox-64.0.2.tar.bz2

Move Firefox.

mv firefox /opt/firefox

mv firefox /opt/firefox

Create a symbolic link.

ln -s /opt/firefox/firefox /usr/bin/firefox

ln -s /opt/firefox/firefox /usr/bin/firefox

The old icons should still work. Enjoy.

Filed Under: Linux Tagged With: firefox, install, mint, upgrade

Laravel 5.4 Install

March 16, 2017

This is the installation of Laravel 5.4 on an Ubuntu Server 16.04 LTS. Laravel requires that you run Apache, MySQL and PHP. In this installation, I’m using the following versions: Apache 2.4.18, MySQL 5.7.17 and PHP 7.0.15. The installation of Laravel has changed over the years. I wished the installation was simpler. You can try Forge, but it’s not free. It also requires that you have an account at Linode, Digital Ocean or AWS. Forge costs $15 per month and Forge Plus is $30 per month. If you don’t want to pay, I’m afraid you are going to have to install Laravel yourself. Laravel installation may vary based on the distro you’re using. These instructions are for the Ubuntu Server 16.04 LTS.

Run Update

sudo apt-get update
sudo apt-get upgrade

sudo apt-get update sudo apt-get upgrade

Install Apache

sudo apt-get install apache2
sudo a2enmod rewrite
sudo service apache2 restart

sudo apt-get install apache2 sudo a2enmod rewrite sudo service apache2 restart

Install MySQL

sudo apt-get install mysql-server
sudo mysql_secure_installation

sudo apt-get install mysql-server sudo mysql_secure_installation

Install PHP

sudo apt-get install php libapache2-mod-php php-mbstring php-zip php-xml php-mysql

sudo apt-get install php libapache2-mod-php php-mbstring php-zip php-xml php-mysql

Install Composer

sudo curl -sS https://getcomposer.org/installer | sudo php — —install-dir=/usr/local/bin —filename=composer
# you may have to move composer manually if it doesn't work
sudo mv composer.phar /usr/local/bin/composer
# check if composer is accessible globally
composer -V

sudo curl -sS https://getcomposer.org/installer | sudo php — —install-dir=/usr/local/bin —filename=composer # you may have to move composer manually if it doesn't work sudo mv composer.phar /usr/local/bin/composer # check if composer is accessible globally composer -V

Install Laravel Installer

composer global require "laravel/installer"
# Using alias instead of $PATH
echo 'alias laravel="~/.composer/vendor/bin/laravel"' >> ~/.bashrc
source ~/.bashrc
# add source ~/.bashrc to .profile to load automatically
echo 'source ~/.bashrc' >> ~/.profile
# restart apache
sudo service apache2 restart
# check if laravel is accessible globally
laravel

composer global require "laravel/installer" # Using alias instead of $PATH echo 'alias laravel="~/.composer/vendor/bin/laravel"' >> ~/.bashrc source ~/.bashrc # add source ~/.bashrc to .profile to load automatically echo 'source ~/.bashrc' >> ~/.profile # restart apache sudo service apache2 restart # check if laravel is accessible globally laravel

Install New Laravel Project

# set permissions
cd /var/www/
sudo chown -R ubuntu:ubuntu /var/www/html
sudo chmod -R 755 /var/www/html
# install new project
cd /var/www/html
laravel new project
# give apache permissions 
sudo chgrp -R www-data /var/www/html/project/storage
sudo chgrp -R www-data /var/www/html/project/bootstrap/cache

# set permissions cd /var/www/ sudo chown -R ubuntu:ubuntu /var/www/html sudo chmod -R 755 /var/www/html # install new project cd /var/www/html laravel new project # give apache permissions sudo chgrp -R www-data /var/www/html/project/storage sudo chgrp -R www-data /var/www/html/project/bootstrap/cache

Configure Apache

cd /etc/apache2/sites-available
sudo cp 000-default.conf project.conf
sudo nano project.conf
#
<VirtualHost *:80>
  ServerName local.project.com
  ServerAdmin admin@project.com
  DocumentRoot /var/www/html/project/public
  <Directory "/var/www/html/project">
    AllowOverride All
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
#
sudo a2ensite project.conf
sudo a2dissite 000-default.conf
sudo service apache2 restart

cd /etc/apache2/sites-available sudo cp 000-default.conf project.conf sudo nano project.conf # <VirtualHost *:80> ServerName local.project.com ServerAdmin admin@project.com DocumentRoot /var/www/html/project/public <Directory "/var/www/html/project"> AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> # sudo a2ensite project.conf sudo a2dissite 000-default.conf sudo service apache2 restart

Finally, you can now access Laravel from the browser from the server IP address or domain.

Filed Under: Linux, PHP Tagged With: 5.4, install, laravel

Missing add-apt-repository command

November 13, 2016

When adding a new repository in Ubuntu, you can go the PPA route by using the add-apt-repository command. If you’re getting a missing add-apt-repository command, it’s probably not installed. You need to install the “software-properties-common” and “python-software-properties” packages from the Terminal. By the way, if you’re curious, PPA means personal package archive. PPAs are repositories hosted on Launchpad which you can use to install or upgrade packages that are not available in the official Ubuntu repositories. Just think of them as extended repositories.

If you’re getting a missing add-apt-repository command, just install the following:

$ sudo apt-get install software-properties-common python-software-properties

$ sudo apt-get install software-properties-common python-software-properties

Once installed, you can then add other repositories that you want.

Let’s say you want to install Sublime Text 2, a real popular text editor.

You can install Sublime Text 2 via the PPA route using the following.

$ sudo add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update
$ sudo apt-get install sublime-text-2

$ sudo add-apt-repository ppa:webupd8team/sublime-text-2 $ sudo apt-get update $ sudo apt-get install sublime-text-2

Or install the latest Gimp release:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp

sudo add-apt-repository ppa:otto-kesselgulasch/gimp sudo apt-get update sudo apt-get install gimp

To revert the changes:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp

sudo apt-get install ppa-purge sudo ppa-purge ppa:otto-kesselgulasch/gimp

Filed Under: Linux Tagged With: apt-get, install, ppa

Update PHP Stable Release on Mac

March 7, 2016

PHP is installed by default on all Macs since OS X version 10.0.0. You can install and use MAMP, but if you prefer to use the pre-loaded version of PHP, then you may need to update it to the latest stable release. Fortunately, there’s a binary package out there that will simplify your life.

If you like to install PHP 5.6 stable release, all you need to do is run the following from the command line:

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6

If you feel adventurous, you can try PHP 7 stable release.

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0

The installer packager will ask you for your password. PHP will be installed in /usr/local/php5.

Edit your .profile and include the PATH of the new PHP version.

nano ~/.profile

nano ~/.profile

Insert the following:

export PATH=/usr/local/php5/bin:$PATH

export PATH=/usr/local/php5/bin:$PATH

To be sure your using the new version, check the PHP version:

php -v

php -v

You should see something similar to this:

PHP 5.6.19 (cli) (built: Mar  4 2016 22:35:42) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

PHP 5.6.19 (cli) (built: Mar 4 2016 22:35:42) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

You now have the latest PHP 5.6 stable release.

Filed Under: PHP Tagged With: install, upgrade

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Home
  • About
  • Archives

Copyright © 2023