2015年10月30日 星期五

Laravel - How to install Laravel 5 into ubuntu 14.04 ?

1. Install LAMP

$ sudo apt-get install python-software-properties
$ sudo apt-get update 
$ sudo apt-get install -y php5 php5-mcrypt
$ sudo apt-get install apache2 libapache2-mod-php5
$ sudo apt-get install mysql-server php5-mysql

2. Install Composer
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer 
$ sudo chmod +x /usr/local/bin/composer

3. Install Laravel
$ cd /var/www/html
$ sudo git clone https://github.com/laravel/laravel.git
$ cd /var/www/html/laravel
$ sudo composer install
$ sudo chown -R www-data.www-data /var/www/html/laravel
$ sudo chmod -R 755 /var/www/html/laravel 

4. Create .env and replace key into it.
$ cd /var/www/html/laravel
$ sudo cp .env.example .env
$ sudo chown www-data:www-data .env
$ php artisan key:generate

You will get the new key, like ...
Application key [pY5f1IYsOEqg6JxksaKF1gXGdMY1Z3w1] set successfully
Please copy this key and assign this key into "APP_KEY" on ".env"
PS. DON"T COPY MY KEY INTO YOUR SETTING !!!

5. Restart apache2 server
$ sudo service apache2 restart

6. Open your browser with "127.0.0.1/laravel/public"

2015年10月2日 星期五

ubuntu - How to setting the LTIB on ubuntu 14.04

1. Install all build tool into your host PC.

$ sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
$ sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
$ sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
$ sudo apt-get install uuid-dev liblzo2-dev
$ sudo apt-get install tcl dpkg
$ sudo apt-get install asciidoc texlive-latex-base dblatex xutils-dev
$ sudo apt-get install texlive texinfo
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
$ sudo apt-get install libc6-dev-i386
$ sudo apt-get install u-boot-tools
$ sudo apt-get install scrollkeeper
$ sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so /usr/lib/librt.so
$ sudo apt-get install gparted
$ sudo apt-get install nfs-common nfs-kernel-server
$ sudo apt-get install git-core git-doc git-email git-gui gitk
$ sudo apt-get install meld atftpd

2. Install LTIB into your host PC.
$ cd ~
$ tar -zxvf L3.0.35_4.1.0_130816_source. tar.gz
$ ./L3.0.35_4.1.0_130816_source/install

3. Apply the patch file.
$ cd ~/ltib
$ git apply 0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS

4. Run the LTIB on host PC.
$ cd ~/ltib
$ ./ltib -m config
$ ./ltib

Reference : https://community.freescale.com/docs/DOC-100725

2015年10月1日 星期四

ubuntu - How to create the ubuntu rootfs for arm ?


1. Install "debootstrap" into your ubuntu system.
$sudo apt-get install debootstrap

2. Create the ubuntu core file system.
$sudo debootstrap --arch=armhf --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg --verbose --foreign trusty rootfs

3. Install "qemu" into your ubuntu system.
$sudo apt-get install binfmt-support qemu qemu-user-static

4. Copy the qwmu-arm-static into your target file system.
$sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin

5. Change root to your target file sytem.
$sudo chroot rootfs /bin/bash

6. Create the target file system without on arm.
$/debootstrap/debootstrap --second-stage

7. Next time, you can use "apt-get" to install any deb into target file system on host pc.

Reference:http://berniechenopenvpn.blogspot.tw/2015/07/filesystem.html