Session 2 : C programming

We are going to learn programming in C in Linux with nano, the first thing that we had to do was create a directory called part-1 and there create a file with the command touch called hello_world_1.c but before we try to open it with nano we have to install obviously nano

fi1.pngNow, we are ready to open the file with nano, just type nano hello_world_1.c

fi2

First  gcc -c hello_world_1.c compiles hello_world_1.c into a machine code file named hello_world_1.o and then links hello_world_1.o with some system libraries to produce the final program hello_world_1.exe in this case

ccccc.png

So, finally we can run this first example with ./hello_world_1.exe

fifififi.png

Now we will create in part-1 the directory called example-02 and there create the file hello_echo_1.c

2

Open it with nano and type all this

ya

Then we are going to do the same thing that we did in the first example

4

And finally we can run hello_echo_1

6

We wanted to upload to our repository in github just the files which have the code, so we create the hidden file .gitignore

7

with vi we type this

8

then we notice that we have it with the command ls -a to show the hidden files

9

Now in another directory called example-03 we are going to do the example 3 called hello_strings_1.c , in the picture I was wrong with the name so I renamed it with the command mv

12

Now type all this for the example

13

We have to the files .o and .exe to run our program and this will be the output

14

For the fourth example, we are going to do something new, create the file Makefile and also create the program called hello_structs.c

1

We open Makefile and type this to replace our command gcc

2

Now open the file hello_structs_1.c and type this

3

4

We said that with Makefile we are going to replace gcc, so now we will type make clean to remove our file .o and .exe, for that reason when we type ls -1 we have only two files hello_structs_1.c and Makefile, then with make we are going to create .o and .exe files and finally with make run we have the output of the program

5

And that’s all, we have to upload it in our repository 6

You can visit my repository here.

Upgrading to Fedora 27 Beta

Fedora 27 Beta was released last week and we are going to upgrade our fedora 26 to fedora 27 Beta. We can see our fedora release with this command

3

Then with the following command we are going to tell to the Software application for detecting the availability of a prerelease, in this case Fedora 27 Beta.:

1

And if you don’t want to wait for the Software service to refresh its information, you can force it to do this with this command:

2

Now open the Software app. Click on the Updates tab. After a short time or also if the update is not there you have to restart your computer, then the Software app retrieves fresh information about the prerelease.

Use the Download button to download the upgrade data for Fedora 27 Beta. Finally we have to follow the steps to reboot and install the upgrade, which will take a lot of time. When your system restarts after the upgrade, we can check that certainly we have fedora 27 😀

fiiiii.png

 

First session of GSoC Training Road to 2018

We met in the classroom 314 at the UIGV to start the first session of GSOC Training, I noticed that all the guys in the classroom were very enthusiastic about the GSOC, all of us want to apply to this program and be one of the winners.

Google-Summer-of-Code-March-3-2017

We are students from differents universities in Peru like UNI, UNMSM, UNTELCS, UPIC, PUCP, and we are in the proccess of learning about linux and programming.

It’s important to know about the history of the free software because we need to know the philosophy to share with other people and help other people to be involved in free software, for that reason our trainer Julita Inca was telling us how it begin and how it were growing at time.

For that reason before you start to get involved in this world of free software you have to remember all the time this simple four tips:

0.  Freedom to run the program as you wish.
1. Freedom to study the source code of the program and then change it so the program does what you wish.
2. Freedom to help your neighbour. That’s the freedom to redistribute the exact copies of the software when you wish.
3. Freedom to contribute to your community. That’s the freedom to distribute copies or modified versions when you wish.

richard-stallman-barcelona_1_carrousel_bootstrap

The first thing we are going to do is learn some basic commands on linux. We start with the command pwd: print working directory, to know where we are located in the computer

unnamed

then we use cd to move another directories, ls to show the directories and archives and pwd to know where we are located

image

one thing I didn’t know was that with the command ls -a we can see the hidden archives and those are identified with a dot after them, also we can create hidden archives putting a dot after the name of the archive. For example I clone a repository called Linux in mi computer and when you clone a repository, it create a hidden archive called .git

