Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 17 Oct 2019, 01:49
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to open ROX desktop shortcuts with keyboard? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [34 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Sun 16 Nov 2014, 10:00    Post subject:  

greengeek wrote:
Puppus Dogfellow wrote:
anyway, since coming across this thread, i sometimes find myself sitting at the machine annoyed i can't access the desktop icons with the keyboard.
Me too. It's bugging me now. However I have found a way to do this. Boot the puppy without savefile, use Alt+F4 twice as suggested by Mochi, then pick the keyboard up off the desk, nudge the mouse till the pointer is in position over sdb1, then smash the keyboard down on the left click mouse button. Depending on the puppy you may need to do this last step twice in quick succession.

Its a quite satisfying way to overcome the lack of any other keyboard method of accessing the icons. Twisted Evil


Hi, greengeek.

I'm not sure I understand. As a comparison, some rock stars smash their
guitars in concert. So, we computer types should "pick the keyboard up
off the desk" and smash it on the sdb1 icon?

(In which case we'll need an endless supply of keyboards AND screens!) Wink

Sorry if this sounds like a first-level, nose-on-the-ground understanding.
I'm sure it's not a translation or cultural problem, though.

@mochimoppei: why the obsession with the "pristine Puppy"? You could
have a very small savefile, if you are concerned with safety. Or you could
memorize a one-liner to launch your script, something like:
Code:
mount -t extM /dev/sdbN /mnt/sdbN;cd /mnt/sdbN;myscript.sh

and type it in console when needed.

No offense to anyone, but it seems to me that we've seriously started splitting hairs!

BFN.

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1625
Location: nyc

PostPosted: Sun 16 Nov 2014, 12:48    Post subject:  

musher0 wrote:


[...]
Or you could
memorize a one-liner to launch your script, something like:
Code:
mount -t extM /dev/sdbN /mnt/sdbN;cd /mnt/sdbN;myscript.sh



yeah, but to get to the console without a built in shortcut for it requires the mouse or a lengthy menu-stroll, no?

i think the issue is that it's just kind of odd that you can't switch focus to a desktop icon and then navigate them like files in a folder using the arrow keys.

also, the smashing part is just for show when there's people around watching you type. otherwise you can just gently use the keyboard to nudge around the mouse and depress the proper button.

Wink
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Sun 16 Nov 2014, 13:54    Post subject:  

musher0 wrote:
So, we computer types should "pick the keyboard up
off the desk" and smash it on the sdb1 icon?

Je m'excuse musher0 - that was just my weird sense of humour coming to the fore. Hard for me to make funny jokes in English, impossible in French Smile

I was just suggesting that there is in fact a method for activating the drive icon without putting hands on the mouse...
Not quite what Mochi was asking for i suspect though Smile
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1921
Location: Japan

PostPosted: Sun 16 Nov 2014, 21:56    Post subject:  

musher0 wrote:
No offense to anyone, but it seems to me that we've seriously started splitting hairs!

No offense, but it seems that you missed a couple of important points Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Mon 17 Nov 2014, 14:19    Post subject:  

MochiMoppel wrote:
musher0 wrote:
No offense to anyone, but it seems to me that we've seriously started splitting hairs!

No offense, but it seems that you missed a couple of important points Wink


Hi, MochiMoppei.

I haven't missed anything. Start no rumors please. Smile

Ok, the ROX DE cannot give focus to any icon per se, so we can't use any
key from the keyboard on any ROX icon -- because no focus.

Solution: someone will have to write a new version of ROX adding this
feature, that's all. In the meantime, we ROX lovers have to take patience.

But ROX has a workaround in the form of key combinations that can be
twinned to each icon. You do not wish to use that feature...

... because you are imposing to yourself a limitation of "no pupsave file".
That is a valid choice, but it is a self-discipline, it is not a problem per se.

In short, no wonder the ROX bird can't bark. Smile It's a bird. Smile

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Mon 17 Nov 2014, 14:37    Post subject:  

@ greengeek: no excuses necessary!

@Puppus: Mochi could add a suitable one-liner in his .xinit file to
automatically launch his desired function, but he is imposing on himself the
condition of a "pristine" Puppy.

As I understand it, he doesn't want to do a remaster of his Puppy -- which,
to me, appears to be the solution, in the circumstance.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Tue 18 Nov 2014, 03:03    Post subject:  

musher0 wrote:
As I understand it, he doesn't want to do a remaster of his Puppy -- which, to me, appears to be the solution, in the circumstance.
But - it is a fair restriction - what he seems to want is a method of booting a live puppy (no savefile) and navigating desktop icons using only the keyboard. Quite a handy technique if your mouse is dead and you wish to activate a script residing on a partition somewhere.

Handy too, if you want to save time and keep your fingers on the keyboard even if the mouse is functional...

I do remember a thread where one puppian had a dead screen and wanted to navigate in a similar way to what Mochi is describing - they could not see mouse movement onscreen and wanted to accept the default screens and open a drive and script...

And what if the user was blind? It would be handy for them to be able to navigate the desktop. As you have suggested It would be useful for this to be corrected by further ROX development.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Tue 18 Nov 2014, 14:22    Post subject:  

Hi, greengeek.

The points you make for having keyboard navigation on a Puppy desktop
are all interesting and valid.

The logical inconsistency I see is this:
Mochi wants to add a functionality to a "pristine" Puppy while keeping it
"pristine". You can't add 1 to 1 and keep it a "1". When you do that, it
becomes a "2"...

IMO, he'd have to do a remaster to include his script -- and/or XBindKeys
-- to solve his problem. And that remaster of course would make any
Puppy "not pristine" any more.

Come to think of it, I believe one of pemasu's Puppies comes with
XBindKeys included. The "wheezy" one, I think (to be checked). This way
our friend Mochi would find his profit while keeping the Puppy "pristine".

Hm... His needed script would not be included. So back to remastering,
I guess.

Just a thought.

musher0

~~~~~~~~~~
One question, if I may. When does a remastered Puppy become pristine
again? When it is different enough from the original?

Anyway, Mochi has to find his own answer to his problem. I'm only
suggesting.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1921
Location: Japan

PostPosted: Tue 18 Nov 2014, 19:48    Post subject:  

musher0 wrote:
The logical inconsistency I see is this:
Mochi wants to add a functionality to a "pristine" Puppy while keeping it
"pristine". You can't add 1 to 1 and keep it a "1".
Your logical error here: Mochi does not want to add functionality, he wants to use standard functionality included in a plain vanilla Puppy. Unfortunately, as we see now, this functionality does not exist, so Mochi and the rest of the world have to live without it.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Wed 19 Nov 2014, 02:18    Post subject:  

MochiMoppel wrote:
musher0 wrote:
The logical inconsistency I see is this:
Mochi wants to add a functionality to a "pristine" Puppy while keeping it
"pristine". You can't add 1 to 1 and keep it a "1".
Your logical error here: Mochi does not want to add functionality, he wants to use standard functionality included in a plain vanilla Puppy. Unfortunately, as we see now, this functionality does not exist, so Mochi and the rest of the world have to live without it.


My condolences...

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Fri 21 Nov 2014, 16:19    Post subject:  

Quote:
I'm stumped: After booting into the ROX desktop nothing seems to have focus. Pressing TAB sets focus to the first desktop icon, usually "file". How can I open it using the keyboard? Pressing ENTER or SPACEBAR lets the description flicker, but nothing else happens. I would find it strange if clicking an icon has no keyboard equivalent. Or is it only me?

P.S. Using individual keyboard shortcuts for desktop icons (defined in their "Edit Item" menu) is not what I am after.

Quote:
Thanks, but that's not an option. My real target is one of the drive icons, which would make your workaround an awfully long ride

Quote:
The reason why I was asking: I boot all my Puppies frugally from USB, no savefile, not remastered or altered in any way. The first thing after booting is to run my setup script, a file outside of Puppy on the USB stick. To get there as quickly as possible I would like to apply a key sequence. Starting with 2 times Alt+F4 to get past the initial screens is easy, but then I need to hit the sdb1 drive button. Kind of tricky using the mouse when the screen is rotated to portrait and the screen content is still landscape...

There is no need to apply a key sequence to get your -first thing after booting is to run my setup script, a file outside of Puppy on the USB stick- successfully working. This can be done automatically!

Yes, you don't need to do a remaster for that!

Note: whatever functionality you want to add to a fresh, clean and un-remastered Puppy Linux: the init Script in initrd.gz is THE WAY to go!

Some Background Information:

There are just two (2) things one needs to know, to handle such purposes:

1.) The Boot Drive/Partition
2.) The Boot Directory

