You are not logged in.

#1 2015-11-07 16:11:35

changer
Member
Registered: 2015-10-26
Posts: 23

didn't get welcome script

After reading the forum a bit I realized that there is supposed to be a welcome script. I installed for the first time a couple weeks ago, but did not get that script. Typing bl-welcome into terminal does not work either.

Offline

#2 2015-11-07 16:20:19

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,074
Website

Re: didn't get welcome script

You'll have to give us more info. How did you install BunsenLabs? If you installed it by using an image from the bunsenlabs.org website, did you use a torrent link? If not, did you do a checksum? Did you burn the ISO to a DVD or transfer it to USB? If you used a(n) USB, did you transfer it from a Windows, Mac or Linux system? Did you use unetbootin (you shouldn't)? Do you have a file present in /etc/apt/sources.list.d named bunsen.list and does it contain the following content...

deb http://pkg.bunsenlabs.org/debian bunsen-hydrogen main

Please try to answer at least some of those questions, and thanks for registering an account here!


I don't care what you do at home. Would you care to explain?

Online

#3 2015-11-07 16:40:05

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: didn't get welcome script

could this be related to your first thread or is this a different install now?

Offline

#4 2015-11-07 16:40:06

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

No problem.
Yes, I used bl-Hydrogen-rc1-amd64.iso.torrent to download
and bl-Hyndrogen-rc1-amd64.sha256sum.txt to verify

I dd'ed it onto a usb flash drive from Crunchbang and installed from there.


And yes, bunsen.list has the correct content.

Offline

#5 2015-11-07 16:41:09

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

could this be related to your first thread or is this a different install now?

Same installation.

Offline

#6 2015-11-07 16:44:47

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: didn't get welcome script

changer wrote:

.... Typing bl-welcome into terminal does not work either.

What is the terminal output when you do that?

Have you checked if the script exists, and is executable?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2015-11-07 16:52:09

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

There is no output.
Where would I find the script?

Offline

#8 2015-11-07 16:55:24

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: didn't get welcome script

changer wrote:

There is no output.
Where would I find the script?

Use the command (this should work for any executable in your $PATH)

which bl-welcome

It should be in `/usr/bin`

Last edited by damo (2015-11-07 16:56:38)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#9 2015-11-07 17:00:06

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

Ah, of course. Here it is:

-rwxr-xr-x  1 root root    3.1K Sep 26 04:40 bl-welcome

So I tried entering the full path and it still just returns the command prompt with no output. They file has content, about 115 line script.

Offline

#10 2015-11-07 18:36:41

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,074
Website

Re: didn't get welcome script

I don't know what to make of this. It hasn't been reported by anyone else and seems to make no sense.


I don't care what you do at home. Would you care to explain?

Online

#11 2015-11-07 18:45:13

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

Yeah, it's behaving as if it's running the script and the script is just returning doing/nothing. So here's the contents in case that's helpful.

#!/bin/bash
# Post installation script

TEXTDOMAIN=bl-welcome

BL_COMMON_LIBDIR='/usr/lib/bunsen/bunsen-common'
BL_WELCOME_LIBDIR='/usr/lib/bunsen/bunsen-welcome'

if ! . "$BL_COMMON_LIBDIR/bl-include.cfg" 2> /dev/null; then
    echo $"Error: Failed to locate bl-include.cfg in $BL_COMMON_LIBDIR" >&2
    exit 1
fi

STEPS_BASIC=('apt-update' 'apt-upgrade' 'system-tweaks' 'install-libreoffice' 'install-printer-packages' 'install-java-packages' 'add-multimedia-repo' 'devel')
STEPS_DEVEL=('devel-install-version-control-tools' 'devel-install-ssh-server' 'devel-install-lamp-stack' 'devel-install-packaging-tools')

# prints something like: -------[ page 1 of 10 ]-------
header() {
    width=$(tput cols)
    local headerLength=$((width - 8)) # 8 is for '[  ]' and 2 spaces margins
    local headerText=$(printf $"page %d of %d" "$STEP" "$STEPS")
    dashesStart=$( printf "%$(( (headerLength - ${#headerText}) / 2 ))s" )
    dashesEnd=$( printf "%$(( (headerLength - ${#headerText}) / 2 + (headerLength - ${#headerText}) % 2 ))s" )
    echo "  ${dashesStart// /-}[ ${headerText} ]${dashesEnd// /-}"$'\n'
}

