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:
[codesyntax lang=”text”]
[/codesyntax]
1 |
sudo apt-get install vim |
[/codesyntax]
After that I installed the Midnight Commander as I find it more comfortable than just using the command line:
[codesyntax lang=”text”]
[/codesyntax]
1 |
sudo apt-get install mc |
[/codesyntax]
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:
[codesyntax lang=”text”]
[/codesyntax]
1 2 3 |
sudo adduser newuser sudo passwd root logout |
[/codesyntax]
Now login again as user “newuser” and then change to root and disable the user “pi”:
[codesyntax lang=”text”]
1 2 |
su usermod -L pi |
[/codesyntax]
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:
[codesyntax lang=”text”]
[/codesyntax]
1 2 |
alias ls='ls --color=auto' alias ll='ls -la' |
[/codesyntax]
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).
Raspberry Pi: Some first steps to do