These Information is already available by the init Script in initrd.gz - which is:

- $PUPSFSDEV
- $PUPSFSDIR

Using this Information one can create a little Script to mount automatically the Boot Partition and to execute a Script from Boot Partition or Boot Directory afterwards.

Side Note:

I'm constantly remastering my LazY Puppy (yes, still the one based on the Lucid 5.2.8-4) - almost on each and every Day since I've started to working on it. A few Days ago I was pi.. off of remastering since I did forgot to include the same File (a hidden on, .NAME) three times in a row at remastering. So I picked up an older work that has been laying around for Months. The Plan was to read out a config File (which is already existing and fully working - except this one special purpose) and to get Information from this config File to let a StartUp Script do its Job related to the current OS booting ($DISTRO_FILE_PREFIX).

Successfully finished!

End Side Note.

I'm just adding 30 Lines of Code to the init Script (where there are 7 Lines commented Lines and 9 Lines just echoing Information, so 14 Lines of real Code).

By this short Piece of work I'm now booting the new, fresh, clean and un-remastered Slacko 5.9.3. While my StartUp Script is doing its work automatically, I do set the Quick Setup's Preferences for my German needs (DE Keyboard, LANG etc.pp). After the StartUp Script is finished, I choose to restart X to get the DE Interface and it turns back to me a fully configured LazY Puppy based on Slacko 5.9.3 which includes (loaded by SFS only!!!):

