Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2013, 02:23 PM   #31
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
was able to make it work by running the mkdir and cp commands by hand in kterm..
those 3 tiny buttons now have unclipped characters..

but something weird happening..

i had earlier followed some post here to change home from /tmp/root to /home/root

now running
Code:
echo $HOME
or
Code:
echo ~
still gives
Code:
/tmp/root
as the output..

but.. doing a
Code:
mntroot ro
or a
Code:
mntroot rw
is not affecting /tmp/root.. it's affecting /home/root..

so.. i did:
  1. Code:
    mntroot rw
  2. Code:
    mkdir -p /home/root/.config/galculator
  3. Code:
    cp /mnt/us/extensions/galculator/.config/galculator/galculator.conf /home/root/.config/galculator/galculator.conf

which works.. but should i leave root fs in rw mode..

would like our experts' explanation for above behaviour..
nasser is offline   Reply With Quote
Old 09-20-2013, 02:33 PM   #32
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by nasser View Post
was able to make it work by running the mkdir and cp commands by hand in kterm..
those 3 tiny buttons now have unclipped characters..

but something weird happening..

i had earlier followed some post here to change home from /tmp/root to /home/root

now running
Code:
echo $HOME
or
Code:
echo ~
still gives
Code:
/tmp/root
as the output..

but.. doing a
Code:
mntroot ro
or a
Code:
mntroot rw
is not affecting /tmp/root.. it's affecting /home/root..

so.. i did:
  1. Code:
    mntroot rw
  2. Code:
    mkdir -p /home/root/.config/galculator
  3. Code:
    cp /mnt/us/extensions/galculator/.config/galculator/galculator.conf /home/root/.config/galculator/galculator.conf

which works.. but should i leave root fs in rw mode..

