Category Archives: Script

CANONICAL RELEASES UBUNTU DEVELOPER TOOLS CENTER, MAKES IT EASY TO INSTALL ANDROID STUDIO AND ANDROID SDK IN UBUNTU

Canonical wants to make developers who create applications for platforms other than Ubuntu feel at home. In a recent article posted on his blog, +Didier Roche, Software Engineer at Canonical, writes: “Ubuntu loves developers and we are going to showcase it by making Ubuntu the best available developer platform!“.

To achieve this, the Ubuntu Developer Tools Center was created, a project to enable quick and easy setup of common developers needs on Ubuntu. For now, Canonical is focusing on Android developers, but more will follow, like Go developers, web developers, Dart and more.

 

Android Studio Ubuntu Developer Tools Center

Android Studio installed in Ubuntu 14.04 using UDTC

Ubuntu Developer Tools Center is currently in alpha and right now, it allows installing the latest version of Android Studio along with the latest Android SDK and their dependencies, enable multi-arch on 64bit machines as well as integrate Android Studio with the Unity Launcher.

Ubuntu Developer Tools Center (UDTC) will always target the latest Ubuntu development version along with the latest Ubuntu LTS (long-term support) version. Right now, Ubuntu 14.04 users who want to install UDTC will have to use the official Ubuntu Developer Tools Center PPA (see installation instructions below), but in the future it should be available in the official Ubuntu 14.04 (backports) repositories. As for Ubuntu 14.10 Utopic Unicorn, UDTC is already available in the repositories.

Install Ubuntu Developer Tools Center with Android Studio and Android SDK in Ubuntu

Ubuntu Developer Tools Center is currently in alpha so you’ll encounter bugs! Report them @ Launchpad or GitHub.

Before proceeding, if you’ve used the unofficial Android Studio PPA maintained by Paolo Rotolo, purge the android-studio package:

sudo apt-get purge android-studio sudo rm -r "/usr/share/android-studio"

1. Install Ubuntu Developer Tools Center

Ubuntu 14.10: as I said, UDTC is already available in the Ubuntu 14.10 Utopic Unicorn repositories so to install it, use the following command (or search for it in Ubuntu Software Center, Synaptic, etc.):

sudo apt-get install ubuntu-developer-tools-center

Ubuntu 14.04: Ubuntu Developer Tools Center is available in an official PPA maintained by Didier Roche. Add the PPA and install UDTC using the following commands:

sudo add-apt-repository ppa:didrocks/ubuntu-developer-tools-center sudo apt-get update sudo apt-get install ubuntu-developer-tools-center

2. Install Android Studio and Android SDK using UDTC

Ubuntu Developer Tools Center

To install Android Studio and Android SDK, simply run the following command:

udtc android

Then, select to accept the license (“a”) and UDTC will do the rest, installing Android Studio and Android SDK.

 

UDTC will only ask for your your password if it needs to install some required dependencies which aren’t installed on your system.

Ref: http://www.webupd8.org/2014/09/canonical-releases-ubuntu-developer.html

Comments Off on CANONICAL RELEASES UBUNTU DEVELOPER TOOLS CENTER, MAKES IT EASY TO INSTALL ANDROID STUDIO AND ANDROID SDK IN UBUNTU

Filed under Aplikasi, Script

UBUNTU DEVELOPER TOOLS CENTER 0.1 RELEASED WITH ECLIPSE AND ANDROID ADT SUPPORT

Ubuntu Developer Tools Center (UDTC) 0.1 was released today and it includes support for Eclipse as a standalone IDE, Android ADT support (through Eclipse) and more. 

Ubuntu Developer Tools Center Eclipse

A couple of months ago, Canonical released Ubuntu Developer Tools Center (UDTC), a project to “enable quick and easy setup of common developers needs on Ubuntu”. Using it, you can easily install Android Studio and the Android SDK in Ubuntu and, with the latest version, Eclipse and Android ADT (for Eclipse).
 
In the release announcement, Didier Roche, Software Engineer at Canonical, mentioned that for now, Canonical is focusing on Android developers, but more will follow, like Go developers, web developers, Dart and more.

Changes in Ubuntu Developer Tools Center 0.1:

  • added Eclipse support as a standalone IDE. Usage: udtc ide eclipse;
  • added Android ADT support (through Eclipse). Usage: udtc android eclipse-adt;
  • adb and other Android tools are now added to user path while installing an Android framework;
  • UDTC now supports framework removal. If you installed a framework and want to remove it, just use: udtc android android-studio –remove;
  • enabled loading of local framework. They are controlled by UDTC_FRAMEWORKS env variable which can point to any path containing local frameworks;
  • added support for reinstallation in different folder than the origin one, cleaning the original directory;
  • DownloadCenter now support redirections;
  • added support for decompressing zip files in Decompressor;
  • new and refresh translations: de, en_AU, en_CA, en_GB, es, eu, fr, hr, it, pl, ru, te, zh_CN, zh_HK;
  • improved i18n support;
  • protect against mistyping with multiple frameworks;
  • framework support refactoring to avoid code duplication;
  • tests fixes and refactoring for better scalability;
  • fixed logging support during test runs;
  • reshape docker files to have fewer layers;
  • don’t raise any Exception for unexpected CLI args.

Install Ubuntu Developer Tools Center

The latest Ubuntu Developer Tools Center 0.1 is available in the Ubuntu 15.04 Vivid Vervet repositories. 
 
For Ubuntu 14.10 and 14.04, you can install the latest Ubuntu Developer Tools Center by using a PPA:
sudo add-apt-repository ppa:didrocks/ubuntu-developer-tools-center
sudo apt-get update
sudo apt-get install ubuntu-developer-tools-center
That’s it. You can now use UDTC to install Android Studio, Android SDK, Eclipse and add Android adt support (through eclipse).
 
Install Android Studio and Android SDK by using the following command:
udtc android
Then, choose the installation path (or use the default path), accept the license (“a”) and UDTC will do the rest, installing Android Studio and Android SDK. UDTC will even add Android Studio to the Unity Launcher.
To install Eclipse (Eclipse Luna 4.4 at the time I’m writing this article), simply use the command below:
udtc ide eclipse
After installing it (just like with Android Studio), UDTC will add Eclipse to the Unity Launcher.

For Android ADT support (through Eclipse), use the following command:

udtc android eclipse-adt
If you want to remove a framework, simply append “–remove” to the commands above. For example, to remove Eclipse, use the following command:
udtc ide eclipse --remove

If you want to help with the Ubuntu Developer Tools Center development, report bugs, etc., check out its GitHub page.

 
Ref: http://www.webupd8.org/2014/10/ubuntu-developer-tools-center-01.html

Comments Off on UBUNTU DEVELOPER TOOLS CENTER 0.1 RELEASED WITH ECLIPSE AND ANDROID ADT SUPPORT

Filed under Aplikasi, Script

Memasang MATE Desktop Environment pada Ubuntu 14.04

Tampilan Desktop Unity pada Ubuntu 14.04 sebenarnya elegan dan cukup ringan, tetapi ada saja kelemahannya dalam hal pengelompokkan jenis aplikasi pada menu launcher-nya, terasa kurang praktis. Karena itu mungkin ada pengguna Ubuntu yang ingin menggantinya atau memasang desktop lain. Pilihan desktop lain yang favorit dan cukup ringan diantaranya adalah Cinnamon atau Mate.

Di bawah ini diberikan prosedur memasang tambahan desktop Mate pada Ubuntu. Sampai hari ini (24 April 2014) Mate untuk Ubuntu baru sampai rilis Saucy Salamander, mate untuk Ubuntu Trusty belum muncul. Karena itu di sini hanya akan dipasang rilis Saucy.

Ubuntu Saucy Salamander (13.10) repository

Tambahkan salah satu repo berikut ke /etc/apt/sources.list menggunakan perintah berikut:

sudo add-apt-repository "deb http://repo.mate-desktop.org/ubuntu saucy main"
sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu saucy main"
sudo add-apt-repository "deb http://mirror1.mate-desktop.org/ubuntu saucy main"

ATAU gunakan editor teks dan tambahkan salah satu mirror berikut ke /etc/apt/sources.list:

deb http://packages.mate-desktop.org/repo/ubuntu saucy main
deb http://repo.mate-desktop.org/ubuntu saucy main
deb http://mirror1.mate-desktop.org/ubuntu saucy main


Lalu simpan seperti biasa.

MATE Installation (Saucy Salamander)

Lakukan running perintah berikut untuk update repositori dan memasang MATE:

sudo apt-get update
sudo apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring
sudo apt-get update
# this installs base packages
sudo apt-get install mate-core

Lakukan Restart.

Setelah restart maka pada tampilan login akan ada logo Ubuntu untuk pilihan jenis desktop Unity dan MATE. Silahkan klik logo Ubuntu itu dan pilih MATE untuk mencoba menjalankan desktop yang baru dipasang

Selamat mencoba.Screenshot from 2014-04-24 15:19:30

Tampilan desktop MATE pada Ubuntu 14.04

Comments Off on Memasang MATE Desktop Environment pada Ubuntu 14.04

Filed under Panduan, Repositori, Script

How to watch live streaming video from the command line on Linux

There are quite a few popular live streaming services on the web (e.g., Dailymotion, YouTube Live, UStream, etc.). Most of these streaming services are accessed from a web browser via flash plugin. If you heavily use some of those services on Linux, you may notice that your web browser sometimes becomes unresponsive or otherwise consumes a lot of CPU resource and even leaks memory. That is because of the misbehaving/malfunctioning flash plugin.

If you hate the flash plugin as much as I do, you can consider another way to enjoy streamed contents from those services.

Enter Livestreamer.

Livestreamer is a command line interface (CLI) client which, upon given a streaming URL, retrieves live streaming video from the URL, and pipes it into a native video player running on local host. So with Livestreamer, you can enjoy live streaming from various sources via a much stable and lightweight video player such as VLC or mplayer, without opening a web browser.

Currently, Livestreamer supports streaming from over 20 different web sites including Dailymotion, YouTube Live, Twitch/Justin.tv, Livestream and UStream.

In this tutorial, I will describe how to access live streaming from the command line with Livestreamer.

Install Livestreamer on Linux

To install Livestreamer on Debian, Ubuntu or Linux Mint:

$ sudo apt-get install python-pip
$ sudo pip install livestreamer

 

To install Livestreamer on Fedora, CentOS or RHEL:

$ sudo yum install python-pip
$ sudo pip install livestreamer

 

By default, Livestreamer attempts to pipe streaming video into VLC player. Thus you also need toinstall VLC player on your Linux system.

Watch Live Streaming from the Command Line with Livestreamer

To watch any live streaming channel/program, first obtain its corresponding URL from its official site.

For example, let’s say the URL for the live streaming content that you want to watch is http://www.youtube.com/watch?v=U4Pw3ofFWgs

Ref: http://xmodulo.com/2014/01/watch-live-streaming-video-command-line-linux.html

Comments Off on How to watch live streaming video from the command line on Linux

Filed under Aplikasi, Script