windows Fahmon viewing VMware Ubuntu

Soldato
Joined
31 May 2006
Posts
7,564
Location
West London
How?

Found D's old post on the subject in the original SMP quide thread - but you need to right click on icons (And I have none now)

whats the long way of setting permissions (can't wait)

thanks in advance
 
Have you installed Samba?

Have a read through this for setting it up.

You should only need to use the first three sections. They should grant Windows access to the folding folder/folders in your Home directory.
 
Last edited:
[EDIT] - Corrected a few typo's and added the Samba Man-Pages & Folder Share links.[/EDIT]

Assuming you’ve done all your updates and FAH is running normally. Im doing this from memory, so there may eb a few typo's:

Step-1 - Open a Terminal Window or SSH to your Node, then:
Check if Samba is installed:

>>prompt$ sudo /etc/init.d/samba status

If if doesn't respond positivly, it's not installed, so carry on with Step-2, else
skip Step-2 and go to Step-3

Step-2 - Installing Samba
>>prompt$ sudo apt-get install samba
sudo password: {Enter Your sudo-root password}

then:

Just follow the defaults and hit "Y" or "YES" when asked. When Samba is finished installing, the deamon / smb server will be running.

Step-3 - Edit the Samba Configuration Fig File {smb.conf}
>>prompt$sudo nano /etc/samba/smb.conf

This will open the Nano Text Editor. Scroll / Arrow / PG-Down to the end of the file just before the (EOF) and add the following to the file, note, this is the simple version, consult the online or man-pages for all availble options & features:

-----------------------------
[share1]
comment = Share for FaHmon
path = /home/username <-- Repalce user with the User where F@H is installed
available = yes
browsable = yes
writeable = yes
-----------------------------

Then hit Ctrl+O then {Enter} to Save, then hit Ctrl+X to exit Nano.

Here is My Configuration Example:

-----------------------------
[share1]
comment = Share for FaHmon
path = /home/ke1ha
available = yes
browsable = yes
writeable = yes
-----------------------------
NOTE: Consult the Samba Man-Page / Online Guide for additional features. You can do all sorts of permissions with Samab, these are just basic options.

Samba.org
Samba Share Examples

Step-4 - Add Samba password for your user that will be accessing the shared folder.
>>prompt$ sudo smbpasswd -a {your user name}
New-Password: {Enter New Password}
Re-Enter New Password: {Enter New Password}

Step-5 - Restart Samba
>>prompt$ sudo /etc/init.d/samba restart
sudo password: {Enter Your sudo-root password}

You should see the deamon / smb server shutdown, then restart.

Step-6 - Determine your IP Address
>>prompt$ ifconfig {hit enter}

Look for your IP address. If your at home will probably be 192.168.x.x something. The you can close the terminal window

Step-7 - Browse to The New Shared Folder
- Open IE or Firefox and put the IP address in the address bar like so:

\\192.168.2.10\ {hit enter}

That should bring up a folder called Shared or Shared1. From here you navigate down to where the "unitinfo.txt" files resides, then copy the address / URL from IE or Firefox.

Step-8 - Add the New Client to FaHmon
Open FaHmon, and select add a new client / location. Give it a name, then paste the location from IE or Firefox in the location line and save.

You should see FaHmon turn Yellow, then green after your incemental update.
.
 
Last edited:
Durring install it gave me a list of server types - remember samba being on list but I think I chose file server. Will follow your steps when I get home and read cob's link when I get home - thanks guys

One question? as I've no terminal window how do you SSH to your Node? (wiki just exploded my mind with semi-relatant ways to use SSH) is that just a confusing way to say use comandline or is it an alturnative comandline variable/protocal/language/flavour/other
 
One question? as I've no terminal window how do you SSH to your Node? (wiki just exploded my mind with semi-relatant ways to use SSH) is that just a confusing way to say use comandline or is it an alturnative comandline variable/protocal/language/flavour/other

I've been using Putty for years. It's a free WinDdoze SSH client. They also do PFTP PSCP etc etc, no install required, just download and run the .exe

Putty SSH .exe Link: Download
All Tool ZIP: Download

Here are the PuTTY Tools in the ZIP:
PuTTY (the Telnet and SSH client itself)
PSCP (an SCP client, i.e. command-line secure file copy)
PSFTP (an SFTP client, i.e. general file transfer sessions much like FTP)
PuTTYtel (a Telnet-only client)
Plink (a command-line interface to the PuTTY back ends)
Pageant (an SSH authentication agent for PuTTY, PSCP and Plink)
PuTTYgen (an RSA and DSA key generation utility).

Using Putty SSH is dead simply. Run Putty SSH, Enter a name your want to call the location, enter the IP address, save. Then Load / open. The Screen pop's up asking you to add the RSA DSA hash ( only the first time you run it on that particular site) accept the certificate, then your at you user log-in. You can log in as any user or root.

SSH Made Simple !!!
.
 
Durring install it gave me a list of server types - remember samba being on list but I think I chose file server. Will follow your steps when I get home and read cob's link when I get home - thanks guys

One question? as I've no terminal window how do you SSH to your Node? (wiki just exploded my mind with semi-relatant ways to use SSH) is that just a confusing way to say use comandline or is it an alturnative comandline variable/protocal/language/flavour/other

Are you looking to log into more than one computer?
 
Are you looking to log into more than one computer?

no - just see what's happening in Ubuntu server - (don't even know how to view the fahinfo file easily :o )

