You are not logged in.
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
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?
Offline
could this be related to your first thread or is this a different install now?
Offline
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
could this be related to your first thread or is this a different install now?
Same installation.
Offline
.... 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
There is no output.
Where would I find the script?
Offline
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
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
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?
Offline
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 ]
Last edited by damo (2015-11-07 21:49:40)
Offline
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
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.
I don't care what you do at home. Would you care to explain?
Offline
Write bl-welcome in terminal and click enter.
Offline
[[ -d /lib/live ]] && exit 0
if directory /lib/live exists, the script exits with return code 0. No message.
Offline
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?
Offline
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
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
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
bl-welcome runs after getting rid of /lib/live
As to why it was there, I don't know.
Offline