You are not logged in.

#1 2015-10-31 19:23:38

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

[SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

So I am trying to run the screenfetch script as noted in fog's scrot here:

fog wrote:

http://imgur.com/jhukrdA


Here is the script she (guessing based on user avatar) shared with me:

http://pastebin.com/14fkCxTS

Here is what happens when I try to run it:
2015_10_31_12_05_26_scrot.jpg

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

#2 2015-10-31 19:35:56

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

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Use bash n stead of sh!

Offline

#3 2015-10-31 19:56:04

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

#4 2015-10-31 20:00:34

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

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

#5 2015-10-31 20:24:51

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

#6 2015-10-31 20:27:43

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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. smile


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

#7 2015-10-31 20:49:40

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Head_on_a_Stick wrote:

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

#8 2015-11-01 13:06:22

altman
Member
From: Canada
Registered: 2015-10-24
Posts: 619

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Head_on_a_Stick wrote:

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

#9 2015-11-01 13:17:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

^ 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

#10 2015-11-01 13:27:25

altman
Member
From: Canada
Registered: 2015-10-24
Posts: 619

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Head_on_a_Stick wrote:

^ 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

#11 2015-11-01 16:14:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

#12 2017-02-27 10:17:41

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

#13 2017-02-27 19:01:32

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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

smile

Offline

#14 2017-02-27 19:04:59

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

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Temetka wrote:

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

#15 2017-02-27 20:22:52

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Head_on_a_Stick wrote:
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

smile


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

#16 2017-02-27 20:35:18

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Temetka wrote:

this error when running screenfetch:

/usr/bin/screenfetch: line 1251: bc: command not found
sudo apt install bc

Perhaps?

Offline

#17 2017-02-27 21:05:52

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Head_on_a_Stick wrote:
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. wink

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

#18 2017-02-28 07:08:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#19 2017-07-06 19:34:49

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

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:

Head_on_a_Stick wrote:

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

#20 2017-07-06 19:47:43

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: [SOLVED] Help with screenfetch shellscript - Now with SOLVED x2!

Temetka wrote:

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

Board footer

Powered by FluxBB