- my Apps SFS (all my Programs like SFS P.L.U.S., SARA B. & GDAM Builder (a great new Development Tool)
- my Icons SFS (a 12 MB Icon SFS Module)
- plus

LP2_GimpPainter-2.8.7.sfs
LP2_Gimp-PlugIns-2.8.sfs
LP2_JWildFire-2.00.sfs
LP2_LightZone_4.0.0-0_i386.sfs
LP2_jre-1.7u13-i586.sfs
LP2_tintii-2.9.0-i486-static.sfs
LP2_urbanlightscape-1.3.3-i486-static.sfs
LP2_ALSAPlayer-0.99.81.sfs
LP2_SunVox-1.7.5.sfs (a great Music Composing Program !!!)
LP2_WineCorelSuite.sfs (including Corel Photopaint 8 !!!)

These LP2_xxx.sfs Modules are the only ones that have been successfully tested in Slacko 5.9.3. so far (still 608 SFS Modules untested).

All of the LP2_xxx.sfs Modules are loaded by a modified version of sfs_load since I want them on a lower layer and inside of a single Directory at Boot Partition - as usual. Besides this, my Apps SFS and Icons SFS needed to appear at top layer, so I use a modified version of a Script by mikeb at this Topic to have them on top.

My config File (File 'lped' at Boot Partition) contains 2 Lines of Options for the Slacko 5.9.3:
Code:
SFSLISTLOADOPT_slacko_5_9_3="true"
SFSLIST_slacko_5_9_3="LP2_GimpPainter-2.8.7.sfs LP2_Gimp-PlugIns-2.8.sfs LP2_JWildFire-2.00.sfs LP2_LightZone_4.0.0-0_i386.sfs LP2_jre-1.7u13-i586.sfs LP2_tintii-2.9.0-i486-static.sfs LP2_urbanlightscape-1.3.3-i486-static.sfs LP2_ALSAPlayer-0.99.81.sfs LP2_SunVox-1.7.5.sfs LP2_WineCorelSuite.sfs"

and so there are others for my different LazY Puppy Systems. If $SFSLISTLOADOPT_slacko_5_9_3 would be set to anything else than 'true', the SFS Modules listed will not be loaded.

Ok, so now closer to the code. Of course one could set all of this hardcoded, but I do like flexibility. So there needs to be a new Boot Option to be defined, to submit a File via the kernel line from within a Boot Menu Entry in menu.lst.

I did insert this Entry into menu.lst for that:
Slacko 5.9.3 Boot Menu Entry (Option marked) wrote:
title Slacko 5.93 (RAM, Nouvou NoAccel 0, User Script) \n Originalversion
find --set-root --ignore-floppies /Slacko593/initrd.gz
kernel /Slacko593/vmlinuz lpuserscript=StartUp psubdir=Slacko593 pmedia=atahd pfix=ram,fsck
initrd /Slacko593/initrd.gz

Which won't do anything if it doesn't get the new Option. So I included the next Code into the init Script of initrd.gz:
Code:
   # Get User's Script to be executed at Boot Process (currently: /root/Startup)
   USE_USER_SCRIPT="false"
   LOAD_USER_SCRIPT=""
   if [ "$lpuserscript" ];then
      USE_USER_SCRIPT="true"
      LOAD_USER_SCRIPT="$lpuserscript"
   fi

# Put in between of this Code
##############################

[ $pupsfs ] && PUPSFS=$pupsfs #format partition:<path><filename> ex: sda2:/wary071/wary_071.sfs
[ $zdrv ] && ZDRV=$zdrv #ex: sda2:/wary071/zdrv_071.sfs
[ $adrv ] && ADRV=$adrv
[ $ydrv ] && YDRV=$ydrv

[ $underdog ] && UNDERDOG=$underdog #120130 specify partition for Underdog Linux (refer also underdog.lnx).

...here...

#now supporting a boot menu...
RDSH=""
if [ "$pfix" ];then

Next what's needed, is to save the submitted File Name for the use in a Script at either /root/Startup or /usr/local/autostart (since Slacko 5.9.3 is deprecating /root/Startup and holds .desktop Files in /root/.config/autostart to auto-start Applications I did choose to use /usr/local/autostart as the location for the Script that will mount the Boot Drive and execute the submitted Script).

Here is the Code:
Code:
   # Save the Boot Partition for some later use at Boot Process - RSH
   echo -n "$PUPSFSDEV" > /pup_new/etc/saved_boot_drive
   # Save the Boot Directory for some later use at Boot Process - RSH
   PUPSFSDIR="`dirname "$PUPSFSFILE"`"
   echo -n "$PUPSFSDIR" > /pup_new/etc/saved_boot_directory
   # Save submitted User Script to be executed at Boot Process - RSH
   echo -n "$LOAD_USER_SCRIPT" >/pup_new/etc/saved_user_script
   # Copy the Script auto_execute to /root/Startup (/pup_new)
   if [ -d /pup_new/root/.config/autostart ]; then
      mkdir -p /pup_new/usr/local/autostart
      cp /zzz_z_auto_execute.desktop /pup_new/root/.config/autostart/zzz_z_auto_execute.desktop
      cp /zzz_z_auto_execute /pup_new/usr/local/autostart/
      else
      cp /zzz_z_auto_execute /pup_new/root/Startup
   fi
   #echo "" > /pup_new/etc/personal_settings_popup_disabled
   echo "" >/dev/console
   echo "" >/dev/console
   echo "User's Boot Drive    : $PUPSFSDEV" >/dev/console
   echo "User's Boot Directory: $PUPSFSDIR" >/dev/console
   echo "User's Script        : $LOAD_USER_SCRIPT" >/dev/console
   echo "" >/dev/console

# Put it right above this Code at the End of the 'init' Script
##############################################################

#120215 if PLANG set here, carry it over...
if [ "$PLANG" ];then
langPTN="s%^LANG=.*%LANG=${PLANG}%"
sed -i -e "$langPTN" /pup_new/etc/profile
fi

After graphical X Server is started there will be three Files that will be analyzed by the Script in /root/Startup or /usr/local/autorun

1.) /etc/saved_boot_drive
2.) /etc/saved_boot_directory
3.) /etc/saved_user_script