image (1)

It’s also important to know how to manage the content of an archive, so you can edit it, that’s why we started to see how to manage vim.

Some examples here:

 

There are a lot of commands in Linux and for the end of the day I think that we won’t never know everything about it but fortunately we like the challenges so we can keep it in that way of continue learning.

 

Thanks to all the guys in the group and to our trainer Julita 😀

 

Challenge JHBuild: Complete :)

Hi everybody, yesterday I installed JHBuild in my laptop.

Today I’m going to talk about this experience and I want you to know the mistakes that I’ve made installing JHBuild.

Well, the first thing that I had to do is to clon the JHBuild in the terminal of Fedora 23 with this command git clone git://git.gnome.org/jhbuild

Here we have some screenshots:1.jpgBefore that, I had to put this command ./autogen.sh2.jpg

 

And there were 4 warnings telling me that was missing the aclocal, automake, autopoint and yelp-tools, in this part we didn’t know how to solve this warnings, but Julita had an idea, she suggested us to install all of them and we started with yelp-tools 

3.jpg

Then we wrote again ./autogen.sh to check if it was solved and it was 😀 so we expected that for the rest of them

4.jpgWe wrote sudo dnf install automake and it solved two (autoconf and automake) by one command, that was great5.jpg

But, we had a problem with the last one because there wasn’t a package called autopoint, at first we were dissapointed hahaha but we talk with Martin and he told us to write the package gettext-(the part that was missing) and it worked!! Thanks Martin 🙂

4.1.jpg

6.jpg

 

And when it was done we wrote again ./autogen.sh  and there wasn’t warnings anymore :3 and finally the  terminal said that I had to write make to compile jhbuild and here we can see that I did.

7.jpg

Then we have to write jhbuild sanitycheck, and we have to look for the packages that are missing and we did that, you can see in this screenshots

8.jpg

9.jpg

10.jpg

Before we installed all the packages, we have to write again jhbuild sanitycheck and nothing appeared so it means that it’s ok 😀

11.jpg

Then we have to write jhbuild build to see which packages are missing, in my case there were about 50 I think, so I have to look for them and also installed them, it takes a long time 😦

Also if you want to see the packages that are already installed and the optional packages you have to write jhbuild sysdeps instead of jhbuild build.

And gtkspell3 was the last one 😀

12.jpg

Finally when I installed the 50 packages 😀 I was ready to use  this command jhbuild build pygobject

13.jpg

When it was complete, in spanish ÉXITO, it means sucess!

14.jpg

Now, finally we are ready to do things like this example 😀

15.jpg

I hope this post could help who wants to install JHBuild 🙂 That’s all for now, thanks for reading 😀

 

 

Hack Camp 2016!

Hola, hoy les contaré acerca de lo que fue el HACKCAMP 2016 auspiciado por GNOME y FEDORA. Estaba muy emocionada con la idea de poder conocer mucha gente con las mismas ganas y talento para poder seguir en esta experiencia,y realmente fue asi, en el campamento conoci gente muy genial, como Christian, Ana Lucía, Erick y Angel que es un amigo de mi universidad.

P1010851.JPG
A la izquierda Analucia, derecha Angel, yo al centro 🙂

Primero debimos encontrarnos en el terminal de PerúBus para poder abordar los carros e ir camino a Chosica donde se realizó este fin de semana el HackCamp 2016.

En mi casa estaba organizando todas mis cosas, fue un poco complicado porque tenia que verificar que todo estuviese dentro de mi mochila (laptop, cargador, extensión, repelente, bloqueador, ropa de baño, sleeping, toalla, jabón,etc.) a pesar de que eran solo 2 dias, parecia que habia hecho mi mochila para un viaje de 1 año!

Quedé con mi amigo Angel para ir juntos y asi fue, nos encontramos en el Metropolitano y me di con la sorpresa que él también habia hecho su mochila como si se fuera por muchos dias jajaja incluso estaba peor que yo.

