@ SSH - serving programs to thin clients, Fearless Leader wrote:You will need a ssh server like openssh server. I am going to assume that you know how to set up SSH. (If you don't, ask in the help section and you will be guided)
That came from a lot of help at bjoernvold.com/forum, thanks, and some blundering, blind moves on my part, so my grasp of the current state of affairs is somewhat limited.
The Help Request
Formerly, I had Joomla installed on the server box and was able to cobble up the web page with a combination of gui editors in the Joomla administration module. I could access the module over the lan on my desktop, which is really convenient. What I did, essentially, is copy the page source of lanlesalon.com from Seamonkey and paste it into the outward-facing file in Hiawatha on the thin client. As I understand it, I have no CMS, like Joomla, no administrative page. I can connect monitor, mouse, keyboard to the Igel but, iiuc what dmidecode reports, it is crawling along at a 300MHz overclock of the 200MHz Geode mini-brain. I can attest that working in the Puppy gui is painfully slow.
Essentially, google showed me I needed sshd on the Puppy machine, I found openssh, which supplies this, in the repositories, and I installed it. I fumbled about with konqueror on Mandriva, called ssh from terminal, and found I was asked for the root password. Puppy comes running as root and no password but simply Enter was not enough. So, running passwd on Puppy was enough to get me credentials to log in, as the screenie shows. I can browse and open files. I know there are other nuances I have seen, such as generating a key for a password-less login or such, but this looks like significant success.
I think I am still hobbled by the 300MHz cpu on the Igel, somewhat, as it is serving files, still but, perhaps, having X running on the client desktop and not having to switch sources from one computer to the other on the monitor will be a worthwhile improvement. Thanks.
Re: Help for ssh newbie, please
Posted: 10 Apr 2011, 09:52
by viking60
Great work! And it is as easy as installling openSSH in most cases. The keygen command is very usefull for direct login and also it is more secure! If you provide a key wihout putting anything in the keyring, you will be logged directly in. That means that you can have programs update and transfer files automatically (like a backup to another machine via a cronjob). This will normally be stoped by a password prompt.
Re: Help for ssh newbie, please
Posted: 10 Apr 2011, 17:40
by rolf
Thanks. Ok, maybe you can help or maybe it is too foreign but my next experiment was to try to insert a little php date/time script I see on the intertubes.
<div style="text-align: center;"><span class="article_separator"><?php // set the default timezone to use. Available since PHP 5.1 date_default_timezone_set('AMERICA/LOS_ANGELES'); ?><br /> </span></div>
Well, the php code I tried to use is between <?php and ?> inclusive. The rest is what bluefish/kompozer put there when I tried to do what I thought would work. The whole index.php is:
There is no date/time showing on the website. Some confusion, for me, is that there is both httpd.conf and hiawatha.conf on the server. In httpd.conf, I have:
# Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php
If I uncomment those two lines in hiawatha.conf:
# Cause the PHP interpreter to handle files with a .php extension. # #AddHandler php5-script .php #AddType text/html .php
# /etc/init.d/rc.httpd start read /var/run/php-fcgi.pid: No such file or directory starting PHP FastCGI daemons Syntax error in hiawatha.conf on line 101.
Where line 101 is this one: AddHandler php5-script .php If I comment 101, 102 throws the error. Comment that and the server starts.
So, if someone can offer insight, I would appreciate it!
Re: Help for ssh newbie, please
Posted: 11 Apr 2011, 01:03
by viking60
Just to start: I think httpd.conf is the right place to adjust and add functions to the server. (but I don't have hiawata). Could you make the info.php page:
<?php echo "The viking superduperserver info:"; phpinfo(); ?>
Save it to the server as info.php (or pannekaker.php for that matter) and look it up in your Browser. That will give a nice overview of what you have activated. If you cant see it, php is not running. If I could somehow have a peek at it, I am sure that I could get confused at a much higher level.
I am not sure how to view info.php in a Browser. When I try to open a php file in fish:, it prompts for gedit or KomPozer or bluefish etc. and I wind up looking at code. I have seen some clues to follow, here, like opening a program over ssh and I'll try that when I get back from dinner!
Yippi. You have PHP running just fine. Looks like Mysql is running too. In the "Date" section I can see that your timezone is set to America/Los Angeles so the setting is correct. To add further modules to php and to get it under your skin you could take a look at /etc/php.ini on the server. The Date and Timezone settings are under Module Settings. PHP will only show up on the server in a browser. If you access it via fish you will only get the option to edit it in Bluefish etc. If you try to open it in a browser via fish you will get text or nothing. So edit via fish and look via http.