Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, 2 January 2017

Rebol for Linux 64bit

Wow, Rebol is released also for Linux 64bit: http://www.rebol.com/downloads.html

Friday, 18 January 2013

Linux packages renewed

I received a message complaining about  a message "Packet is of bad quality" installing my packages.
Well, using lintian, a software checking the quality of debian packages, I updated the Rebol 2 linux packages here:
http://www.maxvessi.net/rebsite/linux/
and here:
https://github.com/angerangel/Rebol-linux-packages

Please let me know if you have some problems about the packages.
Do you want also Rebol 3 packages?

Monday, 24 December 2012

Rebol Draw on Linux

Rebol works very well on  Linux, even DRAW, look these examples:

Iphone button


sz: 200x400
img: make image! sz
img/alpha: 255
draw img compose [
  pen none
  fill-pen linear (as-pair 0 sz/y / 2) -50.5 70.5 90.0 1.0 1.0
        45.45.47 9.9.11 108.113.117
  circle (as-pair sz/x - 115 sz/y / 2) 70.5
  fill-pen 1.0.5
  circle (as-pair sz/x - 115 sz/y / 2) 68.5
  reset-matrix
  fill-pen linear (as-pair sz/x - 115 sz/y / 2) -60.5 30.5 45.0 1.0 1.0
        161.164.169 161.164.169 89.94.100
  box (as-pair sz/x - 115 - 26 sz/y / 2 - 26) (as-pair sz/x - 115 + 26 sz/y / 2 + 26) 10.0
  fill-pen 1.0.5
  box (as-pair sz/x - 115 - 22 sz/y / 2 - 22) (as-pair sz/x - 115 + 22 sz/y / 2 + 22) 6.0
  reset-matrix
  fill-pen linear (as-pair 0 sz/y / 2 - 26) -50.5 100.5 90.0 1.0 1.0
        1.0.5.255 200.214.226.224 200.214.226.128
  shape [
    move 154x200
    arc 16x200 68.0 68.0
    arc 154x200 -149.0 68.0
  ]
]
view layout [
  backdrop 1.0.5
  image img
]

and neon effect:





my-font: make face/font [
name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
;with your path to font you want to use
size: 64
style: [bold]
]
neon: "REBOL BAR"
coord: 30x15
inc: 0.25.25
draw-block: compose [
  line-join round font my-font
  pen (inc * 1 + 255.0.0.230) line-width 11 text vectorial coord neon
  pen (inc * 2 + 255.0.0.205) line-width 9 text vectorial coord neon
  pen (inc * 3 + 255.0.0.180) line-width 8 text vectorial coord neon
  pen (inc * 4 + 255.0.0.155) line-width 7 text vectorial coord neon
  pen (inc * 5 + 255.0.0.130) line-width 6 text vectorial coord neon
  pen (inc * 6 + 255.0.0.105) line-width 5 text vectorial coord neon
  pen (inc * 7 + 255.0.0.80) line-width 4 text vectorial coord neon
  pen (inc * 8 + 255.0.0.55) line-width 3 text vectorial coord neon
  pen (inc * 9 + 255.0.0.30) line-width 2 text vectorial coord neon
  pen (inc * 10 + 255.0.0.5) line-width 1 text vectorial coord neon
]
view/title layout [box black 450x200 effect [ draw draw-block ] ] "NEON"

Friday, 28 September 2012

Linux packages