edit: cob - followed the gude but failed at step two (both password and smbuser)
-bash: gksudo: command not found
@KE1HA - does look easy to me... may try when I'm more awake.

More likely go back to desktop version - at least i can navigate in that :o
 
Last edited:
Then this guide should be enough. It's upto yourself whether or not you want to have both read and write permissions, but having write permissions is pretty handy when you've no Ubuntu GUI. And you only want to share your Home folders.


Take note that 'system_username' is ofcourse your own username.
 
Last edited:
Take note that 'system_username' is ofcourse your own username.

didn't work - Failed to modify pasword entry for user system_username

Edit: is their a one line command to check progress/status when in the foldingathome folder (or anyother for that matter)

Edit2: ./folding status works but does tell me % or WU number

Edit3: how do i open unitinfo.txt?
 
Last edited:
Code:
gedit unitinfo.txt


Or go into the CPU folder and then
Code:
gedit FAHlog.txt
and that will display the current log.


Actually those two might not work from the CL. They do work from a terminal inside a GUI for some reason.
 
Last edited:
Code:
gedit unitinfo.txt


Or go into the CPU folder and then
Code:
gedit FAHlog.txt
and that will display the current log.


Actually those two might not work from the CL. They do work from a terminal inside a GUI for some reason.

gedit won't work if you've got a pure CLI environment unless you do X forwarding and run a compatible X server on your client, but thats too complex to go into here.

Assuming you opted to install the 3rd party tools when you used finstall, you can go into the "CPU1" etc directories and type "./qd -iP" and that will give you all the data you need.

If you didn't install qd, or can't be bothered to download it, you can use "tail -n FAHlog.txt" to see the last n lines of FAHlog.txt (obviously put a real number in place of n).
"cat unitinfo.txt" will print out all of unitinfo.txt
"less FAHlog.txt" will print out FAHlog.txt in a scrollable format
"nano FAHlog.txt" will open FAHlog.txt in a CLI texteditor (assuming nano is installed)
 
Doh!

I don't know where the CPU1 directory is... thought it was in foldingathome, but is says no such file or directory.

dir works and it's their - Ahhh I need to put in whole path inc foldingathome (even if I'm already in foldingathome) so cd ~/ always works from home folder.

nano worked a treat thanks uncle (once I remembered that the little up arrow ment Ctrl)

did nano need samba - and if not can/should i remove it
 
If all you want to do is view the Unitinfo.txt file, you dont have to open the editor to do that just use cat:

ke1ha@ub-q6600-3:~$ cat ~/foldingathome/CPU1/unitinfo.txt

Current Work Unit
-----------------
Name: Protein in POPC
Tag: P2605R10C277G17
Download time: January 10 14:24:24
Due time: January 11 14:24:24
Progress: 92% [|||||||||_]

or Use grep just to get the percentage:

ke1ha@ub-q6600-3:~$ cat ~/foldingathome/CPU1/unitinfo.txt | grep Progress

Progress: 92% [|||||||||_]


For you FAHlog.txt I'd use "less" as your able to cursor up and do the file:

ke1ha@ub-q6600-3:~$ cat ~/foldingathome/CPU1/FAHlog.txt | less

then Ctrl-Z to exit less.

Another neat items in tailing the log file, meaning when it writes to the log, you see it as it happens:

ke1ha@ub-q6600-3:~$ tail -f ~/foldingathome/CPU1/FAHlog.txt

Ctrl+C to exit tail


Re: Samba: What problems are you having with Samba? If the server isn't working, which I find strange, but hey-ho ... all ya need to do is:

ke1ha@ub-q6600-3:~$ sudo apt-get samba remove

Then check to make sure the system links are gone:

ke1ha@ub-q6600-3:~$ sudo update-rc.d -f samba remove

Anyway, CLI takes a bit of getting used to, but it's work perfectly on my machines.
.
 
Last edited:
or Use grep just to get the percentage:

ke1ha@ub-q6600-3:~$ cat ./foldingathome/CPU1/unitinfo.txt | grep Progress

Progress: 92% [|||||||||_]


For you FAHlog.txt I'd use "less" as your able to cursor up and do the file:

ke1ha@ub-q6600-3:~$ cat ./foldingathome/CPU1/FAHlog.txt | less

then Ctrl-Z to exit less.

You needn't pipe to grep and less since they both accept files as input.

Code:
grep Progress ~/foldingathome/CPU1/unitinfo.txt

Code:
less FAHlog.txt


Another neat items in tailing the log file, meaning when it writes to the log, you see it as it happens:

ke1ha@ub-q6600-3:~$ tails -f ./foldingathome/CPU1/FAHlog.txt

Ctrl+C to exit fail

I think you mean "tail -f" not "tails -f" ;)
 
:~$ cat ./foldingathome/CPU1/unitinfo.txt

looks like the winner :D

but the nano is also mightly usefull for fault finding but I guess I could use

:~$ cat ./foldingathome/CPU1/FAHlog.txt

and just use the 'up' arrow to retype the command (changing FAHlog with unitinfo as desired)

whats the $ for? might as well learn some more code while I'm in the mood :)
 
Last edited:
Back
Top Bottom