Oct 12, 2015

Ansible install with openSUSE 13.2 and Mac

I start to study Ansible cause recently needs.

Ansible is python based, using SSH deploy packages to remote servers, it's like Puppet / Chef / Salt.

Online resource

I study from Oreilly - Ansible up & running
  • code example


How to install Ansible

Install Ansible

openSUSE 13.2 ( Most of linux could install ansible now )
Use zypper to query ansible package
# zypper   search   ansible
Loading repository data...
Reading installed packages...

S | Name    | Summary                                                                  | Type      
 | ansible | SSH-based configuration management, deployment, and orchestration engine | package   
 | ansible | SSH-based configuration management, deployment, and orchestration engine | srcpackage

Install Ansible
# zypper install  -y  ansible

That's all you need to do :-)

Ansible is clientless, that mean you don't need to install any packages in your remote hosts, it's the most diff with puppet and other tools.
The role is
  • The control machine
    • The one that you use to control remote machines
    • needs to have python 2.6 or later installed.  
  • To manage a server with Ansible
    • Needs to have SSH and Python 2.5 or later installed.
Most linux has python later 2.5 ( Might be python 2.7 ), that's the reason - Nothing to install

What do you need to know? ( From Oreilly book ^^ )
I think the most important point is - you could use ssh and ssh key to execute some commands in remote servers.

What do I need to know?
    • Connect to a remote machine using SSH.
    • Interact with the bash command-line shell (pipes and redirection).
    • Install packages.
    • Use the sudo command.
    • Check and set file permissions.
    • Start and stop services.
    • Set environment variables.
    • Write scripts ( Any language )
  • You don't need to know python to use Ansible unless you want to write your own module.
  • You will need to learn some YAML and Jinja2 to use Ansible.     

That's all today, I will write some Ansible module command next time.

~ enjoy it

Oct 5, 2015

Setting up Spark single node with local disk

Setting up Spark single node with local disk

OS: Ubuntu 14.04 in GENI

Please use ssh key to login Ubuntu 14.04 in GENI

If you are /bin/bash user, you might want change your shell, you could use
$sudo   chsh   -s    /bin/bash  YourUserName

Use curl command to get auto install shell script, save filename as Install.sh

$ curl   https://dl.dropboxusercontent.com/u/12787647/iCAIR/Ubuntu1404SparkInstall.sh    >   Install.sh

Use sh to run the shell script.  It will auto install spark and other packages.
$ sh  Install.sh

After install Spark in your system, you could run spark interactive shell with follow command   
$ ~/spark/bin/spark-shell

You can check the SparkUI in http://localhost:4040 like

螢幕快照 2015-08-07 下午2.59.46.png

Basic  command practice
scala> val sakanaFile = sc.textFile("README.md")
sakanaFile: org.apache.spark.rdd.RDD[String] = MapPartitionsRDD[1] at textFile at :21
scala> sakanaFile.count()
res0: Long = 98
scala> val linesWithSpark = sakanaFile.filter(line => line.contains("Spark"))
linesWithSpark: org.apache.spark.rdd.RDD[String] = MapPartitionsRDD[2] at filter at :23
scala> linesWithSpark.count()
res1: Long = 19
scala> linesWithSpark.collect()

scala> linesWithSpark.collect.foreach(println)

Aug 31, 2015

openSUSE.Asia Summit – Call for Papers

openSUSE.Asia Summit – Call for Papers

The openSUSE.Asia Committee is happy to announce the call for papers upcoming second openSUSE.Asia Summit. Starting today, the Committee is looking forward to see your proposals. The committee is looking for speakers from different avenues representing and advocating Free and Open Source Software.
Presentations can be submitted in any of the four formats
  • Lightning Talk (10 mins)
  • Short Talk (30 mins)
  • Long Talk (60 mins)
  • Workshop (3 hours)
