Raspberry Pi: Some first steps to do

by Michael Urspringer - 20.02.2015

As I played around with the Raspberry Pi I saw that the VI editor was not working as it should. You were not able to use the cursor keys and the backspace key correctly. The reason is that normally Linux has installed VIM and not the original VI. So I first updated VI with the following command:

sudo apt-get install vim

After that I installed the Midnight Commander as I find it more comfortable than just using the command line:
sudo apt-get install mc

As my Pi will be reachable via the Internet  I do not want to have the standard user “pi” enabled. So I created a new user which also does not have sudo rights (in case someone gets access to my user password he still will need to have the root password in order to get root rights). So I used the following commands:
sudo adduser newuser 
sudo passwd root 

Now login again as user “newuser” and then change to root and disable the user “pi”:

usermod -L pi
Now define an alias for the “ls” command to display files and directories in the long format and wih some color coding. For that edit the files “/home/newuser/.bashrc” and “/root/.bashrc” and add the following lines at the end:
alias ls='ls --color=auto'
alias ll='ls -la'

By the way: To use the graphical programs of the Pi, you can start the LXDE-Panel with the command “lxpanel”. You will need a local XServer and XWindows redirection for that (I am using the great tool MobaXterm for that).
Tagged with:  

Leave a Reply

© 2000-2015 Michael Urspringer