Tips for beginners
Desktop
- Push Ctrl + Alt + t key to open termial window.
- If you got problems related to desktop, check "/var/log/Xorg.0.log".
It is a log file of Xorg. There might be some hints to solve problems.
- When you want to shutdown or reboot, click icon looks like gear in right top of the desktop.
Console
sudo shutdown -h now
Reboot command
sudo reboot
Push shift + Page up/down key to scroll console.
Show storage space usage
df -h
Show Linux for Tegra version
cat /etc/nv_tegra_release | head -n 1
Show kernel version
uname -a
Show IP address of LAN port
(ifconfig is deprecated, and ip is a replacement command)
ip addr show dev eth0
List block devices
lsblk
List USB devices
lsusb
List PCI devices
lspci
If you got problems, there might be some hints on the message buffer of the kernel. Following command show it.(Push q key to quit)
dmesg | less
Save the message buffer of the kernel to file "log"
dmesg > log
Become "root"! Then, you don't need to type sudo. You should know about "root" and what you are doing.
sudo -i
You can exit root with "exit" command.
Use up and down key to get previously executed command
Use tab key to complement command or file path
Use ctrl + r key to search previously executed commands
Turn off HDMI output
sudo -i
echo 2 > /sys/class/graphics/fb1/blank
Turn on HDMI output
sudo -i
echo 0 > /sys/class/graphics/fb1/blank
SSH tips
- Execute a window program from ssh
If Jetson TK1 is connect to a display or VNC is running on it and desktop environment is running,
you can execute programs from ssh and show windows on your desktop.
Set "DISPLAY" environment variable to ":0" if your Jetson TK1 is connect to a display.
Set one to ":1" if you are using VNC.
export DISPLAY=:0
firefox &
tmux
If you disconnect from SSH server, process on the ssh session are terminated.
But by using tmux, your terminal and process on it running on background after disconnected from SSH server.
And you can continue working with the terminal later even if you connect the server using a different client.
tmux also has many useful features when you are working with ssh.
Read this site for more detail.
sudo apt-get install tmux
Execute tmux
tmux
Reattach to existing tmux session
tmux a
Top