Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Aug 2014, 11:48
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Use the same save file on more than one computer at a time
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Fri 31 Jul 2009, 22:46    Post subject:  Use the same save file on more than one computer at a time  

I haven't tested this heavily - I'm just playing with it at the moment.


Why?
You might want to do this because you don't want a multiuser environment, and you want the same settings and everything on all your (networked) computers. Or because you have some old slow computers and one fast server that you want to run all your programs on. Or because you have computers without hard drives that you want to use. Or because you get kicked off the main computer when someone else wants to use it. Or because you get banned from using the computer so you want to connect to the main computer secretly from a computer in your room that you don't normally use Smile ...


Definitions
server= the machine the save file is on, and that you want all the programs to run on
client= the other machine(s). (I guess this is also a "server" in the sense that it is providing a display for the first machine to connect to Smile)


Getting started
1. Run Puppy or anything else with an X server on the client. With recent versions of Puppy you need to edit /usr/X11R7/bin to remove `-nolisten tcp` from the command that starts Xorg (it's on line 425 in Puppy 4.1.1), and you'll need to restart X after doing this. I guess this might indicate that the server actually needs Xorg, not just any X server Sad
2. Find out the ip address of the server (e.g. by running ifconfig I can see mine is 192.168.2.35)
3. Find out the ip address of the client (mine is 192.168.2.33)
4. Run xhost on the client to give the server permission to send X (graphical) programs there
Code:
xhost +192.168.2.35

If you restart X on the "client" you'll need to run this again
5. Open a terminal (e.g. rxvt) on the server and make all subsequent programs run from that terminal open on the client machine
Code:
export DISPLAY=192.168.2.33:0

6. In the same terminal run
Quote:
rxvt

It should open on the client's display, as should anything you run from it.


Moving On
I think you could start X on the client machine without a window manager (e.g. with a muppywm type script instead
Code:
#!/bin/ash
$1 &
while [ 1 ]
do
sleep 10000
done
Then you could write a start script on the server that runs the export command and then starts jwm, which would show up on the client. Does this work, or can you only have one instance of jwm?
What about rox, can you run the rox pinboard on more than one display?

You'll need to sort out your window manager/panel configuration so that someone on the client doesn't accidentally shut down the server! You might also want to think about the best way to shut down the client.

There are ways to send audio to another computer too, but I haven't looked carefully into them yet. I think it will require installing extra software like portaudio


Possible weaknesses:
- if you have programs that only allow one instance they won't be able to be run by people on more than one of your computers at a time - do we have any programs like that in Puppy?
- what happens if your server dies?
- someone might shut down the server when you are secretly connected to it!
- if your clients are powerful computers you will be wasting all that power!
- your server has to do all the work for the clients.
- your network might get busy... I think it is transferring information continuously between the two machines, even if they are sitting there not doing anything. On a related note, I wonder if I can get blinky to just show me the information communicated with the internet, ignoring local network traffic...
- there may be a few annoying things that you would have to sort out - e.g. by default in Puppy if you click on a text file it opens in geany, and if you click on another one it opens in the same geany window. So if Geany is already open on one display any text files clicked on in another display will open there too. You would have to change the file associations to prevent this - but I always found that annoying anyway though, because the same thing applied when I clicked on a text file and Geany was open in another virtual desktop Smile
- the connection is initiated from the server. I wonder if there is an easy way around this without using ssh or something else that makes this a crazy circular process?
- CDs/DVDs/removable media (think about it Smile )

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!

Last edited by disciple on Sat 19 Sep 2009, 00:11; edited 2 times in total
Back to top
View user's profile Send private message 
jduffy22335

Joined: 16 Apr 2009
Posts: 35
Location: Great Mills, MD USA

PostPosted: Fri 31 Jul 2009, 22:59    Post subject: Re: Use the same save file on more than one computer at a time
Subject description: Terminal Puppy
 

disciple wrote:
I haven't tested this heavily - I'm just playing with it at the moment.

Definitions
server= the machine the save file is on, and that you want all the programs to run on
client= the other machine(s). (I guess this is also a "server" in the sense that it is providing a display for the first machine to connect to Smile)
[/code]


Sound a lot like a puppy "thin client" along the lines of an antique *nix communications terminal server, OR a Puppy answer to "Cloud Computing" Exclamation
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Tue 04 Aug 2009, 05:31    Post subject:  

Kind of, although the fact that computers are sharing the same profile makes it quite different from a normal thin client setup.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Sat 19 Sep 2009, 00:20    Post subject:  

Just discovered this about the "client":
Quote:
With recent versions of Puppy you need to edit /usr/X11R7/bin to remove `-nolisten tcp` from the command that starts Xorg (it's on line 425 in Puppy 4.1.1), and you'll need to restart X after doing this.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Wed 23 Sep 2009, 04:41    Post subject:  

OK, just noticed another difficulty - if you start rox it will open thinking it is on the client, not the server.
I wonder how that works?
I wonder how it is that I can run rox on Colinux successfully?....

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0594s ][ Queries: 11 (0.0034s) ][ GZIP on ]