NeTV tricks
From Chumby Wiki
Contents
Open a secure shell (SSH) console on NeTV
See also USB Ethernet support
- Go to Control Panel of NeTV with infrared remote control
- Under Settings menu, select Enable SSH
- Find out NeTV's IP address under System Info menu
- Using an SSH client (Windows users can use PuTTY, Mac/Linux users can use
ssh
from a terminal window), log in as the user root with no password. e.g.
ssh root@192.168.1.100
- You should see a message showing your last login time.
Scheduled tasks, auto-execution of tasks
Launching sshd at startup
WARNING - doing this will reduce the level of security on your chumby, and may allow unauthorized access
- Open up a console on the chumby
- At the console, type:
touch /psp/start_sshd
- Now
sshd
will be started when NeTV boots - To stop this behavior in the future, type:
rm /psp/start_sshd
Run processes on start-up
Boot up, default screen, control panel customizations
Bootloader Screen
Prepare a PNG image with 1280x720 resolution.
- Copy it to the device, (eg. /tmp/bootlogo.png)
- Stop the NeTVBrowser from drawing to the screen
killall NeTVBrowser
- Splash the logo image on to framebuffer
SCREEN_X_RES=1280 SCREEN_Y_RES=720 imgtool --bitfmt=rgb565 /tmp/bootlogo.png
- Capture the framebuffer to config block
dd if=/dev/fb0 bs=$((1280*720*2)) count=1 | gzip -c | config_util --cmd=putblock --block=logo
- Reboot and check that it's changed
Note: /boot/logo.raw.gz
is a distraction. It doesn't do any good :)
Using a custom Control Panel
To to have NeTV goes to a particular url on boot
- Open up a console on the chumby
- At the console, type:
vi /psp/homepage
- Enter a full HTTP URL (eg. http://www.your_fancy_ui.com)
- Now NeTV's browser will be redirected to your page when NeTV boots
- To stop this behavior in the future, type:
rm /psp/homepage