Setting up the Raspi: Difference between revisions
| Line 56: | Line 56: | ||
* set incsearch | * set incsearch | ||
* set hlsearch | * set hlsearch | ||
Two-column view: Ctrl-w v. The scrollbind is: set scrollbind. Command ^w l goes to new split, and also ^w arrows work. | |||
Revision as of 13:07, 29 January 2022
Setting Up The Raspi
Establish Wifi, Bluetooth.
Credentials are pi@raspberrypi.local and raspberry. KiTTY seems to be a good terminal.
Set Up WiFi without Screen
Into root directory:
- Add an empty file called
ssh - Add a file
wpa_supplicant.confwhich includes
country=ee
update_config=1
ctrl_interface=/var/run/wpa_supplicant GROUP=netdev
network={
scan_ssid=1
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}Note the (Notepad++: Edit) EOL conversion UNIX.
https://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/
USB cable // Perhaps requires Zero
Connect via usb to gadget mode. After flashing RaspianOS. The following files are at boot-directory
- Modify
config.txt: adddtoverlay=dwc2 - Add an empty file called
ssh - Edit
cmdline.txt: Ensure that there existrootwait modules-load=dwc2,g_ether.
Now you can ssh pi@raspberrypi.local if the usb cable is plugged in.
Raspi and VIM
Vim-nox is the (enhanced) minimal vi editor. Does not have a GUI, but includes the mouse support, but not the clipboard. Install vim and vim-nox. Some different vim plugin managers are
- vim-plug. Minimalist. Load plug.vim when vim starts (.vim/autoload). Instructions to install at https://www.linuxfordevices.com/tutorials/linux/vim-plug-install-plugins
- vundle (updated 2019)
- pathogen
- dein.vim
- volt
- janus
- minpac
Some important thing in vim ~/.vimrc
- syntax enable
- set expandtab
- set tabstop=2
- set incsearch
- set hlsearch
Two-column view: Ctrl-w v. The scrollbind is: set scrollbind. Command ^w l goes to new split, and also ^w arrows work.