Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[DONE] What happened to the linux installer
Thank you for your donation

Pages (5): « Previous 1 2 3 4 5 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Done:  What happened to the linux installer
21st Jan, 2015, 05:28 AM
Post: #31
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: What happened to the linux installer
can not run it on elementaryOS I have on mine. going to fresh install latest Ubuntu and will report back

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Jan, 2015, 07:26 AM
Post: #32
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: What happened to the linux installer
fresh installed Ubuntu 14.04.1 LTS 64bit

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Jan, 2015, 11:45 AM
Post: #33
calhaus Offline
Registered
Posts: 39
Joined: Jul 2013
Reputation: 4
RE: What happened to the linux installer
(21st Jan, 2015 05:15 AM)IriDium Wrote:  @calhaus Ok thanks, I'll give it a try tomorrow. BTW it's Ubuntu 14.10 64bit if that should make a difference.

I think the installer should include a read.me or install.txt file to explain what is required as it is not obvious.

Opened it on 14.10 64bit. And it opened just fine. So no problems there also.
Yes, i will add an README file after.


(21st Jan, 2015 05:28 AM)rikardo1979 Wrote:  can not run it on elementaryOS I have on mine. going to fresh install latest Ubuntu and will report back

Tried elementaryOS, yes it needs some QT libraries to be installed, "libQt5Widgets.so.5" to be precise.

I'm downloading QT5 source code, and will try to make a static version of qt and after of the installer, so you and others don't have to have to worry about missing libraries. Smile


(21st Jan, 2015 07:26 AM)rikardo1979 Wrote:  fresh installed Ubuntu 14.04.1 LTS 64bit

Looks fine! The program opened. Like it says, you have to open it with root privileges.
Open a terminal and type:
sudo ./XBian-installer
Find all posts by this user
Quote this message in a reply
21st Jan, 2015, 04:07 PM
Post: #34
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: What happened to the linux installer
@calhaus
can confirm that by running as root it does work fine. this was all just cos you are need to make it "idiot" prove Big Grin
so as mentioned, a little README.txt would be handy Wink


also, but this is just stupid thing, an XBian icon would be nice as as you can see the there is none on app/running app Wink

thanks

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Jan, 2015, 07:55 PM
Post: #35
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: What happened to the linux installer
Ok, that seems to work. Nice job.

My earlier "Permission denied" was probably caused by my second HDD not mounted in fstab with exec permissions. Onced changed all was fine.

Not too sure why there is XBian-installer.exe included as this is for Linux but......

Also it appears to hang at 100% but alas it seems to be doing something in the background

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
21st Jan, 2015, 08:00 PM
Post: #36
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: What happened to the linux installer
What about implementing a some sort of C++ "gsudo" call inside the installer so it will ask for root permission itself?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 01:15 AM
Post: #37
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: What happened to the linux installer
The OS X installer does that, so it'd be nice to have the same on Linux.
Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 02:47 AM
Post: #38
calhaus Offline
Registered
Posts: 39
Joined: Jul 2013
Reputation: 4
RE: What happened to the linux installer
(21st Jan, 2015 04:07 PM)rikardo1979 Wrote:  @calhaus
can confirm that by running as root it does work fine. this was all just cos you are need to make it "idiot" prove Big Grin
so as mentioned, a little README.txt would be handy Wink

also, but this is just stupid thing, an XBian icon would be nice as as you can see the there is none on app/running app Wink

thanks

The icon, i've looked and works different for different environments like kde or gnome. I believe the only trick is to include it next with executable (which i'll do, with that readme also).

(21st Jan, 2015 08:00 PM)CurlyMo Wrote:  What about implementing a some sort of C++ "gsudo" call inside the installer so it will ask for root permission itself?
You're probably taking about gksudo. I thought of that but not all systems have gksu! Mint for example has it preinstalled. But Ubuntu stopped including it in the new releases (i think they have a nautilus-sudo or something like that)... and so on.

