Re: [Fedora-music-list] Spin Approval
by Brendan Jones
On 12/04/2012 01:46 PM, Christoph Wickert wrote:
> Am Dienstag, den 04.12.2012, 08:29 +0100 schrieb Brendan Jones:
>> On 12/02/2012 10:11 PM, Christoph Wickert wrote:
>>
>>> I see your point, but the modifications
>>> to /usr/share/firstboot/modules/create_user.py are a no-go. You need to
>>> move the sed commands to the livesys init script, so the changes will
>>> only be applied to the live system but not to the installed packages.
>>> Even this is controversial (think of translations), but again as long as
>>> it not explicitly forbidden, I'll turn a blind eye to it.
>>>
>>
>> Is there a right way to do this?
>
> Hi Brendan,
>
> I'm afraid there is no really right way unless it gets configurable in
> firstboot.
>
>> I tried to find one but I couldn't see
>> an option in kickstart to make this happen. I could probably provide a
>> patch to firstboot (I think this would be really useful) but obviously
>> it will be too late for this release.
>
> It's definitely too late for this release and I doubt such a patch would
> be accepted as it has no use case outside this spin.
Fair enough
>
>> Or is this something which should
>> go into pam or somewhere else?
>
> How would you do this in pam?
>
>> Alternatively we could add this to %post in jack-audio-connection-kit
>> but I'm not sure if this is considered safe in a critical-path package
>
> It is not considered safe in *any* package. You must not own or modify
> files that are owned by another package (unless of course your package
> is a configuration utility and the file in question is a config file)
> and if you absolutely have to, you have to do it in the inscript so that
> the changes only apply to the live system but don't end up on the
> installed system.
I meant creating the group in %post (not editing a file owned by
firstboot). But the problem of assigning group membership still remains.
Alternatively, we could package something which gets kicked off via
xdg/autostart that could detect this and request sudo priveledges to add
the X user to the group. All really messy and too late now.
There is a package realTimeConfigQuickScan which potentially could be
kicked off at start, but having it persist post first log in is really
annoying.
So yes, we have two problems to solve here the liveuser and the
installed user. liveuser is OK - the installed user is not. How do other
packages handle this? How can a package know to give a particular user
group membership? I can't see a way out of this without user intervention.
For F19 I will submit the firtboot patch based on the config file and
see if I can make a good case for it.
If we do make changes to packages to fix these issues (not specifically
this issue), how can we ensure that the updates are part of the final
buildroot (and not only in updates)
<snip>
11 years, 4 months
Re: [Fedora-music-list] Spin Approval
by Ian Malone
On 5 December 2012 14:45, Christoph Wickert <cwickert(a)fedoraproject.org> wrote:
> Am Mittwoch, den 05.12.2012, 14:16 +0000 schrieb Ian Malone:
>
>> The general question of how a spin might be customised while still
>> staying within Fedora is perhaps something that needs to go to the
>> devel list.
>
> I agree, but this is more of a policy question. We had this topic
> already with other spins but most of the time we made exceptions (or
> not) and never really updated the policies. It's too late for this now
> either.
>
I was hoping it might produce some creative ideas, but it sounds like
that grounds already been covered then.
>> I do wonder if there's a systemd / seat based solution to this, will
>> raise that on the devel list.
>
> I think it's more of a polkit thing. If we only need to execute
> application foo with privileges of user/group bar, we could just ship a
> configuration file that allows users to run this application through
> pkexec.
>
> Bug again, I need more info in order to help you.
>
Okay, I think Brendan has answered the 'why'. I suspect what we need
to do is check what needs access to those groups. For real-time
privileges it may be that the plugins working with jack need them, or
it might be that just jack does. I'm not sure either what access the
audio group is used for, I think for Jack it may be priorities rather
than just the old purpose of access to audio devices (which pulse for
example now solves through the seat idea afaik). Will check the limits
file Brendan mentions when I get time.
--
imalone
http://ibmalone.blogspot.co.uk
11 years, 4 months
Re: [Fedora-music-list] Spin Approval
by Brendan Jones
On 12/05/2012 03:41 PM, Christoph Wickert wrote:
> Am Mittwoch, den 05.12.2012, 11:32 +0100 schrieb Brendan Jones:
>>
>> I meant creating the group in %post (not editing a file owned by
>> firstboot).
>
> Sorry, now I am lost.
>
> What group, 'audio' or 'jackuser'? How are these groups created, what
> privileges do they have and are privileges assigned to these groups?
> AFAIK jackuser is created by the jack-audio-connection-kit package, but
> what about audio? What is the reason for this group anyway?
Basically processes run with this group are subject to priority
escalation as described by limits.d file in the
jack-audio-connection-kit package. This is a real concern for audio
users. Another use case for a firstboot patch is the pulse-rt group,
although I'm unsure of the implications.
>
>> But the problem of assigning group membership still remains.
>
> Right, but it will continue to remain even with this modification,
> because we only "fix" the very first user that gets created, but not
> subsequent ones.
>
>> Alternatively, we could package something which gets kicked off via
>> xdg/autostart that could detect this and request sudo priveledges to add
>> the X user to the group.
>
> That won't help either. Autostart is executed after a user logs in. If
> he then is added to a group, he'd need to log in again to allow all
> running applications picking up the change.
>
>> All really messy and too late now.
>
> Ack.
>
>> There is a package realTimeConfigQuickScan which potentially could be
>> kicked off at start, but having it persist post first log in is really
>> annoying.
>
> What exactly does this package do? I am really trying to help you but in
> order to do so, I need more info. What privileges do we need, what
> applications do we need to run or what devices to access?
It basically is a check to see if the logged in user can do all it needs
for "optimal" audio. By itself it does nothing, does not even need root
privileges to do these checks
>
>> So yes, we have two problems to solve here the liveuser and the
>> installed user. liveuser is OK - the installed user is not. How do other
>> packages handle this? How can a package know to give a particular user
>> group membership? I can't see a way out of this without user intervention.
>
> I don't think we have a way to add users to a group, at least not on a
> packaging level. We don't even seem to be able to do this on the
> commandline as /etc/default/useradd can only configure the default group
> but not additional default groups.
Short of adding every user to said package, I agree (and think that is
no solution). I think you an Ian may have something with the seat/polkit
idea.
>
>> For F19 I will submit the firtboot patch based on the config file and
>> see if I can make a good case for it.
>
> There is not much use if it is not configurable. I'm afraid that more
> people will then come with requests for one or the other group.
> Hardcoding groups in firstboot does not fly.
Sorry, perhaps I wasn't clear. Something like groups=... in the
firstboot config file, a programmatic solution rather than our hack.
11 years, 4 months
Re: [Fedora-music-list] Spin Approval
by Brendan Jones
On 12/04/2012 01:46 PM, Christoph Wickert wrote:
<snip>
>
> But now I realize the problem: We are modifying firstboot and not
> anaconda, so we need the change on the installed system, at least at the
> very first boot after installation. Correct?
Yes - there are two really important points to consider (correct me if
I' wrong here team) everything else can go by the wayside #1 is audio
group membership, number #2 is threadirqs
A VERY nice to have is the themeing because artists tend to be a select
bunch and first impressions count for something. Without the themeing I
guess the kickstart is ready. I can't see why adding the /etc/skel stuff
to a package helps anyone. If anything it adds unexpected config changes...
regards,
Brendan
11 years, 4 months
Meeting tonight 23.00 UTC
by Jørn Loamx
Morning/afternoon all
There will be a short meeting tonight on IRC (#fedora-audio on freenode)
at 23.00 UTC. I will create and add to the agenda on the wiki[1]
throughout the day. Anyone can add to it if the want too. I'm sorry for
the short notice, but hopefully as many as possible can make it.
If there are any questions, don't hesitate to take contact :D
--
Jørn Lomax
Nestleder Studentutvalget NT-Fak
CS Student University of Tromsø
Blog: http://lurimax.posterous.com/
11 years, 4 months
Re: [Fedora-music-list] Spin Approval
by Brendan Jones
On 12/02/2012 10:11 PM, Christoph Wickert wrote:
> Hi Brendan,
> hi Jorn,
>
> sorry again for the late reply.
>
> Am Samstag, den 01.12.2012, 20:04 +0100 schrieb Brendan Jones:
>
>> - we have added a kernel boot parameter 'threadirqs' - prerequisite of
>> the rtirq package to prioritize software IRQs (very useful for dealing
>> with latency of audio devices)
>
> This is controversial, but I see nothing wrong with it. As long as there
> is no guideline that explicitly forbids it, I am willing to allow it.
>
>> - we have packaged out own background and our own KDE theme. The
>> background is simply the Spherical Cow them with a wave form
>> superimposed (fedora-jam-backgrounds).
>> - we have packaged our own KDE theme - this has spherical cow as a
>> direct dependency and is only required so we can use the background
>> image by default (for the desktop and splash) The package is
>> fedora-jam-kde-theme
>
> As long as everything is packaged, I see nothing wrong with it. This
> being said I would rather like to have the files you add
> to /etc/skel/.kde/ in %post as part of a package. I am not a KDE user,
> so I don't know if it is possible or would it collide with other
> packages.
I cannot see any other package owning these files, so I can add them to
fedora-jam-kde-theme.
>> - you can see the hack where we've made the logged in user a member of
>> the audio group by default. This is required by
>> jack-audio-connection-kit - it prioritizes processes running under this
>> group. Again very improtant for latency issues.
>
> I see your point, but the modifications
> to /usr/share/firstboot/modules/create_user.py are a no-go. You need to
> move the sed commands to the livesys init script, so the changes will
> only be applied to the live system but not to the installed packages.
> Even this is controversial (think of translations), but again as long as
> it not explicitly forbidden, I'll turn a blind eye to it.
>
Is there a right way to do this? I tried to find one but I couldn't see
an option in kickstart to make this happen. I could probably provide a
patch to firstboot (I think this would be really useful) but obviously
it will be too late for this release. Or is this something which should
go into pam or somewhere else?
Alternatively we could add this to %post in jack-audio-connection-kit
but I'm not sure if this is considered safe in a critical-path package
>> jack-audio-connection-kit packages a limits.d/ file to do this
>
> No problem, everything form a package is fine.
>
>> anyway - the rest is a stock standard KDE kickstart - we haven't even
>> deleted any packages.
>
> You probably should to save some space. I doubt that musicians are
> interested in all the stuff KDE offers and be eliminating everything
> irrelevant applications, , you could in fact shift the focus more to
> music. But that's up to you.
>> Anyway, please keep me updated.
>
> I have just approved your ks and wiki page. Please make the
> modifications to the ks ASAP.
>
> Next steps:
> 1. Get the ks into the nightlies
> 2. Get the ks into the spins-kickstart package. Fortunately the
> deadline is 2012-12-11.
> 3. Call for a meeting of the spins SIG for approval
> 4. Get board approval
> 5. I will add this to the board meeting agenda on Wednesday.
>
> I have to apologize to the two of you. I am incredibly busy with my
> dayjob and have failed horribly as a spins wrangler, but I am trying my
> best to get your spin in F18.
Thankyou! Hopefully all the changes you've requested should be done by
Wednesday.
I think the notifications system in the wiki is suspect and is probably
something that needs attention. I should raise a ticket
regards,
Brendan
11 years, 4 months
spin-kickstarts/fedora-jam
by Brendan Jones
spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks | 28 +++++++++++-----------
1 file changed, 15 insertions(+), 13 deletions(-)
New commits:
commit a6f6c8a7a7cd867fffd37d08dc92a406000bec8e
Author: Brendan Jones <brendan.jones.it(a)gmail.com>
Date: Tue Nov 27 08:13:26 2012 +0100
Enable stable packages
diff --git a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks b/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
index abe09af..4afd295 100644
--- a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
+++ b/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
@@ -67,6 +67,7 @@ swami
Add64
synthv1
samplv1
+drumkv1
ams
#guitar
@@ -116,6 +117,9 @@ lv2-zynadd-plugins
lv2dynparam
lv2-abGate
lv2-c++-tools
+lv2-samplv1
+lv2-synthv1
+lv2-drumkv1
slv2
#dssi
@@ -149,7 +153,7 @@ jaaa
jmeters
qastools
arpage
-#realTimeConfigQuickScan
+realTimeConfigQuickScan
#patchage
#ladish #not packaged yet
japa
@@ -160,7 +164,7 @@ idjc
# fedora jam theming (to be customized)
kfaenza-icon-theme
fedora-jam-backgrounds
-#fedora-jam-kde-theme
+fedora-jam-kde-theme
#Misc. Utils
screen
@@ -198,16 +202,14 @@ EOF
# Override fedora-live-kde-base.ks settings
sed -i /etc/rc.d/init.d/livesys -res"#^(FavoriteURLs=).*#\1${JAMFAVORITES}#"
-# Set default theme (to be changed to a customized one)
+# Set default theme
cat >> /etc/skel/.kde/share/config/plasmarc << EOF
[\$Version]
update_info=plasma_popupapplet_fix_groups.upd:PlasmaPopupAppletFixGroups2
[Theme]
-#name=Fedora_Jam
-name=Caledonia
+name=Fedora_Jam
[Theme-plasma-netbook]
-#name=Fedora_Jam-netbook
-name=Spherical_Cow-netbook
+name=Fedora_Jam-netbook
[Icons]
Theme=KFaenza
EOF
@@ -218,12 +220,12 @@ cat >> /etc/skel/.kde/share/config/kdeglobals << EOF
Theme=KFaenza
EOF
-## Set default splash (Awaiting packaging in fedora-jam-kde-theme:)
-#cat >> /etc/skel/.kde/share/config/ksplashrc << EOF
-#[KSplash]
-#Engine=KSplashX
-#Theme=FedoraJam
-#EOF
+## Set default splash
+cat >> /etc/skel/.kde/share/config/ksplashrc << EOF
+[KSplash]
+Engine=KSplashX
+Theme=FedoraJam
+EOF
#add user to jackuser group on boot
11 years, 4 months
spin-kickstarts/fedora-jam
by Brendan Jones
spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks | 2
spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks~ | 219 ---------------------
spin-kickstarts/fedora-jam/kickstart_searcher.py~ | 96 ---------
3 files changed, 2 insertions(+), 315 deletions(-)
New commits:
commit 4b7a98ab9065b90fe4bbdc5e073592cf67ea8ec6
Author: Brendan Jones <brendan.jones.it(a)gmail.com>
Date: Sat Dec 1 19:41:59 2012 +0100
Add rtirq vmpk
diff --git a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks b/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
index 4afd295..86bb009 100644
--- a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
+++ b/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks
@@ -55,6 +55,7 @@ fluid-soundfont-gm
fluidsynth-dssi
timidity++
qmidiarp
+vmpk
#harmonyseq
#synthesis
@@ -154,6 +155,7 @@ jmeters
qastools
arpage
realTimeConfigQuickScan
+rtirq
#patchage
#ladish #not packaged yet
japa
diff --git a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks~ b/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks~
deleted file mode 100644
index b630508..0000000
--- a/spin-kickstarts/fedora-jam/fedora-live-jam-kde.ks~
+++ /dev/null
@@ -1,219 +0,0 @@
-#fedora-livedvd-jam-kde.ks
-# With KDE Desktop
-
-# Fedora Jam: For Musicians and audio enthusiasts
-# Fedora Jam is a spin for anyone interested in creating
-# music
-# Web: https://fedoraproject.org/wiki/Fedora_jam
-# Web: insert spinspacke when created
-
-# Maintainer: Jørn Lomax <northlomax(a)gmail.com>
-# https://fedoraproject.org/wiki/User:jvlomax
-
-# Last modified: Jun 28, 2012.
-
-%include fedora-livecd-kde.ks
-
-#enable threaded irqs
-bootloader --append="threadirqs"
-
-# DVD payload
-part / --size 10000
-
-%packages
-
-rtirq
-#alsa
-alsa-firmware
-alsa-tools
-alsa-utils
-alsamixergui
-alsa-plugins-jack
-alsa-plugins-pulseaudio
-alsa-plugins-usbstream
-alsa-plugins-samplerate
-alsa-plugins-upmix
-alsa-plugins-vdownmix
-a2jmidid
-
-#jack
-jack-audio-connection-kit
-jack-audio-connection-kit-dbus
-qjackctl
-jackctlmmc
-
-#pulse
-pulseaudio-module-jack
-pavucontrol
-
-
-
-#midi
-qsynth
-fluidsynth
-fluid-soundfont-gm
-fluidsynth-dssi
-timidity++
-qmidiarp
-
-#synthesis
-hydrogen
-bristol
-monobristol
-zynaddsubfx
-swami
-
-#guitar
-rakarrack
-guitarix
-tuxguitar
-sooperlooper
-
-#recodring and DAW
-audacity
-ardour
-rosegarden4
-seq24
-muse
-
-
-
-# audio-plugins
-calf
-dssi
-dssi-vst
-jack-rack
-ladspa
-
-#ladpsa plugins
-ladspa-amb-plugins
-ladspa-autotalent-plugins
-ladspa-blop-plugins
-ladspa-cmt-plugins
-ladspa-fil-plugins
-ladspa-mcp-plugins
-ladspa-rev-plugins
-ladspa-swh-plugins
-ladspa-tap-plugins
-ladspa-vco-plugins
-
-#lv2 plugins
-lv2
-lv2-avw-plugins
-lv2-fil-plugins
-lv2-invada-plugins
-lv2-kn0ck0ut
-lv2-ll-plugins
-lv2-swh-plugins
-lv2-vocoder-plugins
-lv2-zynadd-plugins
-lv2dynparam
-lv2-abGate
-lv2-c++-tools
-slv2
-
-#dssi
-nekobee-dssi
-whysynth-dssi
-xsynth-dssi
-hexter-dssi
-
-
-zynjacku
-zita-at1
-zita-rev1
-
-#sound analasys, none of these are packaged yet
-#praat bug_id=666656
-#friture
-
-
-
-#writing & publishing
-emacs
-emacs-color-theme
-vim
-nano
-mscore
-lilypond
-frescobaldi
-
-
-#audio utilities
-jamin
-lash
-jack_capture
-jaaa
-jmeters
-qastools
-arpage
-#patchage
-#ladish #not packaged yet
-#japa
-
-#streaming
-idjc
-
-
-
-#Misc. Utils
-screen
-shutter
--ksnapshot
-multimedia-menus
-
-
-
-#Include Mozilla Firefox and Thunderbird
-firefox
-thunderbird
-
-#remove packages not need
-#-kdesdk-umbrello
-#-kdesdk-kcachegrindy
-
-#-kdesdk-kompare
-#-kdepim
-
-%end
-
-%post
-
-#setup kickoff favorites
-/bin/mkdir -p /etc/skel/.kde/share/config
-
-/bin/echo [Favorites] >> /etc/skel/.kde/share/config/kickoffrc
-
-/bin/echo FavoriteURLs=/usr/share/applications/firefox.desktop,/usr/share/applications/mozilla-thunderbird.desktop,/usr/share/applications/fedora-qjackctl.desktop,/usr/share/applications/fedora-lash-panel.desktop,/usr/share/applications/mscore.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop >> /etc/skel/.kde/share/config/kickoffrc
-
-#set up favorites for the live user too
-/bin/mkdir -p /home/liveuser/.kde/share/config
-
-/bin/echo [Favorites] >> /home/liveuser/.kde/share/config/kickoffrc
-
-/bin/echo FavoriteURLs=/usr/share/applications/firefox.desktop,/usr/share/applications/mozilla-thunderbird.desktop,/usr/share/applications/fedora-qjackctl.desktop,/usr/share/applications/fedora-lash-panel.desktop,/usr/share/applications/mscore.desktop,/usr/share/applications/kde4/dolphin.desktop,/usr/share/applications/kde4/systemsettings.desktop >> /home/liveuser/.kde/share/config/kickoffrc
-
-
-
-#add user to jackuser gorup on boot
-
-/bin/sed -i '/self.admin.modifyGroup(wheelEnt)/a \ jackEnt = self.admin.lookupGroupByName("jackuser")\n jackEnt.add(libuser.MEMBERNAME, username)\n self.admin.modifyGroup(jackEnt)' /usr/share/firstboot/modules/create_user.py
-
-# add user to audio group on first boot
-/bin/sed -i '/self.admin.modifyGroup(wheelEnt)/a \ audioEnt = self.admin.lookupGroupByName("audio")\n audioEnt.add(libuser.MEMBERNAME, username)\n self.admin.modifyGroup(audioEnt)' /usr/share/firstboot/modules/create_user.py
-
-#update the wording on the install screen
-/bin/sed -i '/self.is_admin = gtk.CheckButton(_("Add to Administrators group"))/c \ self.is_admin = gtk.CheckButton(_("Add to Administrator and Audio groups"))' /usr/share/firstboot/modules/create_user.py
-
-
-
-
-cat >> /etc/rc.d/init.d/livesys << EOF
-/usr/sbin/usermod -a -G jackuser,audio liveuser
-FOE
-%end
-
-
-
-
-
diff --git a/spin-kickstarts/fedora-jam/kickstart_searcher.py~ b/spin-kickstarts/fedora-jam/kickstart_searcher.py~
deleted file mode 100644
index c4f9863..0000000
--- a/spin-kickstarts/fedora-jam/kickstart_searcher.py~
+++ /dev/null
@@ -1,96 +0,0 @@
-import sys
-import urllib2
-import filecmp
-
-class Downloader:
- def download(self, url="http://jvlomax.fedorapeople.org/crawler/crawler.txt", filename="crawler.txt"):
- u = urllib2.urlopen(url)
- file = open(filename, "w")
- file.write(u.read())
- file.close
-
-class Reader:
- def __init__ (self,readFilename, writeFilename):
- self.readFile = readFilename
- self.writeFile = writeFilename
- self.list = []
- self.diffList = []
- self.sameList = []
-
- def read(self):
- file = open(self.readFile,"r")
-
- for line in file:
- #print line
- if line == "%end":
- return
- if len(line) == 0:
- continue
- if line[0] == "#":
- continue
- if line[0] == "%":
- continue
- if line == "\n":
- continue
- tmp = line.lower()
- tmp = tmp.rstrip()
- self.list.append(tmp)
-
- def writeResult(self):
- f = open(self.writeFile, "w")
- self.list.sort()
- for item in self.list:
- f.write(item)
-
- def compare(self, file1 = "output",file2 = "crawler.txt",outputFile = "diff.text"):
- f1 = open(file1, 'r')
- f2 = open(file2, 'r')
-
- file1List = []
- file2List = []
- for line in f1:
- file1List.append(line)
- for line in f2:
- file2List.append(line)
- f1.close()
- f2.close()
- f = open(outputFile, "w")
-
-
- f.write("Files found in the kickstart, but not on the primary list \n")
- diff = set(file1List) - set(file2List)
- for item in diff:
- if item[0] == "#":
- continue
- if item == " ":
- continue
-
- f.write(item)
-
- f.write("\nFiles on the primary list not in the kickstart \n")
- diff = set(file2List) - set(file1List)
- for item in diff:
- if item[0] == "#":
- continue
- f.write(item)
-
-
-
-
-
-
-
-
-
-
-if __name__ == "__main__":
-
- downloader = Downloader()
- downloader.download()
- reader = Reader("fedora-live-jam-kde.ks","output")
- reader.read()
- reader.writeResult()
- reader.compare()
-
-
-
11 years, 4 months