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 Mon 20 Oct 2014, 19:12
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
help_NOX .. a helper prog if X crashes
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Mon 29 Nov 2010, 03:00    Post subject:  help_NOX .. a helper prog if X crashes
Subject description: installs elinks and weechat
 

Hello all.

This is just a small script I wrote which may help some people if they crash X or can't get into X, provided they have a net connection. Recent puppies, if they connect by ethernet, should already be online.

You need to have a net connection to browse and chat so no use to offer the apps as they are pretty small, less than 1MB for both. (Both compiled in Lucid Puppy)

Weechat.. compiled by dejan555
Elinks ... I compiled.

If you don't have a connection then the script stops. Maybe in the future we can have a small wizard that works out of X.
The inspiration was from this thread by goingnuts

There is no menu entry, it's a commandline tool. It is designed to run from console, that is, no X running. It does run inside of X the same way, but uses Xdialog instead of dialog.

You type
Code:
help_NOX
at console



The program then downloads and installs elinks and weechat, verifies install and then you see this



from in X it looks like this:

..then

then you see success..

then..

Then you choose to browse or chat....



It's all pretty fast and simple.

Elinks opens up at the forum page so you can look for a solution, Weechat goes straight to #puppylinux IRC channel.

Thanks guys that hang out on #puppylinux for putting up with my testing over the past few days Very Happy

Any suggestions, I'm sure this could be expanded.

Have fun

Cheers
help_NOX-0.1.pet
Description 
pet

 Download 
Filename  help_NOX-0.1.pet 
Filesize  1.57 KB 
Downloaded  395 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 29 Nov 2010, 05:27    Post subject:  

works OK Mick

URL linking?
Can that be done from command line - not sure?

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Mon 29 Nov 2010, 05:36    Post subject:  

Hello Lobster

May have to read the weechat manual on that one.. there may well be some keyboard shortcut. I might ask dejan555, he has used weechat extensively.

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Mon 29 Nov 2010, 10:55    Post subject:  

to expand the packages part you can use the lists of packages in $HOME/.packages
NOTE: I am posting from memory only so the file names may be off a bit

To list ALL available packages (short names) it would be something like
Code:
cat $HOME/.packages/<version_package_list> |cut -d "|" -f1 |sort |uniq
(I think you need -f3 in cut for the _full_ package name - needed for wget)

If you want the user to only see not-installed packages
Code:
cat $HOME/.packages/<version_package_list> $HOME/.packages/woof_installed_packages |cut -d "|" -f1 |sort |uniq -u


<insert dialog here>
you can echo all the chosen full package names to a file and dowload them

I'm not sure if/where Puppy stores the default mirror choice but this example just assumes ibiblio and woof
Code:
wget --continue --tries=0 --base=http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/ --input-file=file_you_echoed_packages_to

#(to work with busybox it may need the equivalent short options)
wget -c -t 0 -B http://distro.ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-woof/ -i file_you_echoed_packages_to


Sorry if this is not the type of suggestion you were asking for

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Mon 29 Nov 2010, 19:20    Post subject:  

thanks for looking technosaurus

What you suggest sort of goes beyond the scope of this project ... for now.

Probably the priority for this project is to get internet working if it isn't.

Then it could be expanded to install other packages.

Cheers

FOOTNOTE: quickpet started as "browser-installer".. a simple app of about 100 lines.. quickpet is over 1000!!! Laughing Laughing Laughing

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Billtoo


Joined: 07 Apr 2009
Posts: 2126
Location: Ontario Canada

PostPosted: Mon 29 Nov 2010, 19:59    Post subject: help_NOX .. a helper prog if X crashes
Subject description: music
 

01micko wrote:
thanks for looking technosaurus

What you suggest sort of goes beyond the scope of this project ... for now.

Probably the priority for this project is to get internet working if it isn't.

Then it could be expanded to install other packages.

Cheers

FOOTNOTE: quickpet started as "browser-installer".. a simple app of about 100 lines.. quickpet is over 1000!!! Laughing Laughing Laughing


I misunderstood the topic so I removed my message.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.0644s ][ Queries: 12 (0.0055s) ][ GZIP on ]