Other stuff:
I've managed to compile statically the installer for linux, so qt libraries are included. But tested it on elementary, and elementary now needs other libs... :/ Will see that next.
Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 04:07 AM (This post was last modified: 22nd Jan, 2015 04:08 AM by rikardo1979.)
Post: #39
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: What happened to the linux installer
(22nd Jan, 2015 02:47 AM)calhaus Wrote:  
(21st Jan, 2015 04:07 PM)rikardo1979 Wrote:  @calhaus
can confirm that by running as root it does work fine. this was all just cos you are need to make it "idiot" prove Big Grin
so as mentioned, a little README.txt would be handy Wink

also, but this is just stupid thing, an XBian icon would be nice as as you can see the there is none on app/running app Wink

thanks

The icon, i've looked and works different for different environments like kde or gnome. I believe the only trick is to include it next with executable (which i'll do, with that readme also).

(21st Jan, 2015 08:00 PM)CurlyMo Wrote:  What about implementing a some sort of C++ "gsudo" call inside the installer so it will ask for root permission itself?
You're probably taking about gksudo. I thought of that but not all systems have gksu! Mint for example has it preinstalled. But Ubuntu stopped including it in the new releases (i think they have a nautilus-sudo or something like that)... and so on.

Other stuff:
I've managed to compile statically the installer for linux, so qt libraries are included. But tested it on elementary, and elementary now needs other libs... :/ Will see that next.

i would leave it, not many people use that OS, its not so popular. i would say, focus for most common like Ubuntu, Mint, etc..if there would be an issue in any other than user could report individually

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 04:13 AM
Post: #40
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: What happened to the linux installer
I didn't mean actually doing the gksudo call, but include some sort of C++ login that calls some sudo routine.
http://qt-project.org/wiki/How_to_get_applications_running_with_root_privileges
In windows you should use this:

manifest.rc
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="highestAvailable"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

The manifest needs to be compiled like this:
Code:
windres -o manifest.o manifest.rc

Then add the manifest.o to the other files in gcc:
Code:
gcc ... foo.c bar.c manifest.o

@rikardo1979, as soon as the installer is properly staticly installed it should work on all linux platforms.
@calhaus, what libs?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 04:57 AM
Post: #41
calhaus Offline
Registered
Posts: 39
Joined: Jul 2013
Reputation: 4
RE: What happened to the linux installer
(22nd Jan, 2015 04:13 AM)CurlyMo Wrote:  I didn't mean actually doing the gksudo call, but include some sort of C++ login that calls some sudo routine.
http://qt-project.org/wiki/How_to_get_applications_running_with_root_privileges
In windows you should use this:

manifest.rc
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="highestAvailable"/>
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

The manifest needs to be compiled like this:
Code:
windres -o manifest.o manifest.rc

Then add the manifest.o to the other files in gcc:
Code:
gcc ... foo.c bar.c manifest.o

@rikardo1979, as soon as the installer is properly staticly installed it should work on all linux platforms.
@calhaus, what libs?

This libs:
Spoiler (Click to View)
ld-linux-x86-64.so.2 liblzma.so.5 libxcb-randr.so.0
libc.so.6 libmng.so.2 libxcb-render.so.0
libdl.so.2 libm.so.6 libxcb-render-util.so.0
libdrm.so.2 libpcre.so.3 libxcb-shape.so.0
libexpat.so.1 libpng12.so.0 libxcb-shm.so.0
libffi.so.6 libpthread.so.0 libxcb.so.1
libfontconfig.so.1 librt.so.1 libxcb-sync.so.1
libfreetype.so.6 libSM.so.6 libxcb-util.so.0
libgcc_s.so.1 libstdc++.so.6 libxcb-xfixes.so.0
libglapi.so.0 libtiff.so.5 libXdamage.so.1
libglib-2.0.so.0 libuuid.so.1 libXdmcp.so.6
libGL.so.1 libX11.so.6 libXext.so.6
libgobject-2.0.so.0 libX11-xcb.so.1 libXfixes.so.3
libICE.so.6 libXau.so.6 libXi.so.6
libicudata.so.52 libxcb-dri2.so.0 libXrender.so.1
libicui18n.so.52 libxcb-dri3.so.0 libxshmfence.so.1
libicuuc.so.52 libxcb-glx.so.0 libXxf86vm.so.1
libjasper.so.1 libxcb-icccm.so.4 libz.so.1
libjbig.so.0 libxcb-image.so.0
libjpeg.so.8 libxcb-keysyms.so.1
liblcms2.so.2 libxcb-present.so.0
None of them are QT related i believe.
I'll see if i can include them in the compiler. (No luck so far)

