Remastering SolydXK [adapted: 22 July 2015]

Post your tutorials and howtos here.
User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 27 May 2016 10:30

I'm downloading the ISO right now and will look at them after the weekend.
I'll also send you an e-mail with your FTP account.


SolydXK needs you!
Development | Testing | Translations

User avatar
lufilte
Posts: 80
Joined: 06 Dec 2013 15:07
Location: Parede, Cascais, Portugal
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby lufilte » 27 May 2016 10:36

Schoelje wrote:I'm downloading the ISO right now and will look at them after the weekend.
I'll also send you an e-mail with your FTP account.
Tank you my friend.

I only did is Localized to Portuguêse European, but i can also do another ones including Portuguêse Brazilian too.!

Translator|Testing
Escolhi ser livre por isso uso Linux!

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 27 May 2016 11:42

lufilte wrote:I only did is Localized to Portuguêse European, but i can also do another ones including Portuguêse Brazilian too.!
That would be great! However, remember that ISOs are released twice a year and you'll then have 4 ISOs to build, test and upload. It takes time, effort and commitment :)


SolydXK needs you!
Development | Testing | Translations

User avatar
lufilte
Posts: 80
Joined: 06 Dec 2013 15:07
Location: Parede, Cascais, Portugal
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby lufilte » 28 May 2016 16:11

Schoelje wrote:
lufilte wrote:I only did is Localized to Portuguêse European, but i can also do another ones including Portuguêse Brazilian too.!
That would be great! However, remember that ISOs are released twice a year and you'll then have 4 ISOs to build, test and upload. It takes time, effort and commitment :)
I'll remember that.
But the constructor rename the 201601 ISO to 201606, why this?
and btw the help menu doesn’t work.

Translator|Testing
Escolhi ser livre por isso uso Linux!

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 29 May 2016 20:06

For me it generates 201605 isos. So, I can only guess that it is June on your development machine.
The help button opens Firefox with the help file. Works for me and I don't know why not for you.

Please start the constructor from terminal and post back the output if you have any problems:

Code: Select all

constructor


SolydXK needs you!
Development | Testing | Translations

User avatar
lufilte
Posts: 80
Joined: 06 Dec 2013 15:07
Location: Parede, Cascais, Portugal
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby lufilte » 30 May 2016 10:35

Schoelje wrote:For me it generates 201605 isos. So, I can only guess that it is June on your development machine.
The help button opens Firefox with the help file. Works for me and I don't know why not for you.

Please start the constructor from terminal and post back the output if you have any problems:

Code: Select all

constructor
Even with the update of constructor i do not have the help see below

Code: Select all

ommand to execute: modprobe loop
Command to execute: ls /usr/lib/grub/ 2> /dev/null | grep efi | cut -d'-' -f1
Opening "/usr/lib/solydxk/constructor/../../../share/solydxk/constructor/help.html" with Chromium Web Browser  (text/html)
[1:1:0530/112603:FATAL:sandbox_linux.cc(178)] Check failed: sandbox::Credentials::MoveToNewUserNS(). 
#0 0x7fd16beaca9e <unknown>
#1 0x7fd16bec03ab <unknown>
#2 0x7fd16f979ecd <unknown>
#3 0x7fd16e5ad03f <unknown>
#4 0x7fd16be78ae3 <unknown>
#5 0x7fd16be79cc3 <unknown>
#6 0x7fd16be787e0 <unknown>
#7 0x7fd16ba2daea ChromeMain
#8 0x7fd163f60b45 __libc_start_main
#9 0x7fd16ba2d999 <unknown>

Received signal 6
#0 0x7fd16beac578 <unknown>
#1 0x7fd1642f98d0 <unknown>
#2 0x7fd163f74067 gsignal
#3 0x7fd163f75448 abort
#4 0x7fd16beaba72 <unknown>
#5 0x7fd16bec06b3 <unknown>
#6 0x7fd16f979ecd <unknown>
#7 0x7fd16e5ad03f <unknown>
#8 0x7fd16be78ae3 <unknown>
#9 0x7fd16be79cc3 <unknown>
#10 0x7fd16be787e0 <unknown>
#11 0x7fd16ba2daea ChromeMain
#12 0x7fd163f60b45 __libc_start_main
#13 0x7fd16ba2d999 <unknown>
  r8: ffffffd1745c2e88  r9: ffffffd1745c2e78 r10: 0000000000000008 r11: 0000000000000202
 r12: 00007ffffedf1518 r13: 00007ffffedf2801 r14: 00007ffffedf0b88 r15: 00007ffffedf0b78
  di: 0000000000000001  si: 0000000000000001  bp: 00007fd1733b2f20  bx: 0000000000000000
  dx: 0000000000000006  ax: 0000000000000000  cx: ffffffffffffffff  sp: 00007ffffedf00a8
  ip: 00007fd163f74067 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]