That's just all Information needed, to get the Job done!

I did call that Script: zzz_z_auto_execute and it has this Content:

Code:
#!/bin/bash -a
#------------------------------------------------------------------------------
# auto_execute
# A Script to be executed from within /root/Startup to execute a different
# Script which is submitted through the LazY Puppy Boot Options
# 2014-11-21 RSH for LazY Puppy
#------------------------------------------------------------------------------

# Already executed, don't do it twice. Create the File /tmp/auto_execute_stopped from
# within your MY_USER_SCRIPT stored in /etc/saved_user_script, to avoid running this
# here Script again after just restarting X etc.pp.
[ -f /tmp/auto_execute_stopped ] && exit 0

# Get Puppy Data
. /etc/DISTRO_SPECS

# Just make sure to execute it after the Drive Icons appeared on the Desktop
sleep 5

# Mount the Boot Drive, mount only if the Puppy SFS is not found
function MountMyDrive(){
   drive2mnt="$1"
   [ "$MY_BOOT_DIR" = "/" ] && MYBOOTDIR="" || MYBOOTDIR="$MY_BOOT_DIR"
   if [ ! -f /mnt/$drive2mnt$MYBOOTDIR/$DISTRO_PUPPYSFS ]; then
      blkid  | egrep '(hd|sd)' | egrep -v "/dev/loop*" | egrep -v "swap" | cut -f 1 -d ':' | sed 's/\/dev\///'>/tmp/list_of_drives
      sort -u /tmp/list_of_drives > /tmp/sorted_list_of_drives
      mv /tmp/sorted_list_of_drives /tmp/list_of_drives
      for drive in  `cat /tmp/list_of_drives`;
      do
         if [ "/mnt/$drive" = "/mnt/$drive2mnt" ]; then
            [ ! -d /mnt/$drive2mnt ] && mkdir -p /mnt/$drive2mnt
            if [ "`blkid /dev/$drive2mnt | grep -o "TYPE=.*" | cut -f2 -d '"'`" = "ntfs" ]; then
               mount -t ntfs /dev/$drive2mnt /mnt/$drive2mnt
               else
               mount /dev/$drive2mnt /mnt/$drive2mnt
            fi
         fi
      done
   fi
} #' End of MountMyDrive

# Collect needed Data, mount the Drive and search/execute the User's Script
if [ -f /etc/saved_user_script ]; then
   read MY_USER_SCRIPT < /etc/saved_user_script
   read MY_BOOT_DRIVE < /etc/saved_boot_drive
   read MY_BOOT_DIR < /etc/saved_boot_directory
   if [ "$MY_USER_SCRIPT" != "" ]; then
      MYUSERSCRIPT=""
      MountMyDrive "$MY_BOOT_DRIVE"
      [ -f "/mnt/$MY_BOOT_DRIVE/$MY_USER_SCRIPT" ] && MYUSERSCRIPT="/mnt/$MY_BOOT_DRIVE/$MY_USER_SCRIPT"
      [ -f "/mnt/$MY_BOOT_DRIVE$MY_BOOT_DIR/$MY_USER_SCRIPT" ] && MYUSERSCRIPT="/mnt/$MY_BOOT_DRIVE$MY_BOOT_DIR/$MY_USER_SCRIPT"
      [ -f "$MYUSERSCRIPT" ] && exec "$MYUSERSCRIPT"
   fi
fi

exit 0

# Copy Script 'zzz_z_auto_execute' into root Directory of the extracted
# initrd.gz Directory - right where the 'init' Script is placed.

Now create a .desktop File in case it should be used in the new Slacko 5.9.3, which I did name to : zzz_z_auto_execute.desktop:

Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
NoDisplay=true
Name=zzz_z_auto_execute
Exec=/usr/local/autostart/zzz_z_auto_execute

# Copy .desktop File 'zzz_z_auto_execute.desktop' also into root Directory of
# the extracted initrd.gz Directory - right where the 'init' Script is placed.
# This is meant for the new Slacko 5.9.3 which deprecates = /root/Startup.


# That's just all...
# ...have Fun with your new Puppy Linux Options

Ok, for the Record, here is what I'm doing in my StartUp Script for the Slacko 5.9.3 - just for your Interest:
Code:
#!/bin/bash -a

# Get Puppy Data
. /etc/DISTRO_SPECS
MYLOGFILE=/tmp/StartUp-log.txt

# Get the saved Boot Drive/Partition
read MYBOOTDRIVE < /etc/saved_boot_drive
read MYBOOTDIR < /etc/saved_boot_directory

# Slow down the Mouse first and keep the Settings in case of restarting X !!!
/mnt/$MYBOOTDRIVE/Skripte/MouseSettings/slow-xset.sh
cp -af /mnt/$MYBOOTDRIVE/Skripte/MouseSettings/slow-xset.sh /root/.xset.sh

case "$DISTRO_FILE_PREFIX" in
   slacko) # Slacko Puppy
      case "$DISTRO_VERSION" in
         5.9.3) # Put all of this into a single Script for Slacko 5.9.3
            
            # Copy some Files into the OS
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/Rox/globicons /root/Choices/ROX-Filer/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/Rox/globicons /root/.config/rox.sourceforge.net/ROX-Filer/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/geany/geany.conf /root/.config/geany/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/sfs_load/sfs_load /usr/sbin/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/sfs_load/lazy_sfs_load /usr/sbin/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/usr-local/bin /usr/local/
            
            # Set new Modules Directory (redirected Boot Directory)
            echo "/mnt/$MYBOOTDRIVE/Module" > /tmp/redirected_lp2bdl
            sleep .1
            
            # Load SFS P.L.U.S.
            #sfs_load --cli --quiet --skip-fixmenus /mnt/sdc1/Module/LP3_SFS_PLUS_3.sfs
            /mnt/$MYBOOTDRIVE/Skripte/tools/lazy_sfs_load_cd --cli --quiet --skip-fixmenus /mnt/$MYBOOTDRIVE/Module/LP3_SFS_PLUS_3.sfs
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/sfs_load/sfs_load /usr/sbin/
            cp -af /mnt/$MYBOOTDRIVE/Skripte/StartUp/$DISTRO_FILE_PREFIX.$DISTRO_VERSION/sfs_load/lazy_sfs_load /usr/sbin/
            
            # Get Boot Directory and $LPED definition File
            [ ! -f /tmp/my_lped ] && /usr/sbin/ceelab/tools/get_lped
            read LPED < /tmp/my_lped
            [ ! -f "$LPED" ] && /usr/sbin/ceelab/tools/get_lped
            . /usr/sbin/ceelab/lp2_sys_data/LP2_BootDir
            . "$LPED"
            # Now ready to use all external Scripts, RoxApps, Directories and Files
            
            # Load Icons
            lazy_sfs_load_cd --cli --quiet --skip-fixmenus /mnt/$MYBOOTDRIVE/Module/LP3_ScriptBox_Icons.sfs
            # Update Icon Cache
            /usr/local/lazy_remaster/lp2_icon_update
            
            # Get the redirected Boot Directory for LOG Purposes
            read REDIRECTLP2BDL < /tmp/redirected_lp2bdl
            echo "LPED: $LPED" > "$MYLOGFILE"
            echo "SFSLoadOpt: $SFSLISTLOADOPT_slacko_5_9_3" >> "$MYLOGFILE"
            echo "Boot Partition: $LP2BPL" >> "$MYLOGFILE"
            echo "Boot Directory: $LP2BDL" >> "$MYLOGFILE"
            echo "Redirected Boot Directory: $REDIRECTLP2BDL" >> "$MYLOGFILE"
            
            # Load additional SFS Modules. Put this into a List later for a smarter use
            if [ "$SFSLISTLOADOPT_slacko_5_9_3" = "true" ]; then
               for SFSTOLOAD in $SFSLIST_slacko_5_9_3;
               do
                  sfs_load --cli --quiet --skip-fixmenus "$SFSTOLOAD"
               done
            fi
            
            # Unset new Modules Directory (redirected Boot Directory)
            rm -f /tmp/redirected_lp2bdl
            
            #echo "850" > /etc/codepage
            #echo "de" > /etc/keymap
            #rm -f /etc/localtime
            #ln -s -f /usr/share/zoneinfo/Europe/Berlin /etc/localtime
            #MYLANG="de_DE.UTF-8"
            #SEDSCRIPT="s%^LANG.*%LANG=${MYLANG}%"
            #sed -i -e "$SEDSCRIPT" /etc/profile
            
            # Fix the Menus
            fixmenus
            
            # Update JWM
            jwm -reload
            echo "auto_execute_stopped" > /tmp/auto_execute_stopped
            
            # Creat my symbolic Links
            #/mnt/sdc1/Skripte/Symbolische-Links-erzeugen -MakeSymbolicLinks
            /mnt/$MYBOOTDRIVE/$myscripts/Symbolische-Links-erzeugen
            
            # Avoid booting with an accidentally patched initrd.gz, which will fail to boot,
            # if it was patched by the current used Language Packages Translation Script.
            cp -af /mnt/$MYBOOTDRIVE$MYBOOTDIR/initrd-new.gz /mnt/$MYBOOTDRIVE$MYBOOTDIR/initrd.gz
            
            ## Restart X -> doesn't work here. Don't know why...???
            #/usr/bin/restartwm
            
         ;; # 5.9.3
      esac
   ;; # slacko
   *) # Content removed for this example. Just added nicoedit to make the Script smaller
      nicoedit &
   ;;
