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 25 Jun 2018, 12:22
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Refitting .xinitrc from the bottom up.
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
mistfire

Joined: 04 Nov 2008
Posts: 903
Location: PH

PostPosted: Tue 09 Jan 2018, 05:55    Post subject:  

@musher0 and @battleshooter sorry for the long wait. I will try to upload my .xinitrc. It is not a reinventing the wheel. Its just a modification. It can support almost all major desktop environment also it performs some tweaks for active desktop environment. It can also use spacefm if a desktop environment selected was has no desktop.
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 885

PostPosted: Tue 09 Jan 2018, 14:01    Post subject:  

quote=musher0

Is this line ok:
Code:
# (...)
   tint2)[ -x /usr/bin/tint2 ] && tint2 -c ~/.config/tint2/tint2rc 2>/dev/null & ;; # musher0, following Smithy's suggestion. Also ref.: https://wiki.archlinux.org/index.php/Tint2
      esac ;;
# (...)
I've attached how the .xinitrc looks now, with this tint2 addition.
Constructive criticism most welcome.

Hopefully nilsonmorales will give it the once over Musher Smile
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1087

PostPosted: Tue 09 Jan 2018, 15:42    Post subject:  

Well we're discussing this script can I ask that we test it on virtualbix also. There is a bit of a chicken and egg problem with using virtual box's guest services when puppy is the guest

I discuss this here:
http://www.murga-linux.com/puppy/viewtopic.php?p=979358#979358

Original english at bottom of the post.
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 09 Jan 2018, 18:58    Post subject:  

Hello s243a.

I have read the English translation of your referenced post on the German thread:

I will try to say nothing about your virtual box being a WhineDose virtual box. Laughing
Why can you not run WhineDose as a virtual box under PuppyLinux? Wink In short I
know nothing about virtual boxes.

Another idea that came to my mind: your compatibility problem can be upriver from
the .xinitrc: in the script called "xwin" or with some utility within the initrd itself.
These are executed before .xinitrc.

About your last paragraph in that post: mistfire has designed a fantastic command
line utility that is the equivalent of Puppy Package Manager. It is called "puppy-get",
and it is up to version 1.5. You can get it here:
http://murga-linux.com/puppy/viewtopic.php?p=970741&sort=lastpost#970741
Perhaps it can solve that part of your troubles.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 09 Jan 2018, 19:06    Post subject:  

@Smithy

Indeed, reading what nilsonmorales has to say about editing the .xinitrc would be great!
Pity he has not been around the forum much lately. (I think.)

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
mistfire

Joined: 04 Nov 2008
Posts: 903
Location: PH

PostPosted: Tue 09 Jan 2018, 20:39    Post subject:  

@musher0 here is my .xinitrc from X-Slacko Slim
xinitrc.zip
Description  fake zip
rename as .xinitrc
zip

 Download 
Filename  xinitrc.zip 
Filesize  9.26 KB 
Downloaded  44 Time(s) 
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Tue 09 Jan 2018, 23:18    Post subject:  

Thanks, mistfire.

Edit: I just perused your .xinitrc script, and I think you have powerful stuff there. BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Wed 10 Jan 2018, 00:19; edited 1 time in total
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1052
Location: SW Wisconsin

PostPosted: Wed 10 Jan 2018, 00:10    Post subject:  

Mistfires .xinitrc quickly swapped into the following pups. Clean boot and X-restarts in all cases. No other changes made at all. All done on a Fujitsu S761 i5 laptop.

LxPupSc 18.01 +2T
LxPupSc 17.12 +8T
LxArtfulPup 17.11
ArtfulPup 17.11 +8
xfceXenialPup-R5[fixed]

Three LXDE, one JWM, and one XFCE4, all with native panels.
Nothing earthshaking but it was relatively quick to do and all just worked Smile

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 10 Jan 2018, 00:30    Post subject:  

Marv wrote:
Mistfires .xinitrc quickly swapped into the following pups. Clean boot and X-restarts in all cases. No other changes made at all. All done on a Fujitsu S761 i5 laptop.

LxPupSc 18.01 +2T
LxPupSc 17.12 +8T
LxArtfulPup 17.11
ArtfulPup 17.11 +8
xfceXenialPup-R5[fixed]

Three LXDE, one JWM, and one XFCE4, all with native panels.
Nothing earthshaking but it was relatively quick to do and all just worked Smile

Hello Marv.

I am not surprised. All those WMs come with a task-and-tray bar that does not need
independent launching. (And of course, mistfire does good work!)

I find that a few tweaks are needed to incorporate the WMs that do not have a task-and-
tray bar built in. Working now on incorporation of my panels sub-routine with mistfire's
definition of WMs sub-routine. (Edit: Sentence removed. Please see following post.)
tomorrow.

BFN..

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 10 Jan 2018, 01:09    Post subject:  

Hello Marv, mistfire and all.

The attached is a combination of my take on the .xinitrc and mistfire's.

(Sorry for being so cavalier, mistfire. I hope this will meet with your approval.)

What it does:
-- It combines my list of WMs with mistfire's;
-- It adds my qiv pseudo-transparency sub-routine for conky;
-- It adds my ROX-panel sub-routine
and
-- my choice of task-and-tray bars sub-routine to mistfire's general script;
-- Also my change of interpreter from bash to ash.

Mistfire: I changed your list of WMs subroutine from an if...elif structure to a case...esac
structure. It does the same job, but it provides better grouping, I think, plus it saves
+/-25 lines.