this is when i call constructor from gui link.

From terminal i get this:

Code: Select all

Command to execute: modprobe loop
Command to execute: ls /usr/lib/grub/ 2> /dev/null | grep efi | cut -d'-' -f1
Create list store eval string: Gtk.ListStore(bool, str, str, int, int)
First item is column name (multi-column list): Selecionar
First item is column name (multi-column list): Distribuição
First item is column name (multi-column list): Diretório de trabalho
Create column names: ['Selecionar', 'Distribuição', 'Diretório de trabalho']
First item is column name: skip first item
Create column: Gtk.TreeViewColumn("Selecionar", Gtk.CellRendererToggle(), active=0)
Check box found: add toggle function
Column added: Selecionar
Create column: Gtk.TreeViewColumn("Distribuição", Gtk.CellRendererText(), text=1, weight=3, size=4)
Column added: Distribuição
Create column: Gtk.TreeViewColumn("Diretório de trabalho", Gtk.CellRendererText(), text=2, weight=3, size=4)
Column added: Diretório de trabalho
Versão: 2.7.2
cheers

Translator|Testing
Escolhi ser livre por isso uso Linux!

User avatar
grizzler
Posts: 2038
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby grizzler » 01 Jun 2016 11:44

That may be because the constructor tries to open the browser as root. I assume chromium's sandbox forbids that. I know firefox can be started as root (which is something you just don't want, as far as I'm concerned). To prevent that from happening I create empty files called /root/.mozilla on all my systems. That makes firefox crash with a warning about not being able to find the profile whenever some root application tries to run it. And of course that's what happens when I click the constructor's Help button.

The solution here would be to open the help file as the user, not root. There are several ways to find the logged in user inside an application running as root, but depending on whether it was called with gksu, gksudo, sudo or pkexec, not all of them work under all circumstances. I usually use this (which is a bit contrived, but at least it always works - for the first logged in user only, of course):

Code: Select all

User=$(LANG=C who -u | head -n1)
User=${User%% *}
As a quick test I created a small shell script /usr/lib/solydxk/constructor/files/open containing

Code: Select all

#!/bin/bash
User=$(LANG=C who -u | head -n1)
sudo -u ${User%% *} -- xdg-open $1
and changed the function on_btnHelp_clicked() in /usr/lib/solydxk/constructor/constructor.py to

Code: Select all

    def on_btnHelp_clicked(self, widget):
        system("/usr/lib/solydxk/constructor/files/open file://%s &" % self.help)
This works as expected, neatly opening the help page in another tab in my browser or starting the browser if it isn't running already (though in the latter case, it does leave the constructor's own terminal window open when the constructor is closed, so this will require some finetuning...).
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 01 Jun 2016 11:57

Never thought of using an external bash!
I tried all kinds of ways the python way. Even changing the uid and gid but that didn't work. Whatever I did there was either a permission denied because I couldn't change the home directory to look in or it was trying to use Thunderbird to open the html file. Using xdg-mime to change that behavior for root did not work (I was warned for that).

I'll try you're way.

[Edit]
I'll use "logname" to get the user's name.


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 01 Jun 2016 12:15

Still the same for me:

Code: Select all

Opening "/usr/lib/solydxk/constructor/../../../share/solydxk/constructor/help.html" with Mozilla Thunderbird Mail/News  (text/html)
and it doesn't do a thing.


SolydXK needs you!
Development | Testing | Translations

User avatar
lufilte
Posts: 80
Joined: 06 Dec 2013 15:07
Location: Parede, Cascais, Portugal
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby lufilte » 01 Jun 2016 12:35

Ok so i did go on preferences to kde and forced to open firefox as predefined web browser then the help works.

i see that only works with Firefox is ok for me.

but yes i do not know why it try to open chromium!!! that doesn't make sense.

