Ir al contenido principal

Entradas

Mostrando las entradas etiquetadas como planet-ubuntu

Modern Architecture for Native Apps with AWS Backend: A Practical Guide

Introduction Designing a mobile app today goes far beyond building a beautiful interface. Native apps — whether for iOS or Android — need secure authentication, user role management, real-time communication with the backend, and scalable infrastructure to support growth. In this post, I’ll walk you through a clean and modern architecture to connect native mobile apps to a robust backend on AWS. The architecture is modular, scalable, and aligned with best practices for security and performance — without relying on overly complex tools. Why it matters: apps today are more than just UI A production-grade mobile app often includes: User login (email, Google, or others), Differentiated access for multiple roles (e.g., user vs admin), Secure token-based communication, A backend capable of handling business logic and data, Data storage, asset management, and scalable APIs, Compliance with Google Play and App Store requirements. All of these require a backend architecture ...

Managing dynamic inventory in private subnets using bastion jump box

Managing dynamic inventory in private subnets using bastion jump box The title of post is quite large, but is something I encountered issues in the last weeks. I had a VPC in AWS, creating x amount of instances in a private network, and was quite complex to manage this instance using static inventory files. So I will explain you how to manage this problem with Ansible . Before continue, I want to say these articles are really good and can help you with this issues. Dynamic inventory Ansible (behind a jumpbox / bastion ) SSH jump hosts on CircleCI 2.0 So you will be asking, if these articles are so good, why are you writing them again? Easy, I’m doing this in Gitlab CI, and I suppose other CI will encounter similar issues. It’s not possible to connect to the instances using the instructions above. First Step We get our inventory in a dynamic way. For this we will use the inventory scripts. We need to modify the ec2.ini file with uncommenting the vpc...

Ansible using plugins for dynamic inventories

This is a small post about how to use inventory plugins in Ansible. If you are looking the script way I recommend to read this article: http://gloriasilveira.com/setting-up-ansible-for-aws-with-dynamic-inventory-ec2.html It explains really good this or you can watch this video: https://www.youtube.com/watch?v=LnbqO1kTPqE&t=6s But if you’re looking to use inventory this article can help you. First of all, why should I used inventory if all over the internet they’re using the python scripts? Well, Ansible recommends it: Inventory plugins take advantage of the most recent updates to Ansible’s core code. We recommend plugins over scripts for dynamic inventory. You can write your own plugin to connect to additional dynamic inventory sources. https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html The actual ansible guide is quite good, but there was a step that got me confused, probably my english isn’t so good and I didn’t understood it. We need to ena...

Access to AWS Postgres instance in private subnet

I have been working with AWS in the last days and encounter some issues when using RDS.  Generally when you're working in development environment you have setup your database as Publicly accessible and this isn't an issue. But when you're working in Production. So we place the Amazon RDS database into a private subnet. What we need to do for connecting to the database using PgAdmin or other tool? We're going to use one of the most common methods for doing this. You will need to launch an Amazon EC2 instance in the public subnet and then use it as jumping box. So after you have your EC2, you will need to run the following command. See explantion below After this, you will need to configure your PgAdmin. The host name will be your localhost, the port is the same you define in the above command. Maintenance database will be your DB name and the username you have for connecting. Hope this helps you connect to your databases.

Getting Docker Syntax In Gedit

I have been working with docker in the last days, and encounter the syntax issue with gedit. Just pure plain text. So make a small search and found an easy way for fixing this. I found Jasper J.F. van den Bosch repository in GitHub and found the solution for this simple problem. We need to download the docker.lang file, available here:  https://github.com/ilogue/docker.lang/blob/master/docker.lang After that, you go to the folder you save the file and do the following command. sudo mv docker.lang /usr/share/gtksourceview-3.0/language-specs/  If this doesn't work you can try the following: sudo mv docker.lang  ~/.local/share/gtksourceview-3.0/language-specs/ And that's all! Screenshot of gedit with no docker lang Screenshot of gedit with docker lang

Not an Ubuntu Topic, but a Humanity Towards Others