Llegamos y nos juntamos con Christian que es un chico muy inteligente, estudiante de la Universidad Nacional del Callao, el cual nos habia sorprendido mucho por su talento pues fue el primero en instalar Fedora en la primera sesión, estuvimos hablando y fue genial poder compartir nuestras experiencias y nuestras expectativas respecto a este proyecto.

Luego de eso también nos unimos con Ana Lucía, que es una chica que estudió en la Universidad de Ica, fue parte de Laboratoria (grupo de chicas coders) y dicho sea de paso una excelente persona y seguimos esperando a los organizadores del evento para poder enrumbar a Chosica.

Lamentablemente los 4 no estabamos en el mismo equipo pero fue una buena manera de poder conocer a los demas y asi fue como también conocimos a Erick en el camino hacia el campamento, haciendo bromas, y contando historias de terror 😦

Cuando llegamos, aproximadamente a las 10:30 pm, nos tomaron lista en la puerta y pudimos pasar, estaba todo muy oscuro y peor que habiamos estado contando historias de terror se sentia mas terrorifico. Pero nada de eso, nos dirijimos un poco mas adentro del club, instalamos nuestras carpas P1010823

P1010830.JPGy tomamos un lonche con todos los chicos del campamento, estabamos cansados asi que dormimos para tener muchas energias el dia siguiente y al despertar empezamos con fuerza

P1010827

pues nos reunimos en grupos para poder hacer la canción, mi grupo que era el grupo “Amarillo” ganó con esta canción.

“Tengo todo lo que quiere Julita. Hice el post y me puso en la lista. Ahora tengo problemas con Windows, ya que importa, ahora uso Linux, ¿donde estan las que compilan?, y ya está el ISO, mueve el gnome, mueve gnome, mueve el gnome…

Yo sé que te gusta, yo sé que te encanta, metele Fedora, JHBUILD instala! 😀 ”

P1010839

Fue muy divertido ese juego, cada grupo hizo también su canción y todos fueron muy originales, luego del juego todos nos sentamos a escuchar la experiencia de los mas antiguos y realmente fue gratificante, siento que cada uno se identifico con los demas en cuestión a ideales y las cosas que queriamos lograr despues del camp.

P1010850.JPG

despues de eso fuimos a la piscina P1010853.JPG

12799020_10206907925629172_6337093114144740474_n.jpg

y jugamos hasta mata gente con una pelota de futbol dentro de la piscina, luego preparamos las cosas para poder jugar TORTA EN LA CARA, nos sentamos dos a dos frente a frente,el juego consistia en que un organizador hace una pregunta y el que respondia mas rapido y correcto ganaba y le tiraba un tortazo al otro que estaba al frente suyo, mi contrincante respondió mal y me salvé del tortazo hasta el momento pero luego todos jugamos todos contra todos y ninguno se salvo T-T

12814748_10206907843147110_1728314160721519413_n.jpg

Comimos un chaufa que estaba muuuuy rico, y estuvimos conversando de las cosas que nos gustaria hacer mas adelante con lo que estamos aprendiendo ahora y senti que me identificada con todas y cada una de las chicas del campamento, de hecho aqui una foto en la que aparezco comiendo con el grupo 🙂

10357525_10206907856307439_5494041297989393054_n

Al dia siguiente ya teniamos que partir nuevamente a Lima, pero ya habiendo compartido una gratificante experiencia con todos ahi en el campamento, conocimos gente increible y con las mismas ganas de hacer cosas grandes en este mundo, en particular saber que existe gente que tiene el mismo deseo de superación , las ganas de hacer proyectos grandes y generar un impacto muy fuerte en miles de personas me impulsa a querer seguir aprendiendo por mi cuenta, ayudando a los que necesiten y perseverar con mis sueños, realmente agradezco a todos los chicos que he conocido en el HackCamp, especialmente a los organizadores del evento por motivarnos a todos, de hecho en el transcurso del tiempo nos mantendremos en contacto para seguir aprendiendo, MUCHAS GRACIAS :D!!

P1010835.JPG