but yes now it is working
cheers

Translator|Testing
Escolhi ser livre por isso uso Linux!

User avatar
grizzler
Posts: 2038
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby grizzler » 01 Jun 2016 13:35

Schoelje wrote:Still the same for me:

Code: Select all

Opening "/usr/lib/solydxk/constructor/../../../share/solydxk/constructor/help.html" with Mozilla Thunderbird Mail/News  (text/html)
and it doesn't do a thing.
Weird. I remember RavenLX mentioning she had issues when xdg-open needed to open a file in an editor. It seems KDE doesn't always play nice with xdg-open.
There must be something seriously wrong with the mime settings - or how they're interpreted - if text/html files are offered to Thunderbird! :shock: :?

P.S.
I tried logname to find the username. It failed under some circumstances (I forget what they were exactly - I think it was in a cron job).
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 01 Jun 2016 15:37

I've created open-as-user in solydxk-system:

Code: Select all

#!/bin/bash
FLE=$1
USR=$2
if [ "$USR" == '' ]; then
  USR=$(logname)
fi
CMD=$(which kde-open)
if [ "$CMD" == "" ]; then
  CMD="xdg-open"
fi
sudo -H -u $USR bash -c "$CMD \"$FLE\""
The constructor has been updated to use this script. I think it's going to come in handy in other applications as well ;)

Thanks Grizzler, your script gave me the hint I needed.


SolydXK needs you!
Development | Testing | Translations

User avatar
ilu
Posts: 2016
Joined: 09 Oct 2013 12:45

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby ilu » 01 Jun 2016 18:02

grizzler wrote:That may be because the constructor tries to open the browser as root. I assume chromium's sandbox forbids that. I know firefox can be started as root (which is something you just don't want, as far as I'm concerned). To prevent that from happening I create empty files called /root/.mozilla on all my systems. That makes firefox crash with a warning about not being able to find the profile whenever some root application tries to run it. And of course that's what happens when I click the constructor's Help button.
I can't really help with the issue but this reminds me that also calling the UM help starts firefox as root which I don't mind but which is not the safest behaviour.

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 01 Jun 2016 21:55

Perhaps you meant DDM or USB Creator?
I've updated those as well.


SolydXK needs you!
Development | Testing | Translations

User avatar
ilu
Posts: 2016
Joined: 09 Oct 2013 12:45

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby ilu » 01 Jun 2016 22:57

I meant UM: There is this link to our forums on the "Informations" page - if you click that it starts a root FF.
I regularly use it to update my non-solydxk-firefox from mozilla. But for someone unaware starting an internet search from there it might be considered potentially dangerous.

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 02 Jun 2016 07:23

Ah, those!
There was only thing I could do: remove the hyperlinks all together.
I cannot start another application as another user from a hyperlink. That brings even more security issues.


SolydXK needs you!
Development | Testing | Translations

User avatar
ilu
Posts: 2016
Joined: 09 Oct 2013 12:45

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby ilu » 02 Jun 2016 13:44

As I said, I like the link there but I can do without.
Besides that it's root the root firefox also has no security settings and no security addons installed. And it causes confusion. We had forum threads in the past where people got confused ("My browser does not have any configuration anymore, what happened?").
For general safety I would suggest to just put the links name there ("Open your browser and visit this site: ...") without a hyperlink behind it. People would need to copy-paste but that's what a prudent internet user should do anyways.

User avatar
Arjen Balfoort
Site Admin
Posts: 8817
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Remastering SolydXK [adapted: 22 July 2015]

Postby Arjen Balfoort » 02 Jun 2016 13:57

ilu wrote:As I said, I like the link there but I can do without.
Besides that it's root the root firefox also has no security settings and no security addons installed. And it causes confusion. We had forum threads in the past where people got confused ("My browser does not have any configuration anymore, what happened?").
I implemented a tip from Grizzler in our nightlies: create /root/.mozilla and /root/.thunderbird files. You won't be able to open Firefox or Thunderbird as root. If you really need to, you'll need to remove those files manually.
ilu wrote:For general safety I would suggest to just put the links name there ("Open your browser and visit this site: ...") without a hyperlink behind it. People would need to copy-paste but that's what a prudent internet user should do anyways.
That's how it works with the updated UM. It's in the repository.


SolydXK needs you!
Development | Testing | Translations


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest