RITlug / TigerOS

[MOVED TO GITLAB] Please visit new location: https://gitlab.com/RITlug/TigerOS
https://ritlug.com/tigeros
GNU General Public License v3.0
34 stars 11 forks source link

Autostart postinstall and enablerpmfusion on first login to new system #28

Closed axk4545 closed 6 years ago

axk4545 commented 7 years ago

Currently there is code in the ks that should trigger postinstall to run on first login. This is still being debugged and could be improved. We also need to work out how we want to trigger the enablerpmfusion script (maybe in postinstall before the case statement?) @Tjzabel @Josh1147582 any help is appreciated.

Tjzabel commented 7 years ago

@axk4545 I will try to look at this issue when I get the chance.

axk4545 commented 7 years ago

@Tjzabel ok. FYI I am working on the scripts atm. watch Telegram for the commit message

Tjzabel commented 7 years ago

@axk4545 yeah sure. I won't be available to do any work until a little after 4 anyways

axk4545 commented 7 years ago

@Tjzabel added enablerpmfusion to top of postinstall

Tjzabel commented 7 years ago

@axk4545 I believe we solved this issue. Closing.

axk4545 commented 7 years ago

The script runs but immediately closes the terminal window after entering the password

Tjzabel commented 7 years ago

@axk4545 where is the file put? Ran fine for me when placed in .config/autostart/

axk4545 commented 7 years ago

@Tjzabel ~/.config/autostart/tigeros-postinstall.desktop. if run manually it works fine @linux-modder any ideas?

Tjzabel commented 7 years ago

@axk4545 I was able to have it run on a fresh fedora install. I threw the file in that location, rebooted the VM, and it worked just fine.

Are you able to reproduce your issue with it closing after entering the password?

axk4545 commented 7 years ago

@Tjzabel Yes. I am running the latest TigerOS iso from tigeros.ritlug.com/isos in a VirtualBox VM.

linux-modder commented 7 years ago

as of 0513 iso still requires explicit invocation while perms are as shown:

[tigers@tigers ~]$ ls -la /usr/local/bin/postinstall -rwxr-xr-x. 1 root root 4589 May 13 05:01 /usr/local/bin/postinstall

this is on a raw metal fedora 25 (415Gb) / (30Gb) tigeros install:

axk4545 commented 7 years ago

@linux-modder thank you it would seem we need to possibly fix the permissions on the script itself. @johnraff @2ion I would be interested in how you have decided to implement the autostarting of the Bunsen Labs postinstall script.

johnraff commented 7 years ago

autostarting of the Bunsen Labs postinstall script

There are two: 1) A script to set up the default user configuration during the first login, this is triggered from a lightdm config fragment: https://github.com/BunsenLabs/bunsen-configs/blob/master/50_bunsen.conf 2) A script to offer the user various installation options etc, run after login from ~/.config/openbox/autostart: https://github.com/BunsenLabs/bunsen-configs/blob/master/skel/.config/openbox/autostart

Each of these scripts places a marker file in ~/.config/bunsen, and exits immediately if that file is already present.

axk4545 commented 7 years ago

A script to set up the default user configuration during the first login, this is triggered from a lightdm config fragment: https://github.com/BunsenLabs/bunsen-configs/blob/master/50_bunsen.conf

@johnraff is this something that the user sees or could interact with? Right now we have this desktop file and the script either fails to run or closes after the password prompt

johnraff commented 7 years ago

No, /usr/lib/bunsen/configs/bl-user-setup is run by lightdm, as root, before the user is logged in.

axk4545 commented 7 years ago

@axk4545 I got it set! Terminal=false also play with profile arg to see if it matters. Will fix later after final exam.

axk4545 commented 7 years ago

Well now it seems to work too well... it runs on the livecd.

axk4545 commented 7 years ago

I think I have a workaround in removing the desktop file from the liveuser's autostart in %post of the kickstart. will implement in builds once I have tested and received feedback on other changes.

ct-martin commented 7 years ago

Other ideas:

linux-modder commented 7 years ago

I assume you mean this: https://github.com/davidferguson/pibakery-raspbian/blob/master/etc/systemd/system/pibakery.service? If so that would work indeed.

Tjzabel commented 6 years ago

Sooo it seems this isn't an issue. It may possibly be an issue running TigerOS in a VM, but using the LiveCD on an actual machine does not seem to trigger the PostInstall prematurely as stated.

May need to do further testing to see if this is a VM specific issue or not.

axk4545 commented 6 years ago

@Tjzabel thanks for checking on this. I would like to get a couple more confirmations that this isn't an issue before I close.

ct-martin commented 6 years ago

To be retested after #41

axk4545 commented 6 years ago

I approve of the last comment

Tjzabel commented 6 years ago

Anyone have any further information on this topic? I have tried this quite a few times, and it works as advertised. However, I have only tested on one machine. Has anyone else been able to test this on their own hardware?

axk4545 commented 6 years ago

@Tjzabel I can test on my TigerOS install. It does seem to be functioning. We can merge this with the GTK UI issue #55 unless it comes back up