EDIT:
Any ideas on this?
I've used qtmake from a static qt to compile, and the qt libs are included, but the other ones aren't, (also included "CONFIG += static" on xbian-installer.pro but this dont change nothing because i'm already using static qt libs)...

P.S.: What i 've tried, was with a script get all the libs reported by ldd, and with other script call them while opening the executable but i get inconsistency errors (on elementaryOS) probably because some libs are repeated... So this is not a solution.

------------
The sudo thing, havent looked at it yet.
For windows that is not needed, at least i've executed it and everything worked fine, in linux you need it to have access to drives.
Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 05:13 AM
Post: #42
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: What happened to the linux installer
If you still have these libs needed, than staticly compiling didn't work well.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 05:29 AM
Post: #43
calhaus Offline
Registered
Posts: 39
Joined: Jul 2013
Reputation: 4
RE: What happened to the linux installer
(22nd Jan, 2015 05:13 AM)CurlyMo Wrote:  If you still have these libs needed, than staticly compiling didn't work well.

The qt part did. Now i don't have any qt lib needed. And the executable went from 1.6MB to 20MB. Dunno
Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 05:43 AM
Post: #44
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: What happened to the linux installer
Can you update github so i can staticly compile the installer as well. Then i can help you with the rest.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
22nd Jan, 2015, 06:25 AM
Post: #45
calhaus Offline
Registered
Posts: 39
Joined: Jul 2013
Reputation: 4
RE: What happened to the linux installer
(22nd Jan, 2015 05:43 AM)CurlyMo Wrote:  Can you update github so i can staticly compile the installer as well. Then i can help you with the rest.

I haven't change nothing in the program. (Only tried adding "CONFIG += static" to *.pro file but that does nothing)
You need to have a static Qt.
Then open a terminal and go to the folder where you have your installer files and do this:
Quote:make clean
PATH=/path/to/static/Qt/bin:$PATH
export PATH
qmake -config release
make

"/path/to/static/Qt/bin" is your path to your static qt
qmake generates a makefile with the settings.

If you dont have a static qt:
http://www.qtcentre.org/wiki/index.php?title=Building_static_Qt_on_Linux
http://doc.qt.io/qt-5/linux-deployment.html#static-linking

^Don't use just static in configure, because it will take hours. Use something like:
./configure -static -nomake examples -nomake tools -prefix /path/to/static/Qt/bin

Hope you got lucky.
Use at the end to see if your installer sill need libs or not:
ldd ./XBian-installer


EDIT:
Added in the xbian-installer.pro to the unix part this:
QMAKE_LFLAGS = -static -static-libgcc

but i'm getting glibc problems
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (5): « Previous 1 2 3 4 5 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Linux Installer & DDing Rasp 2 Image cship 15 43,572 6th Mar, 2015 02:59 AM
Last Post: beach
  [PROBLEM] Linux installer not working rlogiacco 4 13,886 18th Jan, 2015 11:46 PM
Last Post: rikardo1979
  Feedback Linux/Mac Installer BartOtten 3 12,314 29th Dec, 2012 05:53 AM
Last Post: lemmy999

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 19th May, 2025, 08:09 PM Powered By MyBB, © 2002-2025 MyBB Group.