V2.0.0 Tips And Notes And Usefull Stuff


Here's a tip if you want a seperate share for your SD card in the samba server.
Telnet into the GP2X
type in vi /etc/samba/smb.conf
go to the line [gp2x]
key 8 then yy
go to the end of the file and press p
this will add another [gp2x] section.
Change [gp2x] to [sd] (or whatever you want your share to be called)
Change path = / to path = /mnt/sd
Go into the system menu on the gp2x and restart the samba server.
Reconnect to the GP2X in windows exploder and you will now have 2 shares!

Hope this helps someone!
 
TelcoLou posted on May 4 2006 at 12:48 AM said:
I can't get this to work :( (Big surprise, eh?)

I'm using MP3 Trix to edit my .wav ... I made it exactly 2.7 seconds long, 22khz, stereo. It manages to leave a nice 2.7 seconds of silence after I upgrade. :(

Excellent. Where can I get it? I can't stand startup sounds. They sound cool the first couple of times then get really annoying :D
 
Last edited by a moderator:
iggywig posted on May 4 2006 at 07:31 AM said:
Here's a tip if you want a seperate share for your SD card in the samba server.
Telnet into the GP2X
type in vi /etc/samba/smb.conf
go to the line [gp2x]
key 8 then yy
go to the end of the file and press p
this will add another [gp2x] section.
Change [gp2x] to [sd] (or whatever you want your share to be called)
Change path = / to path = /mnt/sd
Go into the system menu on the gp2x and restart the samba server.
Reconnect to the GP2X in windows exploder and you will now have 2 shares!

Hope this helps someone!
Thanks for the details. It works well for me.

One point to consider in all the configurations changes one can make
on the gp2x is that they are all LOST when the firmware is updated again.
So it might be valuable to keep a backup copy of certain files.

e.g. /etc/passwd, /etc/group, /etc/shadow, /etc/samba/smb.conf, ...
 
Last edited by a moderator:
crusty posted on May 4 2006 at 01:57 PM said:
One point to consider in all the configurations changes one can make
on the gp2x is that they are all LOST when the firmware is updated again.
So it might be valuable to keep a backup copy of certain files.

e.g. /etc/passwd, /etc/group, /etc/shadow, /etc/samba/smb.conf, ...
Excellent point, maybe over time, a generic 'pre upgrade script' could be created to save important config files prior to upgrade...
 
Last edited by a moderator:
woogal posted on May 3 2006 at 07:04 AM said:
Autorun - Rename an app to autorun.gpu and put it on your sd or in the nand. Don't know which has priority, or if a .gpe extension can be used as well. A check is made before autorunning to see if an app called irqbattery returns something, and if it does it won't autorun. I don't know what it means if irqbattery returns something, but it probably means the battery level is too low I'd guess (can't test this - only have mains power on my gp2x).

Forgive me if this sounds really stupid and noobish, but is there any way to bypass the autorun feature by holding down a combination of buttons during startup? What if someone is autorunning a program that has no means of exiting, and that program was on the NAND, so you couldn't remove it off of there thru windows, because you would never get to the Connect USB to NAND option on the GP2x again? How would that person get back to the firmware screens again?
 
Last edited by a moderator:
Well, the Mac one does not want to upgrade no matter what I try. I formatted the card twice, did the start+select trick, nothing. Sorry to anyone who wanted it, it must be something wrong with the file.

EDIT: Well I did some more research on why it comes out squeaky sounding. The rate must be 22050 Hz or else it will be converted down when put on the 2x, which changes the speed of the sound. That is the cause of the squeakies!

Edit 2: Hmmm... My GP2X doesn't take any of the files I throw at it, it just boots normally even when using the start select trick.
 
pferguso posted on May 4 2006 at 06:42 PM said:
Forgive me if this sounds really stupid and noobish, but is there any way to bypass the autorun feature by holding down a combination of buttons during startup? What if someone is autorunning a program that has no means of exiting, and that program was on the NAND, so you couldn't remove it off of there thru windows, because you would never get to the Connect USB to NAND option on the GP2x again? How would that person get back to the firmware screens again?
Don't know if there's a way to bypass (don't think there's been any official details about the autorun feature - everything known about it comes from people doing guess work and looking through the binary with a hex editor), but I've just done some more tests and it appears that the sd has priority. So, if you did end up with an autorun.gpu on the nand going out of control, you just have to get an app that can access the nand and remove the autorun, put it on the sd as autorun.gpu, and everything will be ok.

Nickmon: I think you'll be better off creating a page on the wiki for tips like this because I can't see the hijackers shutting up about startup sounds anytime soon :(
 
Last edited by a moderator:
Don't know if this has already been mentioned elsewhere, but I seem to remember that a few days ago some people were trying to put the webserver root onto sd instead of /usr/gp2x/www. The solution is to remove the www folder and replace it with a symlink to the sd (ln -s /mnt/sd www).
 
Racer445 posted on May 3 2006 at 02:34 PM said:
Yeah at it must be stereo or else it will come out sounding like a chipmunk ;)

I have a shortened version of the Windows 98 (or is it 95?) log in theme up for download here. If you've already upgraded to 2.0 just pop the wav file on a freshly formatted card, and boot it up while pressing start+select. The firmware Updating screen will come up for a bit, then go to the menu. Reboot and listen.

Anybody feel like giving a go at a lemmings wav file? "Let's Go!". Or even "Oh nooooo!"

Or even another one. Mario from Mario 64 saying Letsa Go. :lol:
 
Last edited by a moderator:
I think it'd be neat to put the old, old version of the Macintosh chime on the GP2X. The pre-PowerPC version, on the old black and white monitored Macs, like the Plus. I'll try to find it...

EDIT: Grr... Can't find it... I may have to go get my old Mac Plus and record it myself...

EDIT 2: Oh wait... Someone already did it... I should really check the archive before I jump to conclusions like this.

But still, I'd like to make my own version of it. Mine would include the power switch click, the squealing of the monitor as it booted up, and the tone itself.

EDIT 4,5,6,7,8, etc.: Grammar/punctuation.
 
PSyMastR posted on May 3 2006 at 09:09 PM said:
Why when using telnet on my gp2x, the command thing comes up twice, always.

I have this problem too, it's really annoying. Using the standard Windoze XP telnet client. Could this be a Windoze problem?

Edit: I've noticed that if I press ctrl-enter instead of enter I only get one prompt. I don't know much about Windoze so not sure what ctrl-enter actually does.
Maybe it's the old CR-LF thing?
Every day I use Windoze I curse Bill Gates for the mental stress he causes me.
 
Last edited by a moderator:
ctrl+enter only sends a linefeed, on windows enter sends cr+lf.

If you can't configure telnet to only send lf, there's a stty command on the gp2x you can use to make it ignore cr:

stty igncr

(I believe this is correct, I haven't tested it, and gp2x may not have stty)
 
Back
Top