# Usage: setupPage title text [prompt [prompt-extra-arg]]
# Omit prompt for noninteractive page.
setupPage() {
    sleep 2
    tput clear
    header
    say "$1
${1//?/-}

$2
"
    [[ $3 ]] || { sleep 1;return 0;}
    prompt "  $3" "${4:-}"
    return $?
}

# Common function for most install scripts. USE THIS unless you really can't.
# Usage: installPage title text package...
# example: installPage 'LibreOffice suite' 'This will install libreoffice' 'libreoffice'
installPage() {
    local title=$"INSTALL"" ${1^^}"
    local text="$2 "$"If you choose to do this, the following packages will be installed:""

    ${*:3}

"$"Note: additional packages listed as dependencies will also be installed."

    local prompt=$"Would you like to install"" $1?"

    if setupPage "$title" "$text" "$prompt" 'N'
    then
        if safeInstall "${@:3}"
        then
            return 0
        else
            say '...going to next page.' 1
        fi
    fi
    return 1
}

[[ -d /lib/live ]] && exit 0

if [[ $1 = '--firstrun' ]]; then # First run, from autostart
    [[ -e $HOME/.config/bunsen/bl-welcome ]] && exit 0
fi

terminalCheck -T 'WELCOME!'

createFlag 'bl-welcome'

if [[ ! $(groups) =~ ( |^)sudo( |$) ]]; then
    echo $"Error: Must be a member of the sudo group to run this script" >&2
    exit 1
fi

# Run through steps
STEP=1
if [[ -e $HOME/.config/bunsen/bl-welcome-understood ]]; then
    (( STEPS = ${#STEPS_BASIC[@]} + ${#STEPS_DEVEL[@]} + 2 )) # 2 is intro and fini
    . "$BL_WELCOME_LIBDIR/intro"
else
    (( STEPS = ${#STEPS_BASIC[@]} + ${#STEPS_DEVEL[@]} + 3 )) # 3 is intro, warning and fini
    . "$BL_WELCOME_LIBDIR/intro"
    ((STEP++))
    . "$BL_WELCOME_LIBDIR/warning"
    createFlag 'bl-welcome-understood'
fi
sleep 2
tput clear
connectiontest

DEVEL=false

for curStep in "${STEPS_BASIC[@]}"; do
    ((STEP++))
    . "$BL_WELCOME_LIBDIR/$curStep"
done

if $DEVEL; then
    for curStep in "${STEPS_DEVEL[@]}"; do
        ((STEP++))
        . "$BL_WELCOME_LIBDIR/$curStep"
    done
fi
STEP=$STEPS
. "$BL_WELCOME_LIBDIR/fini"

exit 0

[MOD EDIT: use [ code ] tags wink ]

Last edited by damo (2015-11-07 21:49:40)

Offline

#12 2015-11-07 18:58:18

gako
Member
Registered: 2015-10-02
Posts: 241

Re: didn't get welcome script

I think it requires two library paths
/usr/lib/bunsen/bunsen-common
/usr/lib/bunsen/bunsen-welcome

are both of those paths existing/installed?

looks like if they aren't the script should've returned an error

Offline

#13 2015-11-07 18:58:39

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,074
Website

Re: didn't get welcome script

We'll probably have to wait for @johnraff for more input on this. It's about 4am where he is so it will be a few hours at least. smile


I don't care what you do at home. Would you care to explain?

Online

#14 2015-11-07 19:03:15

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: didn't get welcome script

Write bl-welcome in terminal and click enter.

Offline

#15 2015-11-07 19:03:55

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: didn't get welcome script

[[ -d /lib/live ]] && exit 0

if directory /lib/live exists, the script exits with return code 0. No message.

Offline

#16 2015-11-07 20:00:18

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,074
Website

Re: didn't get welcome script

xaos52 wrote:

if directory /lib/live exists, the script exits with return code 0. No message.

I don't find that directory in either my 64 bit or 32 bit partitions, but nice troubleshooting! I'm pretty sure that's in the script so that it doesn't run when you boot into a Live session.


I don't care what you do at home. Would you care to explain?

Online

#17 2015-11-07 21:26:18

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

if directory /lib/live exists, the script exits with return code 0. No message.

I do have /lib/live
it contains boot/ and config/
both have a bunch of files in them.

Offline

#18 2015-11-07 21:55:06

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: didn't get welcome script

I think the `live` directory should have been removed when you installed BL. Try renaming it, and see if bl-welcome runs then.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#19 2015-11-07 22:02:43

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: didn't get welcome script

ohnonot wrote:

could this be related to your first thread or is this a different install now?

so you say it is the same install.
i can't help but feel that there's some common denominator here.

Offline

#20 2015-11-07 22:19:41

changer
Member
Registered: 2015-10-26
Posts: 23

Re: didn't get welcome script

bl-welcome runs after getting rid of /lib/live

As to why it was there, I don't know.

Offline

Board footer

Powered by FluxBB