Switching from Ubuntu to Fedora

Any time I have to install Fedora in a machine is a new adventure because all the hardware nor software is the same. In this opportunity I will configure a machine which has Ubuntu on it and change it to Fedora 26.

Inserting the Fedora ISO

I used a bootable USB that my friend Solanch have prepared before and immediately the option to install Fedora was shown in the first place:

Fedora can be tested before installing and you can try GNOME that has as a default Linux Dektop:

General configuration

In my case I will set up the language in English to improve my English skills, you can select Spanish, French or the language you prefer:The four basic options to configure are displayed as follow:In my case I will choose Spanish and English keyboard configuration, since I am working on hardware with a Spanish presentation.I’m now in Lima, Peru; Time and Date are going to be defined by this locationThe network and hostname can be set in this moment or edited later:Configuring Partitions

This machine has 500GB HDD and 4GB of RAM; and according to the Red Hat recommendation, we are going to set four partitions: /boot/efi, swap, / and /home. This is what we had with Ubuntu, swap of 7.45GiB and more of 200GiB of ext4Free those partitions in order to set up the new ones:Now delete the Ubuntu scheme partitioning, including the swap and bootThen, this is the new Fedora scheme we are going to apply to use the diskNow, apply the changes to save the new schemeFinally the disk is able and configure to install Fedora 🙂Waiting until the installation finished

The password of a user and password can be set while we are waiting for the installation of Fedora 26first for the rootNow for an administratorWait until a messge of Finish is shown:The Quit button turns in blue and then take out the USB to enjoy Fedora 😉

Posted in FEDORA, GNOME, τεχνολογια :: Technology | Tagged , , , , , , , , , | Leave a comment

Behind the Scenes of the FWD Lima, Peru

It is only a week for the event that pretend to congregate IT women in Lima, Peru. We are not restricting by age or education level, we want to gather women interested in Linux. Our projects that are going to be presented are Fedora, Git, GIMP, Python and GNOME. We have more than 200 people interested and 80% of female are registered.

As a general coordinator of the event, I care about every single detail. Thanks to @bee for her constantly and proactive remotely support and @chhavi for the help with the design. The stickers were delivered in time thanks to the Diversity Team of Fedora!

Our group had previous sessions to enhance our knowledge and experiences to share in the venue next Saturday at PUCP since 8:00 a.m. Special thanks to Solanch Ccasa! ❤

The event is called FWD which stands for Fedora Women Day, but it is not exclusive only for women. Thanks also to guys that are helping us! Thanks Toto, Martin and Brunitos.

I hope we have more guys that will support our effort in promoting Linux in Lima, Peru.

Posted in FEDORA, GNOME | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Creating Notes with Node.js

The first step to develop a basic app to handle notes is to create a directory to gather all the files required.

We are going to create a package.json with the command npm initAdditional, some packages as nodemon, lodash and yargs that are going to be used: npm install nodemon -g, npm install lodash –save,npm install yargs –save

Then, create three module files to add, list, read and remove files. To add:Now we can import the modules to index:











Now we can test the program by adding a title and body to a note:As well as the addingNote, the file ListingNote and ReadingNote are created:


Posted in τεχνολογια :: Technology | Leave a comment

Accessing to a Server in Node JS

This time we are going to connect  to a server from the client side using NodeJS. Let’s use the http port 8088 to print the “Hello World” message:To print a content of a html file with a successful status: 200 and the port 3000 on http:GNOMEserver

Posted in τεχνολογια :: Technology | Leave a comment

Using Node.js Packages Manager (NPM)

NPM is a package manager for Node.js packages, or modules; it hosts thousands of free packages to download and use.

To begin with, npm init creates our package.json to manage packages that we are going to install such as lodash, mongo, nodemon, etc. Now, we can install the lodash module and export it whenever the index.js calls Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc. Lodash’s modular methods are great for iterating arrays, objects, & strings; manipulating & testing value and creating composite functions. We were now able to concatenate first and last to formulate a full name of each user, to finally filter by age greater than 23:Another useful module that can be installed with NPM is Nodemon which monitor for any changes in your source and automatically restart your server.nodemon

Now we can run nodemon on index.js to check the information about the file:

Posted in τεχνολογια :: Technology | Tagged , , , , , , , , , , , , | Leave a comment

Coordinating a FWD event

FWD stands for Fedora Women’s Day and our main goals is to attract more women in the FLOSS world, by using Fedora and GNOME.

As one of my duties in my country is teaching using Linux and I realise that only few women are interested in IT and if I found them… fewers are interested in using IT Linux.  In these pictures of my groups at UNI,  please see how much women we have:

even if I had interact with other researchers groups at UNI, I only found two or three more

Thanks to the invitation to other universities as a speaker, I was be able to contact with other IT enthusiactic, smart and pretty women students. And, after many efforts in months, we are going to present some work we got with Fedora and GNOME, and prove to others that we can do work in IT, using these Linux tecnologies:

Thanks to the Fedora Diversity Team to trust me the organization of the event in Peru, and special thanks to Chhavi for her patient in coordinating the design 🙂

The event is programmed to happen on September 30th at 08:00 am at PUCP LabV207, including a coffee break sponsored by Fedora. I am glad that so far, we have 32 going and 113 interested people in the event 🙂

Thanks to all people of the local community who are helping me to spread the event as wellThanks Giohanny, Solanch, Lizbeth, Azul, Sheyla, Chhavi and Geny for this! 😀

Posted in FEDORA, GNOME | Tagged , , , , , , , , , | Leave a comment

Writing Node.js Modules

There are crucial reasons to use JS modules such as Maintainability, Namespacing and Reusability, among others benefits.

I consider the hello greetings as a good start to understand how modules work. Write a module called hello.js to print a message that define the beginning of the hello.js module and to export a greeting by writing the reserved words module.exports. Then write a file called index.js to invoke the module required with its path. It can be a relative path as it is shown:Improving our hello.js module, it can accept any name to make a greeting:Names are accepted even though a number would have been instead of “Tux”. A common JS module validates information by checking the type of the parameter in a function. It can be written in the same hello.js file as follow:We are defining two modules in the hello.js file, one to print the greeting and the other module to validate the type of the name entered, in case we set the name as number 200, a message of “Please enter a valid name” is shown inmediately.

And because writing in all caps is considered to be shouting, we can create another module to convert the name in the message all in lowercase if the input was written in uppercase. Another file “lower.js” is used this time to export it into the index.js file:jsmodules2

Posted in τεχνολογια :: Technology | Leave a comment