Sabtu, 23 Juli 2016

Install atom di linux

sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom

install ionic

Installation

In this chapter, we are going to walk through the process of downloading Ionic and installing all necessary dependencies for development.

Platform notes

First, we need to start with a note about minimum requirements for building your app with the current release of Ionic. Ionic targets iPhone and Android devices (currently). We support iOS 7+, and Android 4.1+. However, since there are a lot of different Android devices, it’s possible certain ones might not work. As always, we are looking for help testing and improving our device compatibility and would love help from the community on our GitHub project.
You can develop Ionic apps on any operating system you prefer. In fact, Ionic has been developed at various times on Mac OS X, Linux, and Windows. However, right now you’ll need to use the command line in order to follow this guide and you must have OS X in order to develop and deploy iPhone apps, so OS X is recommended if possible.
If you are on Windows, make sure to download and install Git for Windows and optionally Console2. You will be executing any commands in this guide in the Git Bash or Console2 windows.
First, we will go and install the most recent version of Apache Cordova, which will take our app and bundle it into a native wrapper to turn it into a traditional native app.
sudo apt-get install npm

To install Cordova, make sure you have Node.js installed, then run
$ sudo npm install -g cordova
Drop sudo from the above command if running on Windows. Depending on the platforms you wish to develop for, you’ll need to install platform-specific tools. Follow the Cordova platform guides for Android and iOS to make sure you have everything needed for development on those platforms. Luckily, you’ll only need to do this once.

Install Ionic

Ionic comes with a convenient command line utility to start, build, and package Ionic apps.
To install it, simply run:
$ sudo npm install -g ionic

Create the project

Now, we need to create a new Cordova project somewhere on the computer for the code for our app:
$ ionic start todo blank
That will create a folder called todo in the directory the command was run. Next, we will go into that directory and list the contents. Here is what the outer structure of your Ionic project will look like:
$ cd todo && ls

├── bower.json     // bower dependencies
├── config.xml     // cordova configuration
├── gulpfile.js    // gulp tasks
├── hooks          // custom cordova hooks to execute on specific commands
├── ionic.project  // ionic configuration
├── package.json   // node dependencies
├── platforms      // iOS/Android specific builds will reside here
├── plugins        // where your cordova/ionic plugins will be installed
├── scss           // scss code, which will output to www/css/
└── www            // application - JS code and libs, CSS, images, etc.
If you are planning on using any version control system, you can go ahead and set it up in this new folder.

Configure Platforms

Now, we need to tell ionic that we want to enable the iOS and Android platforms. Note: unless you are on MacOS, leave out the iOS platform:
$ ionic platform add ios
$ ionic platform add android
If you see errors here, make sure to follow the platform guides above to install necessary platform tools.

Test it out

Just to make sure the default project worked, try building and running the project (substitute ios for android to build for Android instead):
$ ionic build ios
$ ionic emulate ios

Install Ionic on Linux (Linux mint 17.1 rebecca)

The first step is to install NodeJS
sudo apt-get install nodejs
The nodejs installed from the repositories use nodejs, since we may need node, we create a symlink so we can use both
sudo ln -s /usr/bin/nodejs /usr/bin/node
We also need to install ant
sudo apt-get install ant
Now we will install ionic and cordoba
sudo npm install -g cordova ionic
Change the ownership of tmp folder created by npm, replace user:group by your username group
sudo chown user:group ~/tmp/
You need android sdk installed, and to add this lines to the file ~/.bashrc, change /opt/android/sdk by the path your are installing
export ANDROID_HOME=/opt/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Install gulp
sudo npm install -g gulp
if your are going to use SASS we should install ruby
sudo apt-get install ruby
sudo su -c "gem install sass"
Now you can start your proyect like
ionic start myApp blank
cd myApp/
ionic platform add android
ionic build android
ionic emulate android

Jumat, 22 Juli 2016

Check package open cv di linux

abuzupaw@BSG:~$ pkg-config --cflags opencv
-I/usr/local/include/opencv -I/usr/local/include

abuzupaw@BSG:~$ pkg-config --libs opencv
-L/usr/local/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab -lrt -lpthread -lm -ldl

Jumat, 15 Juli 2016

Entry True type font in linux

Install a font is not difficult! After you have downloaded the font, extract it in a folder (the fonts are generally in a zip archive) then open a terminal in the folder where is your font then in this folder, type in the terminal (of course you must be root for this):


CODE: SELECT ALL
# mkdir -v /usr/share/fonts/myfonts (of course you can give another name than "myfonts")
# mv nameofyourfont.ttf /usr/share/fonts/myfonts/
# cd /usr/share/fonts/myfonts/
# mkfontdir
# mkfontscale
# fc-cache -f -v


And hop, your fonts are incorporated to the system. After the last command, verify if you see the line:

/usr/share/fonts/myfonts: caching, 1 fonts, 0 dirs

It says you the font is available.

Then now, you can remove the folder where you have extract the font at first.

In this way, you can install any TrueType (.ttf) fonts found on the web...

P.S.= If you have several fonts, it's the same thing. The most simple is to put all the fonts in the same folder, so the second command will be:

CODE: SELECT ALL
mv *.ttf /usr/share/fonts/myfonts

Then, following is the same.
K.I.S.S. ===> "Keep It Simple, Stupid"
"Simplicity is the ultimate sophistication." (Leonardo da Vinci)
"Everything should be made as simple as possible, but no simpler." (Albert Einstein)