Setting up the Raspi: Difference between revisions
From wikiluntti
(Created page with "== Setting Up The Raspi == Establish Wifi, Bluetooth. Credentials are <code>pi@raspberrypi.local</code> and <code>raspberry</code>. [https://sw.kovidgoyal.net/kitty/ KiTTY]...") |
No edit summary |
||
Line 35: | Line 35: | ||
Now you can <code>ssh pi@raspberrypi.local</code> if the usb cable is plugged in. | Now you can <code>ssh pi@raspberrypi.local</code> if the usb cable is plugged in. | ||
== Raspi and VIM == | |||
<syntaxhighlight> | |||
sudo apt install vim | |||
sudo apt install vim-nox | |||
#Vundle | |||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |||
</syntaxhighlight> | |||
<code>vim ~/.vimrc</code> | |||
<syntaxhighlight> | |||
" Syntax highlight | |||
syntax enable | |||
" Tabs are spaces | |||
set expandtab | |||
" Number of spaces per tab | |||
set tabstop=2 | |||
" Search as soon as characters are entered | |||
set incsearch | |||
" Highlight search results | |||
set hlsearch | |||
</syntaxhighlight> | |||
https://stackoverflow.com/questions/18948491/running-python-code-in-vim | |||
https://scribles.net/enabling-python-autocomplete-in-vim-on-raspberry-pi/ | |||
Bundle 'Valloric/YouCompleteMe' |
Revision as of 23:16, 2 November 2020
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.conf
which 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
sudo apt install vim
sudo apt install vim-nox
#Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim ~/.vimrc
" Syntax highlight
syntax enable
" Tabs are spaces
set expandtab
" Number of spaces per tab
set tabstop=2
" Search as soon as characters are entered
set incsearch
" Highlight search results
set hlsearch
https://stackoverflow.com/questions/18948491/running-python-code-in-vim
https://scribles.net/enabling-python-autocomplete-in-vim-on-raspberry-pi/
Bundle 'Valloric/YouCompleteMe'