esac


By the Way: yes, today I did change my User Name to LazY Puppy and established a E-Mail Adress called lazy-puppy@xxx.xx.

Take this from me with kind Greetings and as some sort of pre-sent *apologizing* since I'm going to hijack a Script of yours and putting it modified into my new GDAM Builder, a all new GtkDialog Integrated Development Environment combined with an internal Script Language to create easily GtkDialog XML-Code from .desktop Files or any else File submitted by right-click-action.

I will post more about this later at a different Place.

Last edited by LazY Puppy on Fri 21 Nov 2014, 16:59; edited 1 time in total
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Fri 21 Nov 2014, 16:28    Post subject:  

Nice work RSH - you are getting very close to being able to make it possible for Puppians to write a small text file listing their 'personalised options' and have puppy boot automatically into that personalised state without any remaster at all.

Then no keyboard interaction will be needed either!

Puppy will look for the file and set itself up. Bliss!
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1921
Location: Japan

PostPosted: Sat 22 Nov 2014, 00:37    Post subject:  

I'm sorry that my question triggered so much misunderstanding. I'll have to work on my English.

"How to open ROX desktop shortcuts with keyboard?" means that I was looking for a way to use the keyboard, not for a way to avoid it. "How to run a script at startup?" is not the topic of my post

The reason why I mentioned my use case was just to give an example where keyboard access to desktop icons can be useful - greengeek mentioned a few others. Also I intended to prevent customization proposals - obviously that didn't work well.

With "not remastered or altered in any way" I meant any Puppy files, and that includes initrd.gz.

I don't expect any new surprising solution, so I mark this thread as solved. My sincere thanks to anyone who tried to help.
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Sat 22 Nov 2014, 00:49    Post subject:  

Sorry, if you don't need it, don't us it.

Your question to use a keyboard shortcut to open a drive and to execute a config script did came to me like LazY Puppy 5.2.8-4 has been started.

By an Idea NOT completely thought out to an end or finished state. It just brings up a new question: why ever using a keyboard sequence if something is frequently done on every boot process.

Ever heard of the frequently asked questions? Would you like to give an answer to them over and over again? Why using the keyboard over and over again at each and every boot boot up for an each and every time equal Job to be done?

Never mind... Very Happy

I'm currently very lucky with that solution!
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Sat 22 Nov 2014, 03:59    Post subject:  

I have to agree with Lazy_Puppy... "Do once, use many times," as the saying goes.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [34 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1885s ][ Queries: 13 (0.0221s) ][ GZIP on ]