would like our experts' explanation for above behaviour..
Code:
[root@kindle root]# ls -la / | grep tmp
lrwxrwxrwx    1 root     root             8 Jan  2  1970 tmp -> /var/tmp
[root@kindle root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (ro,noatime,nodiratime,data=writeback)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /var type tmpfs (rw,relatime,size=32768k)
/dev/loop/2 on /lib/firmware/cyttsp type cramfs (ro,noatime,nodiratime)
/dev/loop/3 on /usr/share/X11/xkb type cramfs (ro,noatime,nodiratime)
/dev/loop/4 on /usr/java/lib/fonts type cramfs (ro,noatime,nodiratime)
/dev/loop/5 on /etc/kdb.src type cramfs (ro,noatime,nodiratime)
/dev/loop/6 on /usr/lib/locale type cramfs (ro,noatime,nodiratime)
/dev/loop/7 on /usr/share/keyboard type cramfs (ro,noatime,nodiratime)
/dev/mmcblk0p3 on /var/local type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/loop/0 on /mnt/base-us type vfat (rw,noexec,noatime,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
fsp on /mnt/us type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
The answer to all your questions lies above, namely in what is mounted where. /tmp is just a symlink to /var/tmp, and /var is a tmpfs, so it will disappear after shutdown.

/home would be on the root partition, and thus read-only in normal use. And yes, I agree that it's a bad idea to leave root mounted rw for normal use.

You have two options here: use a home directory on the USB partition (/mnt/us), or in /var/local. The advantage of the former is that you can edit files via USB, the advantage of the latter is that it's a real filesystem, not FAT32. I suggest to go for /var/local/home/root, or /var/local/root, or whatever you please.
ixtab is offline   Reply With Quote
Advert
Old 09-20-2013, 02:38 PM   #33
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
@nasser

To have galculator config in /mnt/us/extensions/galculator/galculator.conf change galculator/usr/bin/run.sh to:
Code:
#!/bin/sh
GALCULATOR_CONFIG=/mnt/us/extensions/galculator/galculator.conf \
GTK_IM_MODULE=kindle \
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc \
/mnt/us/extensions/galculator/usr/bin/galculator
baf is offline   Reply With Quote
Old 09-20-2013, 02:53 PM   #34
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
By the way, I think it looks better in landscape on KT
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_09_20T20_50_58+0200.png
Views:	255
Size:	19.5 KB
ID:	111657  
baf is offline   Reply With Quote
Old 09-20-2013, 03:03 PM   #35
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
well.. baf seems to have found a simple solution..
but thanks to ixtab for explaining..
i need to fix my home location..
need to read and understand in detail..
am still puzzled by why echo $HOME and cp to ~ still recognise /tmp/root as home.. whereas mntroot and galculator itself consider /home/root..

Last edited by twobob; 09-20-2013 at 03:09 PM. Reason: :thumbsup:
nasser is offline   Reply With Quote
Advert
Old 09-20-2013, 03:03 PM   #36
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
@baf Excellent point. I forgot about that lol.

Yeah, I'm not sure why the HOME isn't being honoured either.

EDIT: Updated top post

Last edited by twobob; 09-20-2013 at 03:10 PM.
twobob is offline   Reply With Quote
Old 09-20-2013, 03:39 PM   #37
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
One more thing:
This path in your run.sh is wrong:
Code:
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc
should be:
Code:
/mnt/us/extensions/galculator/usr/share/pixmaps/gtkrc
baf is offline   Reply With Quote
Old 09-20-2013, 03:48 PM   #38
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Very nice calculator by the way.
Thanks twobob!
baf is offline   Reply With Quote
Old 09-20-2013, 03:57 PM   #39
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Quote:
Originally Posted by twobob View Post
Yeah, I'm not sure why the HOME isn't being honoured either.
Galculator uses g_get_home_dir() to get user's home dir and this function takes it from passwd file rather than from env variable.
baf is offline   Reply With Quote
Old 09-20-2013, 04:01 PM   #40
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by baf View Post
Galculator uses g_get_home_dir() to get user's home dir and this function takes it from passwd file rather than from env variable.
Quote:
Originally Posted by nasser View Post
am still puzzled by why echo $HOME and cp to ~ still recognise /tmp/root as home.. whereas mntroot and galculator itself consider /home/root..
As baf said. Your current shell instance still uses the old values. Logging out and back in should fix that.
ixtab is offline   Reply With Quote
Old 09-20-2013, 05:54 PM   #41
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by baf View Post
One more thing:
This path in your run.sh is wrong:
Code:
GTK2_RC_FILES=/mnt/us/extensions/galculator/pixmaps/gtkrc
should be:
Code:
/mnt/us/extensions/galculator/usr/share/pixmaps/gtkrc
Quote:
Originally Posted by baf View Post
Galculator uses g_get_home_dir() to get user's home dir and this function takes it from passwd file rather than from env variable.
Double thanks
I have learned something...

Will fix.

EDIT: Done.

Last edited by twobob; 09-20-2013 at 05:57 PM.
twobob is offline   Reply With Quote
Old 09-20-2013, 10:48 PM   #42
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by baf View Post
By the way, I think it looks better in landscape on KT
looks great..
how to enable landscape mode..? on..PW?
nasser is offline   Reply With Quote
Old 09-20-2013, 11:27 PM   #43
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by ixtab View Post
As baf said. Your current shell instance still uses the old values. Logging out and back in should fix that.
i've done a restart more than once after doing the home location fiddle.. surely that should be enough..?

..and i go to the kindle CLI either through kterm or ssh.. in both, i come out by typing exit.. or in the case of kterm sometimes, by using the 2 finger menu>quit option.. don't these count as a "logout"..?

will check again..
nasser is offline   Reply With Quote
Old 09-20-2013, 11:53 PM   #44
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Hmmm... I don't know. For me, it works as it should:

Code:
$ ssh root@kindle
[root@kindle root]# mntroot rw
system: I mntroot:def:Making root filesystem writeable
[root@kindle root]# grep ^root /etc/passwd 
root:x:0:0:root:/tmp/root:/bin/sh
[root@kindle root]# sed -i -e 's/\/tmp\/root/\/var\/tmp\/root/' /etc/passwd 
[root@kindle root]# grep ^root /etc/passwd 
root:x:0:0:root:/var/tmp/root:/bin/sh
[root@kindle root]# mntroot ro
system: I mntroot:def:Making root filesystem read-only
[root@kindle root]# echo $HOME
/tmp/root
[root@kindle root]# ^D
Connection to kindle closed.
$ ssh root@kindle
[root@kindle root]# echo $HOME
/var/tmp/root
ixtab is offline   Reply With Quote
Old 09-21-2013, 02:54 AM   #45
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
there seems to be a difference between logging in through ssh and "logging in" through kterm.. see screenshots..
ssh recognises the "new" home at /home/root..
while the kterm session is still hung up on /tmp/root..
Attached Thumbnails
Click image for larger version

Name:	ssh_screenshot.png
Views:	239
Size:	33.7 KB
ID:	111691   Click image for larger version

Name:	kterm_screenshot.png
Views:	254
Size:	49.4 KB
ID:	111692  
nasser is offline   Reply With Quote
Reply

Tags
calculator, launcher add-ons, twobob


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Kindle for PC ver 1.5.0 seems to have died Mike L Amazon Kindle 4 07-31-2012 03:34 AM
Kindle Touch upgrade ver 5.1.0 Problem sigster Kindle Developer's Corner 5 04-30-2012 07:46 PM
Kindle 3 ver 3.3 will not jailbreak. berni29 Amazon Kindle 7 02-12-2012 10:11 AM
Ver 0.8.34 sirius911 Library Management 1 01-06-2012 09:05 AM


All times are GMT -4. The time now is 09:56 PM.


MobileRead.com is a privately owned, operated and funded community.