Hi, I'm completely sorry to publish this article in the Ubuntu planet, as it's not related to any Ubuntu Topic. I'm writing to you, requesting your help for one friend, coworker, Laura Cano. She has been indirectly involved in our Ubuntu Honduras Team. (She did the proof reading of our English articles). She is currently fighting Acute Lymphoblastic Leukemia for the second time. In order to recover she needs a bone marrow transplant. Unfortunately, this procedure is not done in Honduras. Meaning she would have to go abroad to get the transplant done as well as looking for a donor, getting the proper medical examinations, and other expenses. She cannot afford any of these because she is still recovering economically from the first episode. If you will like to help Laura please feel free to do so:  https://www.gofundme.com/laura-cano-medical-fund  or sharing this link to your friends will be of great help! As I mention at the beginning, this is not an Ubuntu To...

Find which devices are connected to our network

Sometimes, we want to know how many devices are connected to our network. With any Unix OS you get easily know this. For this small tutorial we´re going to use Lubuntu 16.04. We will use nmap. Nmap (Network Mapper) is a security scanner. It is used to discover hosts and services on a computer network. For installing it, we first do sudo apt-get install nmap If we just need to identify the host names  sudo nmap -sL 192.168.0.1/24  The result of this command will be Starting Nmap 7.01 ( https://nmap.org ) at 2016-10-02 12:39 CST Nmap scan report for 192.168.0.0 Nmap scan report for 192.168.0.1 Nmap scan report for 192.168.0.2 Nmap scan report for 192.168.0.3 Nmap scan report for 192.168.0.4 Nmap scan report for 192.168.0.5 If we need to know the OS of the devices we have connected we do a: sudo nmap -O 192.168.0.1/24 The address 192.188.0.1 depends of your network, you should do a ifconfig for knowing yours. The result of this command will be something l...

Using the calculator in the terminal

Hi to all, this is a small issue I had the last days. Use a calculator in the terminal. I have been working and sometimes need to do an arithmetic operation so I decided to open  calc (Ubuntu Calculator Default). But I was wondering, there has to be a way to use a calculator in the CLI. So after some search in the engine I found this question in Ask Ubuntu and tried several options. I will only write about the  best solution I found for my needs. In the question, you can find several solutions and probably you will find a different solution that will be best for you. CALC (Arbitrary precision calculator) Calc is an arbitrary precision arithmetic system that uses a C-like language. Calc is useful as a calculator, an algorithm prototyper and as a mathematical research tool. More importantly, calc provides one with a machine independent means of computation. Calc comes with a rich set of builtin mathematical and programmatic functions. If you want to install calc you c...

Install Screencloud in Ubuntu 16.04

One of my favorite applications for taking screen shots in Ubuntu is Screecloud unfortunately there's no version available for Ubuntu 16.04. Searching in a github wiki, I found a discussion on running Screencloud at our own "risk" in Ubuntu 16.04. If you want to read the thread in github: https://github.com/olav-st/screencloud/issues/204 Steps for installing Screencloud at your own "risk" Ubuntu 16.04 Download libqtmultimediakit1 wget http://de.archive.ubuntu.com/ubuntu/pool/universe/q/qtmobility/libqtmultimediakit1_1.2.0-1ubuntu2_amd64.deb sudo dpkg -i libqtmultimediakit1_1.2.0-1ubuntu2_amd64.deb sudo apt-get install -f We need to modify our source list sudo nano /etc/apt/sources.list   We add the following line to the end of the file deb http://cz.archive.ubuntu.com/ubuntu wily main universe We install screencloud   sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_15.10/ /' >> /...

VII Central America Free Software Summit

I just want to clarify this event happened on August. But we were a small group organizing the event and this was a completely volunteer event. What is the VII Central America Summit ? Central American Free Software Summit is a space of articulation, coordination and exchange of ideas between Free Open source Software (FLOSS) communities that make up the SLCA agreements and strengthening ways of working together to facilitate and promote the use of Free Software development in the region(Central America). Objectives of the Event Strengthening the processes of social awareness, philosophy, and policy of Free software in Honduras and Central America. A multidisciplinary space that will allow managers of social projects and achieve regional politicians present their initiatives and manage contact network collaboration and / or support. Create an educational application during the hackathon that will take during the event, this app will benefit the 7 countries of Central...

Ubuntu is part of the Google Code In

Yesterday I received an email that make me happy! I received an email from an Ubuntu Mail list, that was almost dead. In few words, the email said Ubuntu is going to be part of the Google Code In . This are great new! But why I have a lot of interest that Ubuntu is part of the GCI? Well. the first time I listen about the Google Summer of Code and Google Code In, was on 2010 . Ubuntu was part of the GSOC and I was on college, months later the GCI began, unfortunately I was to old (18 years). So I began my work on trying to be part of this program. I tried on 2011 and failed with KDE , 2012 with New Vision for Public Schools and in 2014 I finally did it with the BeagleBoard.org ! This year I help the BeagleBoard.org as a co-mentor and I'm planning to help Ubuntu for this Google Code In as a mentor. For my surprise I have an old friend working on this, the great  José Antonio Rey . If you want to help join the irc: #ubuntu-google on freenode   or the mail li...

Project #1 Ubuntu 2015 Idea!

I'm trying to access my information from my Android on Ubuntu through MTP and I can't. There're several solutions on the forum, but I can't . So I decided to connect ssh to my phone. Problem #1 appears. I forgot the arguments of the nmap tool :( After searching on the web I find then. For getting all the ip address of the devices connected to my network nmap -sP 192.168.0.1/24 For getting the OS and more information nmap -O 192.168.0.0/24 Cool, but what's Project #1 Ubuntu? Well I just thought it will be cool to have a small gadget for getting this information, instead of using the CLI. So the project will consist on developing a gadget for getting this information. I started with Step #1 Get the idea, Now I will begin working on this idea, and let you know how it goes.

.Net goes open source

This is quite a surprise. I just read Miguel de Icaza's Blog   about Microsoft is open sourcing .NET. Part of Miguel de Icaza article Today, Scott Guthrie announced that Microsoft is open sourcing .NET. This is a momentous occasion, and one that I have advocated for many years. .NET is being open sourced under the  MIT license . Not only is the code being released under this very permissive license, but Microsoft is providing a  patent promise  to ensure that .NET will get the adoption it deserves. The code is being hosted at the  .NET Foundation's github  repository. This patent promise addresses the historical concerns that the open source, Unix and free software communities have raised over the years. http://tirania.org/blog/archive/2014/Nov-12.html What do you think about this?

Central America is discovering BeagleBoard!

The title is clear enough! I was on the VI Encuentro Centroamericano of Software Libre and gave a presentation about what is Beagleboard.org and showing some small demos of the BeagleBone Black. Important refereces about Central America and Open Hardware/Single Board Computers & Microcontrollers All of this data is according to what people said on Panama. Arduino it's used in 6 countries of Central America as part of their computer science studies or electrical engineer Raspberry Pi is also use on the 7 countries of Central America Just 2 countries of Central America have listen about the BeagleBone Black. (Costa Rica & Honduras) Just 1 country of Central America has work with a BeagleBone Black. (Honduras) What was my talk about? Basically my talk was about, what is the Beagleboard.org community and the Beaglebone Black. I did a presentation on HTML explaining the BeagleBoard.org history and goals. Check the presentation here I show some slides of Jason ...

In the Encuentro Centroamericano de Software Libre!

Currently I'm on the city of Chitre in Panama for the VI Encuentro Centroamericano de Software Libre . This has been an excelent experience. I met several friends and community members I meet on the Primer Encuentro Centroamericano in the city of Esteli Nicaragua and of course new persons from central america. Something new the ECSL has, is the presence of several recognize people of the open source community. We had the presence of Ramon Ramon , a famous blogger in the latin america. Guillermo Movia Community Manager for Latin America for Mozilla and other people of the Open Source Community in Central America. I'm going to write in future post about my presentation of the BeagleBoard.org and other talks I have with the Mozilla people. By the way I got the opportunity to know Jorge Aguilar founder of the Mozilla Community of Honduras. Some images . If you want to read this presentation in spanish click here .

My experience of the Google Summer of Code

I know the program ended, almost a month ago. But I haven't had the opportunity of sharing my thoughts of the GSOC 2014. This summer, I coded for the BeagleBoard.org organization. It was a great experience. It was my third time trying to be part of the GSOC, and finally I was accepted. The main idea of the project is a platform for viewing and creating tutorials. You can see it here . Right now I'm working on migrating this to Jekyll . This is the next step the BeagleBoard community is taking. After the program finish I convinced Jason Kridner cofounder of the BeagleBoard.org to give a small hangout about what's BeagleBoard.org, talk about the Beagle Bone Black and his view of the organizations. Why I decide to talk with Jason, so he can give a talk? Well for motivating more Honduran students to involve on the open source moment. I was the first Honduran Student, that was part of the Google Summer of Code . Hope this motivates more Honduran student.

How I miss you Synaptic!

Several years  have passed since we saw the Synaptic included in Ubuntu. You can found reasons here  . So in a clear english the reason was to have a better add/remove program for users. A friendly application. The explanation sounds good, I didn't complain about that, until right now. Ubuntu has change a lot, it's really a friendly user OS. I have use CLI when necessary, but today I couldn't believe it. I'm a Google Chrome user, I know you will tell me it's not open source or I should use Chromium or FF. But no. I'm a user of Google Chrome, and many people also prefer Chrome over Chromium, so why it should be quite complex remove it? If Ubuntu wants to be more friendly user why you should use the terminal for removing one of the most popular web browsers? I could understand if is a browser few people use, a good reason. But not a popular browser, Chrome is one of the most popular browsers on the world! A screen shot of the Ubuntu Software Center, trying t...

Lets install Atom in Ubuntu 14.04

I just read that Atom the editor is going open source. So I just installed it and begin playing with it. Important. This is a beta version These are the steps for installing Atom in Ubuntu 14.04 First we need to install and configure nodejs. Install Configure We need to be sure that we have the following versions of install: node.js v0.10.x npm v1.4.x For doing this we do the following: Install Dependencies Install If you get an error like this one "/usr/local/share/atom/atom: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory" Do the following: Some images

I have been selected in the GSOC 2014

I know this is not an Ubuntu related post. But I really wanted to share to the Ubuntu Community that I was selected to be part of the Google Summer of Code 2014. Just a special thanks to Paul Tagliamonte (@paultag) told me to continue trying after not being selected last year. April 21st was a great day for me! I received an email from Google informing that my proposal was accepted. I will be working this summer with the BeagleBoard.org  organization. My project is to improve the on-board tutorial enviroment for BeagleBone with live running interactive examples. If you want to read more about the 7 projects of BeagleBone, you can read them here

Ubuntu Honduras in the FLISOL

Ubuntu Honduras was present in the   FLISOL San Pedro Sula There were several presentations in the FLISOL. Ubuntu Honduras team members talk about the following topics: What is Ubuntu Open Hardware C++ with Cocos2dx Backbone.js Besides the 3 speakers, there were members of Informatica Libre helping people installed Ubuntu and other GNU/Linux distributions to the people who wished to have a GNU/Linux version. There were aproximately 300 people in this event. Many of them were high school students. This event help students understand the importance of Free Software in our daily life. To know What is FLISOL? FLISOL, an acronym for Festival Latinoamericano de Instalación de Software Libre (Latin American free software install fest), is the biggest event for spreading Software Libre since 2005, performed simultaneously in different countries of Latin America. FLISOL San Pedro Sula (FLISOL SPS) This is a newspaper article talking about FLISOL The FLISOL ...

My BeagleBone Black has arrived!

Whoa! I have just unpacked my new BeagleBone Black. Right now I am want to test it. During this days, I will try to run Ubuntu on it. :) A special thanks to Jason Kridner for this board!