Joule Linux Reinstall June 2019

From wikidb
Revision as of 10:46, 29 June 2019 by Edc (Talk | contribs)

Jump to: navigation, search

Why

Screwed up Linux while working on the Open Manipulator. I messed up the Linux upgrade to match the OpenCR waffle version. Decided to use my old 16.04 install USB dongle to bring things to a know consistent state. Not interested in supporting the Joule long term but to preserve a demo system while exploring ROS 2 on an alternative processor.

References

Create USB Install Disk

Install Ubuntu

Install from USB

  • Unplugged LIDAR from TB3 USB Hub
  • Plugged in the Joule Unubutu Install USB image into the Hub
  • HDMI monitor connected and USB keyboard/mouse
  • Rebooted
  • Tapped F7 until the "Boot Option Menu" appeared
    • Selected third options: "EFI USB Device"
    • Return key
    • System booted into USB install disk after while
    • Selected first Installation type "Erase Ubuntu 16.04.2 LTS and reinstall"
    • Went through install
    • I said OK to reboot put turned the Joule off after it went down
  • See step by Step instructions above for details

Configure

  • Unplugged Install USB stick
  • Went through install configuration
    • Didn't set up wireless - not sure why
  • System rebooted itself a couple of times
  • Logged in and set up wireless to zdome
  • Tested
  • Rebooted
    • I got the IP address I expect

Fix Problems

See Turtlebot3_Setup#Problems

  • Did the Bay Trail Freeze fix
    • don't forget to udate-grub
  • On Brightness & Lock setting screen
    • Set "Turn screen off when inactive" to Never
    • Turned Lock off

Additional Software

GRUB Changegs

Fix System freezes completely with Intel Bay Trail

 $ diff grub.org grub
   11c11
   < GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
   ---
   > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"

Start Ubuntu in Console mode

