Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: paridozzo on June 27, 2018, 10:35:18 AM

Title: TCE freerdp 2.0
Post by: paridozzo on June 27, 2018, 10:35:18 AM
Hello, it's possible to have the latest version of freerdp (ver. 2.0) in the repository?

Thanks
Title: Re: TCE freerdp 2.0
Post by: Rich on June 27, 2018, 11:19:20 AM
Hi paridozzo
You also need to be more specific as to what you are running. X86? 32bit? 64bit? Tinycore? piCore? dCore?
Title: Re: TCE freerdp 2.0
Post by: paridozzo on June 27, 2018, 05:39:13 PM
oh sorry, TC Plus 32bit.

So, can you recommend me an application to manage printers on TC? I need to redirect printers with freerdp.

Thanks for support.
Title: Re: TCE freerdp 2.0
Post by: Juanito on June 28, 2018, 06:33:48 AM
things are still at freerdp-2.0.0-rc2 - it might be better to wait for the final release?
Title: Re: TCE freerdp 2.0
Post by: paridozzo on June 29, 2018, 08:48:57 AM
in which repository can I find the latest working version that is not 1.1?

Thanks man
Title: Re: TCE freerdp 2.0
Post by: Juanito on June 29, 2018, 08:52:47 AM
CorePure64 9.x
Title: Re: TCE freerdp 2.0
Post by: paridozzo on June 29, 2018, 10:17:49 AM
oh no! my thin client support only 32 bit  :-[ (hp t5000)

I need a freerdp that support a RDS connection on Window Server 2012.

I try to use remmina on Ubuntu to connect my PC on Windows Server 2012 and it support a RDS connection (remmina use freerdp for RDP connection).

Other solution? rdesktop works but not fine (at the first login it gives me an authentication error, at the second login everything works i will try to disable NLA).

Please help me.

Thanks
Title: Re: TCE freerdp 2.0
Post by: Juanito on June 30, 2018, 06:16:17 AM
The instructions on how to compile freerdp are here:

http://www.tinycorelinux.net/7.x/x86_64/tcz/src/freerdp/compile_freerdp

..just replace "-mtune=generic" with "-march=i486 -mtune=i686"
Title: Re: TCE freerdp 2.0
Post by: paridozzo on July 03, 2018, 05:28:41 AM
cmake -DCMAKE_C_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_CXX_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DCMAKE_BUILD_TYPE=Release -DWITH_LIBSYSTEMD=OFF -DWITH_WAYLAND=OFF -DWITH_PULSE=ON -DWITH_CUPS=ON -DWITH_JPEG=ON -DWITH_X264=ON -DWITH_GSTREAMER_1_0=ON -DWITH_FFMPEG=ON -DWITH_ALSA=ON -DWITH_PCSC=ON ../

I receive the following error:
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
See also "/home/tc/FreeRDP/build/CMakeFiles/CMakeOutput.log

 >:( Help me please
Title: Re: TCE freerdp 2.0
Post by: polikuo on July 03, 2018, 05:34:57 AM
Did you load compiletc.tcz ?
Title: Re: TCE freerdp 2.0
Post by: paridozzo on July 03, 2018, 05:51:13 AM
Thanks man it's first time for me.

I receive this message:

-- Configuring incomplete, errors occurred!
See also "/home/tc/FreeRDP/build/CMakeFiles/CMakeOutput.log".
See also "/home/tc/FreeRDP/build/CMakeFiles/CMakeError.log".

Any ideas?
Title: Re: TCE freerdp 2.0
Post by: paridozzo on July 03, 2018, 06:54:25 AM
i set -DWITH_FFMPEG=OFF and it works.

i installed FFMPEG but i receive the following message:

Could not find FFmpeg (MISSING: avresample_found)
no PACKAGE 'LIBAVRESAMPLE' found
Title: Re: TCE freerdp 2.0
Post by: Juanito on July 03, 2018, 07:01:45 AM
It needs ffmpeg3?
Title: Re: TCE freerdp 2.0
Post by: paridozzo on July 03, 2018, 08:38:12 AM
No, i followed all the steps but I had to disable x264 and ffmpeg.

What should I do after running sudo make install command?

I read :

-- Set runtime path of "/usr/local/lib/libfreerdp-client.so.2.0.0" to "$ORIGIN/..//usr/local/lib:$ORIGIN/..:/usr/local/lib"
-- Installing: /usr/local/lib/libxfreerdp-client.so.2.0.0
-- Installing: /usr/local/lib/libxfreerdp-client.so.2
-- Installing: /usr/local/lib/libxfreerdp-client.so
-- Set runtime path of "/usr/local/lib/libxfreerdp-client.so.2.0.0" to "$ORIGIN/..//usr/local/lib:$ORIGIN/..:/usr/local/lib"
-- Installing: /usr/local/bin/xfreerdp
-- Set runtime path of "/usr/local/bin/xfreerdp" to "$ORIGIN/..//usr/local/lib:$ORIGIN/..:/usr/local/lib"

what does it mean?
Title: Re: TCE freerdp 2.0
Post by: polikuo on July 03, 2018, 01:01:08 PM
What should I do after running sudo make install command?

That's not how you make a tcz package.
Please read the instructions here (http://wiki.tinycorelinux.net/wiki:creating_extensions).

To configure:
Code: [Select]
cmake .. \
-DCMAKE_C_FLAGS="-march=i486 -mtune=i686 -Os -pipe" \
-DCMAKE_CXX_FLAGS="-march=i486 -mtune=i686 -Os -pipe" \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_LIBDIR=/usr/local/lib \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_LIBSYSTEMD=OFF \
-DWITH_WAYLAND=OFF \
-DWITH_PULSE=ON \
-DWITH_CUPS=ON \
-DWITH_JPEG=ON \
-DWITH_X264=OFF \
-DWITH_GSTREAMER_1_0=ON \
-DWITH_FFMPEG=OFF \
-DWITH_ALSA=ON \
-DWITH_PCSC=ON

make & install
Code: [Select]
make -j
make DESTDIR=/tmp/freerdp-root install

Split the output files into several directories as per wiki's instruction.
To wrap-up all the output files into a tcz package:
Code: [Select]
tce-load -i squashfs-tools
mksquashfs /tmp/freerdp-dev freerdp-dev.tcz
mksquashfs /tmp/freerdp-doc freerdp-doc.tcz
mksquashfs /tmp/freerdp-base freerdp.tcz
Title: Re: TCE freerdp 2.0
Post by: Juanito on July 04, 2018, 04:54:45 AM
..somewhat against better judgement, freerdp2 posted (not tested)
Title: Re: TCE freerdp 2.0
Post by: paridozzo on July 04, 2018, 07:45:18 AM
Thanks man
Title: Re: TCE freerdp 2.0
Post by: Rich on July 04, 2018, 09:40:08 AM
Hi Juanito
In replies 3 and 15 you reference  openrdp2.  Google returns nothing for that term. I guess you meant  freerdp2.  In the
freerdp2.tcz.info  here:
http://tinycorelinux.net/9.x/x86/tcz/freerdp2.tcz.info
you misspelled  freerdp2.tcz  as  freerd2.tcz  in the  Title:  field.
Title: Re: TCE freerdp 2.0
Post by: Juanito on July 04, 2018, 10:25:53 AM
indeed, corrected - thanks
Title: Re: TCE freerdp 2.0
Post by: bugger553 on April 16, 2020, 06:03:48 PM
things are still at freerdp-2.0.0-rc2 - it might be better to wait for the final release?
On 9. April 2020 version 2.0.0 was released, with many bugfixes. Will it be possible to get the release in the updatas of 11.1?
Title: Re: TCE freerdp 2.0
Post by: Juanito on April 17, 2020, 04:11:26 AM
posted
Title: Re: TCE freerdp 2.0
Post by: bugger553 on April 17, 2020, 08:33:51 AM
Thanks for the quick reply!
Title: Re: TCE freerdp 2.0
Post by: bugger553 on April 17, 2020, 10:57:07 AM
I've just installed the new version but obviously the dependencies must be adapted, too. xfreerdp needs libusb.tcz and libasound.tcz to start properly.
Without them the start of xfreerdp results in
As a workaround I've added them manually to load Onboot.

@Juanito: maybe you can adapt this within the configuration of freerdp package? Thanks is advance again.
Title: Re: TCE freerdp 2.0
Post by: Juanito on April 17, 2020, 11:15:39 AM
Is this x86 or x86_64? I didn't change the dep file, so this must have been a problem earlier?
Title: Re: TCE freerdp 2.0
Post by: bugger553 on April 17, 2020, 11:31:59 AM
This is in x86, I didn't check x86_64. It's quite possible that this was a problem earlier. I did a fresh install on a new system and did not check whether the problem occurs with previous version...
Title: Re: TCE freerdp 2.0
Post by: Juanito on April 17, 2020, 12:07:05 PM
dep file adjusted
Title: Re: TCE freerdp 2.0
Post by: Kipp on July 14, 2020, 03:23:03 AM
 possible to have the latest version of freerdp 2.1.2
Title: Re: TCE freerdp 2.0
Post by: Juanito on July 14, 2020, 03:28:33 AM
Which architecture - x86, x86_64, RPi?
Title: Re: TCE freerdp 2.0
Post by: Kipp on July 14, 2020, 03:30:45 AM
Which architecture - x86, x86_64, RPi?
x86
Title: Re: TCE freerdp 2.0
Post by: Juanito on July 14, 2020, 05:07:54 AM
posted
Title: Re: TCE freerdp 2.0
Post by: kagouraki on November 02, 2020, 02:32:45 PM
Hello can you please upload the freerdp app and all its dependencies in the repository for PiCore 12  arm6 raspberry pi zero w ?

THANK YOUUUU! 
Title: Re: TCE freerdp 2.0
Post by: Juanito on November 02, 2020, 03:22:27 PM
The problem is that there are a couple of extensions in the dependency chain that will not compile for armv6 - I need to see what can be done to work around this.
Title: Re: TCE freerdp 2.0
Post by: kagouraki on November 02, 2020, 04:35:11 PM
Thank you very much. I hope there is a solution. I try to connect with xrdp running in a RPi4 and latest buster. I have tried Picore 9 witch has the freerdp app but it cant connect. I can connect to the Rpi4 from my mac so the xrdp server is working...
Do you know if there is a vnc client for Picore 12 ?
Title: Re: TCE freerdp 2.0
Post by: Juanito on November 03, 2020, 04:14:58 AM
You can connect to to a piCore x11 gui running x11vnc by using, for example, vinagre in CorePure64.

If I understand correctly, you'd like to connect to a piCore x11 gui on an RPi0 using piCore on an RPi4?
Title: Re: TCE freerdp 2.0
Post by: Juanito on November 03, 2020, 06:54:53 AM
libvpx and x265 would not compile with the standard piCore flags (-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp).

I don't have an RPi0/1 to try to compile them natively.

This is not a big problem for gst-plugins* as libvpx and x265 are effectively optional, but they are direct deps for ffmpeg (libavcodec).

It could be that apps like freerdp might work on armv6 as long as they don't try to access libvpx or x265 functionality.

For the above reasons gst-plugins* and ffmpeg and deps copied to the armv6 repo.

Title: Re: TCE freerdp 2.0
Post by: kagouraki on November 03, 2020, 08:02:34 AM
Thank you very much !
I try to have a rpi4 with buster and xrdp and access it from a pizero w with picore 12 and freerdp. I will give it a go in the afternoon!
Title: Re: TCE freerdp 2.0
Post by: Juanito on November 15, 2020, 11:34:47 AM
I recompiled libvpx and x265 natively on an RPi0, forcing them not to compile for neon.

epiphany works excruciatingly slowly and ffplay works dropping many frames, so I guess libvpx and x265 are now OK (sound works surprisingly well via hdmi with 3d graphics).

I haven't tried freerdp, but it should be OK.
Title: Re: TCE freerdp 2.0
Post by: Juanito on November 15, 2020, 11:57:57 AM
I just tried freerdp using an RPi0 as the server and it seems to work:
Code: [Select]
[RPi0 server]
$ winpr-makecert -rdp
$ openssl genrsa -out box.key 2048
$ openssl req -new -key box.key -out box.csr
$ openssl x509 -req -days 365 -signkey box.key -in box.csr -out box.crt
$ XDG_RUNTIME_DIR=/run/user/1001 weston --backend=rdp-backend.so --rdp-tls-cert=box.crt --rdp-tls-key=box.key --width=1024 --height=768 --socket=wayland-1

Code: [Select]
[CorePure64 client]
$ xfreerdp /v:box /sec:tls /size:1024x768 /v:192.168.1.129

Edit: you'll probably need to create a weston.ini on the server with:
Code: [Select]
[keyboard]
repeat-delay=1000