You are not logged in.
So I am trying to run the screenfetch script as noted in fog's scrot here:
Here is the script she (guessing based on user avatar) shared with me:
Here is what happens when I try to run it:
What am I doing wrong?
EDIT: Once I resolve the post at the bottom of this page I will re-mark as resolved. Thanks all.
Last edited by Temetka (2017-07-06 21:19:39)
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
Use bash n stead of sh!
Offline
Ok I did that. Here's what I get now:
bash -n bunsenlabs_screenfetch.sh
bunsenlabs_screenfetch.sh: line 92: syntax error near unexpected token `$'{\r''
'unsenlabs_screenfetch.sh: line 92: `colorize () {
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
I created a file named screenfetch.sh w/ fog's content, made it executable and it works for me using either bash screenfetch.sh or ./screenfetch.sh. A tip with pastebin is to click the Raw link which will remove all the cruft. Then you can Ctrl-a the page that opens to select all, Ctrl-c to copy it and Ctrl-v and paste that into a file.
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Best method is to clone twoion's repository:
git clone https://github.com//screenFetch.git
Then copy the executable to your $PATH:
cd screenFetch && sudo cp screenfetch-dev /usr/local/bin/screenfetch
Then just run the `screenfetch` command directly without invoking a shell.
Offline
Thank you!
I used the download link from pastebin. I used the raw this time and ./screenfetch.sh after cmhod +x and it ran perfectly.
One problem solved today. Woot progress.
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
Best method is to clone twoion's repository:
git clone https://github.com//screenFetch.git
Then copy the executable to your $PATH:
cd screenFetch && sudo cp screenfetch-dev /usr/local/bin/screenfetch
Then just run the `screenfetch` command directly without invoking a shell.
Done, thanks.
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
Best method is to clone twoion's repository:
git clone https://github.com//screenFetch.git
Then copy the executable to your $PATH:
cd screenFetch && sudo cp screenfetch-dev /usr/local/bin/screenfetch
Then just run the `screenfetch` command directly without invoking a shell.
Thanx for the How To , appreciated . Worked great .
Last edited by altman (2015-11-01 13:06:44)
My Linux installs are as in my music; it s on Metal
Offline
^ Just remember where you put the executable 'cos APT knows *nothing* about it ]:D
It may be best to remove the official screenfetch package if you use twoion's version.
/usr/local/bin is ahead of /usr/bin in B^L's $PATH so the custom script will be executed first anyway (check with `which screenfetch`) but it just seems tidier to me.
O:)
Offline
^ Just remember where you put the executable 'cos APT knows *nothing* about it ]:D
It may be best to remove the official screenfetch package if you use twoion's version.
/usr/local/bin is ahead of /usr/bin in B^L's $PATH so the custom script will be executed first anyway (check with `which screenfetch`) but it just seems tidier to me.
O:)
Thanx mate , on one install I didn t had it installed removed it ( just did ) but on the other one , I had to remove screenfetch as stated above , thanx again mate .
My Linux installs are as in my music; it s on Metal
Offline
I grabbed it and put it in ~/bin/sftwoion
01 Nov 15 | 13:06:17 ~
$ sftwoion
HC]
H]]]]
H]]]]]]4
@C]]]]]]]]*
@]]]]]]]]]]xd
@]]]]]]]]]]]]]d sector11@bunsen
0]]]]]]]]]]]]]]]] OS: BunsenLabs 8.2 Hydrogen
kx]]]]]]x]]x]]]]]% Kernel: x86_64 Linux 3.16.0-4-amd64
#x]]]]]]]]]]]]]x]]]d Uptime: 4h 38m
#]]]]]]qW x]]x]]]]]4 Packages: 1637
k]x]]xg %x]]]]]]% Shell: bash 4.3.30
Wx]]]W x]]]]]]] Resolution: 1920x1080
#]]]4 xx]]x]] WM: OpenBox
px] ]]]]]x WM Theme: S11-SR-71-Black
Wx] x]]x]] GTK Theme: S11-NS-brushed [GTK2/3]
&x x]]]] Icon Theme: nouveGnomeGray
m x]]]] Font: Liberation Sans Bold 9
x]x] CPU: AMD Athlon II X3 450 @ 3.215GHz
x]]] GPU: GeForce 210
]]]]
x]x
x]q
]g
q
01 Nov 15 | 13:06:25 ~
$
I like it!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Bumping because I've run into something.
I used the instructions provided earlier to git clone from the repo. This is on a fresh BL install on my Thinkpad.
The script runs but I get these 3 lines at the top of it:
[[ ! ]] Property "/Net/ThemeName" does not exist on channel "xsettings".
[[ ! ]] Property "/Net/IconThemeName" does not exist on channel "xsettings".
[[ ! ]] Property "/Gtk/FontName" does not exist on channel "xsettings".
Any thoughts on how to fix this?
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
I used the instructions provided earlier to git clone from the repo.
We now have the screenfetch package in the BunsenLabs jessie-backports repositories and the bug that causes the error you are seeing has been fixed in that version.
https://www.bunsenlabs.org/repoidx.html … creenfetch
Instructions here:
https://www.bunsenlabs.org/repositories … -backports
Offline
Bumping because I've run into something.
I used the instructions provided earlier to git clone from the repo. This is on a fresh BL install on my Thinkpad.
The script runs but I get these 3 lines at the top of it:
[[ ! ]] Property "/Net/ThemeName" does not exist on channel "xsettings". [[ ! ]] Property "/Net/IconThemeName" does not exist on channel "xsettings". [[ ! ]] Property "/Gtk/FontName" does not exist on channel "xsettings".
Any thoughts on how to fix this?
Does it happen with other gtk themes?
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
Temetka wrote:I used the instructions provided earlier to git clone from the repo.
We now have the screenfetch package in the BunsenLabs jessie-backports repositories and the bug that causes the error you are seeing has been fixed in that version.
https://www.bunsenlabs.org/repoidx.html … creenfetch
Instructions here:
https://www.bunsenlabs.org/repositories … -backports
Well that fixed the primary issue, but is now replaced with this error when running screenfetch:
/usr/bin/screenfetch: line 1251: bc: command not found
So here a couple lines from the script above and below. It appears to be from the CPU detection portion of the script.
fi
if [[ "${cpun}" -gt "1" ]]; then
cpun="${cpun}x "
else
cpun=""
fi
if [ -z "$cpufreq" ]; then
cpu="${cpun}${cpu}"
else
cpu="$cpu @ ${cpun}${cpufreq}"
fi
thermal="/sys/class/hwmon/hwmon0/temp1_input"
if [ -e $thermal ]; then
temp=$(bc <<< "scale=1; $(cat $thermal)/1000")
fi
if [ -n "$temp" ]; then
cpu="$cpu [${temp}°C]"
fi
cpu=$(sed $REGEXP 's/\([tT][mM]\)|\([Rr]\)|[pP]rocessor|CPU//g' <<< "${cpu}" | xargs)
verboseOut "Finding current CPU...found as '$cpu'"
}
# CPU Detection - End
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
this error when running screenfetch:
/usr/bin/screenfetch: line 1251: bc: command not found
sudo apt install bc
Perhaps?
Offline
Temetka wrote:this error when running screenfetch:
/usr/bin/screenfetch: line 1251: bc: command not found
sudo apt install bc
Perhaps?
Derp.
It's Monday, that's why I didn't think of that.
Yeah, we'll go with that answer.
Thanks.
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
It looks as if screenfetch needs a Depends: bc adding to its DEBIAN/control.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Bumping this. Fresh install of BL Dueterium.
I tried this method. I received the same 3 line error I was getting before. So I looked further in the thread and saw there's a jessie backports version. I followed those instructions and now I have 2 screenfetch's installed. Twion's and the jessie backport. How do I remove the git clone of this:
Best method is to clone twoion's repository:
git clone https://github.com//screenFetch.git
Then copy the executable to your $PATH:
cd screenFetch && sudo cp screenfetch-dev /usr/local/bin/screenfetch
Then just run the `screenfetch` command directly without invoking a shell.
Once that's done it should just leave me with the backported version, yes? Because I right now when I run it (screenfetch that is) I get this mess:
screenfetch
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[[ ! ]] Property "/Net/ThemeName" does not exist on channel "xsettings".
[[ ! ]] Property "/Net/IconThemeName" does not exist on channel "xsettings".
[[ ! ]] Property "/Gtk/FontName" does not exist on channel "xsettings".
HC]
H]]]]
H]]]]]]4
@C]]]]]]]]*
@]]]]]]]]]]xd
@]]]]]]]]]]]]]d temetka@samsara
0]]]]]]]]]]]]]]]] OS: BunsenLabs 8.7 bunsen-hydrogen
kx]]]]]]x]]x]]]]]% Kernel: x86_64 Linux 4.9.0-0.bpo.3-amd64
#x]]]]]]]]]]]]]x]]]d Uptime: 1d 1h 7m
#]]]]]]qW x]]x]]]]]4 Packages: 1125
k]x]]xg %x]]]]]]% Shell: bash 4.3.30
Wx]]]W x]]]]]]] Resolution: 1600x900
#]]]4 xx]]x]] DE: XFCE
px] ]]]]]x WM: OpenBox
Wx] x]]x]] WM Theme: Bunsen-Blue-Dark
&x x]]]] GTK Theme:
m x]]]] CPU: Intel Core i5-3320M CPU @ 3.3GHz
x]x] GPU: Mesa DRI Intel(R) Ivybridge Mobile
x]]] RAM: 969MB / 7688MB
]]]]
x]x
x]q
]g
q
Thanks for any help you all can give me.
The meaning of life is to just be alive. It is so plain and so obvious
and so simple. And yet everybody rushes aroound in a great panic
as if it were necessary to achieve something beyond themselves.
- Alan Watts
Offline
How do I remove the git clone of this
Just delete the executable at /usr/local/bin/screenfetch
For future reference, you can use this to find all of the available executables for $command:
which -a $command
Offline