sudo apt-get install vim
Here is a nice list containing other flavors of vim that may better suit your needs. http://askubuntu.com/questions/281886/what-is-the-difference-between-the-different-vim-packages-available-in-ubuntu
To set persistent settings/preferences for vim, edit your .vimrc file in your root directory.
If you are not in your root directory or are unsure just type
cd
Now you are in the root directory go ahead an open the .vimrc file.
vim .vimrc
Now that the file is open you can edit the file by typing
i
This will put you in insert mode. You can move the cursor using the arrow keys. To true syntax highlighting on type
syntax on
The to exit insert mode, press the esc
key.
Then type the following and press enter
:wq
:
the colon proceeds all writing and quitting commands.
w
this says write the file(save your changes).
q
this tells the program to quit.
If you want to exit without saving use
:q
##Networking
###Set Static IP Address
Ethernet connection
http://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address
Note: While I didn't need to manually set the DNS server for the raspberry pi, I did end up needed to do it for my unraid server, so I thought I would add this. For DNS server we are going to use the Google Public DNS Servers. For IPvb4 these are 8.8.8.8
and 8.8.4.4
. If you need IPv6, they are also listed on the page listed.
WiFi Connection https://kerneldriver.wordpress.com/2012/10/21/configuring-wpa2-using-wpa_supplicant-on-the-raspberry-pi/ NOTE: You only need to do the first two steps, but I would complete the first step using the WiFi Configuration Tool under Menu-->Preferences of Raspbien(if that is you OS). This forum post helps if you have issues, https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=22660
http://askubuntu.com/questions/197628/how-do-i-find-my-network-ip-address-netmask-and-gateway-info
###Setup SSH https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh
###Setup VNC Need to flesh this out. http://elinux.org/RPi_VNC_Server https://www.raspberrypi.org/documentation/remote-access/vnc/ http://gettingstartedwithraspberrypi.tumblr.com/post/24142374137/setting-up-a-vnc-server https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc/using-a-vnc-client
###Start-Up Warnings http://raspberrypi.stackexchange.com/questions/22242/remove-maynard-and-cgroups https://www.raspberrypi.org/forums/viewtopic.php?t=87080
###Set Correct HDMI Resolution http://weblogs.asp.net/bleroy/getting-your-raspberry-pi-to-output-the-right-resolution http://elinux.org/RPiconfig#Video
###Install Chromium-Browser
- http://garyhall.org.uk/raspberry-pi-virus-protection.html
- https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
- http://serverfault.com/questions/612201/up-to-date-clamav-on-debian-wheezy-clamav-installation-is-outdated-log-message
- http://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey/386003
- https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/
- https://www.lassiemarlowe.com/tutorials/debian-apt-get-update-error-squeeze-updates-release-following-signatures-couldnt-verified-public-key-not-available/
- http://askubuntu.com/questions/351499/solution-to-no-ultimately-trusted-keys-found
- http://wiki.opensource-excellence.com/index.php?title=How_to_install_ClamAV
- http://askubuntu.com/questions/589318/freshclam-error-clamd-conf-file-not-found
- http://ubuntuforums.org/showthread.php?t=1907418
- https://wiki.archlinux.org/index.php/WPA_supplicant
- http://garyhall.org.uk/raspberry-pi-virus-protection.html
###Note-To-Self
- Don't try to rename default user from pi. Read warning here: https://darrenjw2.wordpress.com/2013/01/01/how-to-rename-the-default-account-on-the-rasp/ . TODO: Need to find good documentation on creating new user and locking out pi.