ArduPilot / companion

Companion computer startup scripts and examples
GNU General Public License v3.0
104 stars 164 forks source link

Miscellaneous tips for RPI like board #12

Open khancyr opened 7 years ago

khancyr commented 7 years ago

Hi,

Here are some tips about performance and usability on card like rpi, odroid etc !

Give permission on external port

Add user to dialout and video group

For permission with udev rules sudo nano /etc/udev/rules.d/50-myusb.rules

KERNEL=="ttyUSB[0-9]",MODE="0666" KERNEL=="ttyACM[0-9]",MODE="0666"

Install new Irqbalance as sometime an old version is given or no version at all

Follow https://github.com/Irqbalance/irqbalance

Install cpufrequtils and use performance on all core

sudo apt-get install cpufrequtils sudo sed -i 's/^GOVERNOR=.*/GOVERNOR="performance"/' /etc/init.d/cpufrequtils

Reduce swapiness on system on sd card

sudo nano /etc/sysctl.conf sysctl vm.swappiness=10

Use Dash instead of Bash for less ram comsume, and faster cmd. And pretty transparent for normal task

sudo apt-get install dash sudo dpkg-reconfigure dash

Various Optimisations

Removal of /dev/tty 2 à 6 -> RAM ++

Probably must be adapted this is on odroid + ubuntu

sudo nano /etc/default/console-setup

modify : ACTIVE_CONSOLES="/dev/tty[1-2]"
Edit /etc/systemd/logind.conf and change value of NAutoVTs

To see the number of active term :

ps a | grep tty

Terminal removal : To disable console 3 , you can rename the file /etc/init/tty3.conf to /etc/init/t_t_y_3.conf.OLD (for example).

sudo mv /etc/init/tty3.conf /etc/init/t_t_y_3.conf.OLD

Other solution, look at inittab to remove them sudo su

sed -i '/[2-6]:23:respawn:\/sbin\/getty 38400 tty[2-6]/s%^%#%g' /etc/inittab

Purge system from unused default crap : apache, nodejs, cups, x11 etc. etc and reach 5s boot time ! ^^ (could give the list for odroid c1 if need)

MacDev240 commented 7 years ago

I would like the Odroid 3 list please.

On Tue, Jan 10, 2017 at 6:56 AM, khancyr notifications@github.com wrote:

Hi,

Here are some tips about performance and usability on card like rpi, odroid etc ! Give permission on external port

Add user to dialout and video group

For permission with udev rules sudo nano /etc/udev/rules.d/50-myusb.rules

KERNEL=="ttyUSB[0-9] ",MODE="0666" KERNEL=="ttyACM[0-9]",MODE="0666" Install new Irqbalance as sometime an old version is given or no version at all

Follow https://github.com/Irqbalance/irqbalance Install cpufrequtils and use performance on all core

sudo apt-get install cpufrequtils sudo sed -i 's/^GOVERNOR=.*/GOVERNOR="performance"/' /etc/init.d/cpufrequtils Reduce swapiness on system on sd card

sudo nano /etc/sysctl.conf sysctl vm.swappiness=10 Use Dash instead of Bash for less ram comsume, and faster cmd. And pretty transparent for normal task

sudo apt-get install dash sudo dpkg-reconfigure dash Various Optimisations Removal of /dev/tty 2 à 6 -> RAM ++

Probably must be adapted this is on odroid + ubuntu

sudo nano /etc/default/console-setup

modify : ACTIVE_CONSOLES="/dev/tty[1-2]" Edit /etc/systemd/logind.conf and change value of NAutoVTs

To see the number of active term :

ps a | grep tty

Terminal removal : To disable console 3 , you can rename the file /etc/init/tty3.conf to /etc/init/t_t_y_3.conf.OLD (for example).

sudo mv /etc/init/tty3.conf /etc/init/t_t_y_3.conf.OLD

Other solution, look at inittab to remove them sudo su

sed -i '/[2-6]:23:respawn:/sbin/getty 38400 tty[2-6]/s%^%#%g' /etc/inittab Purge system from unused default crap : apache, nodejs, cups, x11 etc. etc and reach 5s boot time ! ^^ (could give the list for odroid if need)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ArduPilot/companion/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBXUT8bcSQE8zbmBIPGKiL9BRjlp5u2ks5rQ44ZgaJpZM4Lfb_I .

khancyr commented 7 years ago

@MacDev240 this is for odroid C1 on ubuntu 14.04 ( last time I look they got clean 16.04 but it wasn't working...)

ubuntu 14.04

sudo apt-get purge openjdk-7-jre* java-common oracle-java8-installer chromium-* firefox* pidgin* evince* cups cups-browsed cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-driver-gutenprint cups-filters cups-filters-core-drivers cups-ppdc cups-server-common openprinting-ppds transmission* sylpheed* abiword* gnumeric* aria2 filezilla* docbook* avrdude audacious* valgrind snappy lynx gimp-data
sudo apt-get purge gstreamer0.10-nice gstreamer1.0-plugins-base-apps gstreamer0.10-plugins-base gstreamer1.0-plugins-base-doc gstreamer0.10-plugins-good gstreamer1.0-plugins-good gstreamer0.10-x gstreamer1.0-plugins-good-doc gstreamer1.0-doc gstreamer1.0-pulseaudio gstreamer1.0-plugins-bad-doc gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-x x11-common bluez gnome* lightdm x11proto* x11vnc-data x11-xfs-utils
sudo apt-get purge abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview accountsservice acl alsa-base alsa-utils anthy anthy-common apport apport-gtk apport-symptoms aria2 aspell audacious audacious-plugins:armhf audacious-plugins-data autopoint axel bind9-host blueman bluez bluez-alsa:armhf bluez-cups camorama chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra colord cups cups-browsed cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-driver-gutenprint cups-filters cups-filters-core-drivers cups-ppdc cups-server-common deadbeef dmz-cursor-theme docbook docbook-dsssl docbook-to-man docbook-xml docbook-xsl evince evince-common evolution-data-server-common extra-xdg-menus faenza-icon-theme fbset ffmpegthumbnailer filezilla filezilla-common file-roller flite1-dev:armhf fontconfig fontconfig-config fonts-arabeyes fonts-arphic-ukai fonts-arphic-uming fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-droid fonts-farsiweb fonts-freefont-ttf fonts-kacst fonts-kacst-one fonts-khmeros fonts-khmeros-core fonts-lao fonts-liberation fonts-lklug-sinhala fonts-lyx fonts-manchufont fonts-mgopen fonts-nafees fonts-nanum fonts-nanum-coding fonts-opensymbol fonts-sil-abyssinica fonts-sil-ezra
sudo apt-get purge fonts-sil-gentium fonts-sil-gentium-basic fonts-sil-padauk fonts-sil-scheherazade fonts-takao-gothic fonts-takao-mincho fonts-takao-pgothic fonts-thai-tlwg fonts-tibetan-machine fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree fonts-ukij-uyghur fonts-unfonts-core foomatic-db-compressed-ppds fuse libfontconfig1 libgtk2.0.0 libpango-1.0.0 libqt5widgets5 snappy transmission-qt transmission-cli foomatic-filters gir1.2* zenity-common yelp-xsl yasm xvfb xtrans-dev xsltproc xserver-common xscreensaver-data xscreensaver-screensaver-bsod x11-common xfconf xfce4-dev-tools xfce4-power-manager-data xdg-utils xauth xbitmaps xdg-user-dirs xkb-data xorg-docs-core xorg-sgml-doctools autoconf autoconf2.13 automake autotools-dev avr-libc avrdude binutils binutils-avr build-essential ccache cdbs cmake cmake-data comerr-dev command-not-found-data cpp cpp-4.8 desktop-file-utils dpkg-dev fakeroot firefox-locale-en flex bison g++ g++-4.8 gcc gcc-4.8 gcc-avr gconf-service gconf-service-backend gconf2 gconf2-common gdb gdebi-core genisoimage giblib1:armhf glmark2-data glmark2-es2 gnome-accessibility-themes gnome-desktop-data gnome-desktop3-data gnome-menus gnome-panel-data gnome-pkg-tools gnome-themes-standard-data gnumeric-common gobject-introspection gstreamer0.10-nice:armhf gstreamer0.10-plugins-base:armhf gsfonts
sudo apt-get purge gsettings-desktop-schemas gstreamer0.10-plugins-base:armhf gstreamer1.0-alsa:armhf gstreamer1.0-doc gstreamer1.0-libav:armhf gstreamer1.0-plugins-bad-doc gstreamer1.0-plugins-base:armhf gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-base-doc gstreamer1.0-plugins-good-doc gstreamer1.0-pulseaudio:armhf  gstreamer1.0-tools gvfs-common gvfs-libs:armhf hicolor-icon-theme hplip-data hunspell-en-us imagemagick-common java-common jade joe kerneloops-daemon ladspa-sdk laptop-detect lightdm link-grammar-dictionaries-en lintian linux-sound-base lubuntu-lxpanel-icons openjdk-7-jre ca-certificates-java aspell aspell-en fonts-dejavu-core lxmenu-data lxsession-data m4 make maliddx mc mc-data mesa-utils mesa-utils-extra metacity-common mircommon-dev:armhf mobile-broadband-provider-info modemmanager mysql-common nautilus-data netpbm obex-data-server openprinting-ppds p11-kit p11-kit-modules:armhf pastebinit pcmciautils pidgin-data policykit-desktop-privileges poppler-data printer-driver-c2esp printer-driver-foo2zjs-common printer-driver-min12xxw pulseaudio python-cups python-cupshelpers qpdf quilt rfkill samba-common samba-common-bin samba-libs:armhf sgml-base sgml-data sgmlspl smbclient sound-theme-freedesktop swig swig2.0 sylpheed-doc system-config-printer-common system-config-printer-udev t1utils transmission-common
sudo apt-get purge tsconf ttf-bengali-fonts ttf-devanagari-fonts ttf-gujarati-fonts ttf-indic-fonts-core ttf-kannada-fonts ttf-malayalam-fonts ttf-oriya-fonts ttf-punjabi-fonts ttf-tamil-fonts ttf-telugu-fonts ttf-ubuntu-font-family usbmuxd uvcdynctrl uvcdynctrl-data valgrind whoopsie wireless-tools wpasupplicant wvdial x11-xfs-utils xbmc xinput xserver-xorg-core xfce4-power-manager xfonts-100dpi xfonts-base xfonts-mathml xfonts-scalable xfonts-utils xinit xdg-user-dirs-gtk xdg-user-dirs xarchiver x11proto-xinerama-dev x11proto-xf86vidmode-dev x11proto-xf86dri-dev x11proto-xcmisc-dev x11proto-video-dev x11proto-record-dev x11proto-randr-dev x11proto-present-dev x11proto-kb-dev x11proto-dri3-dev x11proto-dri2-dev x11proto-dmx-dev x11proto-bigreqs-dev dictionaries-common libavc1394-0:armhf libavresample1:armhf libavutil52:armhf libbluetooth3:armhf libbluray1:armhf libbonobo2-common libbonoboui2-common libboost-atomic1.54.0:armhf libboost-chrono1.54.0:armhf libboost-date-time1.54.0:armhf libboost-serialization1.54.0:armhf libboost-system1.54.0:armhf libboost-thread1.54.0:armhf libbs2b0 libburn4 libcaca0:armhf libcamel-1.2-45 libcdaudio1 libcddb2 libcdio-cdda1 libcdio-paranoia1 libcdio13 libcdparanoia0:armhf libcdt5 libcec libcgraph6 libcogl15:armhf  libcolamd2.8.0:armhf libcolord1:armhf libcolorhug1:armhf libcompfaceg1 libcrack2:armhf libcroco3:armhf libcue1 libcups2:armhf libcupscgi1:armhf libcupsfilters1:armhf libcupsimage2:armhf libcupsmime1:armhf libcupsppdc1:armhf libdatrie1:armhf libdc1394-22:armhf libdca0:armhf libdirac-decoder0:armhf libdirac-encoder0:armhf libdiscid0:armhf libdjvulibre-text libdjvulibre21:armhf libdmx1:armhf libdrm-nouveau2:armhf libdrm-radeon1:armhf libdv4:armhf libdvdnav4:armhf libdvdread4:armhf libegl1-mesa:armhf libdrm-omap1:armhf libegl1-mesa-drivers:armhf libexo-common libexo-helpers libfaad2:armhf libfakeroot:armhf libfftw3-bin libfftw3-double3:armhf libfftw3-single3:armhf libflac8:armhf libfontembed1:armhf libfontenc1:armhf libframe6:armhf libfreetype6:armhf libfribidi0:armhf libfs6:armhf libftdi1:armhf libfuse2:armhf libgbm1:armhf libgck-1-0:armhf libgcr-3-common libgcr-base-3-1:armhf libgda-5.0-common libgdk-pixbuf2.0-0:armhf libgdk-pixbuf2.0-common
sudo apt-get purge libgdome2-0 libgdome2-cpp-smart0c2a libgeis1:armhf libgeoclue0:armhf libgeoip1:armhf libgif4:armhf libgirepository-1.0-1 libgl1-mesa-dri:armhf libgl1-mesa-glx:armhf libglapi-mesa:armhf libgles1-mesa:armhf libgles2-mesa:armhf libglib2.0-doc libglib-perl libgme0 libgmpxx4ldbl:armhf libgnome-keyring-common libgnome-keyring0:armhf libgnome-menu-3-0 libgnomecanvas2-common libgnomeui-common libgoffice-0.10-10-common libgomp1:armhf libgphoto2-port10:armhf libgraphite2-3:armhf libgs9-common libgsf-1-114 libgsf-1-common libgsl0ldbl libgsm1:armhf libgstreamer-plugins-base0.10-0:armhf libgstreamer-plugins-base1.0-0:armhf libgstreamer0.10-0:armhf libgstreamer1.0-0:armhf libgtk-3-common libgtk2.0-common libgtop2-7 libgtop2-common libgudev-1.0-0:armhf libguess1:armhf libgusb2:armhf libgutenprint2 libgweather-common libhogweed2:armhf libhpmud0 libhunspell-1.3-0:armhf libibus-1.0-5:armhf libical1 libid3tag0 libieee1284-3:armhf libijs-0.35 libilmbase6:armhf libimage-exiftool-perl libiptcdata0 libisofs6 libiw30:armhf libjack-jackd2-0:armhf libjasper1:armhf libjavascriptcoregtk-3.0-0:armhf libjbig0:armhf libjbig2dec0 libjna-java  libjpeg-turbo8:armhf libjpeg8:armhf libjs-jquery libjte1 libkate1 liblavjpeg-2.1-0 liblcms2-2:armhf  liblircclient0 libllvm3.4:armhf liblockfile-bin liblockfile1:armhf libloudmouth1-0 liblqr-1-0:armhf libltdl7:armhf liblua5.2-0:armhf libmad0:armhf libmbim-glib0:armhf libmeanwhile1 libmenu-cache-bin libmenu-cache3 libmessaging-menu0 libmicrohttpd10 libmikmod2:armhf libmimic0 libmirprotobuf0:armhf libmjpegutils-2.1-0 libmms0:armhf libmodplug1 libmp3lame0:armhf libmpcdec6 libmpeg2-4:armhf libmpeg2encpp-2.1-0 libmpg123-0:armhf libmplex2-2.1-0 libmtdev1:armhf libmtp-common libmtp-runtime libmtp9:armhf libnetpbm10 libnettle4:armhf libobt2 libogg0:armhf libopenal-data libopenal1:armhf libopencv-calib3d2.4:armhf libopencv-core2.4:armhf libopencv-features2d2.4:armhf libopencv-flann2.4:armhf libopencv-gpu2.4:armhf libopencv-imgproc2.4:armhf  libopencv-ml2.4:armhf  libopencv-photo2.4:armhf libopencv-stitching2.4:armhf libopencv-video2.4:armhf libopenjpeg2:armhf libopenobex1 libopenvg1-mesa:armhf liborbit-2-0:armhf liborc-0.4-0:armhf libots0 libp11-kit-gnome-keyring:armhf libpam-gnome-keyring:armhf libpaper-utils libpaper1:armhf libpathplan4 libpcsclite1:armhf consolekit libpixman-1-0:armhf libpixman-1-0-dbg:armhf
sudo apt-get purge libplist1:armhf libpolkit-agent-1-0:armhf libpolkit-backend-1-0:armhf libpolkit-gobject-1-0:armhf libpostproc52 libprotobuf8:armhf libprotobuf-lite8:armhf libproxy1:armhf libqmi-glib0:armhf libqpdf13:armhf libquvi-scripts libraptor2-0:armhf librarian0 librasqal3:armhf libraw1394-11:armhf librxtx-java libsamplerate0:armhf libsane-common libsbc1:armhf libschroedinger-1.0-0:armhf libsecret-1-0:armhf libsecret-common libshairplay libsidplayfp:armhf libsoundtouch0:armhf libsp1c2 libspeex1:armhf libspeexdsp1:armhf libsrtp0 libt1-5 libtag1-vanilla:armhf libtag1c2a:armhf libtagc0:armhf libtcl8.6:armhf libtelepathy-glib0:armhf libthai-data libtheora0:armhf libudisks2-0:armhf libusbmuxd2 libv4l2rds0:armhf libva1:armhf libvdpau1:armhf libvisual-0.4-0:armhf libvo-aacenc0:armhf libvo-amrwbenc0:armhf libvpx1:armhf libvte-2.90-common libvte-common  libwavpack1:armhf  libwayland-client0:armhf libwayland-cursor0:armhf libwayland-server0:armhf libwbclient0:armhf libwebcam0 libwebkitgtk-3.0-common libwebp5:armhf libwebpdemux1:armhf libwebpmux1:armhf libwhoopsie0 libwildmidi-config libwildmidi1:armhf libwnck-3-common libwnck-common libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2 libwvstreams4.6-base libwvstreams4.6-extras libx11-6:armhf  libx11-data  libx11-xcb1:armhf libx264-142:armhf libxapian22 libxau6:armhf libxcb-dri2-0:armhf libxcb-dri3-0:armhf libxcb-glx0:armhf  libxcb-icccm4:armhf libxcb-image0:armhf libxcb-keysyms1:armhf libxcb-present0:armhf libxcb-randr0:armhf libxcb-render0:armhf libxcb-shape0:armhf libxcb-shm0:armhf libxcb-sync1:armhf libxcb-util0:armhf  libxcb-xf86dri0:armhf libxcb-xfixes0:armhf libxcb-xv0:armhf libxcb1:armhf   libxcomposite1:armhf libxcursor1:armhf libxdamage1:armhf  libxdmcp6:armhf libxdot4 libxext6:armhf libxfce4ui-common  libxfce4util-common libxfce4util6 libxfixes3:armhf libxi6:armhf libxinerama1:armhf libxkbfile1:armhf libxp6:armhf

Purge uninstalled packages

sudo dpkg --list | grep ^rc | awk -F" " ' { print $2 } ' | xargs apt-get -y purge
sudo apt-get install deborphan 
sudo apt-get autoremove --purge $(deborphan)

SSH Server Keys are not regenerated upon first boot

udev rules for network devices aren’t purged before the image is created. This causes the main ethernet interface to get listed as eth1 instead of eth0 NetworkManager is installed. You’ll need to edit /etc/network/interfaces, then disable NetworkManager, then go with this.

Regenerate SSH KEYS

sudo rm /etc/ssh/ssh_host*
sudo dpkg-reconfigure openssh-server

Fix Udev

sudo su
echo > /etc/udev/rules.d/70-persistent-net.rules
reboot
MacDev240 commented 7 years ago

Thanks for quick reply!😁

On Tue, Jan 10, 2017 at 10:09 AM, khancyr notifications@github.com wrote:

@MacDev240 https://github.com/MacDev240 this is for odroid C1 on ubuntu 14.04 ( last time I look the got clean 16.04 but it was working...)

ubuntu 14.04

sudo apt-get purge openjdk-7-jre java-common oracle-java8-installer chromium- firefox pidgin evince cups cups-browsed cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-driver-gutenprint cups-filters cups-filters-core-drivers cups-ppdc cups-server-common openprinting-ppds transmission sylpheed abiword gnumeric aria2 filezilla docbook avrdude audacious valgrind snappy lynx gimp-data

sudo apt-get purge gstreamer0.10-nice gstreamer1.0-plugins-base-apps gstreamer0.10-plugins-base gstreamer1.0-plugins-base-doc gstreamer0.10-plugins-good gstreamer1.0-plugins-good gstreamer0.10-x gstreamer1.0-plugins-good-doc gstreamer1.0-doc gstreamer1.0-pulseaudio gstreamer1.0-plugins-bad-doc gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-x x11-common bluez gnome lightdm x11proto x11vnc-data x11-xfs-utils

sudo apt-get purge abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview accountsservice acl alsa-base alsa-utils anthy anthy-common apport apport-gtk apport-symptoms aria2 aspell audacious audacious-plugins:armhf audacious-plugins-data autopoint axel bind9-host blueman bluez bluez-alsa:armhf bluez-cups camorama chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra colord cups cups-browsed cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-driver-gutenprint cups-filters cups-filters-core-drivers cups-ppdc cups-server-common deadbeef dmz-cursor-theme docbook docbook-dsssl docbook-to-man docbook-xml docbook-xsl evince evince-common evolution-data-server-common extra-xdg-menus faenza-icon-theme fbset ffmpegthumbnailer filezilla filezilla-common file-roller flite1-dev:armhf fontconfig fontconfig-config fonts-arabeyes fonts-arphic-ukai fonts-arphic-uming fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-droid fonts-farsiweb fonts-freefont-ttf fonts-kacst fonts-kacst-one fonts-khmeros fonts-khmeros-core fonts-lao fonts-liberation fonts-lklug-sinhala fonts-lyx fonts-manchufont fonts-mgopen fonts-nafees fonts-nanum fonts-nanum-coding fonts-opensymbol fonts-sil-abyssinica fonts-sil-ezra

sudo apt-get purge fonts-sil-gentium fonts-sil-gentium-basic fonts-sil-padauk fonts-sil-scheherazade fonts-takao-gothic fonts-takao-mincho fonts-takao-pgothic fonts-thai-tlwg fonts-tibetan-machine fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-tlwg-norasi fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree fonts-ukij-uyghur fonts-unfonts-core foomatic-db-compressed-ppds fuse libfontconfig1 libgtk2.0.0 libpango-1.0.0 libqt5widgets5 snappy transmission-qt transmission-cli foomatic-filters gir1.2* zenity-common yelp-xsl yasm xvfb xtrans-dev xsltproc xserver-common xscreensaver-data xscreensaver-screensaver-bsod x11-common xfconf xfce4-dev-tools xfce4-power-manager-data xdg-utils xauth xbitmaps xdg-user-dirs xkb-data xorg-docs-core xorg-sgml-doctools autoconf autoconf2.13 automake autotools-dev avr-libc avrdude binutils binutils-avr build-essential ccache cdbs cmake cmake-data comerr-dev command-not-found-data cpp cpp-4.8 desktop-file-utils dpkg-dev fakeroot firefox-locale-en flex bison g++ g++-4.8 gcc gcc-4.8 gcc-avr gconf-service gconf-service-backend gconf2 gconf2-common gdb gdebi-core genisoimage giblib1:armhf glmark2-data glmark2-es2 gnome-accessibility-themes gnome-desktop-data gnome-desktop3-data gnome-menus gnome-panel-data gnome-pkg-tools gnome-themes-standard-data gnumeric-common gobject-introspection gstreamer0.10-nice:armhf gstreamer0.10-plugins-base:armhf gsfonts

sudo apt-get purge gsettings-desktop-schemas gstreamer0.10-plugins-base:armhf gstreamer1.0-alsa:armhf gstreamer1.0-doc gstreamer1.0-libav:armhf gstreamer1.0-plugins-bad-doc gstreamer1.0-plugins-base:armhf gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-base-doc gstreamer1.0-plugins-good-doc gstreamer1.0-pulseaudio:armhf gstreamer1.0-tools gvfs-common gvfs-libs:armhf hicolor-icon-theme hplip-data hunspell-en-us imagemagick-common java-common jade joe kerneloops-daemon ladspa-sdk laptop-detect lightdm link-grammar-dictionaries-en lintian linux-sound-base lubuntu-lxpanel-icons openjdk-7-jre ca-certificates-java aspell aspell-en fonts-dejavu-core lxmenu-data lxsession-data m4 make maliddx mc mc-data mesa-utils mesa-utils-extra metacity-common mircommon-dev:armhf mobile-broadband-provider-info modemmanager mysql-common nautilus-data netpbm obex-data-server openprinting-ppds p11-kit p11-kit-modules:armhf pastebinit pcmciautils pidgin-data policykit-desktop-privileges poppler-data printer-driver-c2esp printer-driver-foo2zjs-common printer-driver-min12xxw pulseaudio python-cups python-cupshelpers qpdf quilt rfkill samba-common samba-common-bin samba-libs:armhf sgml-base sgml-data sgmlspl smbclient sound-theme-freedesktop swig swig2.0 sylpheed-doc system-config-printer-common system-config-printer-udev t1utils transmission-common

sudo apt-get purge tsconf ttf-bengali-fonts ttf-devanagari-fonts ttf-gujarati-fonts ttf-indic-fonts-core ttf-kannada-fonts ttf-malayalam-fonts ttf-oriya-fonts ttf-punjabi-fonts ttf-tamil-fonts ttf-telugu-fonts ttf-ubuntu-font-family usbmuxd uvcdynctrl uvcdynctrl-data valgrind whoopsie wireless-tools wpasupplicant wvdial x11-xfs-utils xbmc xinput xserver-xorg-core xfce4-power-manager xfonts-100dpi xfonts-base xfonts-mathml xfonts-scalable xfonts-utils xinit xdg-user-dirs-gtk xdg-user-dirs xarchiver x11proto-xinerama-dev x11proto-xf86vidmode-dev x11proto-xf86dri-dev x11proto-xcmisc-dev x11proto-video-dev x11proto-record-dev x11proto-randr-dev x11proto-present-dev x11proto-kb-dev x11proto-dri3-dev x11proto-dri2-dev x11proto-dmx-dev x11proto-bigreqs-dev dictionaries-common libavc1394-0:armhf libavresample1:armhf libavutil52:armhf libbluetooth3:armhf libbluray1:armhf libbonobo2-common libbonoboui2-common libboost-atomic1.54.0:armhf libboost-chrono1.54.0:armhf libboost-date-time1.54.0:armhf libboost-serialization1.54.0:armhf libboost-system1.54.0:armhf libboost-thread1.54.0:armhf libbs2b0 libburn4 libcaca0:armhf libcamel-1.2-45 libcdaudio1 libcddb2 libcdio-cdda1 libcdio-paranoia1 libcdio13 libcdparanoia0:armhf libcdt5 libcec libcgraph6 libcogl15:armhf libcolamd2.8.0:armhf libcolord1:armhf libcolorhug1:armhf libcompfaceg1 libcrack2:armhf libcroco3:armhf libcue1 libcups2:armhf libcupscgi1:armhf libcupsfilters1:armhf libcupsimage2:armhf libcupsmime1:armhf libcupsppdc1:armhf libdatrie1:armhf libdc1394-22:armhf libdca0:armhf libdirac-decoder0:armhf libdirac-encoder0:armhf libdiscid0:armhf libdjvulibre-text libdjvulibre21:armhf libdmx1:armhf libdrm-nouveau2:armhf libdrm-radeon1:armhf libdv4:armhf libdvdnav4:armhf libdvdread4:armhf libegl1-mesa:armhf libdrm-omap1:armhf libegl1-mesa-drivers:armhf libexo-common libexo-helpers libfaad2:armhf libfakeroot:armhf libfftw3-bin libfftw3-double3:armhf libfftw3-single3:armhf libflac8:armhf libfontembed1:armhf libfontenc1:armhf libframe6:armhf libfreetype6:armhf libfribidi0:armhf libfs6:armhf libftdi1:armhf libfuse2:armhf libgbm1:armhf libgck-1-0:armhf libgcr-3-common libgcr-base-3-1:armhf libgda-5.0-common libgdk-pixbuf2.0-0:armhf libgdk-pixbuf2.0-common

sudo apt-get purge libgdome2-0 libgdome2-cpp-smart0c2a libgeis1:armhf libgeoclue0:armhf libgeoip1:armhf libgif4:armhf libgirepository-1.0-1 libgl1-mesa-dri:armhf libgl1-mesa-glx:armhf libglapi-mesa:armhf libgles1-mesa:armhf libgles2-mesa:armhf libglib2.0-doc libglib-perl libgme0 libgmpxx4ldbl:armhf libgnome-keyring-common libgnome-keyring0:armhf libgnome-menu-3-0 libgnomecanvas2-common libgnomeui-common libgoffice-0.10-10-common libgomp1:armhf libgphoto2-port10:armhf libgraphite2-3:armhf libgs9-common libgsf-1-114 libgsf-1-common libgsl0ldbl libgsm1:armhf libgstreamer-plugins-base0.10-0:armhf libgstreamer-plugins-base1.0-0:armhf libgstreamer0.10-0:armhf libgstreamer1.0-0:armhf libgtk-3-common libgtk2.0-common libgtop2-7 libgtop2-common libgudev-1.0-0:armhf libguess1:armhf libgusb2:armhf libgutenprint2 libgweather-common libhogweed2:armhf libhpmud0 libhunspell-1.3-0:armhf libibus-1.0-5:armhf libical1 libid3tag0 libieee1284-3:armhf libijs-0.35 libilmbase6:armhf libimage-exiftool-perl libiptcdata0 libisofs6 libiw30:armhf libjack-jackd2-0:armhf libjasper1:armhf libjavascriptcoregtk-3.0-0:armhf libjbig0:armhf libjbig2dec0 libjna-java libjpeg-turbo8:armhf libjpeg8:armhf libjs-jquery libjte1 libkate1 liblavjpeg-2.1-0 liblcms2-2:armhf liblircclient0 libllvm3.4:armhf liblockfile-bin liblockfile1:armhf libloudmouth1-0 liblqr-1-0:armhf libltdl7:armhf liblua5.2-0:armhf libmad0:armhf libmbim-glib0:armhf libmeanwhile1 libmenu-cache-bin libmenu-cache3 libmessaging-menu0 libmicrohttpd10 libmikmod2:armhf libmimic0 libmirprotobuf0:armhf libmjpegutils-2.1-0 libmms0:armhf libmodplug1 libmp3lame0:armhf libmpcdec6 libmpeg2-4:armhf libmpeg2encpp-2.1-0 libmpg123-0:armhf libmplex2-2.1-0 libmtdev1:armhf libmtp-common libmtp-runtime libmtp9:armhf libnetpbm10 libnettle4:armhf libobt2 libogg0:armhf libopenal-data libopenal1:armhf libopencv-calib3d2.4:armhf libopencv-core2.4:armhf libopencv-features2d2.4:armhf libopencv-flann2.4:armhf libopencv-gpu2.4:armhf libopencv-imgproc2.4:armhf libopencv-ml2.4:armhf libopencv-photo2.4:armhf libopencv-stitching2.4:armhf libopencv-video2.4:armhf libopenjpeg2:armhf libopenobex1 libopenvg1-mesa:armhf liborbit-2-0:armhf liborc-0.4-0:armhf libots0 libp11-kit-gnome-keyring:armhf libpam-gnome-keyring:armhf libpaper-utils libpaper1:armhf libpathplan4 libpcsclite1:armhf consolekit libpixman-1-0:armhf libpixman-1-0-dbg:armhf

sudo apt-get purge libplist1:armhf libpolkit-agent-1-0:armhf libpolkit-backend-1-0:armhf libpolkit-gobject-1-0:armhf libpostproc52 libprotobuf8:armhf libprotobuf-lite8:armhf libproxy1:armhf libqmi-glib0:armhf libqpdf13:armhf libquvi-scripts libraptor2-0:armhf librarian0 librasqal3:armhf libraw1394-11:armhf librxtx-java libsamplerate0:armhf libsane-common libsbc1:armhf libschroedinger-1.0-0:armhf libsecret-1-0:armhf libsecret-common libshairplay libsidplayfp:armhf libsoundtouch0:armhf libsp1c2 libspeex1:armhf libspeexdsp1:armhf libsrtp0 libt1-5 libtag1-vanilla:armhf libtag1c2a:armhf libtagc0:armhf libtcl8.6:armhf libtelepathy-glib0:armhf libthai-data libtheora0:armhf libudisks2-0:armhf libusbmuxd2 libv4l2rds0:armhf libva1:armhf libvdpau1:armhf libvisual-0.4-0:armhf libvo-aacenc0:armhf libvo-amrwbenc0:armhf libvpx1:armhf libvte-2.90-common libvte-common libwavpack1:armhf libwayland-client0:armhf libwayland-cursor0:armhf libwayland-server0:armhf libwbclient0:armhf libwebcam0 libwebkitgtk-3.0-common libwebp5:armhf libwebpdemux1:armhf libwebpmux1:armhf libwhoopsie0 libwildmidi-config libwildmidi1:armhf libwnck-3-common libwnck-common libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2 libwvstreams4.6-base libwvstreams4.6-extras libx11-6:armhf libx11-data libx11-xcb1:armhf libx264-142:armhf libxapian22 libxau6:armhf libxcb-dri2-0:armhf libxcb-dri3-0:armhf libxcb-glx0:armhf libxcb-icccm4:armhf libxcb-image0:armhf libxcb-keysyms1:armhf libxcb-present0:armhf libxcb-randr0:armhf libxcb-render0:armhf libxcb-shape0:armhf libxcb-shm0:armhf libxcb-sync1:armhf libxcb-util0:armhf libxcb-xf86dri0:armhf libxcb-xfixes0:armhf libxcb-xv0:armhf libxcb1:armhf libxcomposite1:armhf libxcursor1:armhf libxdamage1:armhf libxdmcp6:armhf libxdot4 libxext6:armhf libxfce4ui-common libxfce4util-common libxfce4util6 libxfixes3:armhf libxi6:armhf libxinerama1:armhf libxkbfile1:armhf libxp6:armhf

Purge uninstalled packages

sudo dpkg --list | grep ^rc | awk -F" " ' { print $2 } ' | xargs apt-get -y purge sudo apt-get install deborphan sudo apt-get autoremove --purge $(deborphan)

SSH Server Keys are not regenerated upon first boot

udev rules for network devices aren’t purged before the image is created. This causes the main ethernet interface to get listed as eth1 instead of eth0 NetworkManager is installed. You’ll need to edit /etc/network/interfaces, then disable NetworkManager, then go with this. Regenerate SSH KEYS

sudo rm /etc/ssh/ssh_host* sudo dpkg-reconfigure openssh-server

Fix Udev

sudo suecho > /etc/udev/rules.d/70-persistent-net.rules reboot

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ArduPilot/companion/issues/12#issuecomment-271635070, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBXURpgbGU-kofeF0RoOMe9VUjufXj4ks5rQ7sugaJpZM4Lfb_I .

khancyr commented 7 years ago

Disclamer : yes it remove all gui things, so only ssh is left ! But the board is clean, lighweight and fast !

davidbuzz commented 7 years ago

I think maybe the code-specific parts of this should be created a a PR for this repo, and the text/help/info should be put in the wiki as part of the "companion computer" wifi pages..? http://ardupilot.org/dev/search.html?q=companion&check_keywords=yes&area=default

khancyr commented 7 years ago

@davidbuzz A put it here as I see that @peterbarker is already doing a refactoring of instruction !