WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: vnc server extension  (Read 3304 times)

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
vnc server extension
« on: September 15, 2016, 07:43:36 AM »
Hi: I saw there is a x11vnc in the TinyCore repo. I would like to see a vnc server also in piCore-8.0. How much work
is it to convert (recompile) it. I never have done such a job.
Is there a way to bring the piCore desktop via ssh (X) to another PC?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: vnc server extension
« Reply #1 on: September 15, 2016, 09:36:46 AM »
see http://tinycorelinux.net/7.x/x86/tcz/src/x11vnc/compile_x11vnc

..you'd need to change the compiler flags

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: vnc server extension
« Reply #2 on: September 15, 2016, 01:10:00 PM »
thank you for this. Does this mean that I should download (wget) the source from the piCore 7.X repo and store it locally in /tmp  on my piCore 8.0 system?
After installing completec.tcz I should be able to compile and install. Is this correct?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: vnc server extension
« Reply #3 on: October 04, 2016, 02:00:48 PM »
hi juanito: What flag should i use for piCore8.0 ?
and where does it go in here:

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var

thank you for help.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: vnc server extension
« Reply #4 on: October 04, 2016, 02:33:06 PM »
Hi beerstein
Well you certainly should not be using  -march=i486 -mtune=i686.
The Wiki gives the recommended flags for RPI:
http://wiki.tinycorelinux.net/wiki:creating_extensions#installing
as well as a link to a thread:
http://forum.tinycorelinux.net/index.php/topic,17059.0.html

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: vnc server extension
« Reply #5 on: October 05, 2016, 10:33:23 AM »
hi rich: thank you for this: Will it work when I do the following:
1. need to install the compiletc.tcz metapackage on my piCore 8.0 on Raspberry3

2. download the source code: x11vnc-0.9.14-dev.tar.gz
compile_x11vnc from the repo: http://tinycorelinux.net/7.x/x86/tcz/src/x11vnc/
into a /tmp/subfolder

3. then I will try to compile the source code into an executable file.
How do I find out about the dependencies needed and where do I place them?

4. After that I will try to make an extension from that file. (Core Book and Wiki)

Question: Would that work for me?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: vnc server extension
« Reply #6 on: October 05, 2016, 12:58:08 PM »
Hi beerstein
compile_x11vnc:
Code: [Select]
tce-load -i Xorg-7.7-dev libjpeg-turbo-dev

cd x11vnc-0.9.14

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install
The dependencies are on the  tce-load  line. The references to  -march=i486 -mtune=i686  need to be removed. Beyond
that, I don't know if anything else needs to be changed. Try it and see what happens.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: vnc server extension
« Reply #7 on: October 07, 2016, 03:34:19 PM »
thank you for the info. At the piCore8.0 repo I only could find an
xorg-proto-dev.tcz -- may I use this one instead of the Xorg-7.7-dev?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: vnc server extension
« Reply #8 on: October 07, 2016, 04:23:31 PM »
Hi beerstein
Just a guess on my part, but I think you need  xorg-server-dev.tcz  and possibly  xorg-proto-dev.tcz.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: vnc server extension
« Reply #9 on: October 08, 2016, 04:53:18 AM »
No, it is not enough.
The only barriers that can stop you are the ones you create yourself.