Install ROS

 $ sudo apt-get update     check
 $ sudo apt-get upgrade
     Preparing to unpack .../perl-modules-5.22_5.22.1-9ubuntu0.6_all.deb ...
     Unpacking perl-modules-5.22 (5.22.1-9ubuntu0.6) over (5.22.1-9) ...
     Preparing to unpack .../libc6-dbg_2.23-0ubuntu11_amd64.deb ...
     Unpacking libc6-dbg:amd64 (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
     Preparing to unpack .../libc6-dev_2.23-0ubuntu11_amd64.deb ...
     Unpacking libc6-dev:amd64 (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
     Preparing to unpack .../libc-dev-bin_2.23-0ubuntu11_amd64.deb ...
     Unpacking libc-dev-bin (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
     Preparing to unpack .../linux-libc-dev_4.4.0-150.176_amd64.deb ...
     Unpacking linux-libc-dev:amd64 (4.4.0-150.176) over (4.4.0-67.88) ...
     Preparing to unpack .../libc6-i386_2.23-0ubuntu11_amd64.deb ...
     Unpacking libc6-i386 (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
     Preparing to unpack .../libc6_2.23-0ubuntu11_amd64.deb ...
     Unpacking libc6:amd64 (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
     Setting up libc6:amd64 (2.23-0ubuntu11) ...
     Processing triggers for libc-bin (2.23-0ubuntu5) ...
     Processing triggers for man-db (2.7.5-1) ...
     (Reading database ... 189799 files and directories currently installed.)
     Preparing to unpack .../libdb5.3_5.3.28-11ubuntu0.2_amd64.deb ...
     Unpacking libdb5.3:amd64 (5.3.28-11ubuntu0.2) over (5.3.28-11) ...
     Processing triggers for libc-bin (2.23-0ubuntu5) ...
     Setting up libdb5.3:amd64 (5.3.28-11ubuntu0.2) ...
     E: Sub-process /usr/bin/dpkg exited unexpectedly


 $ wget https://raw.githubusercontent.com/ROBOTIS-GIT/robotis_tools/master/install_ros_kinetic.sh 
 $ chmod 755 ./install_ros_kinetic.sh 
 $ bash ./install_ros_kinetic.sh

again

    1  sudo apt-get install emacs
    2  cd /etc/default/
    3  sudo cp grub grub.org
    4  sudo emacs grub
    5  sudo update-grub
    6  diff grub grub.org
    7  sudo apt-get update
    8  sudo apt-get upgrade
    9  mkdir tmp
   10  ll -la
   11  chown eepp:eepp .emacs*
   12  sudo chown eepp:eepp .emacs*
   13  history

Unpacking libc6:amd64 (2.23-0ubuntu11) over (2.23-0ubuntu5) ...
Setting up libc6:amd64 (2.23-0ubuntu11) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for man-db (2.7.5-1) ...
(Reading database ... 189799 files and directories currently installed.)
Preparing to unpack .../libdb5.3_5.3.28-11ubuntu0.2_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28-11ubuntu0.2) over (5.3.28-11) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Setting up libdb5.3:amd64 (5.3.28-11ubuntu0.2) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
dpkg: error processing archive /var/cache/apt/archives/zlib1g_1%3a1.2.8.dfsg-2ubuntu4.1_amd64.deb (--unpack):
 subprocess dpkg-split returned error exit status 4
E: Sub-process /usr/bin/dpkg returned an error code (1)
eepp@box:~$ mkdir tmp
eepp@box:~$ ll -la
total 128
drwxr-xr-x 19 eepp eepp 4096 Jun  6 13:05 ./
drwxr-xr-x  3 root root 4096 Feb 19  2017 ../
-rw-------  1 eepp eepp  118 Jun  6 12:41 .bash_history
-rw-r--r--  1 eepp eepp  220 Feb 19  2017 .bash_logout
-rw-r--r--  1 eepp eepp 3771 Feb 19  2017 .bashrc
drwx------ 12 eepp eepp 4096 Jun  6 12:39 .cache/
drwx------ 15 eepp eepp 4096 Feb 19  2017 .config/
drwx------  3 root root 4096 Jun  6 12:39 .dbus/
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Desktop/
-rw-r--r--  1 eepp eepp   25 Feb 19  2017 .dmrc
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Documents/
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Downloads/
-rw-r--r--  1 root root  515 Jun  6 12:39 .emacs
drwx------  2 root root 4096 Jun  6 12:39 .emacs.d/
-rw-r--r--  1 eepp eepp 8980 Feb 19  2017 examples.desktop
drwx------  2 eepp eepp 4096 Jun  6 12:51 .gconf/
drwx------  3 eepp eepp 4096 Jun  6 12:51 .gnupg/
-rw-------  1 eepp eepp 1224 Jun  6 12:51 .ICEauthority
drwx------  3 eepp eepp 4096 Feb 19  2017 .local/
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Music/
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Pictures/
drwx------  3 eepp eepp 4096 Feb 19  2017 .pki/
-rw-r--r--  1 eepp eepp  655 Feb 19  2017 .profile
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Public/
-rw-r--r--  1 eepp eepp    0 Jun  6 12:32 .sudo_as_admin_successful
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Templates/
drwxrwxr-x  2 eepp eepp 4096 Jun  6 13:05 tmp/
drwxr-xr-x  2 eepp eepp 4096 Feb 19  2017 Videos/
-rw-------  1 eepp eepp   48 Jun  6 12:51 .Xauthority
-rw-------  1 eepp eepp  299 Jun  6 13:04 .xsession-errors
-rw-------  1 eepp eepp 1281 Jun  6 12:50 .xsession-errors.old
eepp@box:~$ chown eepp:eepp .emacs*
chown: changing ownership of '.emacs': Operation not permitted
chown: changing ownership of '.emacs.d': Operation not permitted
eepp@box:~$ sudo chown eepp:eepp .emacs*
Illegal instruction (core dumped)
eepp@box:~$ sudo chown eepp:eepp .emacs*
Illegal instruction (core dumped)