The openSUSE.Asia committee highly recommends workshops or hands on sessions. Papers can be submitted at the conference website.
Papers can be submitted until 25th of September. The openSUSE.Asia Committee will evaluate the proposals based on the submitted abstracts and available time in the schedule, and, the accepted proposals will be announced on 9th October.

Aug 1, 2015



The GNOME.Asia Committee is inviting interested parties to submit proposals for hosting GNOME.Asia Summit during the 2nd quarter of 2016.
GNOME.Asia Summit is the annual GNOME Conference in Asia. The event focuses primarily on the GNOME desktop, but also covers applications and the development platform tools. It brings together the GNOME community in Asia to provide a forum for users, developers, foundation leaders, governments and businesses to discuss the present technology and future developments.
GNOME.Asia Summits have been held in Beijing, Ho-Chi-Minh City, Taipei, Bangalore, Hong Kong, Seoul, Beijing, Depok respectively over the last eight years.
The Committees’s preference is to find a new location each year in order to spread GNOME throughout Asia and we are looking for local organizers to rise to the challenge of organizing an excellent GNOME event. The GNOME.Asia committee will assist in the process, but there is a definitive need for individuals to be actively involved and committed to the planning and execution of the event.
You can learn more about GNOME.Asia Summit at our website: http://www.gnome.asia Interested parties are hereby invited to submit a formal proposal to the GNOME Asia Committee. The deadline for the proposals is September 11, 2015. Please email your proposal to gnome-asia-committee-listgnome org. We might invite you to present your proposal in more details over our regular IRC meetings or send you additional questions and requests. Results will be announced by the first week of October 2015.
The conference will require availability of facilities for 3-5 days, including a weekend, during the 2nd quarter of 2016 (between March and June). Key points which each proposals should consider and which will be taken into account when deciding among candidates, are:
  • Local community support for hosting the conference.
  • Venue details. Information about infrastructure and facilities to hold the conference should be provided.
  • Preliminary schedule with main program & different activities.
  • Information about how Internet connectivity will be managed.
  • Lodging choices ranging from affordable housing to nicer hotels, and information about distances between the venue and lodging options.
  • The availability of restaurants or the organization of catering on-site, cost of food/soft drinks/beer.
  • The availability and cost of travel from major Asian and European cities.
  • Local industries, universities and government support.
Please provide a reasonably detailed budget (sponsorships, expenses, etc).
  • Plans for local sponsorship's
Please refer to the GNOME.Asia website. Please also check the GNOME.Asia Summit check listhowtos and the winning proposal for 2012 when putting together a proposal. You are welcome to contact gnome-asia-committee-list AT gnome org if you have any questions. Please help to spread the word and we are looking forward to hearing from you soon! GNOME.Asia Committee

Jun 19, 2015

GNOME.Asia Summit 2015

GNOME.Asia Summit 2015
It's always happy and pleasure to join and organize GNOME.Asia Summit. :-)

You could see many photos in Flickr group with GNOME.Asia Summit 2015 all of the pictures come from our great Participant and Organizer.

If you ask me "Why you work hard for GNOME, freeware and open source?"
---- The answer is "Friendship and Smile"

-Smiles is the greatest power to promote GNOME and FOSS to me-

I meet many new friends and contribute  to GNOME and FOSS in many different events.

It also a good time to see old friends get together. ^^

It's very good to work in GNOME and GNOME.Asia team, I learn very much from GNOME and GNOME.Asia team.

This year, we have very strong local committee.

- Thanks Utian give us close speech and BinLi -

- Thanks Haris make everything smooth and smile-

- Thanks Estu always give everything right away, you should go to GUADEC ^^-

- Thanks Siska and our host [ We have 2 great host this year ^^ ] keep everyone powerful -

- Thanks our local committee and organizer always smile and keep contribute-

I want to list all the pictures with all our local committee and organizer, I really suggest you to see the pictures in flickr group.

Great picture to see in GNOME.Asia Summit 2015.

I also want to let you know

- Great photo comes from Contributors ( In diff method ) get together-

I really love the topic this year "GNOME   Desktop for Everyone"

Everyone could use GNOME for Desktop ^^ -- I love it

I am very enjoy GNOME.Asia Summit this year.

- I love my new job "Human timer for lighting talks" this year -

It's great moment to see GNOME.Asia Summit in Universitas Indonesia.

We have great time in Day 0 workshop.

-Thanks our speakers give us workshop ^^-

Also love to see openSUSE community guys in Indonesia, and it's my pleasure to join openSUSE Indonesia facebook Group.

It's great to have friends join GNOME.Asia Summit from Taiwan together.

- Thanks Shing Yuan introduce how to promote open source with their team  in Aletheia University-

Thanks everyone join GNOME.Asia Summit

We have lots fun in GNOME.Asia.

Thanks speakers come to GNOME.Asia Summit and blog for summit.

I want to Thanks all our sponsor and GNOME Foundation.
Without their their support, we could not have this amazing GNOME.Asia Summit.

Feb 15, 2015

GNOME.Asia summit 2015 is call for paper



GNOME.Asia Summit 2015 invites proposals for presentations at the conference. GNOME.Asia Summit is Asia's GNOME user and developer conference, spreading the knowledge of GNOME across Asia. The conference will be held in Universitas Indonesia, Depok West Java, Indonesia on May 8-9, 2015. The conference follows the release of GNOME 3.14, helping to bring new desktop paradigms that facilitate user interaction in the computing world.  It will be a great place to celebrate and explore the many new features and enhancements to the GNOME 3.14 release and to help make GNOME as successful as possible. We welcome proposals by newcomers and experienced speakers alike.
Possible topics include, but not limited to:
How to Promote/Contribute to GNOME in Asia
  • GNOME Marketing
  • Promotion of Free / Open Source Software
  • How to run a Local GNOME Users Group
  • Asia success stories / Local GNOME Projects
  • GNOME and Educations
  • GNOME Outreach Program for Women
  • Google Summer of Code
Hacking GNOME
  • Latest developments in GNOME
  • GNOME 3 & GNOME 3 Usability
  • GNOME Human Interface Engineering (Icons and Graphic Design)
  • QA and testing in GNOME
  • GNOME Accessibility
  • GNOME Coding How-to
  • Writing applications for GNOME 3
  • Integration of web life into the desktop
Adapting GNOME to new types of devices
  • Developing GNOME on mobile devices (smart phones, tablets)
  • Developing GNOME on embedded systems or open source hardware
  • On-going projects and success stories
  • Finding Free and Open Source friendly hardware manufacturers
Localization and Internationalization
  • Translations
  • Input methods
  • Fonts
Other topics could include any topic related to Free and Open Source Software not listed above:
  • Small Board,
  • Open Hardware,
  • Open Data,
  • Big Data,
  • Cloud Computing,
  • Mobile Technology
Lightning talks! A five minute presentation to demonstrate your work or promote an interesting topic. These talks will be grouped together in a single session.
A standard session at GNOME.Asia 2015 will be scheduled as 45 mins (35 mins talk + 10 mins Q&A).  Please take into consideration any time you will need for preparation. The session could be a technical talk, panel discussion, or BOF.
If you’d like to share your knowledge and experience at GNOME.Asia 2015, please fill in the form at before March 15th, 2015.  Please provide a short abstract about your proposal (under 150 words). Include your name, biographical information, a photo suitable for the web, a title, and a description of your presentation . The reviewing team will evaluate the entries based on the submitted abstracts and available time in the schedule. You will be contacted before March 17th, 2015 on whether your submission has been accepted or not.
All interested contributors are highly encouraged to send in their talks.  Please help us to spread the invitation to other potential participants. Even you do not plan to be a speaker, please consider joining GNOME.Asia 2015. This is going to be a great event!