Difference between revisions of "Jetson/TX2 Ubuntu Base"
Ross-abaco (talk | contribs) m (→Lxde) |
Ross-abaco (talk | contribs) m (→Lxde) |
||
Line 33: | Line 33: | ||
LXDE desktop on Jetson TX2. | LXDE desktop on Jetson TX2. | ||
− | [[Image:Jetson_TX2_lxde_Desktop.png|800px| | + | [[Image:Jetson_TX2_lxde_Desktop.png|800px|LxdeDesktop running CUDA]] |
You may need to export: | You may need to export: | ||
export DISPLAY=:0.0 | export DISPLAY=:0.0 | ||
sudo startlxde | sudo startlxde |
Revision as of 05:30, 17 July 2017
Ubuntu Base is a minimal rootfs for use in the creation of custom images for specific needs. This file system can be substituted for the Tegra sample file system provided by nVidia.
Installing Ubuntu Base requires a good knowledge of linux as it does not come with any user accounts. These need to be added to the filesystem to allow you to login.
Installation considerations
- Add the user accounts
- Add users to sudo group to allow admin access
- Install additional packages (best done using QEMU prior to flashing)
- Recommend installing the following with QEMU (chroot to rootfs) apt-get install sudo nano vim net-tools ping isc-dhcp-client ethtool .
- If installing PCIe hardware on your platform then you might want to add apt-get install udev hwinfo pciutils
To install and run the QEMU for ARM for your rootfs:
sudo apt-get -qqy install qemu-user-static cp /usr/bin/qemu-aarch64-static <rootfs>/usr/bin/. chroot <rootfs> /bin/bash
Desktop
There are a large number of windows managers available for Linux. For a light weight desktop manager for an embedded application you might want to consider Xfce Desktop Environment or Lxde Desktop Environment.
Before you start please edit /etc/apt/sources.list and uncomment line:
# deb http://ports/ubuntu.com/ubuntu-ports xenial universe
After installing Xorg you will need to correct the link to libglx.so to run OpenGL applications:
sudo rm /usr/lib/xorg/modules/extensions/libglx.so sudo ln -s /usr/lib/aarch64-linux-gnu/tegra/libglx.so
Xfce
The XFCE4 desktop (with no nVidia Jetpack installed) is 970Mb when installed under Ubuntu Base.
To install Xfce you will need to run apt-get install --no-install-recommends xorg xfce4 this will give you a minimal desktop experience.
Lxde
LXDE desktop on Jetson TX2.
You may need to export:
export DISPLAY=:0.0 sudo startlxde