#RaspberryPi – 1st setup without monitor: auto connect to WiFi, enable SSH, rename, update and more!

Buy Me A Coffee

Hi!

Ok, let’s assume you did the tutorial and installed the latest raspbian image in an SD card. If you want to access and control remotely your device you may want to follow this steps.

Configure Wireless connection

In the SD Card, you need to create a file named [wpa_supplicant.conf] in the root of the SD card with the following information:

country=ca
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
 scan_ssid=1
 ssid=" Your WiFi SSID"
 psk="You amazing password"
}

The file content is very straight forward to understand. Main values to complete are [ssid] and [psk].

Once you put the SD card in the device and start the device, it will automatically connect to the configured WiFi.

Enable SSH

If you also want to enable SSH, you need to create a blank file named [ssh] to the main partition.

Once you put the SD card in the device and start the device, it will automatically enable the SSH service.

Find the IP address in your network

And that’s it, your Raspberry Pi will be connected to the Wifi and with SSH enabled. At this moment we can use a tool like AngryIp (see references) to detect the new device in the network

My new device IP is: 192.168.1.246

Access via SSH

I used to like Putty to connect to my device, however during the past months I’ve been using Windows Terminal and Powershell. In order to access the device I need to execute the command

ssh user@deviceaddress

and my data is

  • user: pi
  • ip: 192.168.1.246
  • password: raspberry

You can now start working with your Raspberry Pi !

Change Password

The default password for the device is “raspberry”, and as usual, it’s recommended to change it. In order to do this, in the ssh terminal, let’s access to the device configuration

sudo raspi-config

This will open the configuration for the device.

Option number 1 will allow us to change the password.

Rename the device

In the same Raspberry configuration tool, we can rename the hostname that our device will use for network operations.

Select the options

  • Network Options
  • Hostname

And define the new name for the Raspberry Pi device.

Expand FileSystem

Another important option in the configuration is to expand the SD disk.In the same configuration screen, select

  • 7. Advanced Options
  • Expand File System

Now we need to reboot and after the reboot the file system should have been expanded to include all available space on your micro-SD card. Reboot with the command

sudo reboot

Update the device

Of course, at this moment you should change your default password and update everything with a command like this one

sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'

Conclusion

And that’s it, we have our device updated and running with the latest software versions and we didn’t use a monitor! I’ll update this post frequently to make it relevant with my personal best practices.

Happy coding!

Greetings

El Bruno

References

My posts on Raspberry Pi

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware

#MacOs – Where is my Total Commander? fman es una gran alternativa a TC en Mac

Buenas !

En mis posts anteriores escribi sobre las alternativas que he encontrado en MacOS para aplicaciones como Paint y Putty. Si bien, ambas herramientas son muy importantes, no las uso tan a menudo como la del post de hoy: Total Commander.

Total Commander es una herramienta genial. Yo he utilizado TC desde que soy usuario de Windows, y eso son muchos años. La idea de tener 2 paneles con los archivos en una carpeta, y que desde los mismos se pueda copiar, mover, eliminar y mas con un solo clic, es genial. Además, he dejado de utilizar FileZilla como cliente FTP, ya que con TC tengo las mismas opciones directamente en la herramienta.

Nota: Soy consciente que la idea de 2 paneles de vista de archivos es anterior a Windows. Algunos compañeros del metal me mostraron demos de Norton Commander, que parece que era una herramienta imprescindible en esos días.

Norton Commander 5.51

Pues bien, llega el momento de buscar alternativas y para eso lo mejor es https://alternativeto.net/, La búsqueda de alternativas para Total Commander se puede ver en este link (incluyendo las de MacOS) https://alternativeto.net/software/total-commander/

He utilizado algunas durante las últimas semanas y la que más me ha gustado ha sido fman. He aquí algunas razones

  • La app es simple. No tiene nada que no deba estar allí, con una UI simple y minimalista.

01 fman simple view

  • Utiliza las mismas teclas que Total Commander para copiar, mover, eliminar, etc. Esto es un plus importante ya que la memoria en los dedos ayuda y mucho. (siend que no hay tecla Fn en MacOS)

03 fman keyboard

  • Lo mismo con las teclas de dirección y la tecla BackSpace (Delete) para navegar al folder anterior.
  • Cmd & P abre una ventana de búsqueda muy útil.

02 fman quick search

  • Soporta plugins. Hay una lista interesante de plugins aquí: https://fman.io/docs/plugins y esto también me da la oportunidad de mejorar mis conocimientos de python.

Y por último, es barata! Le voy a dar un mes de prueba (todo Marzo) y luego adquiriré una licencia.

Kudos para Michael Hermann (@m_herrmann) el creador de la App, que parece que como yo, al venir de Windows con TC se encontró con la necesidad de algo similar en MacOS y lo creo!

Happy coding!

Saludos @ Toronto

El Bruno

Resources

