Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ SOLVED ] Need help setting up fbterm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 433
Location: Scotland

PostPosted: Tue Jun 26, 2012 11:50 am    Post subject: [ SOLVED ] Need help setting up fbterm Reply with quote

Hey team, I have read the man page for fbterm, and I can't get my head around the part which
implements a nice background image to the framebuffer on tty1 or tty2.
Any ideas what I am supposed to do here?
What do I do with the wrapper-script? I have changed the path to the path of the image and made the script executable, clicked on it and nothing happens.
Is this something I am supposed to add to bashrc?

I just need a little help in laymans terms.

TIA. :oops:
_________________
Whatever you do, do it properly!


Last edited by Thistled on Tue Jun 26, 2012 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
pidsley
n00b
n00b


Joined: 09 Jun 2012
Posts: 63

PostPosted: Tue Jun 26, 2012 5:56 pm    Post subject: Reply with quote

The wrapper script sets the background image and then starts fbterm. It does not need to be modified, just put it in your $PATH, then call it with the name of the image you want to use as a background. So for example if you put the script in ~/.scripts (and that's in your $PATH) and you want to use the image at ~/images/fb-background, you call it like this (from the console):

Code:
fbterm-bi ~/images/fb-background


I'm not sure I understand you when you say "clicked on it" -- fbterm is a console app; are you using GPM?
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 433
Location: Scotland

PostPosted: Tue Jun 26, 2012 7:42 pm    Post subject: Reply with quote

I still don't understand pidsley. :oops:

I have put the wrapper in a folder within my users home.
I have named the folder .fbterm
I then go to console (tty1) and navigate to the .fbterm folder within my home folder.
I enter
Code:
fbterm-bi /path/to/image.jpg

In return I get
Code:
-bash: fbterm-bi: command not found

This is where I look even more stupid.... I don't have a .scripts folder within /home/user
Am I supposed to create one?
When you say $PATH, does that mean wherever I put the script is where I should call fbterm-bi from?

EDIT
I say "clicked on" because it's a script, !/bin/bash and I thought one was supposed to make a bash file executable, in order for it to execute.
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
pidsley
n00b
n00b


Joined: 09 Jun 2012
Posts: 63

PostPosted: Tue Jun 26, 2012 8:15 pm    Post subject: Reply with quote

OK, so let me see if I understand.

You copied the script, and named it fbterm-bi, like the example.
You put the script in a folder called .fbterm in your home (~).
You went into the folder, and tried to call the script. This failed with the "not found" error.

Don't worry about paths right now, and it doesn't matter that you don't have a .scripts folder, that's just what I use. .fbterm is fine.

Are you sure the script is executable (did you do "chmod +x" on it after you saved it)?

If you are, go back into the .fbterm folder and try this command:

Code:
./fbterm-bi <imagefile>


Notice the "./" in front -- this is very important! For some reason bash doesn't like to run scripts when they are in the same folder, so you have to be explicit about it. Also, change "<imagefile>" to an actual path to an actual image.

Then come back and report any errors you get this time.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 433
Location: Scotland

PostPosted: Tue Jun 26, 2012 10:49 pm    Post subject: Reply with quote

Hey pidsley! You are a genius! :wink:
I made 2 mistakes, confirming just how stupid I am, and also confirming just how much I am out of my depth with Gentoo. :x
It's amazing when I think I have been using Gentoo as my main flavour since 2009, and have had some nasty experiences, but always managed to pull
through without having to do a re-install.
1st mistake: I failed to rename the wrapper script. It was named fbwrapper. :oops:
2nd mistake: I failed to precede the command with ./ :oops:
If I knew anything about linux, I should have known about the ./ rule.
My bad.
I can't thank you enough for your help.
Many thanks pal. :wink:
My console looks cool as f**k now.
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
pidsley
n00b
n00b


Joined: 09 Jun 2012
Posts: 63

PostPosted: Tue Jun 26, 2012 11:19 pm    Post subject: Reply with quote

Awesome! Glad I could help.

Quote:
It's amazing when I think I have been using Gentoo as my main flavour since 2009, and have had some nasty experiences, but always managed to pull through without having to do a re-install.


This is something to be very proud of -- Gentoo is not easy!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum