SMP Guide

shadowscotland said:
I also get the feeling that there are 2 or 3 ways at doing everything (some more user friendly that others) And that typo's either mean it doesn't do anything (love that arrow key retype function) or does something quite different :eek:

Most of the different ways of doing stuff is down to how complex you make your commands.

For instance a new person may use several commands to do something. A more experienced user will probably string commands together using the pipe symbol.

For instance, if you had a file called filename.tar.gz

You could decompress that file like so:

Code:
gunzip filename.tar.gz  #unzips the gz bit leaving filename.tar
tar xvf filename.tar #untars the file

However, a more experienced user would probably use:

Code:
gunzip filename.tar.gz | tar xvf -

This does the unzip command, and then pipes the output [the file in this case] into the second command [tar xvf -]. The hyphen [-] is a placeholder for the file you are working on. Saves you typing the file name twice. A good thing too since Linux filenames always tend to be along the lines of "someprogramV23-0.11.2982.111.tar.gz" or something equally stupid. :D

If there are lots of commands it can take just as long to type out the piped command. So if it is something commonly done you can write a script which does all the work for you. [I myself have written a script for decompressing files, all I need to do is pass the file to the script and it will work out what type of file it is and then do the appropriate trickery to decompress it. There are lots of little programs like this that already come with Linux so it is worth going through the man pages from time to time and see if there is already a command for something you are trying to do.
 
Well I followed the script and now have a fahmon.sh icon on my desktop but all it does is show a txt file with this

#!/bin/sh
cd ~/fahmonb5/src
./fahmon

:confused:
 
Last edited:
uncle_fungus said:
Make it executable, right click and change permissions.

See the bottom of my installation page here:

Looks like i missed soem script.
Did the right click thing - ticked box - it opened dialog box - clicked run - and it stoped :confused:

Edit: going to try the script now
 
SiriusB said:
Code:
gunzip filename.tar.gz | tar xvf -

Hehe, a more experienced user would do away with gunzip altogether and messing around with pipes. Why use two commands when 1 will do.

a simple:

Code:
tar xzvf filename.tar.gz

would do the trick. And if you have filename.tar.bz2 (or .tbz2), simply switch 1 letter:

Code:
tar xjvf filename.tar.bz2
 
stephen@lemonman:~$ chmod +x #/fahmon.sh
chmod: missing operand after `+x'
Try `chmod --help' for more information.
stephen@lemonman:~$ cat > fahmon.sh << EOF
> #!/bin/src
> ./fahmon
> EOF
stephen@lemonman:~$ chmod +x ~/fahmon.sh
stephen@lemonman:~$ ~/fahmon.sh
bash: /home/stephen/fahmon.sh: /bin/src: bad interpreter: No such file or directory
:confused:
Edit - don't worry - used wrong folder name :rolleyes:
 
shadowscotland said:
stephen@lemonman:~$ chmod +x #/fahmon.sh
chmod: missing operand after `+x'
Try `chmod --help' for more information.
stephen@lemonman:~$ cat > fahmon.sh << EOF
> #!/bin/src
> ./fahmon
> EOF
stephen@lemonman:~$ chmod +x ~/fahmon.sh
stephen@lemonman:~$ ~/fahmon.sh
bash: /home/stephen/fahmon.sh: /bin/src: bad interpreter: No such file or directory
:confused:
Edit - don't worry - used wrong folder name :rolleyes:

There's no need to chmod right at the beginning, since the file doesn't even exist at that point. (and remove the #/ too)

Second, your catting should look like this:
Code:
stephen@lemonman:~$ cat > fahmon.sh << EOF
> #!/bin/sh
> cd ~/fahmonb5/src
> ./fahmon
> EOF

Then after chmodding it with +x, it will work

The reason it broke when you just tried it, is because your hashbang line read "#!/bin/src" which doesn't exist, it should have been "#!/bin/sh". You also need the "cd ..." line too.
 
give up - just not worth the effort - I'll stick with my link to fahlog.txt.

All I wanted was a simple answer to follow, all in one place :rolleyes:

Edit: sorry uncle F - I'm being rude and all your trying to do is help me - It's just SO frustrating - is their no graphical interface way of doing this type of thing (typing was never my strong point)
 
Last edited:
cd <path to fahmon folder/src>
./fahmonb5



Far simpler than all this mucking about this lot are having you doing lol.
 
shadowscotland said:
give up - just not worth the effort - I'll stick with my link to fahlog.txt.

All I wanted was a simple answer to follow, all in one place :rolleyes:

Hold on there ;)

We can get you working.

Where is fahmon "installed"?

Delete the script you've just created.

Assuming fahmon is in ~/fahmonb5/src (else change as appropriate)

Open a text editor and copy and paste this into it:

Code:
#!/bin/sh
cd ~/fahmonb5/src
./fahmon

Save the file in your home directory and call it fahmon.sh then close your text editor.

Open your filemanager and right click on fahmon.sh and give it execute permissions, but don't then move it to the desktop.

Next, right click on your desktop and make a new shortcut (or link to application, whatever your distro calls it) and for the application command, select the fahmon.sh script you just created. You can then fiddle around with the icon and the shortcut name.

After that, everything should be done, you can use the shortcut on your desktop to launch fahmon.

SiriusB said:
cd <path to fahmon folder/src>
./fahmonb5



Far simpler than all this mucking about this lot are having you doing lol.

True, but not if you want a desktop shortcut. It's fine if you want to launch it from a terminal (and you're missing a trailing "&" btw, otherwise closing the console would kill fahmon ;) )
 
