Search the web
Sign In
New User? Sign Up
self-interest · Self Programming Language
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Running Self headless?   Message List  
Reply | Forward Message #2062 of 2124 |
Re: [self-interest] Running Self headless?

On Tue, Jul 21, 2009 at 2:03 PM, Russell Allen<mail@...> wrote:
> Not sure.  I need to go through all those image building scripts and check
> they are still working (and maybe refactor them into a single script with
> parameters).
> (Unless you want to do it for me :) :)

The Linux one needs some tweaks to work on my Linux distro (Arch
Linux). I had to change bin/src/makeDeps.cpp:

# ifdef __linux__
-# include <c++/4.1/new>
+# include <new>
# endif

In /bin/src/MakefileBinList I change the linker line for skipComments
and removeUnderscore to use -lfl rather than -ll (I use flex). I also
installed tcsh since one of the scripts seems to rely on it.

With those changes Self built fine using the buildLinuxVM shell
script. I can prepare a patch or put a commit on github if you want
these.

> If you build an image from scratch with 'all2.self' _RunScript and save it
> without first doing a 'desktop open' it will also be a 'headless' image.  It
> will have the ui objects in there, but they don't take up much space.

Thanks, this worked fine.

Chris.
--
http://www.bluishcoder.co.nz



Tue Jul 21, 2009 2:08 am

chris@...
Send Email Send Email

Forward
Message #2062 of 2124 |
Expand Messages Author Sort by Date

Is it possible to run the existing Self implementation in a headless environment? For example, running a webserver on a remote machine accessed via ssh. Chris....
Chris Double
chris@...
Send Email
Jul 21, 2009
1:31 am

Hi Chris, Self's quite happy to run with or without the gui. Easiest way to create a headless image:- Start Self from the command line: Self -s Clean.snap Then...
Russell Allen
russell.allen23
Offline Send Email
Jul 21, 2009
1:54 am

... Great, thanks Russell, I'll give that a try. Would creating an image from scratch using "'small.self' _RunScript" also do the trick or will that leave...
Chris Double
chris@...
Send Email
Jul 21, 2009
1:57 am

Not sure. I need to go through all those image building scripts and check they are still working (and maybe refactor them into a single script with...
Russell Allen
russell.allen23
Offline Send Email
Jul 21, 2009
2:03 am

... The Linux one needs some tweaks to work on my Linux distro (Arch Linux). I had to change bin/src/makeDeps.cpp: # ifdef __linux__ -# include <c++/4.1/new>...
Chris Double
chris@...
Send Email
Jul 21, 2009
2:09 am

What version of GCC are you using? -Russell...
Russell Allen
russell.allen23
Offline Send Email
Jul 21, 2009
2:19 am

... $ gcc --version gcc (GCC) 4.4.0 20090526 (prerelease) Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying...
Chris Double
chris@...
Send Email
Jul 21, 2009
2:23 am

Cool. Glad to see it works on the latest. Any problems or warnings compiling? -Russell...
Russell Allen
russell.allen23
Offline Send Email
Jul 21, 2009
2:33 am

... It seems to run ok so far. There are a bunch of warnings during compilation. For example: ../../../vm/src/any/fast_compiler/blist.hh:46: warning:...
Chris Double
chris@...
Send Email
Jul 21, 2009
2:45 am

Hi Chris, I've merged your changes. I've also added a new flag: -headless If you build a new image from the latest sources using 'all2.self' you should be able...
Russell Allen
russell.allen23
Offline Send Email
Jul 25, 2009
10:41 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help