Difference between revisions of "Leapster Explorer: Common Commands"

From eLinux.org
Jump to: navigation, search
(Removing auto-shutdown)
(Spellcheck)
 
(11 intermediate revisions by 4 users not shown)
Line 2: Line 2:
  
  
== Touching Things ==
+
== AppManager ==
 +
==== Disable ====
 +
This will prevent the auto shutoff from kicking in, but you also lose a lot of normal LeapFrog specific functionality.
  
==== Main App ====
+
''' Temporarily '''
  
I hate having the main app timeout and power down when.
+
'' On Device ''
simply type:
+
killall AppManager app CartManager
  
 +
''' Permanently '''
 
  touch /flags/main_app
 
  touch /flags/main_app
  
to disable the main app on next start
 
  
 +
==== Start Different Application ====
  
You can also supply the name of an alternate main app like so:
+
This will allow you to start a different application other than the default LeapFrog application:
  
  echo /LF/djsm/djsm-start > /flags/main_app
+
  echo /path/to/your/app > /flags/main_app
  
Just note that /LF/Bulk isn't guaranteed to be mounted yet.
+
''' Caution ''' /LF/Bulk isn't guaranteed to be mounted when the start up script is run. If your app isn't found, rcS will remove /flags/main_app to restore the default on the next boot.
  
 
+
== Developer Mode ==
If your app isn't found, rcS will remove /flags/main_app to restore the default on the next boot.
 
 
 
==== Developer Mode ====
 
  
 
This turns on telnet and ftp by default, and switches to a static IP address.
 
This turns on telnet and ftp by default, and switches to a static IP address.
Line 37: Line 37:
 
  touch /flags/no8sec
 
  touch /flags/no8sec
  
==== Removing USB mode auto-shutdown ====
+
==== Removing USB-boot-mode auto-shutdown ====
  
 
When USB booting, the script /usr/bin/recovery runs. On line 8 of that script is an instruction to do a forced shutdown after 600 seconds.  
 
When USB booting, the script /usr/bin/recovery runs. On line 8 of that script is an instruction to do a forced shutdown after 600 seconds.  
Line 54: Line 54:
  
 
  #oss -w /var/sounds/startup.wav & # & tim end "sounds/startup.wav" &
 
  #oss -w /var/sounds/startup.wav & # & tim end "sounds/startup.wav" &
 
== SFTP and You ==
 
SFTP is one of the easiest ways to copy files over to your Explorer.
 
 
 
==== Configure your Explorer ====
 
Now that sshd is enabled to start on boot up automaticly we need to make a few changes to the sshd config
 
 
cd /etc/ssh
 
vi sshd_config
 
 
Now uncomment the fallowing and change them to yes
 
 
PermitEmptyPasswords yes
 
PermitRootLogin yes
 
 
Once done editing, hit the ESC key, then type :x to save and exit.
 
 
now you are ready to start sshd for the first time and generate a key, type:
 
 
/etc/init.d/sshd start
 
 
This may take a minute or two for the key to be generated so sit back and relax.
 
 
To enable SSH and SFTP permanently, you will have to carefully modify /etc/init.d/rcS.
 
Add the following line in the same location as the telnetd and vsftpd startup (~line 138), or optionally outside the check for /flags/developer (~line 136):
 
 
/etc/init.d/sshd start; ### tim done "sshd"
 
 
and optionally disable telnetd and vsftpd by adding a # before the first slash.
 
 
#/etc/init.d/telnetd start; ### tim done "telnetd"
 
#/etc/init.d/vsftpd start; ### tim done "vsftpd"
 
 
== Connect With your Linux Box ==
 
=== Ubuntu ===
 
Aquire FileZilla
 
 
Right click your network icon thingy and configure your interface
 
 
[[File:link_only.png]]
 
 
Setting it to link only will prevent the Explorer from disconnecting randomly when you plug it in.
 
 
on your explorer run
 
 
ifconfig
 
 
to see what it's ip address is. Enter that address as the host in FileZilla and set the username as: root
 
 
Congrats you now have sftp access to your explorer :)
 
 
[[File:file_zilla_connected.png]]
 
 
  
 
== New Kernel Copy ==
 
== New Kernel Copy ==
Line 116: Line 62:
  
 
mtd2 is where the kernel is stored
 
mtd2 is where the kernel is stored
 +
[[Category:Leapster Explorer]]

Latest revision as of 15:06, 27 October 2011

Here are some changes to the LX's default setup that will make your life more easy.


AppManager

Disable

This will prevent the auto shutoff from kicking in, but you also lose a lot of normal LeapFrog specific functionality.

Temporarily

On Device

killall AppManager app CartManager

Permanently

touch /flags/main_app


Start Different Application

This will allow you to start a different application other than the default LeapFrog application:

echo /path/to/your/app > /flags/main_app

Caution /LF/Bulk isn't guaranteed to be mounted when the start up script is run. If your app isn't found, rcS will remove /flags/main_app to restore the default on the next boot.

Developer Mode

This turns on telnet and ftp by default, and switches to a static IP address.

touch /flags/developer

If you still want to have the automatic private ip:

touch /flags/avahi

And if you want a speedy boot (this eliminates a 6 second wait timer):

touch /flags/no8sec

Removing USB-boot-mode auto-shutdown

When USB booting, the script /usr/bin/recovery runs. On line 8 of that script is an instruction to do a forced shutdown after 600 seconds.

To remove that annoyance, simply comment-out that line:

#( sleep 600; poweroff -f ) &

Debranding

To remove the 2nd boot logo, comment out line 76 of /etc/init.d/rcS:

#imager /dev/layer0 /var/screens/LEGAL.png

To remove the startup sound, comment out line 91 of /etc/init.d/rcS:

#oss -w /var/sounds/startup.wav & # & tim end "sounds/startup.wav" &

New Kernel Copy

This may brick your Explorer and make it require a usb boot so only do this if your brave.

nandscrub -e /dev/mtd2
nandscrub /dev/mtd2
nandwrite /dev/mtd2 /usr/kernel.cbf

mtd2 is where the kernel is stored