Discussion:
Modify GroupSelector for Everything
Đặng Thanh Phúc
2015-08-04 14:08:20 UTC
Permalink
HI all,

I'm a newbie. I'm interested with anaconda. I've tried to research and
modify anaconda from source code.
I'd like to ask you some questions. Please help me out.
1. I choose Web Server and I want to check all sub-groups packages of them.
How can I do it ?
2. I want to add new group "Everything" and check all sub-groups packages.
How can I modify it ?

I'm looking forward to seeing your reply. Thanks so much
Best regards
--
Phuc Dang
Gmail : ***@gmail.com
sad man
2015-08-04 14:38:54 UTC
Permalink
Dang: I think instead of modifying source, you can modify the
<hexcode>-comps.xml file in "repodata/" folder on ISO and edit the
"WebServer" category. You only have to change the sub-groups listed under
that category from "optional" to "mandatory".

Similarly you can also add a custom category in the comps.xml file and add
all sub-groups as "mandatory" in this category. After that you just have to
run "creatrepo -g (modified)-comps.xml ." command.

comps.xml file is very simple to understand and I think is the easiest
solution to what you are trying to achieve.

PS: In case you want to modify the source for the sake of learning about
anaconda, you can go through:
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/ui/gui/spokes/software.py

and then trace back to it's callers.
Post by Đặng Thanh Phúc
HI all,
I'm a newbie. I'm interested with anaconda. I've tried to research and
modify anaconda from source code.
I'd like to ask you some questions. Please help me out.
1. I choose Web Server and I want to check all sub-groups packages of
them. How can I do it ?
2. I want to add new group "Everything" and check all sub-groups packages.
How can I modify it ?
I'm looking forward to seeing your reply. Thanks so much
Best regards
--
Phuc Dang
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Cheers,

Asadullah Hussain
Đặng Thanh Phúc
2015-08-05 01:48:38 UTC
Permalink
Hi sad man,
Thanks for your reply.
*I'll give it a try*
*Best Regards,*
Post by sad man
Dang: I think instead of modifying source, you can modify the
<hexcode>-comps.xml file in "repodata/" folder on ISO and edit the
"WebServer" category. You only have to change the sub-groups listed under
that category from "optional" to "mandatory".
Similarly you can also add a custom category in the comps.xml file and add
all sub-groups as "mandatory" in this category. After that you just have to
run "creatrepo -g (modified)-comps.xml ." command.
comps.xml file is very simple to understand and I think is the easiest
solution to what you are trying to achieve.
PS: In case you want to modify the source for the sake of learning about
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/ui/gui/spokes/software.py
and then trace back to it's callers.
Post by Đặng Thanh Phúc
HI all,
I'm a newbie. I'm interested with anaconda. I've tried to research and
modify anaconda from source code.
I'd like to ask you some questions. Please help me out.
1. I choose Web Server and I want to check all sub-groups packages of
them. How can I do it ?
2. I want to add new group "Everything" and check all sub-groups
packages. How can I modify it ?
I'm looking forward to seeing your reply. Thanks so much
Best regards
--
Phuc Dang
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Cheers,
Asadullah Hussain
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Phuc Dang
Gmail : ***@gmail.com
Đặng Thanh Phúc
2015-08-05 04:26:50 UTC
Permalink
Hi all,
I'd like to ask a question.
What does Anaconda-13.21.239 separate environment (Basic Server, Web
Server...) based on ?
And How can I modify them and add new environment ?

Thanks so much
Best Regards,
Post by sad man
Dang: I think instead of modifying source, you can modify the
<hexcode>-comps.xml file in "repodata/" folder on ISO and edit the
"WebServer" category. You only have to change the sub-groups listed under
that category from "optional" to "mandatory".
Similarly you can also add a custom category in the comps.xml file and add
all sub-groups as "mandatory" in this category. After that you just have to
run "creatrepo -g (modified)-comps.xml ." command.
comps.xml file is very simple to understand and I think is the easiest
solution to what you are trying to achieve.
PS: In case you want to modify the source for the sake of learning about
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/ui/gui/spokes/software.py
and then trace back to it's callers.
Post by Đặng Thanh Phúc
HI all,
I'm a newbie. I'm interested with anaconda. I've tried to research and
modify anaconda from source code.
I'd like to ask you some questions. Please help me out.
1. I choose Web Server and I want to check all sub-groups packages of
them. How can I do it ?
2. I want to add new group "Everything" and check all sub-groups
packages. How can I modify it ?
I'm looking forward to seeing your reply. Thanks so much
Best regards
--
Phuc Dang
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Cheers,
Asadullah Hussain
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Phuc Dang
Gmail : ***@gmail.com
sad man
2015-08-05 13:52:09 UTC
Permalink
I guess you are talking about the GUI, if so then the GUI is based on GTK+
3/PyGObject. The interfaces can be designed using "glade" which is very
easy. So if you go to the source, I mentioned in the previous email. You
will find that each ".py" file has a corresponding ".glade" file. To modify
GUI you can modify the ".glade" file and then add the event handler in the
corresponding ".py" file (not recommneded).

Instead you can try writing an addon if you want to add your own GUI object
(spoke). Instructions:
http://rhinstaller.github.io/anaconda-addon-development-guide/index.html

Kindly go to the main anaconda documentation
<https://fedoraproject.org/wiki/Anaconda> first, it is pretty concise and
comprehensive.
Post by Đặng Thanh Phúc
Hi all,
I'd like to ask a question.
What does Anaconda-13.21.239 separate environment (Basic Server, Web
Server...) based on ?
And How can I modify them and add new environment ?
Thanks so much
Best Regards,
Post by sad man
Dang: I think instead of modifying source, you can modify the
<hexcode>-comps.xml file in "repodata/" folder on ISO and edit the
"WebServer" category. You only have to change the sub-groups listed under
that category from "optional" to "mandatory".
Similarly you can also add a custom category in the comps.xml file and
add all sub-groups as "mandatory" in this category. After that you just
have to run "creatrepo -g (modified)-comps.xml ." command.
comps.xml file is very simple to understand and I think is the easiest
solution to what you are trying to achieve.
PS: In case you want to modify the source for the sake of learning about
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/ui/gui/spokes/software.py
and then trace back to it's callers.
Post by Đặng Thanh Phúc
HI all,
I'm a newbie. I'm interested with anaconda. I've tried to research and
modify anaconda from source code.
I'd like to ask you some questions. Please help me out.
1. I choose Web Server and I want to check all sub-groups packages of
them. How can I do it ?
2. I want to add new group "Everything" and check all sub-groups
packages. How can I modify it ?
I'm looking forward to seeing your reply. Thanks so much
Best regards
--
Phuc Dang
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Cheers,
Asadullah Hussain
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Phuc Dang
_______________________________________________
Anaconda-devel-list mailing list
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Cheers,

Asadullah Hussain
Loading...