Day 13: Sharing files

I used the instructions in this post to configure shared directories.

Step 1: Install Samba:


sudo apt-get install samba samba-common-bin

Step 2: Configure the shared directory in the /etc/samba/smb.conf file.

I have inserted the following section to share the directory I had just created (/home/pi/share):


#======================= Share Definitions =======================

[pihome]

comment= Pi Home

path=/home/pi/share browseable=Yes

writeable=Yes

only guest=no

create mask=0777

directory mask=0777

public=no

Step 3: Set the password for smb


sudo smbpasswd -a pi

Step 4: Using it

In windows, I open a Windows Explorer and type the current IP address of my Pi (\\192.168.2.10).

Day 6: Configuring telnet

I wanted to open a terminal in the Raspberry Pi from Windows but Windows does not have a native SSH client. The fast fix was configuring Telnet. Although this protocol is not ciphered, I don’t think I would have a security problem using it in my home network.

Raspberry Pi

I followed this tutorial to configuring the Pi:

  • sudo apt-get install telnetd
  • Rebooted the Pi

Windows

Windows 7 kind of have the Telnet client but you need to “turn it on”:

Control Panel -> Programs -> Turn Windows features on or off

Windows-ControlPanel-Programs

Windows-Features-Telnet

Usually this installation is very fast and easy.

After everything was set up, I needed to find the IP address of the Pi. It can be done using the following command:

  • ifconfig

After that, I was able to run the terminal from the Command Prompt using the following command:

  • C:\> Telnet 192.168.2.28

Windows-Telnet

Amazing!

Day 5: Setting the time zone

In order to set the time zone, I used the following command:

pi@raspberrypi ~$ sudo dpkg-reconfigure tzdata

This program provides menus for selecting the proper time zone:

TimeZone

Although the Raspberry Pi does not have a Real Time Clock, it sets the time automatically when connected to the Internet. It is useful having the time properly configured when you save files as source code or pictures and move them back and forth to your desktop computer.

Day 3: Installing the system

The process is very straightforward. When the SD card is booted for the first time, NOOBS is executed showing the operating system options:

Raspbian Install

I chose the Raspbian because I think it would be easier for a beginner. I provided the information requested during the install process, including the password of the “pi” user.

When the system is booted, this password is requested.

Initially, the console interface in available. For start the Graphic interface, I use the following command:

pi@raspberrypi ~$ startx

After that, the following interface is presented:

Raspbian