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 Fri 24 Oct 2014, 11:32
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Changing Rox's default terminal
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 791
Location: Union New Jersey USA

PostPosted: Sat 01 Feb 2014, 23:04    Post_subject:  Changing Rox's default terminal  

Hi all,

Edit: After reading 01micko's post, next following, which I had to interpret, I think the method should be as indicated in the 3rd post of this thread. So just scan the balance of this post to understand the problem.

Problem:
It seems that by default rxvt is the default terminal Rox expects to use. Perhaps it's a woof thing or something you automatically would have if Rox is somewhere selected during the build process. But rxvt isn't necessarily the default terminal, as Devs change change it. In Slacko 5.6, 01micko changed it to urxvt. 01micko knows a hell of a lot more than I do, so I'm sure he had his reasons. But you'll notice that part of the change he made involved deleting the rxvt executable which would have been found at /usr/bin and substituting a symlink named "rxvt" which called /usr/bin/urxvt.

I, however, prefer a terminal which makes it easy to "cut and paste" and as I installed vicmz's Openbox Plus pet with lxpanel, decided to install lxterminal which has "cut and paste" under its edit menu. I think I got lxterminal from the Saluki repo Smokie maintains. To run it, you also have to install the vte-0.26.2-i686.pet also found there.

Easy so far, until I tried to figure out how to change things so that lxterminal would open when I right-clicked within a folder and selected "window>terminal here".

There's no "defaultterminal" file in /usr/local/bin to be edited. Nor did simply deleting the "rxvt" symlink in /usr/bin and creating a new "rxvt" symlink pointing to lxterminal change anything. Not sure why not. pfind "rxvt" and pfind "urxvt", and manually examining those and possible "config" files didn't reveal why urxvt would still appear when "terminal here" was chosen. Perhaps someone who actually understands what makes Puppy tick can find a better way. But, if you're desperate to have the terminal emulator of your choice, the following worked.
Backup your SaveFile before trying this. Following the advice of someone who admittedly doesn't know how everything fits together --or politicians and economists who never studied ecology and social psychology-- is not without the risk of fostering a disaster.

In the following order:
1. Open two rox windows to /usr/bin.
2. In the first window, click the lxterminal icon/executable. That will open an lxterminal at /usr/bin.
3. In the second rox window, scroll to the urxvt icon/executable, right-click it, and "rename" it "urxvt1". --With luck you may be able to later rename it back to "urxvt" if things go wanky.
4. Switch to the opened lxterminal and type the following:

ln -s lxterminal urxvt

which will create a symlink named "urxvt" pointing to lxterminal.

Calls to the former default terminal --urxvt-- will be re-directed to lxterminal, which will now open when "window>terminal here" is selected.

Of course, if your favorite terminal emulator is sakura or rox-term, substitute it for lxterminal when following the above instructions.

mikesLr

Edited_time_total
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Sat 01 Feb 2014, 23:23    Post_subject:  

No mikeslr Smile

Move /usr/bin/xterm (it's a script)

Symlink whatever replacement you have to /usr/bin/xterm.

That's it.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
mikeslr


Joined: 16 Jun 2008
Posts: 791
Location: Union New Jersey USA

PostPosted: Sun 09 Feb 2014, 12:25    Post_subject: My interpretation of 01micko's post  

Hi 01micko,

I said someone who knows what they're doing might have a better method. But I couldn't follow the logic of your instructions exactly.

Moving the script "xterm" out of /usr/bin has two effects: (1) "open terminal here" no longer functions; and (2) its absence enables creating a symlink named "xterm" in /usr/bin. I couldn't think of any reason why "move" shouldn't be interpreted as "remove". But see below.

I also interpreted your instuction "Symlink whatever replacement you have to /usr/bin/xterm" to mean "create a symlink of the replacement giving the symlink the name xterm".

So, ["open terminal here" no longer working] I clicked the lxterminal executable [conveniently located in /usr/bin] which opened an lxterminal at /usr/bin and typed in the following CODE:

ln -s lxterminal xterm

That created a symlink named xterm in /usr/bin.

Now "open terminal here" opens lxterminal "here", where ever here might be.

The disadvantage of removing/deleting the xterm script is that if you later want to change your default terminal to one which needs the first part of the script --emulating as I recall some instruction not otherwise available-- it's become difficult to find and replace the script. Perhaps just renaming, rather than moving or deleting, the script would be sufficient. In fact, if I recall correctly, the last line of the xterm script was --in Slacko 5.6-- to call urxvt, which may be why "open terminal here" opened urxvt. If so, changing that line to execute lxterminal might also accomplish my objective of having lxterminal as the default. But, of course, having deleted the script I face the difficulty mentioned above of testing that idea. So, I leave it to you, the reader, to explore that hypothesis.

mikesLr
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Sun 09 Feb 2014, 16:51    Post_subject:  

Rox should really try getenv("TERM") first and then fallback to hard coded terminals
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0565s ][ Queries: 12 (0.0041s) ][ GZIP on ]