I created some time ago the Linux auto installation packages, some people asked me how, so I decide to put all needed files on Github.
Github link is the following: https://github.com/angerangel/Rebol-linux-packages
How to make a Linux package?
It's very simple:
  • first of all you need to create a directory with you package name (for example "rebol")
  • inside this folder you must put the folders that you want to install in pc, the same structure parting from "/" (the roo folder). In my case I needed to copy rebol intepreter in "/usr/bin" and something else in "/usr/share/". So this is my directory structure:
  • As you probably noticed, I also created a "DEBIAN" directory, this is requested by .deb package format. Inside the DEBIAN directory you must put a "control" file. This is my control file:

    Package: rebol
    Version: 2.7.8.4.3
    Architecture: i386
    Installed-Size: 1175
    Section: devel
    Priority: optional
    Homepage: http://www.rebol.com
    Depends: libc6, libstdc++6, libx11-6, libxcb1, libxaw7, libfreetype6, libxext6, libxt6, libxmu6, libgcc1, libsm6, libice6, libxpm4, zlib1g, libxau6, libxdmcp6, libuuid1, xfonts-100dpi, xfonts-75dpi
    postinst: mandb; update-app-install
    Maintainer: Massimiliano Vessi <maxint@tiscali.it>
    Description: REBOL stands for relative expression based object language.
    Software systems have become too complex,
    layers upon layers of complexity, each more brittle and
    vulnerable to failure. In the end software becomes the
    problem, not the solution. We rebel against such complexity,
    fighting back with the most powerful tool available:
    language itself.
    .
    This package contains the REBOL/View 2.7.8.4.3 binary
  • Then I added the man pages
  • Then I added the icon to display in the application menu, in "/usr/share/pixmaps/"
  • Then I wrote the rebol.desktop, a file that add rebol in the application panel like this:
    to obtain this result, I wrote the file this way:
    [Desktop Entry]
    X-AppInstall-Package=rebol
    X-AppInstall-Proprietary=true
    X-AppInstall-Architectures=i386;amd64
    Encoding=UTF-8
    Name=Rebol
    Icon=rebol-icon
    Terminal=true
    Type=Application
    Categories=Application;Development;IDE;
    StartupNotify=true
    MimeType=text/r;
    Exec=rebol
    Comment=Programming is fun again

    terminal=true is important to start rebol from a terminal, or you won't see console.
  •  Now you must have alien installed, in order to convert the debian package in other formats (RPM, tar.gz, etc.)
  • Launch my script (packcreator.sh) and you'll obtain all packages for all linux platforms. My script is very simple:
    #!/bin/bash
    #removing old versions
    rm rebol*.deb
    rm rebol*.tgz
    rm rebol*.rpm
    #creating new ones
    dpkg-deb -b rebol
    dpkg-deb -b rebol_amd64
    sudo alien --to-rpm --to-tgz rebol.deb
    sudo alien --to-rpm rebol_amd64.deb
If you have any question, post a comment!

Monday, 18 July 2011

Facebook page

Hello rebels,
now there is also a fan page on Rebol:

http://www.facebook.com/pages/REBOL/108213235866937

New linux auto installer packages are ready to download:

http://www.maxvessi.net/rebsite/Linux/

Do you want an HTML dialect to biuld html pages? Here it’s ready:

http://97.107.135.89/www.hmkdesign.dk/project.rsp?id=html-dialect&page=docs

One liner of the week:

view f: layout for n 0 19 1[r:(random 19)+ n // 20 append[across]load rejoin["a"n": check on[a"r"/data: a"r"/data xor on show f]"]]

It’s a game: line of twenty boxes appear, each with a cross on, the object being to remove all the crosses. Clicking on a box will toggle it and one other off and on.

Linux packages

Hello world,
I’m glad to announce the availability of the Rebol installer packages for Linux! Ubuntu, Mandriva, Suse, Slackware, whatever is your preferred distro, now there is a package for you.
You can download from: http://www.maxvessi.net/rebsite/Linux/

Another great about Rebol site with a lot of examples is http://reboltutorial.com

One liner of the week:

view layout [u: field "user@rebol.com" h: field "http://" btn "Send" [send to-email u/text read to-url h/text alert "Sent"]]

Linux packages

Ubuntu/Debian, RPM and Slackware packages, available for i386 and amd64 architecture!!! You can download from:
http://www.maxvessi.net/rebsite/Linux/