I tested it on this xenialPup-706, and this combo script launches the jwm, icewm,
waimea and echinus WMs flawlessly.
(Edit, next morning: jwm and icewm with their own task-and-tray bar; waimea and
echinus, with the bmpanel2 task-and-tray bar.
)

Ok Puppyists, here's your job: please test this new .xinitrc script on your Pup with a
view to find fault with it. Have it jump through hoops (various panels, file managers,
and environments). Really.

How-to:
Unzip the attached in /root.
Make a back-up of your current .xinitrc file.
Then rename .xinitrc.musher0-mistfire.modif to .xinitrc.
One more thing: since the interpreter has changed, make .xinitrc executable again,
just to be sure.
Test.
Then post your results below, please.

Reason why: PuppyLinux needs to present to the world nothing less than the best
.xinitrc script available! Wink (Keeping my fingers crossed.)

Again: constructive input about any aspect of this project is most welcome.

Finally: where is member jejy69 when we need him? Wink

TIA.
.xinitrc.musher0-mistfire.modif.zip
Description 
zip

 Download 
Filename  .xinitrc.musher0-mistfire.modif.zip 
Filesize  4.52 KB 
Downloaded  66 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)

Last edited by musher0 on Wed 10 Jan 2018, 13:20; edited 1 time in total
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1087

PostPosted: Wed 10 Jan 2018, 02:30    Post subject:  

musher0 wrote:
Hello s243a.

I have read the English translation of your referenced post on the German thread:

I will try to say nothing about your virtual box being a WhineDose virtual box. Laughing
Why can you not run WhineDose as a virtual box under PuppyLinux? Wink In short I
know nothing about virtual boxes.

Another idea that came to my mind: your compatibility problem can be upriver from
the .xinitrc: in the script called "xwin" or with some utility within the initrd itself.
These are executed before .xinitrc.

About your last paragraph in that post: mistfire has designed a fantastic command
line utility that is the equivalent of Puppy Package Manager. It is called "puppy-get",
and it is up to version 1.5. You can get it here:
http://murga-linux.com/puppy/viewtopic.php?p=970741&sort=lastpost#970741
Perhaps it can solve that part of your troubles.

BFN.


Thanks for the hint. I have a request. Can we separate the script into three parts:
1. one part to start upriver
2. one part to start the window manager
3. One part to start the desktop.

These can be either as separate files or set up as executable via command line swhiches........not sure which parts are in .xinitrc and which parts are in xwin.

Anyway, I have a few objectives here. First I want to be able to start up the minimum amount of processes to run "Virtual box guest services". Maybe as you suggest only upriver is required. I don't know.

My second thought is that maybe I want to start X but not the desktop. The reason may be if I want to do X-Forwarding over SSH. This would be most useful for a headless machine but I could also imagine having a second puppy running headless in a chrooted environment.

Anyway, I'll put it on my do-to list to test out your script in a virtual box.
Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1052
Location: SW Wisconsin

PostPosted: Wed 10 Jan 2018, 10:25    Post subject:  

Quickly reran the test 4 posts up using your newest .xinitrc. 4 for 4, all boot and restart X perfectly. I don't run any separate panels or other WM at this time so I can't check that but I'll leave it installed on all my current pups and just use it. Perhaps 'hide' my WM and test the default boot part...

Thanks,

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Wed 10 Jan 2018, 13:11    Post subject:  

@Marv:
Good to hear! Thanks for testing, Marv.

~~~~~~~~~
@s243a:
A few reminders:

As I said, I know nothing about "virtual boxes".

It would make no sense to me launching the desktop environment and not the
window manager, or vice versa.

When I said "upriver" (I think the expression "upstream" is also used and may be
clearer) in my previous post, I meant :
1) the xwin script itself does a lot of things before it launches X and .xinitrc

2) and before xwin, all the "ground work" that initrd prepares.

Finally I believe that your "virtual box" discussion may be out of place here and
should have its own thread. It only has minimal overlap with this discussion, IMO.
(This is not personal: you bring good input generally. But IMO the "virtual box"
situation is a case in itself.)

Best regards.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
musher0


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

PostPosted: Thu 11 Jan 2018, 01:55    Post subject:  

Hello people.

It's been a full day, and there have been 38 downloads. Hopefully people are testing.
No news is good news, I think, in this case.

Just a summary for the lay person, if I may.

This revisited .xinitrc script now recognizes the following 24 window managers:
aewm
blackbox
cinnamon
echinus
enlightenment
fluxbox
fvwm95
gnome
icewm
jbwm
jwm
kde
lxde
lxqt
mate
openbox
pekwm
razor
trinity
waimea
windowmaker
wmx
xfce
xfce4

and these 5 independent task-and-tray bars (not counting the WMs that have their own,
such as icewm and jwm):
aepanel
bmpanel2
fbpanel
lxpanel
tint2.

That's 20 WMs more and 3 task-and-tray bars more than in the original script.

This edited script also makes pseudo-transparency available for your conly
configurations, and offers options to use two ROX panels if you wish.

BFN.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 653

PostPosted: Thu 11 Jan 2018, 19:50    Post subject:  

musher0, what do I do with your Frankenstein? Smile
1. clone my current puppy (protecting psave and non-OOTB installed apps)
2. replace /root/.xinitrc
3. boot
4. [can & will check jwm behaviour]

Any specific thing you want to look for/report on?

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

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 » Advanced Topics » Cutting edge
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.1080s ][ Queries: 12 (0.0367s) ][ GZIP on ]