My posts on experiences in Mac from a Windows user

#MacOs – Where is my Total Commander? hey, the amazing fman is a great alternative!

Hi !

In my 2 previous posts I shared my experiences looking for alternatives to Paint and Putty in MacOS. Both tools are very important, however are not as frecuently used as this one in Windows: Total Commander.

Total Commander is amazing, that’s it. I’ve using TC since I’m using Windows. The whole idea of 2 file panels where you can easily copy and move files between the panels is great. Also a single click to edit or view a file is a very powerful option. I’ve even stopped using FileZilla for FTP actions, because TC has an amazing and powerful embedded FTP client.

Note: I know that the 2 file panel concept is much older than windows. Some colleagues show me old demos of Norton Commander, which seems to be an awesome product back on those days.

Norton Commander 5.51

So, now that I know the website https://alternativeto.net/, I searched for alternatives to Total Commander for MacOS. This is the direct link for a set of alternatives https://alternativeto.net/software/total-commander/

I’ve used a few during the past weeks, and I finally decided to use fman as main file system tool in MacOS. And there are a couple of reasons for this.

  • It’s very simple. Does not have any additional or silly features, it has an amazing and simple user interface.

01 fman simple view

  • It also uses the standard keys for copy, paste and more actions like Total Commander. My hand memory is very useful here.

03 fman keyboard

  • Same with arrows keys and backspace to get back to previous folder.
  • Cmd & P opens a very powerful search bar. I really like this feature.

02 fman quick search

  • And it also support plugins. There is a full ecosystem of plugins here: https://fman.io/docs/plugins and this also give me chance to improve my python skills.

Finally, it’s cheap! I’ll give this a try during march and then I’ll get a license. And kudos to Michael Hermann (@m_herrmann) who created this tool after moving to MacOS from Windows and be used to use Total Commander.

Disclaimer: I won’t share the name of the products I’ve tried and not liked. There are a few of them.

Happy coding!

Greetings @ Toronto

El Bruno

Resources

My posts on experiences in Mac from a Windows user

#VS2017 – #VisualStudio2017 will automatically refresh a project, if you add / copy files using the #FileSystem

Update: This is a feature supported in Visual Studio 2017 for .Net Core projects.

Hello!

This days all the news will be around the Build event. This event usually brings many important innovations for Microsoft Developers and for Developer Products. On the 1st day of build, the biggest developments announced were around Azure and Artificial Intelligence.

There are many Blogs which cover this news, so I’m going to focus on a functionality that we can use in the latest version of Visual Studio 2017:

When new files are copied to the directory of a .net project, Visual Studio 2017 adds the files automatically to the project in that directory.

Let’s look at this in operation where I copy a class called [Class2.cs] from a directory to the project directory, and in few seconds the class is part of the project in question.

2017 05 11 VS2017 Copy Files 02

A cool thing about this is that it works when we copy / add multiple files, or subdirectories within a project. The following animation shows how copying a class to 2 different directories, the IDE adds these directories to the new file as part of the project.

2017 05 11 VS2017 Copy Files 03

This functionality is really useful in scenarios where you add / remove / move many files between different projects. Usually this is not a problem, although when the time comes to sync with a Source Control provider, headaches usually appear.

Happy Coding !

Greetings @ Toronto

El Bruno

#VS2017 – Ahora cuando copias archivos en el File System, Visual Studio refresca automáticamente los proyectos

Update: Esta funcionalidad esta disponible en Visual Studio 2017 para proyectos del tipo .Net Core.

Hola !

Estamos en días de Build y eso suele traer muchas novedades importantes para los productos de desarrollo de Microsoft. En el 1er día de Build, las mayores novedades giraron alrededor de Azure e Inteligencia Artificial.

Hay muchos blogs que cubren esta noticia, yo me voy a centrar en una funcionalidad que podemos utilizar en la última versión de Visual Studio 2017:

Cuando se copian nuevos archivos en el directorio de un proyecto .Net, Visual Studio 2017 agrega los mismos automáticamente al proyecto en ese directorio.

Veamos esto en funcionamiento donde copio una clase llamada [Class2.cs] desde un directorio al directorio de proyecto, y en pocos segundos la clase es parte del proyecto en cuestión.

2017 05 11 VS2017 Copy Files 02

Lo interesante de esta funcionalidad es que funciona cuando copiamos varios archivos, o a subdirectorios dentro de un proyecto. La siguiente animación muestra como copiando una clase a 2 directorios diferentes, el IDE agrega estos directorios con el nuevo archivo como parte del proyecto.

2017 05 11 VS2017 Copy Files 03

Esta funcionalidad es realmente útil en escenarios donde agregas / mueves muchos ficheros entre diferentes proyectos. Usualmente esto no es un problema, aunque cuando llega el momento de sincronización con el Source Control, suelen aparecer los dolores de cabeza.

Happy Coding !

Saludos @ Toronto

El Bruno