bash-me-up (Bash Startup Files Setup Made Easy)

VastOne

Quote from: hakerdefo on January 11, 2017, 08:42:32 PM
@VastOne Looking forward to your experiment on fresh install of VSIDO and your feedback :)
Cheers!!!

Exact same problem... I am sorry hakerdefo. It failed the same exact way

This is on a brand new install of VSIDO that is up to date on everything... This seems specific to lightDM
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

This was a new install of the Dec 24 ISO... I am going to boot now to a new install of latest ISO and see what happens
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Fails on the latest ISO as well

I am at a loss.. I do not know what the cause is
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

QuoteThis is on a brand new install of VSIDO that is up to date on everything... This seems specific to lightDM

Are you set up with this isnatall so you can purge lightdm and lightdm-gtk-greeter and install lxdm?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

Ok

I'm unsquashing (squishing?) the most recent vsido iso - I'm going to look at the lightdm.conf
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

Is it customary for L XDM to install all of lxde 31.3 megabyte of additional space 50 newly installed packages just for a log in manager?
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Don't bother looking at lightdm.. same damn thing is happening with lxdm
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

Quote from: VastOne on January 12, 2017, 02:17:17 AM
Is it customary for L XDM to install all of lxde 31.3 megabyte of additional space 50 newly installed packages just for a log in manager?

In Debian you need to set the "no-recommends"

lxdm vsido

or go into synaptic and check (uncheck?) the box about installing recommended packages.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

PackRat

Do you have a $HOME/.xinitrc?

I looked at the /etc/skel in the file system - no default .xinitrc or .xsessionrc.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

No I do not have a .xinitrc   

Played with one when thinking of removing lightdm when it had issues but moved on since it was not necessary

I have an old one that I used then that I could recreate on the test run

#!/bin/sh

########################################################################
##  Created by V-Ger for use in the VSIDO env                         ##
########################################################################

########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

if [ -f $sysresources ]; then
    /usr/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/bin/xmodmap $usermodmap
fi

########################################################################
##  Start FluxBox Desktop Environment                                    ##
########################################################################

  exec dbus-launch --exit-with-session /usr/bin/startfluxbox
fi


I do have .xsessionsrc

test -f /etc/profile && . /etc/profile
test -f $HOME/.profile && . $HOME/.profile
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

#71
Still have lxdm installed?

Give this a try - add a line to the ~/.xsessionrc so it looks like:

test -f /etc/profile && . /etc/profile
test -f $HOME/.profile && . $HOME/.profile

# added for default wm
/bin/bash --login -i ~/.xinitrc


then add a ~/.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

# change this path to match VSIDO
exec /usr/bin/startfluxbox


see if that gets you to fluxbox.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

Not holding out on ya PackRat.. having an issue on something else and has taken my time

I will get to this and report back a bit later
VSIDO      VSIDO Change Blog    

    I dev VSIDO

hakerdefo

Got this one  :)
Will be posting the updated version here soon  :)
Got to go and eat something now. I'm hungry.

Cheers!!!
You Can't Always Git What You Want

hakerdefo

#74
Sorry for the unexpected delay  :(
Had to go out of town on an unplanned trip.
So here is V2 of bash-me-up as V1 was not working on VSIDO/Debian with LightDM as DM.
Why was it not working?
Cause Debian symlinks /bin/sh to dash while most other Linux distributions symlinks /bin/sh to bash. dash is not completely compatible with bash syntax and that was the reason why bash-me-up V1 failed on VSIDO.
But Ubuntu also symlinks /bin/sh to dash and you said it worked on Ubuntu and LightDM, didn't you?
It did! Because LightDM on Ubuntu uses a custom Xsession script which is a bash script while LightDM on Debian uses /etc/X11/Xsession script which is a posix-shell dash script.
Anyways here is V2 that should work on Debian, Ubuntu, Void, Arch, Slackware, Fedora, Suse Pretty-Much-Everywhere  8)
And Of-Course on VSIDO too  8)
I've implemented all the suggestions made by @PackRat in V2 of bash-me-up. Thanks a Ton Rat-Man  :)

Here you go. Download the attached bashmeup.tar.gz and install-bashmeup files. Put them in a directory. Open that directory in a terminal. Make install-bashmeup executable,


chmod 755 install-bashmeup


And install it using sudo
DON'T RUN install-bashmeup AS ROOT. USE SUDO.


sudo ./install-bashmeup


Log-out and Log-in to enjoy bash-me-up flavored bash shell  8)

Cheers!!!
You Can't Always Git What You Want