SD setup

Base SD card build instructions

I have just listed [in one place] the build process I go through with a new SD card to make a ‘clean’ system

  1. Quick format the SD card – using SD Formatter
    1. Set format size adjustment to ‘on’
    2. Quick Format
  2. Copy latest NOOBs files on SD card – simply drag and drop
  3. Boot in a Rpi – remember if using NOOBs lite you need to be connected to a wire internet connection
  4. Run raspi-config
    1. Set over clock to high
    2. Make sure SSH is on
    3. Set to boot straight in GUI
    4. Enable camera – if relevant
    5. Setup time to London – use ‘internationalisation’ menu option
  5. Reboot
  6. Run apt-get  update and upgrade
  7. Reboot

Wifi setup

  1.  Scan and setup wifi using Setup application
  2. Run ‘ifconfig’ to check ip address [ write it down !]
  3. Disable power WIFI power saving mode and check hardware is 8192 [or clone]
    1. cat /sys/module/8192cu/parameters/rtw_power_mgnt
    • 0 = Disbabled
    • 1 = Min
    • 2 = Max
  4. c=Create a file: sudo nano /etc/modprobe.d/8192cu.conf
  5. Add following lines:
    • # Disable power saving
    • options 8192cu rtw_power_mgnt=0
  6. save and reboot
  7. check the status to confirm it is off with:
    1. cat /sys/module/8192cu/parameters/rtw_power_mgnt
    2. It should be 0 now
  8. Disconnect wired Ethernet connection and reboot
  9. Check internet connection is working ok through wifi
  10. Check you can connect using SSH

VNC setup

  1. Install tightVNC
    1. sudo apt-get install tightvncserver
    2. vncserver :1 -depth 24 -geometry 800×600
  2. Setup VNC to autorun on startup             [note only works if you boot directly to GUI]
    1. $ cd /home/pi
    2. $ cd .config
    3. $ mkdir autostart
    4. $ cd autostart
    5. $ nano tightvnc.desktop
      • [Desktop Entry]
      • Type=Application
      • Name=TightVNC
      • Exec=vncserver :1 -depth 24 -geometry 800×600
      • StartupNotify=false
  3. Ctrl x and then y to save
  4. Check you can connect ok with VNC client on PC

Unwanted stuff

To get rid of apps I don’t use and create a bit more space

  1. sudo apt-get purge wolfram-engine
  2. sudo apt-get purge libreoffice*
  3. sudo apt-get clean
  4. sudo apt-get autoremove

 

Advertisements