SiriusB said:
Far simpler than all this mucking about this lot are having you doing lol.

I for one am not laughing :p but as long a the clients working (and it's just uploaded another WU) I'm a happy bunny :D

Whats with the persentage - must be something to do with the short deadline - and is this good (high being more time left) or bad (high being time used up)
[20:36:41] Unit 2 finished with 83 percent of time to deadline remaining.
[20:36:41] Updated performance fraction: 0.831669
 
shadowscotland said:
I for one am not laughing :p but as long a the clients working (and it's just uploaded another WU) I'm a happy bunny :D

Whats with the persentage - must be something to do with the short deadline - and is this good (high being more time left) or bad (high being time used up)
[20:36:41] Unit 2 finished with 83 percent of time to deadline remaining.
[20:36:41] Updated performance fraction: 0.831669

The higher the better. The preformance fraction is your average time left before the deadline per finished WU (1.0 being when you get the WU and 0.0 being the deadline.)
 
True, but not if you want a desktop shortcut. It's fine if you want to launch it from a terminal (and you're missing a trailing "&" btw, otherwise closing the console would kill fahmon ;) )[/QUOTE]

So...

./fahmonb5&

or is it

./fahmonb5 &

My terminal is always open so I never even realised closing it kills fahmon :p
 
stephen@lemonman:~$ #!/bin/sh
stephen@lemonman:~$ cd ~/fahmonb5/src
stephen@lemonman:~/fahmonb5/src$ ./fahmon
./fahmon: error while loading shared libraries: libwx_gtk2u_xrc-2.6.so.0: cannot open shared object file: No such file or directory
stephen@lemonman:~/fahmonb5/src$

You had your chance UF - and I failed again (I'm guessing that I should have cut and pasted each line separatly - but that not what you said :p )

Anyway I'm fine really :D
 
SiriusB said:
True, but not if you want a desktop shortcut. It's fine if you want to launch it from a terminal (and you're missing a trailing "&" btw, otherwise closing the console would kill fahmon ;) )

So...

./fahmonb5&

or is it

./fahmonb5 &

My terminal is always open so I never even realised closing it kills fahmon :p

It's the latter
 
shadowscotland said:
stephen@lemonman:~$ #!/bin/sh
stephen@lemonman:~$ cd ~/fahmonb5/src
stephen@lemonman:~/fahmonb5/src$ ./fahmon
./fahmon: error while loading shared libraries: libwx_gtk2u_xrc-2.6.so.0: cannot open shared object file: No such file or directory
stephen@lemonman:~/fahmonb5/src$

You had your chance UF - and I failed again (I'm guessing that I should have cut and pasted each line separatly - but that not what you said :p )

Anyway I'm fine really :D

I said open a text editor ;)

But what you just posted shows a more serious underlying problem, which explains why the bit you did further up the page didn't actually launch fahmon: You don't have wxGTK installed (which is the problem with distributing Linux binaries without giving the dependencies. If you compiled from source you would know this straight away)
 
uncle_fungus said:
I said open a text editor ;)

so you did, oops (but you didn't say how :p

Edit: it's just below terminal I know ;)

uncle_fungus said:
But what you just posted shows a more serious underlying problem, which explains why the bit you did further up the page didn't actually launch fahmon: You don't have wxGTK installed (which is the problem with distributing Linux binaries without giving the dependencies. If you compiled from source you would know this straight away)

what that mean? and more importantly do I need to fix it :eek:
 
The problem is that for some people, myself included, FahMon simply refuses to compile. And believe me I have tried everything short of reinstalling Linux.
 
Back
Top Bottom