H3NBS

VÄIKELINUKS
-----------

OpenWRT-võrguseadmed, Linuino-Arduino, Debian+XPi (X on Raspberry, Nano Orange.. ). OpenWRT kohta on ka eraldi link minu koduleheküljel "notes: OpenWRT on virtualbox".

I. Valmistada Debian Pixel Virtuaalarvuti alusel süsteemi Arduino Yun (Linuino ARM + AVR) arendajale. Soovitav teha skriptide abil meeskonna tööna. Kasutatav tarkvara:

  Arduino IDE 1.8.1 (apt-get)
  SimutronQT 1.0.1 (QT5) + 
    gtkwave (algkoodidest, loe README)
  SimulIDE (viimane) (QT5)
  UnoArduSim (viimane) (wine)
  
  tty0tty (ehita algkoodidest)
  PuTTY (apt-get) 
  
  Python 2 (apt-get)
  Python 3 (apt-get)
  Thonny 2.0.7 (kasuta skripti thonny.org, paranda teise töölaua viga)
  IDLE python 2-le (apt-get)
  
  Circuitmaker Student 6.0 (wine)
  Logisim 2.7.1 (java)
  Flowgorithm 2.3.1 (mono)
  
Kloonida Pixel ISO virtuaalmasina kõvakettale (.vdi fail)

Laiendada süsteem (suurenda partitsiooni, siis resize2fs):

  https://www.raspberrypi.org/blog/pixel-pc-mac/  Otsi: Egon Rath says
  
Sünkida repodega:

  sudo apt-get update
  sudo apt-get upgrade

Installida:

  sudo apt-get install arduino putty git mc nano mono-complete \
       wine-development python python3 python idle-python2.7
       
Paigaldada töölauale ikoonid. 

  ~/Desktop/<äpp>.desktop

Vastav programm peab käivituma ühe klõpsuga:

  Kasutatav tarkvara + Terminal + nano - Python - Python3

Lisada aliased 'nano' ja 'sudo ' (.bashrc) Luua faile .nanorc pi ja root kaustas ja .gtkrc-2.0 pi kaustas. Veenduda, et töötab. 

Vajalikkude failide sisud ja ikoonid saab võtta LX1704-16GB.vhd kettalt (kooli samba share). Oracle java installimine on kirjeldatud siin:

  http://www.webupd8.org/2014/03
       /how-to-install-oracle-java-8-in-debian.html

Kaugjuhtimine:

1. SSH:
  
  env DISPLAY=:0 XAUTHORITY=/home/virtu/.Xauthority firefox google.ee &
  
2. VNC:

  loe:
  
  https://www.realvnc.com/docs/debian-install-remove.html
  http://web.archive.org/web/20160831070333/
  http://discourse.ubuntu.com/t/remote-desktop-sharing-in-ubuntu-14-04/1640

  vaata:

  https://www.youtube.com/watch?v=GY75u6TthH4

------------------------

Last minute note:

Solved. Tested on Mint 16.10

  Search: Remote  -> Desktop sharing.

On Server (Mint)

  gsettings set org.gnome.Vino require-encryption false

1.  Disable 3D acceleration:

  VirtualBox -> Display -> Enable 3D acceleration: [ ]
      
2.  With RealVNCViewer (it is portable now)

  File -> Preferences -> Expert -> Encryption -> PreferOff

Tightvncviewer works as well.

NB! On some weird reason you have to: 
.....................................

1. build sketch on Arduino software, copy produced .elf file to some permanent location, build Simutron simulation and save it as Serial.simu:

  AVR328P MCU
  AVRSerial (on /tmp/simul1uart0)
  Probe on PB5
  
2. Build serial Putty connection to line: /tmp/simavr1-uart0 speed: 9600 save this as PuttySimutron

3. Shutdown and boot again.

4. Test the connection

Serial.ino

  void setup() {
    Serial.begin( 9600);
    pinMode( 13, OUTPUT);
    // wait for serial port to connect. 
    // Needed for native USB port only.
    while ( !Serial); 
  }

  void loop() {
    if ( Serial.available() > 0) {
      int inByte = Serial.read();
      if ( inByte == 'Z') digitalWrite( 13, HIGH);
      if ( inByte == 'A') digitalWrite( 13, LOW);
    }
  }

